titanium crashing on build and run - titanium

Since last update 7.5.0GA i'm getting this error trying to build on iOS
[ERROR] : Error: Error parsing plist: Expected entry
at walkDict (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/node-appc/lib/plist.js:123:11)
at toJS (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/node-appc/lib/plist.js:244:10)
at plist.value (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/node-appc/lib/plist.js:285:4)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/node-titanium-sdk/lib/tiappxml.js:483:32
at Object.forEachElement (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/node-appc/lib/xml.js:32:4)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/node-titanium-sdk/lib/tiappxml.js:481:13
at Object.forEachElement (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/node-appc/lib/xml.js:32:4)
at toJS (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/node-titanium-sdk/lib/tiappxml.js:432:10)
at tiapp.value (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/node-titanium-sdk/lib/tiappxml.js:828:4)
at new tiapp (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/node-titanium-sdk/lib/tiappxml.js:901:19)
at Object.run (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/node_modules/node-appc/lib/subprocess.js:60:8)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/lib/simctl.js:604:20
at Object.whilst (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:5227:5)
at trySimctl (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/lib/simctl.js:598:8)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/lib/simctl.js:200:4
at Object.whilst (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:5227:5)
at Object.list (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/lib/simctl.js:195:8)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/lib/simulator.js:179:11
at fireCallbacks (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/lib/xcode.js:140:5)
at Object.run (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/node_modules/node-appc/lib/subprocess.js:60:8)
at find (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/node_modules/node-appc/lib/subprocess.js:97:13)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:4096:9
at Object.process (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:2344:17)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:2252:19
at Immediate.<anonymous> (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:119:16)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:118:9
at _insert (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:2250:13)
at Object.push (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:2303:13)
at Object.findExecutable (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/node_modules/node-appc/lib/subprocess.js:114:8)
at findTeams (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/lib/xcode.js:455:21)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:3880:24
at replenish (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:1011:17)
at iterateeCallback (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:995:17)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:969:16
at Object.run (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/node_modules/node-appc/lib/subprocess.js:60:8)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/lib/xcode.js:447:22
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:3110:16
at replenish (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:1011:17)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:1016:9
at eachLimit$1 (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:3196:24)
at Object.<anonymous> (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:1046:16)
at loadXcodeInfo (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/lib/xcode.js:304:11)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:3880:24
at Object.run (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/node_modules/node-appc/lib/subprocess.js:60:8)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/lib/xcode.js:267:22
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/lib/env.js:98:4
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:3888:9
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:473:16
at iterateeCallback (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:992:24)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:969:16
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:3885:13
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/lib/env.js:76:6
at Object.run (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/node_modules/node-appc/lib/subprocess.js:60:8)
at find (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/node_modules/node-appc/lib/subprocess.js:97:13)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:4096:9
at Object.process (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:2344:17)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:2252:19
at Immediate.<anonymous> (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:119:16)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:118:9
at _insert (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:2250:13)
at Object.push (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:2303:13)
at Object.findExecutable (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/node_modules/node-appc/lib/subprocess.js:114:8)
at security (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/lib/env.js:64:21)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:3880:24
at replenish (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:1011:17)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:1016:9
at eachOfLimit (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:1041:24)
at magik (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/lib/utilities.js:51:13)
at Object.detect (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/lib/env.js:49:9)
at detectOSXenv (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/ioslib/lib/xcode.js:252:9)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:3880:24
at replenish (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:1011:17)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:1016:9
at eachOfLimit (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:1041:24)
at /Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:1046:16
at _parallel (/Users/ginessanzsanchis/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA/node_modules/async/dist/async.js:3879:5)
Any idea why this is happening? Thanks.

Can you please update your node/npm version and try it again.
I am sharing my node version and acce info. You can match and update accordingly.
node version: 8.9.4
npm: 5.10.0
TiSDK: 7.5.0
Appcelerator CLI: 7.0.7
Or you can use below command.
appc use latest
appc setup
Again you get any issue so please share your console log via "appc run -I trace" command.
Thanks,

Yes. I Deleted all modules, I reinstalled them again, cleaned project and rerun...

Related

authenticate against sonatype ossindex with maven plugin

I am using the mvn org.sonatype.ossindex.maven:ossindex-maven-plugin from command line to check the dependencies of a maven project for CVEs. Locally, everything works fine, but in my build pipeline in Azure Devops, I get the following error:
[DEBUG] Connecting to ossindex.sonatype.org/18.118.116.156:443
[DEBUG] Connecting socket to ossindex.sonatype.org/18.118.116.156:443 with timeout 0
[DEBUG] Enabled protocols: [TLSv1.3, TLSv1.2]
[DEBUG] Enabled cipher suites:[TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_DSS_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_DSS_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384, TLS_DHE_RSA_WITH_AES_256_CBC_SHA256, TLS_DHE_DSS_WITH_AES_256_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_DSS_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_DSS_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_EMPTY_RENEGOTIATION_INFO_SCSV]
[DEBUG] Starting handshake
[DEBUG] Secure session established
[DEBUG] negotiated protocol: TLSv1.2
[DEBUG] negotiated cipher suite: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
[DEBUG] peer principal: CN=ossindex.sonatype.org
[DEBUG] peer alternative names: [ossindex.sonatype.org]
[DEBUG] issuer principal: CN=Amazon, OU=Server CA 1B, O=Amazon, C=US
[DEBUG] Connection established 172.21.1.242:33030<->18.118.116.156:443
[DEBUG] Executing request POST /api/v3/component-report HTTP/1.1
[DEBUG] Proxy auth state: UNCHALLENGED
[DEBUG] http-outgoing-2 >> POST /api/v3/component-report HTTP/1.1
[DEBUG] http-outgoing-2 >> User-Agent: ossindex-client/1.1.1 (Linux; 5.4.0-124-generic; amd64; 11.0.12) Maven/3.8.1 Maven-Plugin/3.1.0
[DEBUG] http-outgoing-2 >> Authorization: Basic {SOME_BASE_64_THAT_TRANSLATES_TO:AzureDevOps:ey...}
[DEBUG] http-outgoing-2 >> Accept: application/vnd.ossindex.component-report.v1+json
[DEBUG] http-outgoing-2 >> Content-Length: 6737
[DEBUG] http-outgoing-2 >> Content-Type: application/vnd.ossindex.component-report-request.v1+json; charset=UTF-8
[DEBUG] http-outgoing-2 >> Host: ossindex.sonatype.org
[DEBUG] http-outgoing-2 >> Connection: Keep-Alive
[DEBUG] http-outgoing-2 >> Accept-Encoding: gzip,deflate
[DEBUG] http-outgoing-2 >> "POST /api/v3/component-report HTTP/1.1[\r][\n]"
[DEBUG] http-outgoing-2 >> "User-Agent: ossindex-client/1.1.1 (Linux; 5.4.0-124-generic; amd64; 11.0.12) Maven/3.8.1 Maven-Plugin/3.1.0[\r][\n]"
[DEBUG] http-outgoing-2 >> "Authorization: Basic {SOME_OTHER_BASE64_NO_IDEA_WHERE_IT_COMES_FROM=[\r][\n]"
[DEBUG] http-outgoing-2 >> "Accept: application/vnd.ossindex.component-report.v1+json[\r][\n]"
[DEBUG] http-outgoing-2 >> "Content-Length: 6737[\r][\n]"
[DEBUG] http-outgoing-2 >> "Content-Type: application/vnd.ossindex.component-report-request.v1+json; charset=UTF-8[\r][\n]"
[DEBUG] http-outgoing-2 >> "Host: ossindex.sonatype.org[\r][\n]"
[DEBUG] http-outgoing-2 >> "Connection: Keep-Alive[\r][\n]"
[DEBUG] http-outgoing-2 >> "Accept-Encoding: gzip,deflate[\r][\n]"
[DEBUG] http-outgoing-2 >> "[\r][\n]"
[DEBUG] http-outgoing-2 >> "{"coordinates":[ A_LIST_OF_128_COORDINATES]
[DEBUG] http-outgoing-2 << "HTTP/1.1 401 Unauthorized[\r][\n]"
[DEBUG] http-outgoing-2 << "Date: Wed, 07 Dec 2022 13:51:42 GMT[\r][\n]"
[DEBUG] http-outgoing-2 << "Content-Length: 0[\r][\n]"
[DEBUG] http-outgoing-2 << "Connection: keep-alive[\r][\n]"
so I tried setting the clientConfiguration parameter described here.
it has a dead link but I believe it references this class which has this class as a member.
mvn org.sonatype.ossindex.maven:ossindex-maven-plugin:3.1.0:audit -f $(Build.SourcesDirectory)/pom.xml -"Dossindex.authId=MY_SERVER" -"Dossindex.clientConfiguration={\"auth\": {\"username\": \"myemail#myorg.com\", \"password\": \"$(OSS_INDEX_API_TOKEN)\"} }"
but it didn't change anything.
Is this how one passes this parameter? Why am I getting a 401 in my build pipeline but everything works locally? I tried reading the docs on what requests are allowed/authorized but found them rather lacking...

nginx stream_ssl_preread module unable to read ssl_preread_server_name

I am trying to set up nginx to map TLS connections to different backends based on the SNI server name. From what I can tell, my client is sending the server name, but the preread module is only reading a hyphen.
Here is my nginx congif:
stream {
map_hash_bucket_size 64;
############################################################
### logging
log_format log_stream '$remote_addr [$time_local] $protocol [$ssl_preread_server_name] [$ssl_preread_alpn_protocols] [$instanceport] '
'$status $bytes_sent $bytes_received $session_time';
error_log /usr/home/glance/Logs/pservernginx.error.log info;
access_log /usr/home/glance/Logs/pservernginx.access.log log_stream;
############################################################
### ssl configuration
ssl_certificate /usr/home/glance/GlanceReleases/star.myglance.org.pem;
ssl_certificate_key /usr/home/glance/GlanceReleases/star.myglance.org.pem;
ssl_protocols TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5:!RC4;
limit_conn_zone $binary_remote_addr zone=ip_addr:10m;
########################################################################
### Raw TLS PServer Connections
### Listen for TLS on 5501 and forward to TCP sock 6500 (socket port)
### https://nginx.org/en/docs/stream/ngx_stream_ssl_preread_module.html
map $ssl_preread_server_name $instanceport {
presence.myglance.org 6500;
presence-1.myglance.org 6501;
presence-2.myglance.org 6502;
default glance-no-upstream-instance-configured;
}
server {
listen 5501 ssl;
ssl_preread on;
proxy_connect_timeout 20s; # max time to connect to pserver
proxy_timeout 30s; # max time between successive reads or writes
proxy_pass 127.0.0.1:$instanceport;
}
}
wireshark shows the Server Name header:
The nginx access log shows only hyphens for the preread variables:
108.49.96.66 [12/Apr/2019:11:50:58 +0000] TCP [-] [-] [glance-no-upstream-instance-configured] 500 0 0 0.066
I'm running nginx 1.14.2 on FreeBSD. How can I debug what is happening in the preread module?
================ UPDATE ===============
Turned on debug logging. Maybe "ssl preread: not a handshake" is a clue.
2019/04/12 14:49:50 [info] 61420#0: *9 client 108.49.96.66:54740 connected to 0.0.0.0:5501
2019/04/12 14:49:50 [debug] 61420#0: *9 posix_memalign: 0000000801C35000:256 #16
2019/04/12 14:49:50 [debug] 61419#0: accept on 0.0.0.0:5501, ready: 1
2019/04/12 14:49:50 [debug] 61419#0: accept() not ready (35: Resource temporarily unavailable)
2019/04/12 14:49:50 [debug] 61420#0: *9 posix_memalign: 0000000801C35600:256 #16
2019/04/12 14:49:50 [debug] 61420#0: *9 generic phase: 0
2019/04/12 14:49:50 [debug] 61420#0: *9 generic phase: 1
2019/04/12 14:49:50 [debug] 61420#0: *9 generic phase: 2
2019/04/12 14:49:50 [debug] 61420#0: *9 tcp_nodelay
2019/04/12 14:49:50 [debug] 61420#0: *9 SSL_do_handshake: -1
2019/04/12 14:49:50 [debug] 61420#0: *9 SSL_get_error: 2
2019/04/12 14:49:50 [debug] 61420#0: *9 kevent set event: 5: ft:-1 fl:0025
2019/04/12 14:49:50 [debug] 61420#0: *9 event timer add: 5: 60000:29203481224
2019/04/12 14:49:50 [debug] 61420#0: *9 SSL handshake handler: 0
2019/04/12 14:49:50 [debug] 61420#0: *9 SSL_do_handshake: 1
2019/04/12 14:49:50 [debug] 61420#0: *9 SSL: TLSv1.2, cipher: "ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH Au=RSA Enc=AESGCM(256) Mac=AEAD"
2019/04/12 14:49:50 [debug] 61420#0: *9 event timer del: 5: 29203481224
2019/04/12 14:49:50 [debug] 61420#0: *9 generic phase: 2
2019/04/12 14:49:50 [debug] 61420#0: *9 ssl preread handler
2019/04/12 14:49:50 [debug] 61420#0: *9 malloc: 0000000801CFF000:16384
2019/04/12 14:49:50 [debug] 61420#0: *9 SSL_read: -1
2019/04/12 14:49:50 [debug] 61420#0: *9 SSL_get_error: 2
2019/04/12 14:49:50 [debug] 61420#0: *9 ssl preread handler
2019/04/12 14:49:50 [debug] 61420#0: *9 posix_memalign: 0000000801C35900:256 #16
2019/04/12 14:49:50 [debug] 61420#0: *9 event timer add: 5: 30000:29203451252
2019/04/12 14:49:50 [debug] 61420#0: *9 SSL_read: 81
2019/04/12 14:49:50 [debug] 61420#0: *9 SSL_read: -1
2019/04/12 14:49:50 [debug] 61420#0: *9 SSL_get_error: 2
2019/04/12 14:49:50 [debug] 61420#0: *9 ssl preread handler
2019/04/12 14:49:50 [debug] 61420#0: *9 ssl preread: not a handshake
2019/04/12 14:49:50 [debug] 61420#0: *9 event timer del: 5: 29203451252
2019/04/12 14:49:50 [debug] 61420#0: *9 proxy connection handler
2019/04/12 14:49:50 [debug] 61420#0: *9 malloc: 0000000801DF7000:400
2019/04/12 14:49:50 [debug] 61420#0: *9 malloc: 0000000801CD9000:16384
2019/04/12 14:49:50 [debug] 61420#0: *9 stream map started
2019/04/12 14:49:50 [debug] 61420#0: *9 stream map: "" "glance-no-upstream-instance-configured"
================= UPDATE 2 ======================
I tested using
openssl s_client -connect ... -servername ...
instead of my client. Now it appears that the preread module is blocked waiting for data for 30 seconds (error code 2 is WANT_READ):
2019/04/23 13:04:30 [debug] 61419#0: *12844 SSL: TLSv1.2, cipher: "ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH Au=RSA Enc=AESGCM(256) Mac=AEAD"
2019/04/23 13:04:30 [debug] 61419#0: *12844 event timer del: 3: 30147561850
2019/04/23 13:04:30 [debug] 61419#0: *12844 generic phase: 2
2019/04/23 13:04:30 [debug] 61419#0: *12844 ssl preread handler
2019/04/23 13:04:30 [debug] 61419#0: *12844 malloc: 0000000801CA6140:16384
2019/04/23 13:04:30 [debug] 61419#0: *12844 SSL_read: -1
2019/04/23 13:04:30 [debug] 61419#0: *12844 SSL_get_error: 2
2019/04/23 13:04:30 [debug] 61419#0: *12844 ssl preread handler
2019/04/23 13:04:30 [debug] 61419#0: *12844 posix_memalign: 0000000801DB3400:256 #16
2019/04/23 13:04:30 [debug] 61419#0: *12844 event timer add: 3: 30000:30147531898
2019/04/23 13:05:00 [debug] 61419#0: *12844 event timer del: 3: 30147531898
2019/04/23 13:05:00 [debug] 61419#0: *12844 finalize stream session: 200
2019/04/23 13:05:00 [debug] 61419#0: *12844 stream log handler
2019/04/23 13:05:00 [debug] 61419#0: *12844 stream map started
2019/04/23 13:05:00 [debug] 61419#0: *12844 stream script var: ""
I found the problem:
listen 5501 **ssl**;
ssl_preread on;
ssl in the listen directive caused that nginx server to do the ssl handshake. By the time the preread module was notified, the handshake bytes had already been consumed, which is all consistent with the behavior I was seeing. In my case, I still want nginx to offload the encryption. So I created a set of nginx server directives to terminate the ssl connection before passing to my back end.
This is the relevant portion of my nginx config after fixing it. Note that the last server directive (the one that uses ssl_preread) does not terminate the SSL connection.
########################################################################
### TLS Connections
### Listen for TLS on 5501 and forward to TCP sock 6500 (socket port)
### https://nginx.org/en/docs/stream/ngx_stream_ssl_preread_module.html
map $ssl_preread_server_name $instanceport {
presence.myglance.org 5502;
presence-1.myglance.org 5503;
presence-2.myglance.org 5504;
default glance-no-upstream-instance-configured;
}
server {
listen 5502 ssl;
ssl_preread off;
proxy_pass 127.0.0.1:6502;
}
server {
listen 5503 ssl;
ssl_preread off;
proxy_pass 127.0.0.1:6503;
}
server {
listen 5504 ssl;
ssl_preread off;
proxy_pass 127.0.0.1:6504;
}
server {
listen 5501;
ssl_preread on;
proxy_connect_timeout 20s; # max time to connect to pserver
proxy_timeout 30s; # max time between successive reads or writes
proxy_pass 127.0.0.1:$instanceport;
}
In case you need to use ssl in listen directive, you can simply use $ssl_server_name in the map block instead of $ssl_preread_server_name

Ingress NGINX client closed connection while SSL handshaking

we have ingress-nginx running for a while and about 10% of requests ending up with some SSL handshake problem.
Here is an example of a failing connection:
2019/02/14 10:15:35 [debug] 237#237: *4612 accept: **.**.**.**:40928 fd:53
2019/02/14 10:15:35 [debug] 237#237: *4612 event timer add: 53: 60000:5527050245
2019/02/14 10:15:35 [debug] 237#237: *4612 reusable connection: 1
2019/02/14 10:15:35 [debug] 237#237: *4612 epoll add event: fd:53 op:1 ev:80002001
2019/02/14 10:15:45 [debug] 237#237: *4612 http check ssl handshake
2019/02/14 10:15:45 [debug] 237#237: *4612 http recv(): 0
2019/02/14 10:15:45 [info] 237#237: *4612 client closed connection while SSL handshaking, client: **.**.**.**, server: 0.0.0.0:443
2019/02/14 10:15:45 [debug] 237#237: *4612 close http connection: 53
2019/02/14 10:15:45 [debug] 237#237: *4612 event timer del: 53: 5527050245
2019/02/14 10:15:45 [debug] 237#237: *4612 reusable connection: 0
2019/02/14 10:15:45 [debug] 237#237: *4612 free: 00007F4CC5858E00, unused: 232
10% of failures seems to be quite a lot to expect.
I really would appreciate any help in this!

geckodriver connection refused

I try to get my selenium tests running on a debian server, but I keep getting connection refused error from my geckodriver. On my local machine it works perfectly which is running Ubuntu. Does any of you have an idea what is wrong? I wasn't able to find anything helpful.
OS: Debian Jessie
Build Tool: Gradle
Java-Version: 8
Setup Method
public static void setUp() {
//System.setProperty("webdriver.gecko.driver", "geckodriver.exe"); //For debugging in windows
System.setProperty("webdriver.gecko.driver", "geckodriver"); //for execution on linux
//Bypass System.err while loading Webdriver
PrintStream err = System.err;
System.setErr(new PrintStream(new NullOutputStream()));
driver = new FirefoxDriver();
System.setErr(err);
webDriverWait = new WebDriverWait(driver, 1000);
}
Error Message
org.openqa.selenium.WebDriverException: connection refused
14:44:04.899 [DEBUG] [TestEventLogger] Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
14:44:04.899 [DEBUG] [TestEventLogger] System info: host: 'security', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.16.0-4-amd64', java.version: '1.8.0_131'
14:44:04.899 [DEBUG] [TestEventLogger] Driver info: driver.version: FirefoxDriver
14:44:04.899 [DEBUG] [TestEventLogger] remote stacktrace: stack backtrace:
14:44:04.899 [DEBUG] [TestEventLogger] 0: 0x4fa94d - backtrace::backtrace::trace::h45ace4059cd74233
14:44:04.899 [DEBUG] [TestEventLogger] 1: 0x4fae32 - backtrace::capture::Backtrace::new::hb5a725a088a2a2fc
14:44:04.900 [DEBUG] [TestEventLogger] 2: 0x4349d9 - webdriver::error::WebDriverError::new::h449345a591a119fd
14:44:04.900 [DEBUG] [TestEventLogger] 3: 0x43f6b0 - geckodriver::marionette::MarionetteHandler::create_connection::h53f581202e4008b4
14:44:04.900 [DEBUG] [TestEventLogger] 4: 0x442839 - >::handle_command::hd89c5efbeb4c7cd5
14:44:04.900 [DEBUG] [TestEventLogger] 5: 0x434e94 - webdriver::server::start::{{closure}}::h5e71183f67357de6
14:44:04.900 [DEBUG] [TestEventLogger] 6: 0x408627 - std::panicking::try::do_call::h8c30e6af4c7f85af
14:44:04.904 [DEBUG] [TestEventLogger] 7: 0x5b77fa - panic_unwind::__rust_maybe_catch_panic
14:44:04.904 [DEBUG] [TestEventLogger] at /buildslave/rust-buildbot/slave/stable-dist-rustc-musl-linux/build/src/libpanic_unwind/lib.rs:98
14:44:04.907 [DEBUG] [TestEventLogger] 8: 0x416e57 - >::call_box::h3f273b2445d78deb
14:44:04.907 [DEBUG] [TestEventLogger] 9: 0x5b0014 - alloc::boxed::{{impl}}::call_once<(),()>
14:44:04.907 [DEBUG] [TestEventLogger] at /buildslave/rust-buildbot/slave/stable-dist-rustc-musl-linux/build/src/liballoc/boxed.rs:624
14:44:04.907 [DEBUG] [TestEventLogger] - std::sys_common::thread::start_thread
14:44:04.907 [DEBUG] [TestEventLogger] at /buildslave/rust-buildbot/slave/stable-dist-rustc-musl-linux/build/src/libstd/sys_common/thread.rs:21
14:44:04.907 [DEBUG] [TestEventLogger] - std::sys::imp::thread::{{impl}}::new::thread_start
14:44:04.908 [DEBUG] [TestEventLogger] at /buildslave/rust-buildbot/slave/stable-dist-rustc-musl-linux/build/src/libstd/sys/unix/thread.rs:84
14:44:04.908 [DEBUG] [TestEventLogger] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
14:44:04.908 [DEBUG] [TestEventLogger] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
14:44:04.908 [DEBUG] [TestEventLogger] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
14:44:04.908 [DEBUG] [TestEventLogger] at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
14:44:04.908 [DEBUG] [TestEventLogger] at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$new$0(W3CHandshakeResponse.java:57)
14:44:04.908 [DEBUG] [TestEventLogger] at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$getResponseFunction$2(W3CHandshakeResponse.java:104)
14:44:04.908 [DEBUG] [TestEventLogger] at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$22(ProtocolHandshake.java:365)
14:44:04.908 [DEBUG] [TestEventLogger] at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
14:44:04.908 [DEBUG] [TestEventLogger] at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
14:44:04.909 [DEBUG] [TestEventLogger] at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
14:44:04.909 [DEBUG] [TestEventLogger] at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
14:44:04.909 [DEBUG] [TestEventLogger] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
14:44:04.909 [DEBUG] [TestEventLogger] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
14:44:04.910 [DEBUG] [TestEventLogger] at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
14:44:04.910 [DEBUG] [TestEventLogger] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
14:44:04.911 [DEBUG] [TestEventLogger] at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
14:44:04.911 [DEBUG] [TestEventLogger] at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:368)
14:44:04.911 [DEBUG] [TestEventLogger] at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:159)
14:44:04.911 [DEBUG] [TestEventLogger] at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
14:44:04.911 [DEBUG] [TestEventLogger] at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
14:44:04.912 [DEBUG] [TestEventLogger] at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
14:44:04.914 [DEBUG] [TestEventLogger] at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)
14:44:04.914 [DEBUG] [TestEventLogger] at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)
14:44:04.798 [DEBUG] [org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor] Executing test class ch.siroop.security.test.a2.Cookies_Session
14:44:04.922 [DEBUG] [TestEventLogger] at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:137)
14:44:04.922 [DEBUG] [TestEventLogger] at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:191)
14:44:04.922 [DEBUG] [TestEventLogger] at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:108)
14:44:04.923 [DEBUG] [TestEventLogger] at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:104)
14:44:04.923 [DEBUG] [TestEventLogger] at ch.siroop.security.test.a2.Login.setUp(Login.java:40)
14:44:04.923 [DEBUG] [TestEventLogger] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:44:04.923 [DEBUG] [TestEventLogger] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
14:44:04.923 [DEBUG] [TestEventLogger] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
14:44:04.923 [DEBUG] [TestEventLogger] at java.lang.reflect.Method.invoke(Method.java:498)
14:44:04.923 [DEBUG] [TestEventLogger] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
14:44:04.924 [DEBUG] [TestEventLogger] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
14:44:04.924 [DEBUG] [TestEventLogger] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
14:44:04.926 [DEBUG] [TestEventLogger] at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
14:44:04.926 [DEBUG] [TestEventLogger] at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
14:44:04.927 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
14:44:04.927 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:114)
14:44:04.927 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:57)
14:44:04.927 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:66)
14:44:04.927 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
14:44:04.927 [DEBUG] [TestEventLogger] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:44:04.927 [DEBUG] [TestEventLogger] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
14:44:04.927 [DEBUG] [TestEventLogger] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
14:44:04.927 [DEBUG] [TestEventLogger] at java.lang.reflect.Method.invoke(Method.java:498)
14:44:04.927 [DEBUG] [TestEventLogger] at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
14:44:04.927 [DEBUG] [TestEventLogger] at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
14:44:04.930 [DEBUG] [TestEventLogger] at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
14:44:04.930 [DEBUG] [TestEventLogger] at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
14:44:04.934 [DEBUG] [TestEventLogger] at com.sun.proxy.$Proxy3.processTestClass(Unknown Source)
14:44:04.934 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:109)
14:44:04.936 [DEBUG] [TestEventLogger] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:44:04.937 [DEBUG] [TestEventLogger] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
14:44:04.937 [DEBUG] [TestEventLogger] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
14:44:04.937 [DEBUG] [TestEventLogger] at java.lang.reflect.Method.invoke(Method.java:498)
14:44:04.937 [DEBUG] [TestEventLogger] at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
14:44:04.937 [DEBUG] [TestEventLogger] at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
14:44:04.937 [DEBUG] [TestEventLogger] at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:377)
14:44:04.937 [DEBUG] [TestEventLogger] at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
14:44:04.937 [DEBUG] [TestEventLogger] at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
14:44:04.937 [DEBUG] [TestEventLogger] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
14:44:04.937 [DEBUG] [TestEventLogger] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
14:44:04.937 [DEBUG] [TestEventLogger] at java.lang.Thread.run(Thread.java:748)
I could finally figure out what caused the issue, I started the tests through ssh therefore the geckodriver didn't work. You have to add export DISPLAY=:0 to make it work. This tells Firefox how to use the display server.
Make sure that your version of gecko driver and Firefox is same i.e. both should be either 32 bit or 64 bit.

Cannot open workspace-external file in Xtext-based plugin

I'm developing an Eclipse Plugin with support for my DSL using the Xtext framework.
When I try to open a file on my system with the matching file extension .gf — but which is not in my workspace — I get the following:
0 [main] ERROR org.eclipse.xtext.ui.editor.CompoundXtextEditorCallback - Was configured with another client or not configured at all.
java.lang.IllegalStateException: Was configured with another client or not configured at all.
at org.eclipse.xtext.ui.editor.DirtyStateEditorSupport.removeDirtyStateSupport(DirtyStateEditorSupport.java:318)
at org.eclipse.xtext.ui.editor.AbstractDirtyStateAwareEditorCallback.beforeDispose(AbstractDirtyStateAwareEditorCallback.java:38)
at org.eclipse.xtext.ui.editor.CompoundXtextEditorCallback.beforeDispose(CompoundXtextEditorCallback.java:69)
at org.eclipse.xtext.ui.editor.XtextEditor.dispose(XtextEditor.java:469)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:705)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2756)
at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1155)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:107)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:76)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
!SESSION 2011-11-23 09:51:54.342 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.6.0_23
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.sdk.ide
Command-line arguments: -product org.eclipse.sdk.ide -data /home/john/repositories/gf-eclipse-plugin/workspace/../workspace-demo -dev file:/home/john/repositories/gf-eclipse-plugin/workspace/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/dev.properties -os linux -ws gtk -arch x86 -consoleLog
!ENTRY org.apache.log4j 4 0 2011-11-23 09:52:18.914
!MESSAGE org.eclipse.xtext.ui.editor.CompoundXtextEditorCallback - Was configured with another client or not configured at all.
!STACK 0
java.lang.IllegalStateException: Was configured with another client or not configured at all.
at org.eclipse.xtext.ui.editor.DirtyStateEditorSupport.removeDirtyStateSupport(DirtyStateEditorSupport.java:318)
at org.eclipse.xtext.ui.editor.AbstractDirtyStateAwareEditorCallback.beforeDispose(AbstractDirtyStateAwareEditorCallback.java:38)
at org.eclipse.xtext.ui.editor.CompoundXtextEditorCallback.beforeDispose(CompoundXtextEditorCallback.java:69)
at org.eclipse.xtext.ui.editor.XtextEditor.dispose(XtextEditor.java:469)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:705)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2756)
at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1155)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:107)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:76)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
!ENTRY org.eclipse.ui 4 0 2011-11-23 09:52:18.921
!MESSAGE Unable to create editor ID org.grammaticalframework.eclipse.GF: An unexpected exception was thrown.
!STACK 0
java.lang.NullPointerException
at org.eclipse.xtext.ui.editor.folding.DefaultFoldingStructureProvider.handleProjectionEnabled(DefaultFoldingStructureProvider.java:100)
at org.eclipse.xtext.ui.editor.folding.DefaultFoldingStructureProvider$ProjectionChangeListener.projectionEnabled(DefaultFoldingStructureProvider.java:186)
at org.eclipse.jface.text.source.projection.ProjectionViewer.fireProjectionEnabled(ProjectionViewer.java:489)
at org.eclipse.jface.text.source.projection.ProjectionViewer.enableProjection(ProjectionViewer.java:537)
at org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1441)
at org.eclipse.xtext.ui.editor.XtextEditor.installFoldingSupport(XtextEditor.java:439)
at org.eclipse.xtext.ui.editor.XtextEditor.createPartControl(XtextEditor.java:421)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2756)
at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1155)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:107)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:76)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
!ENTRY org.eclipse.ui 2 2 2011-11-23 09:52:19.105
!MESSAGE Ignored attempt to add saveable that was already registered
!STACK 0
org.eclipse.core.runtime.AssertionFailedException: unknown saveable: org.eclipse.ui.internal.DefaultSaveable#ccf230 from part: org.eclipse.ui.internal.ErrorEditorPart#ccf230
at org.eclipse.ui.internal.SaveablesList.logWarning(SaveablesList.java:187)
at org.eclipse.ui.internal.SaveablesList.addModel(SaveablesList.java:117)
at org.eclipse.ui.internal.SaveablesList.addModels(SaveablesList.java:289)
at org.eclipse.ui.internal.SaveablesList.postOpen(SaveablesList.java:695)
at org.eclipse.ui.internal.PartList.partOpened(PartList.java:234)
at org.eclipse.ui.internal.PartList.access$0(PartList.java:210)
at org.eclipse.ui.internal.PartList$1.propertyChanged(PartList.java:40)
at org.eclipse.ui.internal.WorkbenchPartReference.fireInternalPropertyChange(WorkbenchPartReference.java:375)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:610)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2756)
at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1155)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:107)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:76)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
I was trying to do this programmatically, but I get the exact same error when I open using the File UI menu. Any ideas?
Well, I managed to get around the issue programmatically by creating a link to the external resource within the project, as described here.
My (summarised) code looks like this:
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject("Functors");
IPath externalPath = new Path(extPath);
String localLink = ".external" + java.io.File.separator + externalPath.lastSegment();
IFile link = project.getFile(localLink);
link.createLink(externalPath, IResource.NONE, null);