java.lang.NoClassDefFoundError: javax/el/PropertyNotFoundException

1,012 views
Skip to first unread message

Lunen de Lange

unread,
Jun 17, 2014, 9:57:06 PM6/17/14
to druid-de...@googlegroups.com
Hi,

I'm getting the following error trying to run a spec file(this seems to be my last obstacle):
java -Xmx256m -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Ddruid.realtime.specFile=/examples/indexing/wikipedia.spec -classpath lib/*:/config/realtime io.druid.cli.Main server realtime

2014-06-18 01:50:21,461 INFO [main] org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.0.1.Final
2014-06-18 01:50:22,471 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class io.druid.server.initialization.ExtensionsConfig] from props[druid.extensions.] as [ExtensionsConfig{searchCurrentClassloader=true, coordinates=[], localRepository='/root/.m2/repository', remoteRepositories=[http://repo1.maven.org/maven2/, https://metamx.artifactoryonline.com/metamx/pub-libs-releases-local]}]
2014-06-18 01:50:24,185 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class com.metamx.emitter.core.LoggingEmitterConfig] from props[druid.emitter.logging.] as [LoggingEmitterConfig{loggerClass='com.metamx.emitter.core.LoggingEmitter', logLevel='info'}]
2014-06-18 01:50:24,371 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class io.druid.server.metrics.DruidMonitorSchedulerConfig] from props[druid.monitoring.] as [io.druid.server.metrics.DruidMonitorSchedulerConfig@525fcf66]
2014-06-18 01:50:24,428 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class io.druid.server.metrics.MonitorsConfig] from props[druid.monitoring.] as [MonitorsConfig{monitors=[]}]
Exception in thread "main" java.lang.NoClassDefFoundError: javax/el/PropertyNotFoundException
    at org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator.interpolateExpression(ResourceBundleMessageInterpolator.java:227)
    at org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator.interpolateMessage(ResourceBundleMessageInterpolator.java:187)
    at org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator.interpolate(ResourceBundleMessageInterpolator.java:115)
    at org.hibernate.validator.internal.engine.ValidationContext.interpolate(ValidationContext.java:370)
    at org.hibernate.validator.internal.engine.ValidationContext.createConstraintViolation(ValidationContext.java:284)
    at org.hibernate.validator.internal.engine.ValidationContext.createConstraintViolations(ValidationContext.java:246)
    at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateSingleConstraint(ConstraintTree.java:289)
    at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateConstraints(ConstraintTree.java:133)
    at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateConstraints(ConstraintTree.java:91)
    at org.hibernate.validator.internal.metadata.core.MetaConstraint.validateConstraint(MetaConstraint.java:85)
    at org.hibernate.validator.internal.engine.ValidatorImpl.validateConstraint(ValidatorImpl.java:478)
    at org.hibernate.validator.internal.engine.ValidatorImpl.validateConstraintsForDefaultGroup(ValidatorImpl.java:424)
    at org.hibernate.validator.internal.engine.ValidatorImpl.validateConstraintsForCurrentGroup(ValidatorImpl.java:388)
    at org.hibernate.validator.internal.engine.ValidatorImpl.validateInContext(ValidatorImpl.java:340)
    at org.hibernate.validator.internal.engine.ValidatorImpl.validate(ValidatorImpl.java:158)
    at io.druid.guice.JsonConfigurator.configurate(JsonConfigurator.java:90)
    at io.druid.guice.JsonConfigProvider.get(JsonConfigProvider.java:181)
    at io.druid.guice.JsonConfigProvider.get(JsonConfigProvider.java:60)
    at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
    at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55)
    at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:66)
    at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.Scopes$1$1.get(Scopes.java:65)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
    at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:1005)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)
    at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:1001)
    at com.google.inject.spi.ProviderLookup$1.get(ProviderLookup.java:90)
    at com.google.inject.spi.ProviderLookup$1.get(ProviderLookup.java:90)
    at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:99)
    at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
    at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55)
    at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:66)
    at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at io.druid.guice.LifecycleScope$1.get(LifecycleScope.java:49)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
    at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:1005)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)
    at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:1001)
    at com.google.inject.spi.ProviderLookup$1.get(ProviderLookup.java:90)
    at com.google.inject.spi.ProviderLookup$1.get(ProviderLookup.java:90)
    at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:99)
    at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
    at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55)
    at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:66)
    at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at io.druid.guice.LifecycleScope$1.get(LifecycleScope.java:49)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
    at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:56)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.Scopes$1$1.get(Scopes.java:65)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
    at com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:205)
    at com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:199)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1051)
    at com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:199)
    at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:180)
    at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)
    at com.google.inject.Guice.createInjector(Guice.java:96)
    at com.google.inject.Guice.createInjector(Guice.java:73)
    at com.google.inject.Guice.createInjector(Guice.java:62)
    at io.druid.initialization.Initialization.makeInjectorWithModules(Initialization.java:344)
    at io.druid.cli.GuiceRunnable.makeInjector(GuiceRunnable.java:56)
    at io.druid.cli.ServerRunnable.run(ServerRunnable.java:39)
    at io.druid.cli.Main.main(Main.java:92)
Caused by: java.lang.ClassNotFoundException: javax.el.PropertyNotFoundException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

Nishant Bangarwa

unread,
Jun 18, 2014, 8:20:57 AM6/18/14
to druid-de...@googlegroups.com
Hi Lunen, 

It seems you are missing some property in runtime.props that is causing this exception.
Can you double check your runtime.props for any typo errors or missing property  ?

we added some dependencies to have better messages for such cases - https://github.com/metamx/druid/pull/588


--
You received this message because you are subscribed to the Google Groups "Druid Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-developm...@googlegroups.com.
To post to this group, send email to druid-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-development/442552a2-e4f2-4808-9efb-60d86704309f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Fangjin Yang

unread,
Jun 18, 2014, 7:17:20 PM6/18/14
to druid-de...@googlegroups.com

asa...@princeton.edu

unread,
Jun 23, 2014, 11:11:34 AM6/23/14
to druid-de...@googlegroups.com
Hi all,

I am actually getting the same exact error message (I'm a complete noob right now so I'm unable to pinpoint where I might have made an error in runtime.properties). The command I am running for the Wikipedia example is the following:

java -Dhttp.proxyHost="http://ironportcs.blackstone.com" -Dhttp.proxyPort="8080" -Xmx256m -Duser.timezone=UTC -Dfile.encoding=UTF-8 -\
Ddruid.realtime.specFile=/home/alok/druid-services-0.6.121/examples/wikipedia/wikipedia_realtime.spec -classpath '/home/alok/druid-se\
rvices-0.6.121/examples/wikipedia:/home/alok/druid-services-0.6.121/../config/realtime:/home/alok/druid-services-0.6.121/lib/*:/home/\
alok/druid-services-0.6.121/config/realtime' io.druid.cli.Main example realtime

The specfile and classpath values should be correct. Also, when you say I should check my runtime.props, are you referring to the one in config/realtime/runtime.properties? Sorry, very new to this.

Thanks!

Alok
To unsubscribe from this group and stop receiving emails from it, send an email to druid-developm...@googlegroups.com.
To post to this group, send email to druid-de...@googlegroups.com.
Nishant
Software Engineer|METAMARKETS
+91-9729200044

asa...@princeton.edu

unread,
Jun 23, 2014, 2:08:46 PM6/23/14
to druid-de...@googlegroups.com
For a little more information, here is my runtime.properties file:

druid.host=localhost
druid.service=realtime
druid.port=8083

druid.zk.service.host=localhost

druid.extensions.coordinates=["io.druid.extensions:druid-examples:0.6.121","io.druid.extensions:druid-kafka-seven:0.6.121","io.druid.\
extensions:druid-rabbitmq:0.6.121"]

# Change this config to db to hand off to the rest of the Druid cluster                                                              
druid.publish.type=noop

# These configs are only required for real hand off                                                                                  
# druid.db.connector.connectURI=jdbc\:mysql\://localhost\:3306/druid                                                                 
# druid.db.connector.user=druid                                                                                                      
# druid.db.connector.password=diurd                                                                                                  

druid.processing.buffer.sizeBytes=100000000
druid.processing.numThreads=1

druid.monitoring.monitors=["io.druid.segment.realtime.RealtimeMetricsMonitor"]

Nishant Bangarwa

unread,
Jun 23, 2014, 2:45:45 PM6/23/14
to druid-de...@googlegroups.com
Hi ,
the config file looks fine, did this also got resolved with the proxy issue ?   




For more options, visit https://groups.google.com/d/optout.

asa...@princeton.edu

unread,
Jun 23, 2014, 2:54:18 PM6/23/14
to druid-de...@googlegroups.com
Nope, this is actually the error that showed up immediately after I resolved the proxy issue. 

Nishant Bangarwa

unread,
Jun 23, 2014, 3:12:10 PM6/23/14
to druid-de...@googlegroups.com
looks like the spec file is incorrectly specified,
make sure that the realtime spec file is present at the absolute path specified in the command- 
 /home/alok/druid-services-0.6.121/examples/wikipedia/wikipedia_realtime.spec

have you made any changes in the spec file or is it the same that came with druid  ?  






For more options, visit https://groups.google.com/d/optout.

asa...@princeton.edu

unread,
Jun 23, 2014, 3:29:39 PM6/23/14
to druid-de...@googlegroups.com
Hm, the file is located at that absolute path and I did not make any changes to it. Should I try re-installing Druid? 

asa...@princeton.edu

unread,
Jun 23, 2014, 3:44:26 PM6/23/14
to druid-de...@googlegroups.com
Also, I noticed something strange. It turned out that my other error (the NPE) was not due to any proxy setting error. I copied and pasted the java command that gets executed with run_example_server.sh (without any proxy modifications) and when I run that raw code it gets past the NPE. But when I execute the command without copying and pasting it (i.e. executing run_example_server.sh and selecting 'wikipedia') it gives the NPE. Very confused. I'm running all of this on an Ubuntu virtual machine -- maybe there are some issues with that because I have no idea how the same command executed in slightly different ways would yield separate results.

asa...@princeton.edu

unread,
Jun 23, 2014, 8:10:48 PM6/23/14
to druid-de...@googlegroups.com
Update: Tried installing Druid on my Linux machine at home -- followed the same exact procedure and it works perfectly. I'm just gonna blame the problem on corporate internet :)

Nishant Bangarwa

unread,
Jun 24, 2014, 2:21:51 AM6/24/14
to druid-de...@googlegroups.com
yeah, it seems to have problem gathering the artifacts, they might be blocking access to metamarkets repository. 
you can try setting up a local maven repository there, 
some of the steps on how to specify local and remote repos are documented here - 


--
You received this message because you are subscribed to the Google Groups "Druid Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-developm...@googlegroups.com.
To post to this group, send email to druid-de...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages