7 Replies Latest reply: Oct 2, 2012 6:02 AM by Fred Bricon RSS

    jboss-packaging-maven-plugin jboss-sar + m2e + JBT = NPE

    R Finlayson Newbie

      Hi,

       

      Eclipse Indigo 3.6 latest 2011/12/29

      m2e latest

      m2e-wtp latest

      jBossTools latest

       

      Maven project is jboss-sar packaging configured with jboss-packaging-maven-plugin.

       

      Import Maven Project:

       

      java.lang.NullPointerException

          at org.jboss.ide.eclipse.as.wtp.core.vcf.ExportedClassFolderReferenceResolver.canResolve(ExportedClassFolderReferenceResolver.java:36)

          at org.eclipse.wst.common.componentcore.resolvers.ReferenceResolverUtil.getResolver(ReferenceResolverUtil.java:43)

          at org.eclipse.wst.common.componentcore.internal.StructureEdit.createVirtualReference(StructureEdit.java:326)

          at org.jboss.ide.eclipse.as.wtp.core.vcf.JBTVirtualComponent.getHardReferences(JBTVirtualComponent.java:106)

          at org.jboss.ide.eclipse.as.wtp.core.vcf.JBTVirtualComponent.getReferences(JBTVirtualComponent.java:76)

          at org.maven.ide.eclipse.wtp.overlay.internal.servers.OverlayResourceChangeListener.hasOverlayChanged(OverlayResourceChangeListener.java:117)

          at org.maven.ide.eclipse.wtp.overlay.internal.servers.OverlayResourceChangeListener.resourceChanged(OverlayResourceChangeListener.java:60)

          at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:291)

      ...

       

      Seems that "ReferencedComponent.getHandle()" returns null.

       

      Project builds with mvn OK, project import doesn't complete with NPE above, in Eclipse Indigo, m2e and m2e-wtp, with jBoss Tools Maven integration.

       

      Other projects in workspace (EAR, WAR, Dynamic Web Modules) import and build OK and work with m2e-wtp OK.

       

      How can I resolve this?