Skip to main content

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

Hi Andy,

I still see the same build issue even after getting the beta version of aspect 1.9.


I downloaded aspectj-1.9.0.BETA-3.jar and overwrote the existing libraries with the ones from this jar, but I still see the same error.
[testlogic] [2016-11-13 16:53:22,874] [mkdir] Created dir: /scratch/bravicha/weblogic/src122130_build/buildout/functional/core/tempdir
[testlogic] [2016-11-13 16:53:23,827] [iajc] error at (no source information available)
[testlogic] /scratch/bravicha/weblogic/dev/src122130/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
[testlogic] [2016-11-13 16:53:23,828] [iajc] error at class SynchronizedWork implements Work
[testlogic]                                   ^
[testlogic] /scratch/bravicha/weblogic/dev/src122130/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
[testlogic] MessageHolder:  (4 info)  (2 error)
[testlogic] [error   0]: error at (no source information available)
[testlogic] /scratch/bravicha/weblogic/dev/src122130/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
[testlogic] [error   1]: error at class SynchronizedWork implements Work
[testlogic]                                   ^
[testlogic] /scratch/bravicha/weblogic/dev/src122130/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
[testlogic] [2016-11-13 16:53:23,855] ==== ERROR (1):
[testlogic] /scratch/bravicha/weblogic/dev/src122130/wlstest/functional/core/lifecycle/lifecycle.shutdownhook.test.xml:57: The following error occurred while executing this line:
[testlogic] /scratch/bravicha/weblogic/dev/src122130/wlstest/functional/core/lifecycle/common/utils/aspects/fault/build.xml:59: 2 errors
[testlogic]      Command: build


Is there anything else I need to do?


Thanks,


On 11/3/2016 12:44 AM, Andy Clement wrote:
Hey,

This:

java.lang.Thread.run(java.base@9-ea/Thread.java:843) 

tells me you are on JDK9.  AspectJ 1.8 does not support Java9 - it does not understand the packaging system Java 9 uses for system classes and will not locate java.lang.Object/etc. You either need to run on Java8 or use a beta of AspectJ 1.9.


cheers,
Andy

On 2 November 2016 at 06:28, feng l.liu <feng.l.liu@xxxxxxxxxx> wrote:

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


_______________________________________________
aspectj-dev mailing list
aspectj-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-dev



_______________________________________________
aspectj-dev mailing list
aspectj-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-dev


Back to the top