Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ajdt-dev] Switching project to Eclipse3.2/AJDT1.4 produces no classes

Yes, you have an error in your project:

2:55:33 PM addSourcelineTask message=The type org.hibernate.Session
cannot be resolved. It is indirectly referenced from required .class
files
file=C:\work\gg\workspace\MyProject\src\test\java\com\myproject\util\TestGxnPasswd.java

Our bug is that the error is not being reported by AJDT. See bug 145689:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=145689

It probably requires changes across AspectJ and AJDT, but hiding build
errors from users is pretty nasty so we'll try to fix it as soon as
possible.

Regards,

Matt.

On 21/07/06, Ramnivas Laddad <ramnivas@xxxxxxxxxxxxxxx> wrote:
Here is trace output with all options enabled. I see an issue reported
for TestGxnPasswd.java. Could that be at the reason? However, no
errors/warning are reported in error/warning pane.

Other simple projects build just fine with Eclipse3.2/AJDT1.4. It is
just this newly converted project that is giving the problem. I tried to
remove build.ajproperties (to match how it is done in newly created
projects), but it didn't help.

2:55:07 PM Startup information:
   AJDT version: 1.4.0.20060720065439 for Eclipse 3.2
   AspectJ Compiler version: 1.5.2
   usingVisualiser=true
   usingXref=true
   usingCUprovider=false
   org.aspectj.ajdt.core.compiler.BuildOptions.showweavemessages = true
   doneAutoOpenXRefViewC:/work/gg/workspace = true
   doneAutoOpenXRefViewc:/work/gg/workspace = true
   ajde.version.at.previous.startup = @AJDEVERSION@
   org.eclipse.ajdt.internal.ui.tracing.checked.filters = set:
Compiler,Builder
2:55:27 PM Disposing editor for:Main.java
2:55:27 PM Editor closed - Main.java
2:55:32 PM Removed problems and tasks for project MyProject
2:55:32 PM Builder: Tidied output folder(s), deleted 0 .class files
2:55:32 PM
===========================================================================================
2:55:32 PM Build kind = FULLBUILD
2:55:32 PM Project=MyProject, kind of build requested=Full AspectJ
compilation
2:55:32 PM Builder: Tidied output folder(s), deleted 0 .class files
2:55:32 PM
Classpath=C:\work\gg\workspace\MyProject\class;C:/work/gg/workspace/MyProject/lib/junit-3.8.1.jar;C:/java/jdk1.5.0_06/jre/lib/rt.jar;C:/java/jdk1.5.0_06/jre/lib/jsse.jar;C:/java/jdk1.5.0_06/jre/lib/jce.jar;C:/java/jdk1.5.0_06/jre/lib/charsets.jar;C:/java/jdk1.5.0_06/jre/lib/ext/dnsns.jar;C:/java/jdk1.5.0_06/jre/lib/ext/localedata.jar;C:/java/jdk1.5.0_06/jre/lib/ext/sunjce_provider.jar;C:/java/jdk1.5.0_06/jre/lib/ext/sunpkcs11.jar;C:/work/gg/workspace/MyProject/lib/dev/dbunit/dbunit-2.1.jar;C:/work/gg/workspace/MyProject/lib/hsql/hsqldb.jar;C:/work/gg/workspace/MyProject/lib/wicket/commons-logging-1.0.4.jar;C:/work/gg/workspace/MyProject/lib/xmlrpc/xmlrpc-2.0.jar;C:/work/gg/workspace/MyProject/lib/commons-codec/commons-codec-1.3.jar;C:/work/gg/workspace/MyProject/lib/dev/jetty/javax.servlet.jar;C:/work/gg/workspace/MyProject/lib/dev/jetty/jasper-compiler.jar;C:/work/gg/workspace/MyProject/lib/dev/jetty/jasper-runtime.jar;C:/work/gg/workspace/MyProject/lib/hibernate/asm.jar;C:/work/gg/workspace/MyProject/lib/hibernate/asm-attrs.jar;C:/work/gg/workspace/MyProject/lib/hibernate/commons-collections-2.1.1.jar;C:/work/gg/workspace/MyProject/lib/hibernate/ehcache-1.1.jar;C:/work/gg/workspace/MyProject/lib/hibernate/jta.jar;C:/work/gg/workspace/MyProject/lib/hibernate/antlr-2.7.6rc1.jar;C:/work/gg/workspace/MyProject/lib/hibernate/cglib-2.1.3.jar;C:/work/gg/workspace/MyProject/lib/hibernate/dom4j-1.6.1.jar;C:/work/gg/workspace/MyProject/lib/spring/spring-core.jar;C:/work/gg/workspace/MyProject/lib/spring/spring-dao.jar;C:/work/gg/workspace/MyProject/lib/spring/spring-web.jar;C:/work/gg/workspace/MyProject/lib/spring/spring-jdbc.jar;C:/work/gg/workspace/MyProject/lib/wicket/servlet-api-2.3.jar;C:/work/gg/workspace/MyProject/lib/dev/bsh/bsh-2.0b4.jar;C:/work/gg/workspace/MyProject/lib/dev/selenium/selenium-java-client-driver.jar;C:/work/gg/workspace/MyProject/lib/dev/selenium/selenium-server.jar;C:/work/gg/workspace/MyProject/lib/log/log4j-1.2.8.jar;C:/work/gg/workspace/MyProject/lib/spring/spring-aspects.jar;C:/work/gg/workspace/MyProject/lib/spring/spring-hibernate3.jar;C:/work/gg/workspace/MyProject/lib/spring/spring-aop.jar;C:/work/gg/workspace/MyProject/lib/spring/spring-beans.jar;C:/work/gg/workspace/MyProject/lib/spring/spring-context.jar;C:/Program
Files/eclipse32/eclipse/plugins/org.aspectj.runtime_1.5.2.20060720065439/aspectjrt.jar;
2:55:32 PM Preparing for build: not going to be incremental because no
successful previous full build
2:55:32 PM AJC: compiling source files
2:55:33 PM addSourcelineTask message=The type org.hibernate.Session
cannot be resolved. It is indirectly referenced from required .class
files
file=C:\work\gg\workspace\MyProject\src\test\java\com\myproject\util\TestGxnPasswd.java
line=0
2:55:33 PM AJDE Callback: finish()
2:55:33 PM Timer event: 1662ms: Total time spent in AJDE
2:55:34 PM Timer event: 90ms: Create element map (0 rels in project:
MyProject)
2:55:34 PM Types affected during build = 0
2:55:34 PM Not adding marker for problem because it's against a resource
which is not in the list of affected resources provided by the compiler.
Resource=L/MyProject/src/test/java/com/myproject/util/TestGxnPasswd.java
Problem message=The type org.hibernate.Session cannot be resolved. It is
indirectly referenced from required .class files line=0
2:55:34 PM Timer event: 0ms: Add markers (0 markers)
2:55:34 PM Timer event: 1993ms: Total time spent in AJBuilder.build()

-Ramnivas

Matt Chapman wrote:
> Hi Ramnivas,
>
> Could you try using the filter button on the Event Trace view to
> activate the more detailed levels of trace, specifically Compiler /
> Task list messages and Compiler / Progress messages.
>
> Regards,
>
> Matt.
>
> On 21/07/06, Ramnivas Laddad <ramnivas@xxxxxxxxxxxxxxx> wrote:
>> I just switched a web project to use Eclipse 3.2 and AJDT1.4. Now
>> building the project results in no class files. When I remove the
>> AspectJ nature, JDT produces the class files as expected. Following is
>> the output from AJDT Event Trace. Any clues as to what could be going
>> wrong?
>>
>> 10:04:28 AM Startup information:
>>    AJDT version: 1.4.0.20060720065439 for Eclipse 3.2
>>    AspectJ Compiler version: 1.5.2
>>    usingVisualiser=true
>>    usingXref=true
>>    usingCUprovider=false
>>    org.aspectj.ajdt.core.compiler.BuildOptions.showweavemessages = true
>>    doneAutoOpenXRefViewC:/work/workspace = true
>>    doneAutoOpenXRefViewc:/work/workspace = true
>>    ajde.version.at.previous.startup = @AJDEVERSION@
>>    org.eclipse.ajdt.internal.ui.tracing.checked.filters = set:
>> Compiler,Builder
>>
>> 10:00:39 AM Build kind = FULLBUILD
>> 10:00:39 AM Project=MyProject, kind of build requested=Full AspectJ
>> compilation
>> 10:00:39 AM Builder: Tidied output folder(s), deleted 0 .class files
>> 10:00:40 AM Preparing for build: not going to be incremental because no
>> successful previous full build
>> 10:00:42 AM AJDE Callback: finish()
>> 10:00:42 AM Timer event: 2663ms: Total time spent in AJDE
>> 10:00:42 AM Timer event: 210ms: Create element map (0 rels in project:
>> MyProject)
>> 10:00:42 AM Types affected during build = 0
>> 10:00:42 AM Timer event: 0ms: Add markers (0 markers)
>> 10:00:43 AM Timer event: 3435ms: Total time spent in AJBuilder.build()
>>
>> ** After removing AspectJ "capability" and reconverting project to
>> AspectJ project **
>>
>> 10:06:38 AM
>> ===========================================================================================
>>
>> 10:06:38 AM Build kind = FULLBUILD
>> 10:06:38 AM Project=MyProject, kind of build requested=Full AspectJ
>> compilation
>> 10:06:39 AM Builder: Tidied output folder(s), deleted 160 .class files
>> 10:06:40 AM Preparing for build: not going to be incremental because no
>> successful previous full build
>> 10:06:41 AM AJDE Callback: finish()
>> 10:06:41 AM Timer event: 2504ms: Total time spent in AJDE
>> 10:06:42 AM Timer event: 360ms: Create element map (0 rels in project:
>> MyProject)
>> 10:06:42 AM Types affected during build = 0
>> 10:06:42 AM Timer event: 0ms: Add markers (0 markers)
>> 10:06:42 AM Timer event: 4085ms: Total time spent in AJBuilder.build()
>>
>> -Ramnivas
>> _______________________________________________
>> ajdt-dev mailing list
>> ajdt-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/ajdt-dev
>>
> _______________________________________________
> ajdt-dev mailing list
> ajdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ajdt-dev
>

_______________________________________________
ajdt-dev mailing list
ajdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ajdt-dev



Back to the top