Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] java.lang.Runnable cannot be resolved when building with aspectj libraries

Hi Guys,

I am struggling against an error looks connect to aspectj. The stack trace is below,

Does anyone encounter the similar issue in working experience and I would be appreciated if any info can be available.

thanks so much.

We use aspectj libraries for our core
lifecycle test. When building our java file with the aspectj libraries, the
build fails with
2016-08-30 07:53:17,682 INFO      [echo] building service fault aspect jar
2016-08-30 07:53:17,683 INFO      [mkdir] Created dir:
/ade/aime1_adc00yet/oracle/work/TLR_TEST/buildout/functional/core/tempdir
2016-08-30 07:53:18,895 ERROR     [iajc] error at (no source information
available)
/scratch/aime1/adestore/views/aime1_adc00yet/wlstest/functional/core/lifecycle
/common/utils/aspects/fault/ServerServiceFault.java:1:0::
0 The type java.lang.Object cannot be resolved. It is indirectly referenced
from required .class files
2016-08-30 07:53:18,897 ERROR     [iajc] error at class SynchronizedWork
implements Work
                                  ^
/scratch/aime1/adestore/views/aime1_adc00yet/wlstest/functional/core/lifecycle
/common/utils/aspects/fault/ServerServiceFault.java:121:0
::0 The type java.lang.Runnable cannot be resolved. It is indirectly
referenced from required .class files
2016-08-30 07:53:18,905 INFO  MessageHolder:  (4 info)  (2 error)
[error   0]: error at (no source information available)
/scratch/aime1/adestore/views/aime1_adc00yet/wlstest/functional/core/lifecycle
/common/utils/aspects/fault/ServerServiceFault.java:1:0::
0 The type java.lang.Object cannot be resolved. It is indirectly referenced
from required .class files
[error   1]: error at class SynchronizedWork implements Work
                                  ^
/scratch/aime1/adestore/views/aime1_adc00yet/wlstest/functional/core/lifecycle
/common/utils/aspects/fault/ServerServiceFault.java:121:0
::0 The type java.lang.Runnable cannot be resolved. It is indirectly
referenced from required .class files
2016-08-30 07:53:18,914 ERROR core.lifecycle.shutdownhook.configuration.build
/scratch/aime1/adestore/views/aime1_adc00yet/wlstest/functional/core/lifecycle
/common/utils/aspects/fault/build.xml:59: 2 errors
        at
org.aspectj.tools.ant.taskdefs.AjcTask.executeInSameVM(AjcTask.java:1247)
        at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java:1050)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown
Source)
        at
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/Delega
tingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:535)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
        at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExec
utor.java:38)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown
Source)
        at
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/Delega
tingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:535)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
        at
org.testlogic.impl.ant.executionPlan.model.CommandRunnable.runCommand(CommandR
unnable.java:175)
        at
org.testlogic.impl.ant.executionPlan.model.CommandRunnable.run(CommandRunnable
.java:106)
        at java.lang.Thread.run(java.base@9-ea/Thread.java:843)
2016-08-30 07:53:19,457 INFO  -========================================
END_TARGET [build] from
[file:/scratch/aime1/adestore/views/aime1_adc00yet/wlstest/functional/core/lif
ecycle/lifecycle.shutdownhook.tes
t.xml]
2016-08-30 07:53:19,816 INFO  ==== END
file:/scratch/aime1/adestore/views/aime1_adc00yet/wlstest/functional/core/life
cycle/lifecycle.shutdownhook.test.xml  (took 3.363 seconds)
.
To reproduce -
cd wlstest
. ./qaenv.sh
cd functional/core/lifecycle
ant -f lifecycle.shutdownhook.test.xml clean build


Best regards


Back to the top