You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by researcher cs <pr...@gmail.com> on 2015/10/26 15:32:58 UTC
An exception occured while executing the Java class. storm/trident /state/StateFactory
Here what i got when compile the project
by this command
mvn compile exec:java -Dexec.classPathScope=compile
-Dexec.mainClass=trident.myproject
got this
java.lang.NoClassDefFoundError: storm/trident/state/StateFactory
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getMethod0(Class.java:2670)
at java.lang.Class.getMethod(Class.java:1603)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:285)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException:
storm.trident.state.StateFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 6 more
INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] An exception occured while executing the Java class.
storm/trident /state/StateFactory
storm.trident.state.StateFactory
i reviewed the folder and can't find this class ! although i ran it before
successfully
Re: An exception occured while executing the Java class.
storm/trident /state/StateFactory
Posted by researcher cs <pr...@gmail.com>.
Thanks for helping , pom really don't have this dependency but what is the
name of the package that i should write it ?
On Tue, Oct 27, 2015 at 2:26 PM, Craig Charleton <cr...@gmail.com>
wrote:
> I don't use Trident but I found a package that you should make sure is a
> dependantcy in your POM file of the project. Sorry if this doesn't help.
>
>
> https://nathanmarz.github.io/storm/doc/storm/trident/state/package-summary.html
>
> Sent from my iPhone
>
> On Oct 27, 2015, at 7:56 AM, researcher cs <pr...@gmail.com>
> wrote:
>
> can someone help on this ?
>
> On Mon, Oct 26, 2015 at 4:32 PM, researcher cs <pr...@gmail.com>
> wrote:
>
>> Here what i got when compile the project
>>
>> by this command
>>
>> mvn compile exec:java -Dexec.classPathScope=compile
>> -Dexec.mainClass=trident.myproject
>>
>> got this
>>
>> java.lang.NoClassDefFoundError: storm/trident/state/StateFactory
>> at java.lang.Class.getDeclaredMethods0(Native Method)
>> at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
>> at java.lang.Class.getMethod0(Class.java:2670)
>> at java.lang.Class.getMethod(Class.java:1603)
>> at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:285)
>> at java.lang.Thread.run(Thread.java:662)
>> Caused by: java.lang.ClassNotFoundException:
>> storm.trident.state.StateFactory
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>> ... 6 more
>>
>> INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] An exception occured while executing the Java class.
>> storm/trident /state/StateFactory
>>
>> storm.trident.state.StateFactory
>>
>> i reviewed the folder and can't find this class ! although i ran it
>> before successfully
>>
>>
>
Re: An exception occured while executing the Java class. storm/trident /state/StateFactory
Posted by Craig Charleton <cr...@gmail.com>.
I don't use Trident but I found a package that you should make sure is a dependantcy in your POM file of the project. Sorry if this doesn't help.
https://nathanmarz.github.io/storm/doc/storm/trident/state/package-summary.html
Sent from my iPhone
> On Oct 27, 2015, at 7:56 AM, researcher cs <pr...@gmail.com> wrote:
>
> can someone help on this ?
>
>> On Mon, Oct 26, 2015 at 4:32 PM, researcher cs <pr...@gmail.com> wrote:
>> Here what i got when compile the project
>>
>> by this command
>>
>> mvn compile exec:java -Dexec.classPathScope=compile -Dexec.mainClass=trident.myproject
>>
>> got this
>>
>> java.lang.NoClassDefFoundError: storm/trident/state/StateFactory
>> at java.lang.Class.getDeclaredMethods0(Native Method)
>> at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
>> at java.lang.Class.getMethod0(Class.java:2670)
>> at java.lang.Class.getMethod(Class.java:1603)
>> at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:285)
>> at java.lang.Thread.run(Thread.java:662)
>> Caused by: java.lang.ClassNotFoundException: storm.trident.state.StateFactory
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>> ... 6 more
>>
>> INFO] ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO] ------------------------------------------------------------------------
>> [INFO] An exception occured while executing the Java class. storm/trident /state/StateFactory
>>
>> storm.trident.state.StateFactory
>>
>> i reviewed the folder and can't find this class ! although i ran it before successfully
>
Re: An exception occured while executing the Java class.
storm/trident /state/StateFactory
Posted by researcher cs <pr...@gmail.com>.
can someone help on this ?
On Mon, Oct 26, 2015 at 4:32 PM, researcher cs <pr...@gmail.com>
wrote:
> Here what i got when compile the project
>
> by this command
>
> mvn compile exec:java -Dexec.classPathScope=compile
> -Dexec.mainClass=trident.myproject
>
> got this
>
> java.lang.NoClassDefFoundError: storm/trident/state/StateFactory
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
> at java.lang.Class.getMethod0(Class.java:2670)
> at java.lang.Class.getMethod(Class.java:1603)
> at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:285)
> at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.ClassNotFoundException:
> storm.trident.state.StateFactory
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> ... 6 more
>
> INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] An exception occured while executing the Java class.
> storm/trident /state/StateFactory
>
> storm.trident.state.StateFactory
>
> i reviewed the folder and can't find this class ! although i ran it before
> successfully
>
>