Closed rsaccone closed 8 years ago
Just to add some more information. I see this exact same error on Linux x64 using Oracle Java 8.
weird - i'm guessing that this is your issue:
I sense that this isn't a titan or tinkerpop issue.
Hi Stephen,
Thanks for the reply.
I’ve also tried the to run Titan 1.0.0 on RedHat Linux X64 with Java 8 and the same unexpected token error occurs and notice that I don’t get any error from Java 8 on Linux about the JavaLaunchHelper being implemented in two places. It makes me think that isn’t the issue. Also would you happen to know where I can find the file that grooves_evaluate is complaining about? Is there a chance that there might really be a syntax in it?
Any other ideas for getting to the bottom of this? I would prefer to move up to Titan 1.0.0 but unless I can resolve this issue I am afraid I am stuck at 0.5.4.
Regards, Rob
[rsaccon@h0210b01 bin]$ ./gremlin.sh
\,,,/
(o o)
-----oOOo-(3)-oOOo----- plugin activated: aurelius.titan plugin activated: tinkerpop.server Error loading the 'utilities' plugin - startup failed: groovysh_evaluate: 2: unexpected token: * @ line 2, column 34. org.apache.commons.configuration.* ^
1 error
plugin activated: tinkerpop.utilities SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/homes/hny9/rsaccon/local/titan-1.0.0-hadoop1/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/homes/hny9/rsaccon/local/titan-1.0.0-hadoop1/lib/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindingsfor an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] log4j:WARN No appenders could be found for logger (org.apache.hadoop.security.Groups). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfigfor more info. plugin activated: tinkerpop.hadoop plugin activated: tinkerpop.tinkergraph gremlin> On Oct 20, 2015, at 2:21 PM, stephen mallette notifications@github.com<mailto:notifications@github.com> wrote:
weird - i'm guessing that this is your issue:
I sense that this isn't a titan or tinkerpop issue.
— Reply to this email directly or view it on GitHubhttps://github.com/thinkaurelius/titan/issues/1172#issuecomment-149654141.
i dunno - if the console failed for everyone the way it is failing for you, the mailing lists and issue tracker would be lit up and we're not seeing that so it must be something related to what you are doing in your environment.
My bet is that your failure is in the standard imports for the console:
but that's really really weird. do you have the Apache Common Configuration lib in the Gremlin Console /lib directory?
Did you have the $CLASSPATH set in your env before starting gremlin.sh?
No I don't have $CLASSPATH set before launching gremlin. I can try doing that. wHat paths should it include?
Regards, Rob
Sent from my iPad
On Oct 20, 2015, at 3:37 PM, Jason Plurad notifications@github.com<mailto:notifications@github.com> wrote:
Did you have the $CLASSPATH set in your env before starting gremlin.sh?
Reply to this email directly or view it on GitHubhttps://github.com/thinkaurelius/titan/issues/1172#issuecomment-149678708.
To add to the above, I had gremlin.sh echo out the CLASSPATH it builds by default. Are there items missing that should be added?
CLASSPATH: :/Users/rsaccon/bin/titan-1.0.0-hadoop1/conf:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/slf4j-log4j12-1.7.5.jar::/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/titan-all-1.0.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/titan-berkeleyje-1.0.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/titan-cassandra-1.0.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/titan-core-1.0.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/titan-es-1.0.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/titan-hadoop-1.0.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/titan-hbase-1.0.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/titan-lucene-1.0.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/titan-solr-1.0.0.jar::/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/RoaringBitmap-0.4.5.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/activation-1.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/airline-0.6.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/akka-actor_2.10-2.3.4-spark.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/akka-remote_2.10-2.3.4-spark.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/akka-slf4j_2.10-2.3.4-spark.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/ant-1.6.5.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/antlr-2.7.7.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/antlr-3.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/antlr-runtime-3.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/asm-4.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/asm-commons-4.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/astyanax-cassandra-3.8.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/astyanax-core-3.8.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/astyanax-recipes-3.8.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/astyanax-thrift-3.8.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/base64-2.3.8.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/cassandra-all-2.1.9.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/cassandra-thrift-2.1.9.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/chill-java-0.5.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/chill_2.10-0.5.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/commons-beanutils-1.7.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/commons-cli-1.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/commons-codec-1.7.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/commons-collections-3.2.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/commons-configuration-1.10.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/commons-el-1.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/commons-httpclient-3.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/commons-io-2.3.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/commons-lang-2.5.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/commons-lang3-3.3.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/commons-logging-1.1.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/commons-math-2.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/commons-math3-3.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/commons-net-1.4.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/commons-pool-1.6.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/compress-lzf-1.0.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/concurrentlinkedhashmap-lru-1.3.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/config-1.2.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/core-3.1.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/curator-client-2.7.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/curator-framework-2.7.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/curator-recipes-2.7.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/disruptor-3.0.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/dom4j-1.6.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/elasticsearch-1.5.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/ezmorph-1.0.6.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/fastutil-6.5.7.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/findbugs-annotations-1.3.9-1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/gbench-0.4.3-groovy-2.4.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/giraph-core-1.0.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/gmetric4j-1.0.3.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/gprof-0.3.1-groovy-2.4.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/gremlin-console-3.0.1-incubating.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/gremlin-core-3.0.1-incubating.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/gremlin-driver-3.0.1-incubating.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/gremlin-groovy-3.0.1-incubating.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/gremlin-server-3.0.1-incubating.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/gremlin-shaded-3.0.1-incubating.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/groovy-2.4.1-indy.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/groovy-2.4.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/groovy-console-2.4.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/groovy-groovysh-2.4.1-indy.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/groovy-json-2.4.1-indy.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/groovy-jsr223-2.4.1-indy.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/groovy-sql-2.4.1-indy.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/groovy-swing-2.4.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/groovy-templates-2.4.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/groovy-xml-2.4.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/guava-18.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/hadoop-client-1.2.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/hadoop-core-1.2.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/hadoop-gremlin-3.0.1-incubating.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/hbase-client-0.98.2-hadoop1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/hbase-common-0.98.2-hadoop1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/hbase-protocol-0.98.2-hadoop1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/hibernate-validator-4.3.0.Final.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/high-scale-lib-1.0.6.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/high-scale-lib-1.1.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/hppc-0.7.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/hsqldb-1.8.0.10.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/htrace-core-2.04.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/http-builder-0.7.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/httpclient-4.4.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/httpcore-4.4.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/httpmime-4.4.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/ivy-2.3.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jackson-annotations-2.3.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jackson-core-2.3.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jackson-core-asl-1.9.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jackson-databind-2.3.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jackson-datatype-json-org-2.3.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jackson-jaxrs-1.9.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jackson-mapper-asl-1.9.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jackson-xc-1.9.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jamm-0.3.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jasper-compiler-5.5.23.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jasper-runtime-5.5.23.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/javassist-3.18.0-GA.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/javatuples-1.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/javax.activation-1.1.0.v201105071233.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/javax.inject-1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/javax.json-1.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/javax.mail.glassfish-1.4.1.v201005082020.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/javax.servlet-3.0.0.v201112011016.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/javax.transaction-1.1.1.v201105210645.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jaxb-api-2.2.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jaxb-impl-2.2.3-1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jbcrypt-0.3m.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jboss-logging-3.1.2.GA.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jcabi-log-0.14.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jcabi-manifests-1.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jcl-over-slf4j-1.7.12.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/je-5.0.73.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jersey-core-1.18.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jersey-json-1.18.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jersey-server-1.18.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jets3t-0.7.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jettison-1.3.3.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jetty-6.1.26.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jetty-continuation-8.1.14.v20131031.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jetty-http-8.1.14.v20131031.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jetty-io-8.1.14.v20131031.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jetty-jndi-8.1.14.v20131031.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jetty-plus-8.1.14.v20131031.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jetty-security-8.1.14.v20131031.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jetty-server-8.1.14.v20131031.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jetty-servlet-8.1.14.v20131031.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jetty-util-6.1.26.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jetty-util-8.1.14.v20131031.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jetty-webapp-8.1.14.v20131031.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jetty-xml-8.1.14.v20131031.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jline-2.11.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jna-4.0.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/joda-time-1.6.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/json-20090211.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/json-lib-2.3-jdk15.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/json-simple-1.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/json4s-ast_2.10-3.2.10.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/json4s-core_2.10-3.2.10.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/json4s-jackson_2.10-3.2.10.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jsp-2.1-6.1.14.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jsp-api-2.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jsp-api-2.1-6.1.14.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jsr305-3.0.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jts-1.13.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/jul-to-slf4j-1.7.5.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/junit-benchmarks-0.7.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/kryo-2.21.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/libthrift-0.9.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/log4j-1.2.16.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/logback-classic-1.1.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/logback-core-1.1.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/lucene-analyzers-common-4.10.4.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/lucene-core-4.10.4.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/lucene-grouping-4.10.4.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/lucene-highlighter-4.10.4.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/lucene-join-4.10.4.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/lucene-memory-4.10.4.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/lucene-misc-4.10.4.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/lucene-queries-4.10.4.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/lucene-queryparser-4.10.4.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/lucene-sandbox-4.10.4.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/lucene-spatial-4.10.4.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/lucene-suggest-4.10.4.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/lz4-1.2.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/mesos-0.18.1-shaded-protobuf.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/metrics-core-2.1.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/metrics-core-3.0.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/metrics-ganglia-3.0.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/metrics-graphite-3.0.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/metrics-json-3.0.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/metrics-jvm-3.0.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/minlog-1.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/nekohtml-1.9.16.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/netty-3.6.6.Final.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/netty-all-4.0.25.Final.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/noggit-0.6.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/objenesis-2.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/org.apache.servicemix.bundles.commons-csv-1.0-r706900_3.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/oro-2.0.8.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/paranamer-2.6.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/protobuf-java-2.5.0-spark.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/protobuf-java-2.5.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/py4j-0.8.2.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/pyrolite-2.0.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/randomizedtesting-runner-2.0.8.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/reflectasm-1.07-shaded.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/reflections-0.9.9-RC1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/reporter-config-2.1.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/scala-compiler-2.10.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/scala-library-2.10.3.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/scala-reflect-2.10.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/scalap-2.10.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/servlet-api-2.5-20081211.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/servlet-api-2.5-6.1.14.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/servlet-api-2.5.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/sesame-model-2.7.10.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/sesame-rio-api-2.7.10.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/sesame-rio-datatypes-2.7.10.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/sesame-rio-languages-2.7.10.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/sesame-rio-n3-2.7.10.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/sesame-rio-ntriples-2.7.10.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/sesame-rio-rdfxml-2.7.10.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/sesame-rio-trig-2.7.10.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/sesame-rio-trix-2.7.10.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/sesame-rio-turtle-2.7.10.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/sesame-util-2.7.10.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/slf4j-api-1.7.5.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/snakeyaml-1.11.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/snappy-java-1.0.5-M3.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/solr-solrj-5.2.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/spark-core_2.10-1.2.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/spark-network-common_2.10-1.2.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/spark-network-shuffle_2.10-1.2.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/spatial4j-0.4.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/stax-api-1.0-2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/stax2-api-3.1.4.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/stream-2.7.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/stringtemplate-3.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/super-csv-2.1.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/tachyon-0.5.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/tachyon-client-0.5.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/thrift-server-0.3.7.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/tinkergraph-gremlin-3.0.1-incubating.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/uncommons-maths-1.2.2a.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/unused-1.0.0.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/uuid-3.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/validation-api-1.0.0.GA.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/woodstox-core-asl-4.4.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/xercesImpl-2.9.1.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/xml-apis-1.3.04.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/xml-resolver-1.2.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/xmlenc-0.52.jar:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/zookeeper-3.4.6.jar::
I just compared with mine. I have the same set of jars. I've run Titan 1.0.0 successfully on Mac OSX Yosemite, Ubuntu 14.04, and Centos 6.7. The JavaLaunchHelper
warning on Mac is harmless.
What specific Java version are you using? I have 1.8.0_60, but you should be using at least 1.8.0_40.
On the Mac I am running El Capitan and the Java version is:
java version "1.8.0_60" Java(TM) SE Runtime Environment (build 1.8.0_60-b27) Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
On Red Hat Linux the version is exactly the same.
[rsaccon@h0210b01 bin]$ java -version java version "1.8.0_60" Java(TM) SE Runtime Environment (build 1.8.0_60-b27) Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode) [rsaccon@h0210b01 bin]$
I don't get the JavaLaunchHelper warning on Red Hat only, it is on the Mac, but I do get the same utilities error on both. This is really odd.
On Linux I've set up JAVA_HOME, JRE_HOME with the paths JAVA_HOME=/homes/hny9/rsaccon/local/jdk1.8.0_60 JRE_HOME=/homes/hny9/rsaccon/local/jdk1.8.0_60/jre
I also added JAVA_HOME/bin to the beginning of my PATH.
On the Mac Java 8 is my default Java and I didn't have to setup JAVA_HOME, JRE_HOME, or the PATH.
Is there anything else I should be setting up in the environment on either one of these systems? Anything else I might be missing here?
Thanks for your help, Rob
Very strange, Rob. I've never seen that error before. I grepped the TinkerPop and Titan codebases, and here is the only hit
Are you building Titan from source, or did you pull down the zip from http://s3.thinkaurelius.com/downloads/titan/titan-1.0.0-hadoop1.zip?
I pulled down the zip from the link you mentioned below.
Sent from my iPhone
On Oct 20, 2015, at 10:50 PM, Jason Plurad notifications@github.com<mailto:notifications@github.com> wrote:
Very strange, Rob. I've never seen that error before. I grepped the TinkerPop and Titan codebases, and here is the only hit
Are you building Titan from source, or did you pull down the zip from http://s3.thinkaurelius.com/downloads/titan/titan-1.0.0-hadoop1.zip?
Reply to this email directly or view it on GitHubhttps://github.com/thinkaurelius/titan/issues/1172#issuecomment-149767059.
We were able to get the Mac version working by doing a clone and a building from the repository. Also tried to do a clone and a build on Red Hat to see if that would also take care of the error that we encountered with the prebuilt binaries there as well. However we ran into different issue with the version that we built on RHEL. There seems to be an issue with jline on RHEL.
We tried upgrading the jline version to 2.12 and 2.13. 2.12 failed in the same way. v 2.13 was worse - incompatible class error.
jiline v2.11
\,,,/
(o o)
-----oOOo-(3)-oOOo-----
[ERROR] Terminal initialization failed; falling back to unsupported
java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
at jline.TerminalFactory.create(TerminalFactory.java:101)
at jline.TerminalFactory.get(TerminalFactory.java:159)
at jline.console.ConsoleReader.
Exception in thread "main" java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
at jline.console.ConsoleReader.
v2.12 - just a few line number variations.
\,,,/
(o o)
-----oOOo-(3)-oOOo-----
[ERROR] Terminal initialization failed; falling back to unsupported
java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
at jline.TerminalFactory.create(TerminalFactory.java:101)
at jline.TerminalFactory.get(TerminalFactory.java:158)
at jline.console.ConsoleReader.
Exception in thread "main" java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
at jline.console.ConsoleReader.
@spmallette I've been working with Rob offline, and it's looking like this might be a Gremlin Console issue, not really a Titan issue. There may be something environmental, but I haven't been able to find anything thus far.
I added some tracing into the code, and here's how it shakes out...
Succesful run https://gist.github.com/pluradj/6dbd7d9ad5a2fa987e9d Failed run https://gist.github.com/pluradj/5dc24d0524bd409d2007
In the failed run, the UtilitiesGremlinPlugin pluginAcceptor.eval(line)
is throwing the exception
https://github.com/apache/incubator-tinkerpop/blob/3.0.1-incubating/gremlin-console/src/main/java/org/apache/tinkerpop/gremlin/console/groovy/plugin/UtilitiesGremlinPlugin.java#L60
It stops reading the UtilitiesGremlinPluginScript.groovy after the Apache copyright and before the authors. https://github.com/apache/incubator-tinkerpop/blob/3.0.1-incubating/gremlin-console/src/main/resources/org/apache/tinkerpop/gremlin/console/groovy/plugin/UtilitiesGremlinPluginScript.groovy#L19
Any ideas, Stephen?
I'll also note, that from the original error reported above, it seems like import
is missing from the line that it is attempting to evaluate:
Error loading the 'utilities' plugin - startup failed:
groovysh_evaluate: 2: unexpected token: * @ line 2, column 34.
org.apache.commons.configuration.*
^
1 error
wow - i have no clue offhand..........
Did you try this with the standard Gremlin Console distribution (i.e. not Titan's zip)? Maybe it's a Titan packaging issue? If you can confirm that this occurs on the TinkerPop distribution, then I'd close this issue and open one on the TinkerPop side.
Hi Stephen,
No haven’t tried that but I will. However once I download Gremlin are there instructions for how I would setup that separate Gremlin download to work with Titan 1.0.0 so I can try a sample out like Graph of the Gods that you can point me to?
Thanks, Rob
On Oct 24, 2015, at 6:10 AM, stephen mallette notifications@github.com<mailto:notifications@github.com> wrote:
Did you try this with the standard Gremlin Console distribution (i.e. not Titan's zip)? Maybe it's a Titan packaging issue? If you can confirm that this occurs on the TinkerPop distribution, then I'd close this issue and open one on the TinkerPop side.
— Reply to this email directly or view it on GitHubhttps://github.com/thinkaurelius/titan/issues/1172#issuecomment-150780538.
Well - that's not what i'm after at the moment. I'd like to just see if we can isolate the problem to Titan's packaging. Right now, I'm not sure we know exactly where we need to look to get to the bottom of your problem.
OK I see what you want. I’ll try downloading it and just bringing it up. On Oct 24, 2015, at 6:46 AM, stephen mallette notifications@github.com<mailto:notifications@github.com> wrote:
Well - that's not what i'm after at the moment. I'd like to just see if we can isolate the problem to Titan's packaging. Right now, I'm not sure we know exactly where we need to look to get to the bottom of your problem.
— Reply to this email directly or view it on GitHubhttps://github.com/thinkaurelius/titan/issues/1172#issuecomment-150783806.
I get the same error with Gremlin console distribution on both RHEL (x64) and on the Mac.
bin conf data DISCLAIMER docs ext javadocs lib LICENSE NOTICE [rsaccon@h0210b01 apache-gremlin-console-3.0.1-incubating]$ ./bin/gremlin.sh
\,,,/
(o o)
-----oOOo-(3)-oOOo----- plugin activated: tinkerpop.server Error loading the 'utilities' plugin - startup failed: groovysh_evaluate: 2: unexpected token: * @ line 2, column 34. org.apache.commons.configuration.* ^
1 error
plugin activated: tinkerpop.utilities plugin activated: tinkerpop.tinkergraph gremlin>
So, Yes - there are two errors we're dealing with - the "org.apache.commons.configuration.*" and the jline problem on RHEL. we're using Oracle java 8u60 on the mac and 8U65 on RHEL.
For the org.apache.commons.configuration.* issue, it appears that there is some processing by groovy that is interpreting the imports and not liking the asterisk. We also notice that it happens for one file only, and also on the middle of processing GraphDatabaseConfiguration.java, as found here: https://github.com/thinkaurelius/titan/blob/titan10/titan-core/src/main/java/com/thinkaurelius/titan/graphdb/configuration/GraphDatabaseConfiguration.java#L53
As for the jline problem, I've seen a lot more matches to the error I'm seeing on RHEL. One of the more promising recommended fixes is to reconcile uses of different versions of jline. Using a fresh maven repository, I see that two versions are loaded, although only v2.11 shows up in titan/lib. So I'm not certain which titan component uses the older version.
If only there were a "tell me what's different about these environments" app(!).
[UPDATE] For the jline problem, I've removed everything but a simple PATH and JAVA_HOME and JRE_HOME vars, rebuilt, and all works correctly.
[UPDATE2]: jline problem solved: db2profile pushes jline-0.9.93.jar onto $CLASSPATH. Workarounds include getting rid of the sourcing of db2profile or pushing $titandir/lib/jline-2.11.jar onto the front of $CLASSPATH. This fixes the jline problem for both the zipped built version and the git cloned build version.
wow - thanks for coming to a solution on this. i was really lost for an answer. so does RHEL put that version of jline on the classpath automatically with db2profile?
db2profile is a script that does a number of things, to prepare the environment for DB2. Among those things, it pushes an old version of jline onto the CLASSPATH.
This only fixes the jline issue, not the groovy asterisk problem. We’re still trying to chase that one down.
Mark
On Oct 26, 2015, at 2:55 PM, stephen mallette notifications@github.com wrote:
wow - thanks for coming to a solution on this. i was really lost for an answer. so does RHEL put that version of jline on the classpath automatically with db2profile?
— Reply to this email directly or view it on GitHub https://github.com/thinkaurelius/titan/issues/1172#issuecomment-151247292.
So, the latest attempt was to compare, side by side, running gremlin from my id and from Rob's, on the same machine, from the same directory, using the same java 8u65. We run bin/gremllin.sh from the same titan directory and we get different outcomes: gremlin runs without error for me, not for Rob.
To keep the comparison as close as possible, we run as him, with the error, and then su to me, in the same directory, and run without error.
We have the same .bashrc, .profile, and .bash_profile, differing only in login id, etc., the same PATH, the same absence of CLASSPATH, ...
We've compared env vars, and we've run gremlin using sh -x bin/gremlin.sh and compared the verbose output, which only differs in the success messages versus the error messages. This is the strangest thing. We've jokingly concluded that the fancy scripting in the new gremlin script is treating his login id different from mine.
I suppose there could be some oddity due to our user or group affiliations.
What else could it be?
We've jokingly concluded that the fancy scripting in the new gremlin script is treating his login id different from mine.
:smiling_imp:
i've never ever heard of such a thing. what happens if you unload the utilities plugin? meaning - deactivate it by editing ext/plugins.txt
and removing this line:
org.apache.tinkerpop.gremlin.console.groovy.plugin.UtilitiesGremlinPlugin
Does the console generally load/work without error in that case?
On the Mac the gremlin.sh does come up without error for the prebuilt apache gremlin console download.
However if I try to remove the utilities plugin from the prebuilt titan 1.0 install things don't go so smoothly as the error occurs loading one of the remaining plugins.
Vincenzo:titan-1.0.0-hadoop1 rsaccon$ ./bin/gremlin.sh objc[18372]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
\,,,/
(o o)
-----oOOo-(3)-oOOo----- import groovy.grape.Grape import org.apache.commons.configuration. import org.apache.tinkerpop.gremlin.process.traversal.strategy.verification. import org.apache.tinkerpop.gremlin.process.computer.bulkloading. import org.apache.tinkerpop.gremlin.process.computer.traversal. import org.apache.tinkerpop.gremlin.util.function. import org.apache.tinkerpop.gremlin.structure.io. import org.apache.tinkerpop.gremlin.process.computer.ranking.pagerank. import groovy.sql. import org.apache.tinkerpop.gremlin.groovy.loaders. import groovy.json. import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph. import org.apache.tinkerpop.gremlin.structure. import org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration. import org.apache.tinkerpop.gremlin.process.traversal.engine. import org.apache.tinkerpop.gremlin.structure.io.gryo. import org.apache.tinkerpop.gremlin.process.traversal.strategy.optimization. import org.apache.tinkerpop.gremlin.process.traversal.step.util.event. import org.apache.tinkerpop.gremlin.util. import org.apache.tinkerpop.gremlin.structure.util. import org.apache.tinkerpop.gremlin.structure.io.graphml. import org.apache.tinkerpop.gremlin.process.computer. import org.apache.tinkerpop.gremlin.process.traversal.strategy.finalization. import org.apache.tinkerpop.gremlin.process.computer.clustering.peerpressure. import org.apache.tinkerpop.gremlin.structure.util.detached. import org.apache.tinkerpop.gremlin.structure.io.graphson. import org.apache.tinkerpop.gremlin.process.traversal. import org.apache.tinkerpop.gremlin.process.traversal.util. import org.apache.tinkerpop.gremlin.groovy.function. import groovyx.net.http. plugin activated: aurelius.titan plugin activated: tinkerpop.server Exception in thread "main" org.apache.tinkerpop.gremlin.groovy.plugin.PluginInitializationException: startup failed: groovysh_evaluate: 2: unexpected token: * @ line 2, column 34. org.apache.commons.configuration. ^
1 error
at org.apache.tinkerpop.gremlin.hadoop.groovy.plugin.HadoopGremlinPlugin.afterPluginTo(HadoopGremlinPlugin.java:108)
at org.apache.tinkerpop.gremlin.groovy.plugin.AbstractGremlinPlugin.pluginTo(AbstractGremlinPlugin.java:73)
at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
at org.apache.tinkerpop.gremlin.console.plugin.PluggedIn.activate(PluggedIn.groovy:51)
at org.apache.tinkerpop.gremlin.console.Console$_closure11.doCall(Console.groovy:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:292)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016)
at groovy.lang.Closure.call(Closure.java:423)
at groovy.lang.Closure.call(Closure.java:439)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2027)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2012)
at org.codehaus.groovy.runtime.dgm$158.doMethodInvoke(Unknown Source)
at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
at org.apache.tinkerpop.gremlin.console.Console.<init>(Console.groovy:123)
at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
at org.apache.tinkerpop.gremlin.console.Console.main(Console.groovy:303)
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: groovysh_evaluate: 2: unexpected token: * @ line 2, column 34. org.apache.commons.configuration.* ^
1 error
at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:309)
at org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:149)
at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:119)
at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:131)
at org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:359)
at org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:142)
at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:108)
at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:236)
at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:164)
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:928)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:590)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:566)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:543)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:297)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:267)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:692)
at groovy.lang.GroovyShell.parse(GroovyShell.java:704)
at groovy.lang.GroovyShell.parse(GroovyShell.java:740)
at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
at org.codehaus.groovy.tools.shell.Interpreter.evaluate(Interpreter.groovy:63)
at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
at org.codehaus.groovy.tools.shell.Groovysh.evaluateWithStoredBoundVars(Groovysh.groovy:244)
at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
at org.codehaus.groovy.tools.shell.Groovysh.execute(Groovysh.groovy:188)
at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
at org.apache.tinkerpop.gremlin.console.plugin.ConsolePluginAcceptor.eval(ConsolePluginAcceptor.groovy:59)
at org.apache.tinkerpop.gremlin.hadoop.groovy.plugin.HadoopGremlinPlugin.afterPluginTo(HadoopGremlinPlugin.java:91)
... 21 more
Vincenzo:titan-1.0.0-hadoop1 rsaccon$
Ok - more data. And we think we have the smoking...knife.
We ran the titan/gremlin.sh script, after inserting "-verbose:class" in the java options and running the script with "sh -x".
We've attached both outputs and noticed several differences. Notable are the differences are around line 3700 in both files. In the working version there are multiple references to
[Loaded groovysh_evaluate$_run_closure1...]
and not in the non-working version. And in the non-working version
[Loaded org.codehaus.groovy.tools.shell.util.ScriptVariableAnalyzer...]
Another curiosity is at line 25, where the order of find, sort, and tr are different. This might be a multi-threading or a write buffer issue.
We'd like to post the files but don't have write access to the repository. Please let us know where to send them.
I also tried a similar test to the one Mark described above except with just the gremlin.shell from the Apache gremlin project and see a similar divergence there as well. I would like to post these files as well. Please let us know where to send these as well.
Diff from Rob on these files: https://gist.github.com/pluradj/013173f7a38005f591fd https://gist.github.com/pluradj/e1582057a1fe05698bc4
Hi Guys, Any thinking or progress on how to get this resolved?
Thanks, Rob
no from me atm - i'm pretty well baffled by what's going on.... @pluradj anything from you?
Been on the road, haven't spent much time on this. Do you have brew installed? Maybe you have something that is interfering from that.
I have brew installed on my mac. And my accounts, mac and linux, handle the gremlin script just fine. It seems that something odd is happening, when the env vars are identical, paths are identical, generated classpaths are identical, java is identical, ..., and the processing of the plugins by groovys is different. The side-by-side attachments show where things are going awry. Is there anything else we can expose that might help us see what's wrong?
I have brew only on my Mac. It isn't installed on the RHEL Linux that I am using.
Sent from my iPhone
On Nov 3, 2015, at 4:15 PM, Mark Feblowitz notifications@github.com<mailto:notifications@github.com> wrote:
I have brew installed on my mac. And my accounts, mac and linux, handle the gremlin script just fine.
Reply to this email directly or view it on GitHubhttps://github.com/thinkaurelius/titan/issues/1172#issuecomment-153491107.
Nor the same Linux that I am using. Problem exists in both mac and linux, for Rob.
And to level set, Rob's Mac is the only env failing now?
Ok. Mac and Linux for Rob.
What do you have in /groovy/script? The screenshot shows this path in the right side before the failure.
The first image is the lines from the diff that I believe you are referring to.
[image1.jpeg]
The second image shows that I don't have a /groovy/script directory. I am not sure what the JVM output was actually referring to.
[image1.jpeg]
Sent from my iPhone
On Nov 4, 2015, at 8:42 AM, Jason Plurad notifications@github.com<mailto:notifications@github.com> wrote:
What do you have in /groovy/script? The screenshot shows this path in the right side before the failure.
Reply to this email directly or view it on GitHubhttps://github.com/thinkaurelius/titan/issues/1172#issuecomment-153722466.
Really just grasping here. So if it is failing with the same error between Mac and Linux, what software has been installed similarly into both envs?
Jason,
Looks like the images didn't make it and I don't have write access to the repository to directly attach them. Bottom line is that I don't know why the JVM indicates that it is loading something out of /groovy/script as I don't have such a directory nor a file called script1446060377371298884287
file:/groovy is not the same as file:///groovy. Is that a typo in the log message or does it mean something else in this environment?
Mark commented that the reference in the diff was to file:/groovy/script which wasn't necessarily to the root of the file system. I also did a find for groovy from the titan 1.0 install directory and from the standalone gremlin console download but came up with nothing (just javadocs in the gremlin console). If there is some significance to file:/groovy that we are missing please let us know.
Will the console start if you disable all the plugins (i.e. clear the ext/plugins.txt
file)?
I suspect not, as we still do "core" imports and that seems to be where you are failing. It's as though the console can't eval an "import..." line of code. I searched around the internet for that problem with groovysh and turned up very little. I've talked to @dalaro on this problem your having and he's just as short of ideas as I am. Truly whacky!
Maybe Groovy indy might be part of the problem? http://www.groovy-lang.org/indy.html -- The docs say that indy and normal are mutually exclusive, but both are in the gremlin-console/lib directory.
So Rob, here's something else you can try. Download the 2.4.1 Groovy that Gremlin 3.0.1 uses here https://bintray.com/groovy/maven/groovy/2.4.1/view#files
Let's try this with gremlin-console first rather than Titan first.
weird - is that how we package that? i thought we just used indy? do we have to exclude the regular one?
Indeed. We've gone from head-scratching to head-banging.
Sent from my iPhone
On Nov 5, 2015, at 6:25 AM, stephen mallette notifications@github.com wrote:
Will the console start if you disable all the plugins (i.e. clear the ext/plugins.txt file)?
I suspect not, as we still do "core" imports and that seems to be where you are failing. It's as though the console can't eval an "import..." line of code. I searched around the internet for that problem with groovysh and turned up very little. I've talked to @dalaro on this problem your having and he's just as short of ideas as I am. Truly whacky!
— Reply to this email directly or view it on GitHub.
Hi Haven't forgotten about your ask Jason with respect to Groovy Indy. I will get it to soon. Been busy. Stay tuned...
Hi Jason,
Here's part one of the test you asked for. My first test was to take delete all the groovy-*.jars from the gremlin-console/lib. I copied in the non-indy jars: groovy-2.4.1.jar groovy-console-2.4.1.jar groovy-groovysh-2.4.1.jar groovy-json-2.4.1.jar groovy-jsr223-2.4.1.jar groovy-sql-2.4.1.jar groovy-swing-2.4.1.jar groovy-templates-2.4.1.jar groovy-xml-2.4.1.jar
I ran the console and got the same error that I've been getting:
Vincenzo:apache-gremlin-console-3.0.1-incubating-testing rsaccon$ ./bin/gremlin.sh CLASSPATH: :./bin/../config:./bin/../lib/commons-beanutils-1.8.0.jar:./bin/../lib/commons-codec-1.6.jar:./bin/../lib/commons-collections-3.2.1.jar:./bin/../lib/commons-configuration-1.10.jar:./bin/../lib/commons-lang-2.6.jar:./bin/../lib/commons-lang3-3.3.1.jar:./bin/../lib/commons-logging-1.1.3.jar:./bin/../lib/ezmorph-1.0.6.jar:./bin/../lib/gbench-0.4.3-groovy-2.4.jar:./bin/../lib/gprof-0.3.1-groovy-2.4.jar:./bin/../lib/gremlin-console-3.0.1-incubating.jar:./bin/../lib/gremlin-core-3.0.1-incubating.jar:./bin/../lib/gremlin-driver-3.0.1-incubating.jar:./bin/../lib/gremlin-shaded-3.0.1-incubating.jar:./bin/../lib/groovy-2.4.1.jar:./bin/../lib/groovy-console-2.4.1.jar:./bin/../lib/groovy-groovysh-2.4.1.jar:./bin/../lib/groovy-json-2.4.1.jar:./bin/../lib/groovy-jsr223-2.4.1.jar:./bin/../lib/groovy-sql-2.4.1.jar:./bin/../lib/groovy-swing-2.4.1.jar:./bin/../lib/groovy-templates-2.4.1.jar:./bin/../lib/groovy-xml-2.4.1.jar:./bin/../lib/hppc-0.7.1.jar:./bin/../lib/http-builder-0.7.jar:./bin/../lib/httpclient-4.3.5.jar:./bin/../lib/httpcore-4.3.2.jar:./bin/../lib/ivy-2.3.0.jar:./bin/../lib/jackson-annotations-2.5.0.jar:./bin/../lib/jackson-core-2.5.3.jar:./bin/../lib/jackson-databind-2.5.3.jar:./bin/../lib/javatuples-1.2.jar:./bin/../lib/jbcrypt-0.3m.jar:./bin/../lib/jcabi-log-0.14.jar:./bin/../lib/jcabi-manifests-1.1.jar:./bin/../lib/jcl-over-slf4j-1.7.12.jar:./bin/../lib/jline-2.12.jar:./bin/../lib/json-lib-2.3-jdk15.jar:./bin/../lib/log4j-1.2.17.jar:./bin/../lib/nekohtml-1.9.16.jar:./bin/../lib/netty-all-4.0.28.Final.jar:./bin/../lib/slf4j-api-1.7.12.jar:./bin/../lib/slf4j-log4j12-1.7.12.jar:./bin/../lib/snakeyaml-1.15.jar:./bin/../lib/xercesImpl-2.9.1.jar:./bin/../lib/xml-apis-1.3.04.jar:./bin/../lib/xml-resolver-1.2.jar:.:/Users/rsaccon/bin/apache-gremlin-console-3.0.1-incubating-testing/bin/../ext/gremlin-groovy/plugin/:/Users/rsaccon/bin/apache-gremlin-console-3.0.1-incubating-testing/bin/../ext/tinkergraph-gremlin/plugin/: JAVA_OPTIONS: -Dtinkerpop.ext=/Users/rsaccon/bin/apache-gremlin-console-3.0.1-incubating-testing/bin/../ext -Dlog4j.configuration=conf/log4j-console.properties -Dgremlin.log4j.level=WARN MAIN_CLASS: org.apache.tinkerpop.gremlin.console.Console
\,,,/
(o o)
-----oOOo-(3)-oOOo----- plugin activated: tinkerpop.server Error loading the 'utilities' plugin - startup failed: groovysh_evaluate: 2: unexpected token: * @ line 2, column 34. org.apache.commons.configuration.* ^
1 error
plugin activated: tinkerpop.utilities plugin activated: tinkerpop.tinkergraph gremlin>
I will try the indy collection next and post those results separately.
Hello,
I have downloaded Titan 1.0.0 to my Mac (running El Capitan) and an running into an error with getting the Gremlin shell up and running. When I launch the Gremlin.sh I get an error that I highlighted in red below. I am not sure to which file the line number and column refers to. I checked the groovy.sh file and there isn't anything on line 2 so that file is probably not the one refererred. It must be a fatal error because none of the commands such as doing a TitanFactory.open() return any sort of message nor do the objects returned seem to work. I had previously been using Titan 0.5.4 which worked without issue for me. I am not sure if the warning about the JavaLaunchHelper has anything to do with this. I recently installed Java 8 on my machine because of the requirement that Titan 1.0 has on it. Any ideas on how to solve this are greatly appreciated.
Vincenzo:bin rsaccon$ ./gremlin.sh
objc[39550]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
-----oOOo-(3)-oOOo----- plugin activated: aurelius.titan plugin activated: tinkerpop.server Error loading the 'utilities' plugin - startup failed: groovysh_evaluate: 2: unexpected token: * @ line 2, column 34. org.apache.commons.configuration.* ^
1 error
plugin activated: tinkerpop.utilities
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/rsaccon/bin/titan-1.0.0-hadoop1/lib/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
log4j:WARN No appenders could be found for logger (org.apache.hadoop.security.Groups).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
plugin activated: tinkerpop.hadoop
plugin activated: tinkerpop.tinkergraph
gremlin>
Regards,
Rob