Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » compile, and generate and deploy failures
compile, and generate and deploy failures [message #28333] Fri, 05 December 2003 14:44 Go to next message
Eclipse UserFriend
Originally posted by: KLHolmes.open-iq.com

I have a seemingly random problem compiling some of the projects in my
workspace. Some projects will compile fine, others will consistently fail,
and I cant find the difference between them.

An AspectJ Error window pops up with "Compile failed. Reason: Compile
Failed"

As usual it seems to be a classpath problem, at the bottom I've attached
the resulting stacktrace from the .metadata/.log file.

I wondered if it might occur in projects which have no source files of
their own. All the projects in question are EJB projects which only hold
deployment descriptors and generated source files. Although there other
similar projects which compile just fine.

We're using WSAD 5.1 and any "generate and deploy" on an EJB project pops
up a "Cannot Generate Deployment Code" error with the following text
"Deployment of Player-Commerce-ejb did not complete successfully due to
the following error : java.lang.NullPointerException" This generates the
second stack trace listed below in the .metadata/.log file.

any ideas ?

regards,
Kevin Holmes.

!ENTRY org.eclipse.ajdt.ui 4 0 Dec 05, 2003 14:22:57.578
!MESSAGE Compile failed.
!STACK 0
java.lang.NullPointerException
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.NullPointerException.<init>(NullPointerException.java:63)
at
org.eclipse.jdt.internal.launching.JRERuntimeClasspathEntryR esolver.resolveLibraryLocations(JRERuntimeClasspathEntryReso lver.java:51)
at
org.eclipse.jdt.internal.launching.JRERuntimeClasspathEntryR esolver.resolveRuntimeClasspathEntry(JRERuntimeClasspathEntr yResolver.java:43)
at
org.eclipse.jdt.internal.launching.RuntimeClasspathEntryReso lver.resolveRuntimeClasspathEntry(RuntimeClasspathEntryResol ver.java:81)
at
org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspat hEntry(JavaRuntime.java:879)
at
org.eclipse.ajdt.internal.ui.ajde.ProjectProperties.getClass path(ProjectProperties.java:205)
at org.eclipse.ajdt.internal.builder.Builder.build(Builder.java :150)
at
org.eclipse.core.internal.events.BuildManager$2.run(BuildMan ager.java:427)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java)
at org.eclipse.core.runtime.Platform.run(Platform.java)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:125)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:181)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:191)
at
org.eclipse.core.internal.events.BuildManager$1.run(BuildMan ager.java:151)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java)
at org.eclipse.core.runtime.Platform.run(Platform.java)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:165)
at
org.eclipse.core.internal.events.BuildManager.build(BuildMan ager.java:265)
at org.eclipse.core.internal.resources.Project.build(Project.ja va:85)
at
org.eclipse.ui.actions.BuildAction.invokeOperation(BuildActi on.java:156)
at
org.eclipse.ui.actions.WorkspaceAction.execute(WorkspaceActi on.java:122)
at
org.eclipse.ui.actions.WorkspaceAction$1.execute(WorkspaceAc tion.java:279)
at
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:71)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1595)
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:85)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:101)






!ENTRY com.ibm.etools.ejbdeploy 4 0 Dec 05, 2003 14:44:44.421
!MESSAGE
!STACK 0
java.lang.NullPointerException
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.NullPointerException.<init>(NullPointerException.java:63)
at
com.ibm.etools.ejbdeploy.plugin.JavacOperation.run(JavacOper ation.java:86)
at
com.ibm.etools.ejbdeploy.ui.plugin.DeployRMICBeansOperation. javac(DeployRMICBeansOperation.java:483)
at
com.ibm.etools.ejbdeploy.ui.plugin.DeployRMICBeansOperation. run(DeployRMICBeansOperation.java:561)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1595)
at
com.ibm.etools.ejbdeploy.ui.plugin.DeployRunnableWithProgres s.run(DeployRunnableWithProgress.java:92)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:101)
Re: compile, and generate and deploy failures [message #28882 is a reply to message #28333] Thu, 11 December 2003 10:28 Go to previous message
Eclipse UserFriend
Originally posted by: JLL.Lilly.com

Hi Kevin,

First I have to apologize not answering faster to you but I switched to
the mailing list because the forum seems to give less answers to
questions. Actually I had the same problem as you and got some help from
Andrew Clement from IBM. This helped me find the solution.

The JRE reference was looking different between the projects that worked
and the one that failed to compile. I fixed the problem at the level of
the Java Build Path box in WSAD. I don't really understand the subtleties
but I had to remove the reference to the JRE jar file and had to "Add
container" for "JRE System Library" rather then just "Add JARs" or "Add
External JAR". Another way that works is to "Add Variable" JRE_LIB.

Hope this helps.

Jean-Luc Libioulle
Scientific Systems Analyst
Eli Lilly and Co.
EDIT Solution Delivery
Mont-Saint-Guibert -- Belgium
+32 10 47 62 53



Kevin Holmes wrote:

> I have a seemingly random problem compiling some of the projects in my
> workspace. Some projects will compile fine, others will consistently fail,
> and I cant find the difference between them.

> An AspectJ Error window pops up with "Compile failed. Reason: Compile
> Failed"

> As usual it seems to be a classpath problem, at the bottom I've attached
> the resulting stacktrace from the .metadata/.log file.

> I wondered if it might occur in projects which have no source files of
> their own. All the projects in question are EJB projects which only hold
> deployment descriptors and generated source files. Although there other
> similar projects which compile just fine.

> We're using WSAD 5.1 and any "generate and deploy" on an EJB project pops
> up a "Cannot Generate Deployment Code" error with the following text
> "Deployment of Player-Commerce-ejb did not complete successfully due to
> the following error : java.lang.NullPointerException" This generates the
> second stack trace listed below in the .metadata/.log file.

> any ideas ?

> regards,
> Kevin Holmes.

> !ENTRY org.eclipse.ajdt.ui 4 0 Dec 05, 2003 14:22:57.578
> !MESSAGE Compile failed.
> !STACK 0
> java.lang.NullPointerException
> at java.lang.Throwable.<init>(Throwable.java)
> at java.lang.Throwable.<init>(Throwable.java)
> at java.lang.NullPointerException.<init>(NullPointerException.java:63)
> at
>
org.eclipse.jdt.internal.launching.JRERuntimeClasspathEntryR esolver.resolveLibraryLocations(JRERuntimeClasspathEntryReso lver.java:51)
> at
>
org.eclipse.jdt.internal.launching.JRERuntimeClasspathEntryR esolver.resolveRuntimeClasspathEntry(JRERuntimeClasspathEntr yResolver.java:43)
> at
>
org.eclipse.jdt.internal.launching.RuntimeClasspathEntryReso lver.resolveRuntimeClasspathEntry(RuntimeClasspathEntryResol ver.java:81)
> at
>
org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspat hEntry(JavaRuntime.java:879)
> at
>
org.eclipse.ajdt.internal.ui.ajde.ProjectProperties.getClass path(ProjectProperties.java:205)
> at org.eclipse.ajdt.internal.builder.Builder.build(Builder.java :150)
> at
> org.eclipse.core.internal.events.BuildManager$2.run(BuildMan ager.java:427)
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java)
> at org.eclipse.core.runtime.Platform.run(Platform.java)
> at
>
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:125)
> at
>
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:181)
> at
>
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:191)
> at
> org.eclipse.core.internal.events.BuildManager$1.run(BuildMan ager.java:151)
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java)
> at org.eclipse.core.runtime.Platform.run(Platform.java)
> at
>
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:165)
> at
> org.eclipse.core.internal.events.BuildManager.build(BuildMan ager.java:265)
> at org.eclipse.core.internal.resources.Project.build(Project.ja va:85)
> at
> org.eclipse.ui.actions.BuildAction.invokeOperation(BuildActi on.java:156)
> at
> org.eclipse.ui.actions.WorkspaceAction.execute(WorkspaceActi on.java:122)
> at
> org.eclipse.ui.actions.WorkspaceAction$1.execute(WorkspaceAc tion.java:279)
> at
>
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:71)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1595)
> at
>
org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:85)
> at
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:101)






> !ENTRY com.ibm.etools.ejbdeploy 4 0 Dec 05, 2003 14:44:44.421
> !MESSAGE
> !STACK 0
> java.lang.NullPointerException
> at java.lang.Throwable.<init>(Throwable.java)
> at java.lang.Throwable.<init>(Throwable.java)
> at java.lang.NullPointerException.<init>(NullPointerException.java:63)
> at
> com.ibm.etools.ejbdeploy.plugin.JavacOperation.run(JavacOper ation.java:86)
> at
>
com.ibm.etools.ejbdeploy.ui.plugin.DeployRMICBeansOperation. javac(DeployRMICBeansOperation.java:483)
> at
>
com.ibm.etools.ejbdeploy.ui.plugin.DeployRMICBeansOperation. run(DeployRMICBeansOperation.java:561)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1595)
> at
>
com.ibm.etools.ejbdeploy.ui.plugin.DeployRunnableWithProgres s.run(DeployRunnableWithProgress.java:92)
> at
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:101)
Re: compile, and generate and deploy failures [message #573482 is a reply to message #28333] Thu, 11 December 2003 10:28 Go to previous message
Eclipse UserFriend
Originally posted by: JLL.Lilly.com

Hi Kevin,

First I have to apologize not answering faster to you but I switched to
the mailing list because the forum seems to give less answers to
questions. Actually I had the same problem as you and got some help from
Andrew Clement from IBM. This helped me find the solution.

The JRE reference was looking different between the projects that worked
and the one that failed to compile. I fixed the problem at the level of
the Java Build Path box in WSAD. I don't really understand the subtleties
but I had to remove the reference to the JRE jar file and had to "Add
container" for "JRE System Library" rather then just "Add JARs" or "Add
External JAR". Another way that works is to "Add Variable" JRE_LIB.

Hope this helps.

Jean-Luc Libioulle
Scientific Systems Analyst
Eli Lilly and Co.
EDIT Solution Delivery
Mont-Saint-Guibert -- Belgium
+32 10 47 62 53



Kevin Holmes wrote:

> I have a seemingly random problem compiling some of the projects in my
> workspace. Some projects will compile fine, others will consistently fail,
> and I cant find the difference between them.

> An AspectJ Error window pops up with "Compile failed. Reason: Compile
> Failed"

> As usual it seems to be a classpath problem, at the bottom I've attached
> the resulting stacktrace from the .metadata/.log file.

> I wondered if it might occur in projects which have no source files of
> their own. All the projects in question are EJB projects which only hold
> deployment descriptors and generated source files. Although there other
> similar projects which compile just fine.

> We're using WSAD 5.1 and any "generate and deploy" on an EJB project pops
> up a "Cannot Generate Deployment Code" error with the following text
> "Deployment of Player-Commerce-ejb did not complete successfully due to
> the following error : java.lang.NullPointerException" This generates the
> second stack trace listed below in the .metadata/.log file.

> any ideas ?

> regards,
> Kevin Holmes.

> !ENTRY org.eclipse.ajdt.ui 4 0 Dec 05, 2003 14:22:57.578
> !MESSAGE Compile failed.
> !STACK 0
> java.lang.NullPointerException
> at java.lang.Throwable.<init>(Throwable.java)
> at java.lang.Throwable.<init>(Throwable.java)
> at java.lang.NullPointerException.<init>(NullPointerException.java:63)
> at
>
org.eclipse.jdt.internal.launching.JRERuntimeClasspathEntryR esolver.resolveLibraryLocations(JRERuntimeClasspathEntryReso lver.java:51)
> at
>
org.eclipse.jdt.internal.launching.JRERuntimeClasspathEntryR esolver.resolveRuntimeClasspathEntry(JRERuntimeClasspathEntr yResolver.java:43)
> at
>
org.eclipse.jdt.internal.launching.RuntimeClasspathEntryReso lver.resolveRuntimeClasspathEntry(RuntimeClasspathEntryResol ver.java:81)
> at
>
org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspat hEntry(JavaRuntime.java:879)
> at
>
org.eclipse.ajdt.internal.ui.ajde.ProjectProperties.getClass path(ProjectProperties.java:205)
> at org.eclipse.ajdt.internal.builder.Builder.build(Builder.java :150)
> at
> org.eclipse.core.internal.events.BuildManager$2.run(BuildMan ager.java:427)
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java)
> at org.eclipse.core.runtime.Platform.run(Platform.java)
> at
>
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:125)
> at
>
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:181)
> at
>
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:191)
> at
> org.eclipse.core.internal.events.BuildManager$1.run(BuildMan ager.java:151)
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java)
> at org.eclipse.core.runtime.Platform.run(Platform.java)
> at
>
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:165)
> at
> org.eclipse.core.internal.events.BuildManager.build(BuildMan ager.java:265)
> at org.eclipse.core.internal.resources.Project.build(Project.ja va:85)
> at
> org.eclipse.ui.actions.BuildAction.invokeOperation(BuildActi on.java:156)
> at
> org.eclipse.ui.actions.WorkspaceAction.execute(WorkspaceActi on.java:122)
> at
> org.eclipse.ui.actions.WorkspaceAction$1.execute(WorkspaceAc tion.java:279)
> at
>
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:71)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1595)
> at
>
org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:85)
> at
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:101)






> !ENTRY com.ibm.etools.ejbdeploy 4 0 Dec 05, 2003 14:44:44.421
> !MESSAGE
> !STACK 0
> java.lang.NullPointerException
> at java.lang.Throwable.<init>(Throwable.java)
> at java.lang.Throwable.<init>(Throwable.java)
> at java.lang.NullPointerException.<init>(NullPointerException.java:63)
> at
> com.ibm.etools.ejbdeploy.plugin.JavacOperation.run(JavacOper ation.java:86)
> at
>
com.ibm.etools.ejbdeploy.ui.plugin.DeployRMICBeansOperation. javac(DeployRMICBeansOperation.java:483)
> at
>
com.ibm.etools.ejbdeploy.ui.plugin.DeployRMICBeansOperation. run(DeployRMICBeansOperation.java:561)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1595)
> at
>
com.ibm.etools.ejbdeploy.ui.plugin.DeployRunnableWithProgres s.run(DeployRunnableWithProgress.java:92)
> at
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:101)
Previous Topic:Tasks for Java Compiler Errors in AspectJ Projects
Next Topic:Debugging
Goto Forum:
  


Current Time: Sat Apr 27 02:56:19 GMT 2024

Powered by FUDForum. Page generated in 0.02667 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top