Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 340091

Summary: New M6 NPE running Acceleo standalone
Product: [Modeling] Acceleo Reporter: Ed Willink <ed>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: laurent.goubet, nicolas.bros
Version: 3.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Ed Willink CLA 2011-03-15 16:42:15 EDT
Bug 336119 may be fixed, but clearly there are no standalone tests.

I now get:

java.lang.NullPointerException
	at org.eclipse.acceleo.common.internal.utils.workspace.AcceleoWorkspaceUtil.isInDynamicBundle(AcceleoWorkspaceUtil.java:597)
	at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.isInWorkspace(AbstractAcceleoGenerator.java:382)
	at org.eclipse.ocl.examples.build.acceleo.GeneratePivotVisitors.registerPackages(GeneratePivotVisitors.java:290)
	at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.initialize(AbstractAcceleoGenerator.java:298)
	at org.eclipse.ocl.examples.build.acceleo.GeneratePivotVisitors.<init>(GeneratePivotVisitors.java:109)
	at org.eclipse.ocl.examples.build.acceleo.MyGeneratePivotVisitors.<init>(MyGeneratePivotVisitors.java:39)
	at org.eclipse.ocl.examples.build.utilities.PivotVisitorCodeGenerator.invokeInternal(PivotVisitorCodeGenerator.java:85)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(Mwe2Bridge.java:34)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:201)
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:31)
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:31)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:94)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:73)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:64)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:55)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
Comment 1 Laurent Goubet CLA 2011-03-16 05:35:13 EDT
The "isInDynamicBundle" code is something that has been included -very- late in the M6 cycle so that we had the whole necessary API to handle dynamic metamodels; and we've all the trouble we've faced with the M6 build, I admit I haven't taken enough time to test this version.

This one is indeed the very same bug as bug 336119, a regression with the standalone mode (AcceleoWorkspaceUtil should never be called from standalone :s).

I just raised bug 340127 in order to try and prevent these regressions in the future.

As for this bug, it is fixed on HEAD. A nightly should be available soon.
Comment 2 Ed Willink CLA 2011-03-16 06:00:53 EDT
I think M6 has enough fatal bugs on standalone and on dynamic models to merit an M6a.
Comment 3 Laurent Goubet CLA 2011-03-16 06:20:30 EDT
One of the bugs we introduced (bug 340094) cannot be fixed soon enough to be part of an M6x milestone, we'll have it fixed asap, but it will be part of an integration build next week at best.
Comment 4 Ed Willink CLA 2011-03-16 13:05:23 EDT
(In reply to comment #1)
> As for this bug, it is fixed on HEAD. A nightly should be available soon.

Where?

The Acceleo download page doesn't show N-builds.

The Hudson Job shows no build artefacts since M6.
Comment 5 Laurent Goubet CLA 2011-03-21 04:52:50 EDT
I was expecting to have part of the fix for bug #340094 before launching the nightly ... and forgot to launch it altogether at the end of the day ...

The nightly is running and will be promoted shortly. I expect to have an I build launched and promoted as soon as bug #340094 is out of the way.
Comment 6 Laurent Goubet CLA 2011-03-23 10:27:20 EDT
Acceleo 3.1.0M6a, including this fix, is now available from the milestones update site.
Comment 7 Laurent Goubet CLA 2011-04-08 10:35:49 EDT
*** Bug 342298 has been marked as a duplicate of this bug. ***