Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Texo] Generator java version issue
[Texo] Generator java version issue [message #1022622] Fri, 22 March 2013 08:52 Go to next message
techteam is currently offline techteamFriend
Messages: 54
Registered: September 2010
Member
Hi,
this week I switch from my Eclipse Juno JEE SR1 to SR2

Yesterday, after some changes inside the model and xpand files I try to
generate my model again, and I've got an error about a java version issue.

After an update to the new Texo version it works.

Today, it fail's again and I have no idea why.



This is the complete error:

eclipse.buildId=M20130204-1200
java.version=1.6.0_23
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product
org.eclipse.epp.package.jee.product

Error
Fri Mar 22 09:35:17 CET 2013
Unhandled event loop exception

java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException
at
org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.run(BaseGenerateAction.java:87)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at
org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
Caused by: java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421)
at
org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at
org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:275)
at
org.eclipse.ui.internal.progress.ProgressManager$3.run(ProgressManager.java:960)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at
org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:995)
at
org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:970)
at
org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1166)
at
org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.run(BaseGenerateAction.java:80)
... 29 more
Caused by: java.lang.IllegalStateException:
java.lang.IllegalStateException: package bar.foo;

/**
* A representation of the model object '<em><b>Product</b></em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class Product
extends bar.foo.AbstractPojo
{




/**
* A toString method which prints the values of all EAttributes of
this instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return "Product "
;
}
}

22: Syntax error, annotations are only available if source level is 1.5
or greater

at
org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromUri(GenerateCode.java:99)
at
org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromUris(GenerateCode.java:59)
at
org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.generate(BaseGenerateAction.java:128)
at
org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.generate(BaseGenerateAction.java:108)
at
org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction$1.execute(BaseGenerateAction.java:76)
at
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: java.lang.IllegalStateException: package bar.foo;

/**
* A representation of the model object '<em><b>Product</b></em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class Product
extends bar.foo.AbstractPojo
{




/**
* A toString method which prints the values of all EAttributes of
this instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return "Product "
;
}
}

22: Syntax error, annotations are only available if source level is 1.5
or greater

at
org.eclipse.emf.texo.generator.ArtifactGenerator.run(ArtifactGenerator.java:145)
at
org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromUri(GenerateCode.java:96)
... 8 more
Caused by: java.lang.IllegalStateException: package bar.foo;

/**
* A representation of the model object '<em><b>Product</b></em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class Product
extends bar.foo.AbstractPojo
{




/**
* A toString method which prints the values of all EAttributes of
this instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return "Product "
;
}
}

22: Syntax error, annotations are only available if source level is 1.5
or greater

at
org.eclipse.emf.texo.generator.ImportResolver.setSource(ImportResolver.java:494)
at
org.eclipse.emf.texo.generator.SourceMerger.organizeImports(SourceMerger.java:147)
at
org.eclipse.emf.texo.generator.SourceMerger.mergeImportAndFormat(SourceMerger.java:98)
at org.eclipse.emf.texo.generator.SourceMerger.merge(SourceMerger.java:70)
at
org.eclipse.emf.texo.generator.MergingOutputHandler.beforeWriteAndClose(MergingOutputHandler.java:63)
at org.eclipse.xpand2.output.Outlet.beforeWriteAndClose(Outlet.java:98)
at
org.eclipse.xpand2.output.FileHandleImpl.writeAndClose(FileHandleImpl.java:137)
at org.eclipse.xpand2.output.OutputImpl.closeFile(OutputImpl.java:172)
at
org.eclipse.emf.texo.generator.ArtifactGenerator.run(ArtifactGenerator.java:98)
... 9 more
Re: [Texo] Generator java version issue [message #1022639 is a reply to message #1022622] Fri, 22 March 2013 09:20 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5340
Registered: July 2009
Senior Member
Hi Heiko,
Hmm can you check the project properties > Java Compiler there is a jdk compliance option with a setting for source
compatibility.

Let me know what it says (I hope something < 1.5, then it is easy to solve :-).

gr. Martin


On 03/22/2013 09:52 AM, Heiko wrote:
> Hi,
> this week I switch from my Eclipse Juno JEE SR1 to SR2
>
> Yesterday, after some changes inside the model and xpand files I try to generate my model again, and I've got an error
> about a java version issue.
>
> After an update to the new Texo version it works.
>
> Today, it fail's again and I have no idea why.
>
>
>
> This is the complete error:
>
> eclipse.buildId=M20130204-1200
> java.version=1.6.0_23
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
> Framework arguments: -product org.eclipse.epp.package.jee.product
> Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product
>
> Error
> Fri Mar 22 09:35:17 CET 2013
> Unhandled event loop exception
>
> java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException
> at org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.run(BaseGenerateAction.java:87)
> at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
> at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
> at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
> at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
> at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
> Caused by: java.lang.reflect.InvocationTargetException
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421)
> at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
> at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:275)
> at org.eclipse.ui.internal.progress.ProgressManager$3.run(ProgressManager.java:960)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
> at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:995)
> at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:970)
> at org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1166)
> at org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.run(BaseGenerateAction.java:80)
> ... 29 more
> Caused by: java.lang.IllegalStateException: java.lang.IllegalStateException: package bar.foo;
>
> /**
> * A representation of the model object '<em><b>Product</b></em>'.
> * <!-- begin-user-doc -->
> * <!-- end-user-doc -->
> * @generated
> */
> public class Product
> extends bar.foo.AbstractPojo
> {
>
>
>
>
> /**
> * A toString method which prints the values of all EAttributes of this instance.
> * <!-- begin-user-doc -->
> * <!-- end-user-doc -->
> * @generated
> */
> @Override
> public String toString() {
> return "Product "
> ;
> }
> }
>
> 22: Syntax error, annotations are only available if source level is 1.5 or greater
>
> at org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromUri(GenerateCode.java:99)
> at org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromUris(GenerateCode.java:59)
> at org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.generate(BaseGenerateAction.java:128)
> at org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.generate(BaseGenerateAction.java:108)
> at org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction$1.execute(BaseGenerateAction.java:76)
> at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
> at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
> Caused by: java.lang.IllegalStateException: package bar.foo;
>
> /**
> * A representation of the model object '<em><b>Product</b></em>'.
> * <!-- begin-user-doc -->
> * <!-- end-user-doc -->
> * @generated
> */
> public class Product
> extends bar.foo.AbstractPojo
> {
>
>
>
>
> /**
> * A toString method which prints the values of all EAttributes of this instance.
> * <!-- begin-user-doc -->
> * <!-- end-user-doc -->
> * @generated
> */
> @Override
> public String toString() {
> return "Product "
> ;
> }
> }
>
> 22: Syntax error, annotations are only available if source level is 1.5 or greater
>
> at org.eclipse.emf.texo.generator.ArtifactGenerator.run(ArtifactGenerator.java:145)
> at org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromUri(GenerateCode.java:96)
> ... 8 more
> Caused by: java.lang.IllegalStateException: package bar.foo;
>
> /**
> * A representation of the model object '<em><b>Product</b></em>'.
> * <!-- begin-user-doc -->
> * <!-- end-user-doc -->
> * @generated
> */
> public class Product
> extends bar.foo.AbstractPojo
> {
>
>
>
>
> /**
> * A toString method which prints the values of all EAttributes of this instance.
> * <!-- begin-user-doc -->
> * <!-- end-user-doc -->
> * @generated
> */
> @Override
> public String toString() {
> return "Product "
> ;
> }
> }
>
> 22: Syntax error, annotations are only available if source level is 1.5 or greater
>
> at org.eclipse.emf.texo.generator.ImportResolver.setSource(ImportResolver.java:494)
> at org.eclipse.emf.texo.generator.SourceMerger.organizeImports(SourceMerger.java:147)
> at org.eclipse.emf.texo.generator.SourceMerger.mergeImportAndFormat(SourceMerger.java:98)
> at org.eclipse.emf.texo.generator.SourceMerger.merge(SourceMerger.java:70)
> at org.eclipse.emf.texo.generator.MergingOutputHandler.beforeWriteAndClose(MergingOutputHandler.java:63)
> at org.eclipse.xpand2.output.Outlet.beforeWriteAndClose(Outlet.java:98)
> at org.eclipse.xpand2.output.FileHandleImpl.writeAndClose(FileHandleImpl.java:137)
> at org.eclipse.xpand2.output.OutputImpl.closeFile(OutputImpl.java:172)
> at org.eclipse.emf.texo.generator.ArtifactGenerator.run(ArtifactGenerator.java:98)
> ... 9 more
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: [Texo] Generator java version issue [message #1022648 is a reply to message #1022639] Fri, 22 March 2013 09:34 Go to previous messageGo to next message
techteam is currently offline techteamFriend
Messages: 54
Registered: September 2010
Member
Hi Martin,
thank for your quick answer.
No it's JDK Compliance level 1.6.
These point I also checked yesterday as first option.

Do some more tests:
old Juno SR1 with the old texo version -> works
old Juno SR1 with current texo version -> works
do this also with a very very simple model.

I seems, that the are a problem with the jdt compilation unit

Greetings
Heiko

Am 22.03.2013 10:20, schrieb Martin Taal:
> Hi Heiko,
> Hmm can you check the project properties > Java Compiler there is a jdk
> compliance option with a setting for source compatibility.
>
> Let me know what it says (I hope something < 1.5, then it is easy to
> solve :-).
>
> gr. Martin
>
>
> On 03/22/2013 09:52 AM, Heiko wrote:
>> Hi,
>> this week I switch from my Eclipse Juno JEE SR1 to SR2
>>
>> Yesterday, after some changes inside the model and xpand files I try
>> to generate my model again, and I've got an error
>> about a java version issue.
>>
>> After an update to the new Texo version it works.
>>
>> Today, it fail's again and I have no idea why.
>>
>>
>>
>> This is the complete error:
>>
>> eclipse.buildId=M20130204-1200
>> java.version=1.6.0_23
>> java.vendor=Sun Microsystems Inc.
>> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
>> Framework arguments: -product org.eclipse.epp.package.jee.product
>> Command-line arguments: -os win32 -ws win32 -arch x86 -product
>> org.eclipse.epp.package.jee.product
>>
>> Error
>> Fri Mar 22 09:35:17 CET 2013
>> Unhandled event loop exception
>>
>> java.lang.IllegalStateException:
>> java.lang.reflect.InvocationTargetException
>> at
>> org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.run(BaseGenerateAction.java:87)
>>
>> at
>> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
>> at
>> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
>>
>> at
>> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
>>
>> at
>> org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
>>
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
>> at
>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
>> at
>> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
>>
>> at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>>
>> at
>> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
>>
>> at
>> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
>>
>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
>> at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>>
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
>>
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>> at
>> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
>>
>> at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
>> Caused by: java.lang.reflect.InvocationTargetException
>> at
>> org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421)
>> at
>> org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
>>
>> at
>> org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:275)
>>
>> at
>> org.eclipse.ui.internal.progress.ProgressManager$3.run(ProgressManager.java:960)
>>
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
>> at
>> org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:995)
>>
>> at
>> org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:970)
>>
>> at
>> org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1166)
>>
>> at
>> org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.run(BaseGenerateAction.java:80)
>>
>> ... 29 more
>> Caused by: java.lang.IllegalStateException:
>> java.lang.IllegalStateException: package bar.foo;
>>
>> /**
>> * A representation of the model object '<em><b>Product</b></em>'.
>> * <!-- begin-user-doc -->
>> * <!-- end-user-doc -->
>> * @generated
>> */
>> public class Product
>> extends bar.foo.AbstractPojo
>> {
>>
>>
>>
>>
>> /**
>> * A toString method which prints the values of all EAttributes
>> of this instance.
>> * <!-- begin-user-doc -->
>> * <!-- end-user-doc -->
>> * @generated
>> */
>> @Override
>> public String toString() {
>> return "Product "
>> ;
>> }
>> }
>>
>> 22: Syntax error, annotations are only available if source level is
>> 1.5 or greater
>>
>> at
>> org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromUri(GenerateCode.java:99)
>>
>> at
>> org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromUris(GenerateCode.java:59)
>>
>> at
>> org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.generate(BaseGenerateAction.java:128)
>>
>> at
>> org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.generate(BaseGenerateAction.java:108)
>>
>> at
>> org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction$1.execute(BaseGenerateAction.java:76)
>>
>> at
>> org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
>>
>> at
>> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
>> at
>> org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
>>
>> at
>> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
>>
>> Caused by: java.lang.IllegalStateException: package bar.foo;
>>
>> /**
>> * A representation of the model object '<em><b>Product</b></em>'.
>> * <!-- begin-user-doc -->
>> * <!-- end-user-doc -->
>> * @generated
>> */
>> public class Product
>> extends bar.foo.AbstractPojo
>> {
>>
>>
>>
>>
>> /**
>> * A toString method which prints the values of all EAttributes
>> of this instance.
>> * <!-- begin-user-doc -->
>> * <!-- end-user-doc -->
>> * @generated
>> */
>> @Override
>> public String toString() {
>> return "Product "
>> ;
>> }
>> }
>>
>> 22: Syntax error, annotations are only available if source level is
>> 1.5 or greater
>>
>> at
>> org.eclipse.emf.texo.generator.ArtifactGenerator.run(ArtifactGenerator.java:145)
>>
>> at
>> org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromUri(GenerateCode.java:96)
>>
>> ... 8 more
>> Caused by: java.lang.IllegalStateException: package bar.foo;
>>
>> /**
>> * A representation of the model object '<em><b>Product</b></em>'.
>> * <!-- begin-user-doc -->
>> * <!-- end-user-doc -->
>> * @generated
>> */
>> public class Product
>> extends bar.foo.AbstractPojo
>> {
>>
>>
>>
>>
>> /**
>> * A toString method which prints the values of all EAttributes
>> of this instance.
>> * <!-- begin-user-doc -->
>> * <!-- end-user-doc -->
>> * @generated
>> */
>> @Override
>> public String toString() {
>> return "Product "
>> ;
>> }
>> }
>>
>> 22: Syntax error, annotations are only available if source level is
>> 1.5 or greater
>>
>> at
>> org.eclipse.emf.texo.generator.ImportResolver.setSource(ImportResolver.java:494)
>>
>> at
>> org.eclipse.emf.texo.generator.SourceMerger.organizeImports(SourceMerger.java:147)
>>
>> at
>> org.eclipse.emf.texo.generator.SourceMerger.mergeImportAndFormat(SourceMerger.java:98)
>>
>> at
>> org.eclipse.emf.texo.generator.SourceMerger.merge(SourceMerger.java:70)
>> at
>> org.eclipse.emf.texo.generator.MergingOutputHandler.beforeWriteAndClose(MergingOutputHandler.java:63)
>>
>> at
>> org.eclipse.xpand2.output.Outlet.beforeWriteAndClose(Outlet.java:98)
>> at
>> org.eclipse.xpand2.output.FileHandleImpl.writeAndClose(FileHandleImpl.java:137)
>>
>> at
>> org.eclipse.xpand2.output.OutputImpl.closeFile(OutputImpl.java:172)
>> at
>> org.eclipse.emf.texo.generator.ArtifactGenerator.run(ArtifactGenerator.java:98)
>>
>> ... 9 more
>>
>
>
Re: [Texo] Generator java version issue [message #1022653 is a reply to message #1022648] Fri, 22 March 2013 09:41 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5340
Registered: July 2009
Senior Member
Hi Heiko,
I am on sr1 still I see now. The texo build is done against the latest juno. But still let me download sr2 and try it
also. If you have not heard back from on this thread in a few days then feel free to ping me!

gr. Martin

On 03/22/2013 10:34 AM, Heiko wrote:
> Hi Martin,
> thank for your quick answer.
> No it's JDK Compliance level 1.6.
> These point I also checked yesterday as first option.
>
> Do some more tests:
> old Juno SR1 with the old texo version -> works
> old Juno SR1 with current texo version -> works
> do this also with a very very simple model.
>
> I seems, that the are a problem with the jdt compilation unit
>
> Greetings
> Heiko
>
> Am 22.03.2013 10:20, schrieb Martin Taal:
>> Hi Heiko,
>> Hmm can you check the project properties > Java Compiler there is a jdk
>> compliance option with a setting for source compatibility.
>>
>> Let me know what it says (I hope something < 1.5, then it is easy to
>> solve :-).
>>
>> gr. Martin
>>
>>
>> On 03/22/2013 09:52 AM, Heiko wrote:
>>> Hi,
>>> this week I switch from my Eclipse Juno JEE SR1 to SR2
>>>
>>> Yesterday, after some changes inside the model and xpand files I try
>>> to generate my model again, and I've got an error
>>> about a java version issue.
>>>
>>> After an update to the new Texo version it works.
>>>
>>> Today, it fail's again and I have no idea why.
>>>
>>>
>>>
>>> This is the complete error:
>>>
>>> eclipse.buildId=M20130204-1200
>>> java.version=1.6.0_23
>>> java.vendor=Sun Microsystems Inc.
>>> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
>>> Framework arguments: -product org.eclipse.epp.package.jee.product
>>> Command-line arguments: -os win32 -ws win32 -arch x86 -product
>>> org.eclipse.epp.package.jee.product
>>>
>>> Error
>>> Fri Mar 22 09:35:17 CET 2013
>>> Unhandled event loop exception
>>>
>>> java.lang.IllegalStateException:
>>> java.lang.reflect.InvocationTargetException
>>> at
>>> org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.run(BaseGenerateAction.java:87)
>>>
>>> at
>>> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
>>>
>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
>>> at
>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
>>> at
>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
>>> at
>>> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
>>>
>>> at
>>> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>>>
>>> at
>>> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
>>>
>>> at
>>> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
>>>
>>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
>>> at
>>> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>>>
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
>>>
>>> at
>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>>> at
>>> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
>>>
>>> at
>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
>>>
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>> at java.lang.reflect.Method.invoke(Unknown Source)
>>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
>>> Caused by: java.lang.reflect.InvocationTargetException
>>> at
>>> org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421)
>>> at
>>> org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
>>>
>>> at
>>> org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:275)
>>>
>>> at
>>> org.eclipse.ui.internal.progress.ProgressManager$3.run(ProgressManager.java:960)
>>>
>>> at
>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
>>> at
>>> org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:995)
>>>
>>> at
>>> org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:970)
>>>
>>> at
>>> org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1166)
>>>
>>> at
>>> org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.run(BaseGenerateAction.java:80)
>>>
>>> ... 29 more
>>> Caused by: java.lang.IllegalStateException:
>>> java.lang.IllegalStateException: package bar.foo;
>>>
>>> /**
>>> * A representation of the model object '<em><b>Product</b></em>'.
>>> * <!-- begin-user-doc -->
>>> * <!-- end-user-doc -->
>>> * @generated
>>> */
>>> public class Product
>>> extends bar.foo.AbstractPojo
>>> {
>>>
>>>
>>>
>>>
>>> /**
>>> * A toString method which prints the values of all EAttributes
>>> of this instance.
>>> * <!-- begin-user-doc -->
>>> * <!-- end-user-doc -->
>>> * @generated
>>> */
>>> @Override
>>> public String toString() {
>>> return "Product "
>>> ;
>>> }
>>> }
>>>
>>> 22: Syntax error, annotations are only available if source level is
>>> 1.5 or greater
>>>
>>> at
>>> org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromUri(GenerateCode.java:99)
>>>
>>> at
>>> org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromUris(GenerateCode.java:59)
>>>
>>> at
>>> org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.generate(BaseGenerateAction.java:128)
>>>
>>> at
>>> org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.generate(BaseGenerateAction.java:108)
>>>
>>> at
>>> org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction$1.execute(BaseGenerateAction.java:76)
>>>
>>> at
>>> org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
>>>
>>> at
>>> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
>>> at
>>> org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
>>>
>>> at
>>> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
>>>
>>> Caused by: java.lang.IllegalStateException: package bar.foo;
>>>
>>> /**
>>> * A representation of the model object '<em><b>Product</b></em>'.
>>> * <!-- begin-user-doc -->
>>> * <!-- end-user-doc -->
>>> * @generated
>>> */
>>> public class Product
>>> extends bar.foo.AbstractPojo
>>> {
>>>
>>>
>>>
>>>
>>> /**
>>> * A toString method which prints the values of all EAttributes
>>> of this instance.
>>> * <!-- begin-user-doc -->
>>> * <!-- end-user-doc -->
>>> * @generated
>>> */
>>> @Override
>>> public String toString() {
>>> return "Product "
>>> ;
>>> }
>>> }
>>>
>>> 22: Syntax error, annotations are only available if source level is
>>> 1.5 or greater
>>>
>>> at
>>> org.eclipse.emf.texo.generator.ArtifactGenerator.run(ArtifactGenerator.java:145)
>>>
>>> at
>>> org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromUri(GenerateCode.java:96)
>>>
>>> ... 8 more
>>> Caused by: java.lang.IllegalStateException: package bar.foo;
>>>
>>> /**
>>> * A representation of the model object '<em><b>Product</b></em>'.
>>> * <!-- begin-user-doc -->
>>> * <!-- end-user-doc -->
>>> * @generated
>>> */
>>> public class Product
>>> extends bar.foo.AbstractPojo
>>> {
>>>
>>>
>>>
>>>
>>> /**
>>> * A toString method which prints the values of all EAttributes
>>> of this instance.
>>> * <!-- begin-user-doc -->
>>> * <!-- end-user-doc -->
>>> * @generated
>>> */
>>> @Override
>>> public String toString() {
>>> return "Product "
>>> ;
>>> }
>>> }
>>>
>>> 22: Syntax error, annotations are only available if source level is
>>> 1.5 or greater
>>>
>>> at
>>> org.eclipse.emf.texo.generator.ImportResolver.setSource(ImportResolver.java:494)
>>>
>>> at
>>> org.eclipse.emf.texo.generator.SourceMerger.organizeImports(SourceMerger.java:147)
>>>
>>> at
>>> org.eclipse.emf.texo.generator.SourceMerger.mergeImportAndFormat(SourceMerger.java:98)
>>>
>>> at
>>> org.eclipse.emf.texo.generator.SourceMerger.merge(SourceMerger.java:70)
>>> at
>>> org.eclipse.emf.texo.generator.MergingOutputHandler.beforeWriteAndClose(MergingOutputHandler.java:63)
>>>
>>> at
>>> org.eclipse.xpand2.output.Outlet.beforeWriteAndClose(Outlet.java:98)
>>> at
>>> org.eclipse.xpand2.output.FileHandleImpl.writeAndClose(FileHandleImpl.java:137)
>>>
>>> at
>>> org.eclipse.xpand2.output.OutputImpl.closeFile(OutputImpl.java:172)
>>> at
>>> org.eclipse.emf.texo.generator.ArtifactGenerator.run(ArtifactGenerator.java:98)
>>>
>>> ... 9 more
>>>
>>
>>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: [Texo] Generator java version issue [message #1022669 is a reply to message #1022653] Fri, 22 March 2013 10:19 Go to previous messageGo to next message
techteam is currently offline techteamFriend
Messages: 54
Registered: September 2010
Member
Hi Martin,
I've found a solution:
After switch the jdk complicance to 1.5 rebuild workspace and than back
again to 1.6, it works fine.
But why I've got the error - I don't know. :/

Greetings
Heiko


Am 22.03.2013 10:41, schrieb Martin Taal:
> Hi Heiko,
> I am on sr1 still I see now. The texo build is done against the latest
> juno. But still let me download sr2 and try it also. If you have not
> heard back from on this thread in a few days then feel free to ping me!
>
> gr. Martin
>
> On 03/22/2013 10:34 AM, Heiko wrote:
>> Hi Martin,
>> thank for your quick answer.
>> No it's JDK Compliance level 1.6.
>> These point I also checked yesterday as first option.
>>
>> Do some more tests:
>> old Juno SR1 with the old texo version -> works
>> old Juno SR1 with current texo version -> works
>> do this also with a very very simple model.
>>
>> I seems, that the are a problem with the jdt compilation unit
>>
>> Greetings
>> Heiko
>>
>> Am 22.03.2013 10:20, schrieb Martin Taal:
>>> Hi Heiko,
>>> Hmm can you check the project properties > Java Compiler there is a jdk
>>> compliance option with a setting for source compatibility.
>>>
>>> Let me know what it says (I hope something < 1.5, then it is easy to
>>> solve :-).
>>>
>>> gr. Martin
>>>
>>>
>>> On 03/22/2013 09:52 AM, Heiko wrote:
>>>> Hi,
>>>> this week I switch from my Eclipse Juno JEE SR1 to SR2
>>>>
>>>> Yesterday, after some changes inside the model and xpand files I try
>>>> to generate my model again, and I've got an error
>>>> about a java version issue.
>>>>
>>>> After an update to the new Texo version it works.
>>>>
>>>> Today, it fail's again and I have no idea why.
>>>>
>>>>
>>>>
>>>> This is the complete error:
>>>>
>>>> eclipse.buildId=M20130204-1200
>>>> java.version=1.6.0_23
>>>> java.vendor=Sun Microsystems Inc.
>>>> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
>>>> Framework arguments: -product org.eclipse.epp.package.jee.product
>>>> Command-line arguments: -os win32 -ws win32 -arch x86 -product
>>>> org.eclipse.epp.package.jee.product
>>>>
>>>> Error
>>>> Fri Mar 22 09:35:17 CET 2013
>>>> Unhandled event loop exception
>>>>
>>>> java.lang.IllegalStateException:
>>>> java.lang.reflect.InvocationTargetException
>>>> at
>>>> org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.run(BaseGenerateAction.java:87)
>>>>
>>>>
>>>> at
>>>> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
>>>>
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
>>>>
>>>>
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
>>>>
>>>>
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
>>>>
>>>>
>>>> at
>>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
>>>> at
>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
>>>> at
>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
>>>> at
>>>> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
>>>>
>>>>
>>>> at
>>>> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>>>>
>>>>
>>>> at
>>>> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
>>>>
>>>>
>>>> at
>>>> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
>>>>
>>>>
>>>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
>>>> at
>>>> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>>>>
>>>>
>>>> at
>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
>>>>
>>>>
>>>> at
>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>>>> at
>>>> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
>>>>
>>>>
>>>> at
>>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>>>>
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>>>>
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>>>>
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
>>>>
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
>>>>
>>>>
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>> at java.lang.reflect.Method.invoke(Unknown Source)
>>>> at
>>>> org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
>>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
>>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
>>>> Caused by: java.lang.reflect.InvocationTargetException
>>>> at
>>>> org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421)
>>>> at
>>>> org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
>>>>
>>>>
>>>> at
>>>> org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:275)
>>>>
>>>>
>>>> at
>>>> org.eclipse.ui.internal.progress.ProgressManager$3.run(ProgressManager.java:960)
>>>>
>>>>
>>>> at
>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
>>>> at
>>>> org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:995)
>>>>
>>>>
>>>> at
>>>> org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:970)
>>>>
>>>>
>>>> at
>>>> org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1166)
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.run(BaseGenerateAction.java:80)
>>>>
>>>>
>>>> ... 29 more
>>>> Caused by: java.lang.IllegalStateException:
>>>> java.lang.IllegalStateException: package bar.foo;
>>>>
>>>> /**
>>>> * A representation of the model object '<em><b>Product</b></em>'.
>>>> * <!-- begin-user-doc -->
>>>> * <!-- end-user-doc -->
>>>> * @generated
>>>> */
>>>> public class Product
>>>> extends bar.foo.AbstractPojo
>>>> {
>>>>
>>>>
>>>>
>>>>
>>>> /**
>>>> * A toString method which prints the values of all EAttributes
>>>> of this instance.
>>>> * <!-- begin-user-doc -->
>>>> * <!-- end-user-doc -->
>>>> * @generated
>>>> */
>>>> @Override
>>>> public String toString() {
>>>> return "Product "
>>>> ;
>>>> }
>>>> }
>>>>
>>>> 22: Syntax error, annotations are only available if source level is
>>>> 1.5 or greater
>>>>
>>>> at
>>>> org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromUri(GenerateCode.java:99)
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromUris(GenerateCode.java:59)
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.generate(BaseGenerateAction.java:128)
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.generate(BaseGenerateAction.java:108)
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction$1.execute(BaseGenerateAction.java:76)
>>>>
>>>>
>>>> at
>>>> org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
>>>>
>>>>
>>>> at
>>>> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
>>>> at
>>>> org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
>>>>
>>>>
>>>> at
>>>> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
>>>>
>>>>
>>>> Caused by: java.lang.IllegalStateException: package bar.foo;
>>>>
>>>> /**
>>>> * A representation of the model object '<em><b>Product</b></em>'.
>>>> * <!-- begin-user-doc -->
>>>> * <!-- end-user-doc -->
>>>> * @generated
>>>> */
>>>> public class Product
>>>> extends bar.foo.AbstractPojo
>>>> {
>>>>
>>>>
>>>>
>>>>
>>>> /**
>>>> * A toString method which prints the values of all EAttributes
>>>> of this instance.
>>>> * <!-- begin-user-doc -->
>>>> * <!-- end-user-doc -->
>>>> * @generated
>>>> */
>>>> @Override
>>>> public String toString() {
>>>> return "Product "
>>>> ;
>>>> }
>>>> }
>>>>
>>>> 22: Syntax error, annotations are only available if source level is
>>>> 1.5 or greater
>>>>
>>>> at
>>>> org.eclipse.emf.texo.generator.ArtifactGenerator.run(ArtifactGenerator.java:145)
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromUri(GenerateCode.java:96)
>>>>
>>>>
>>>> ... 8 more
>>>> Caused by: java.lang.IllegalStateException: package bar.foo;
>>>>
>>>> /**
>>>> * A representation of the model object '<em><b>Product</b></em>'.
>>>> * <!-- begin-user-doc -->
>>>> * <!-- end-user-doc -->
>>>> * @generated
>>>> */
>>>> public class Product
>>>> extends bar.foo.AbstractPojo
>>>> {
>>>>
>>>>
>>>>
>>>>
>>>> /**
>>>> * A toString method which prints the values of all EAttributes
>>>> of this instance.
>>>> * <!-- begin-user-doc -->
>>>> * <!-- end-user-doc -->
>>>> * @generated
>>>> */
>>>> @Override
>>>> public String toString() {
>>>> return "Product "
>>>> ;
>>>> }
>>>> }
>>>>
>>>> 22: Syntax error, annotations are only available if source level is
>>>> 1.5 or greater
>>>>
>>>> at
>>>> org.eclipse.emf.texo.generator.ImportResolver.setSource(ImportResolver.java:494)
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.texo.generator.SourceMerger.organizeImports(SourceMerger.java:147)
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.texo.generator.SourceMerger.mergeImportAndFormat(SourceMerger.java:98)
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.texo.generator.SourceMerger.merge(SourceMerger.java:70)
>>>> at
>>>> org.eclipse.emf.texo.generator.MergingOutputHandler.beforeWriteAndClose(MergingOutputHandler.java:63)
>>>>
>>>>
>>>> at
>>>> org.eclipse.xpand2.output.Outlet.beforeWriteAndClose(Outlet.java:98)
>>>> at
>>>> org.eclipse.xpand2.output.FileHandleImpl.writeAndClose(FileHandleImpl.java:137)
>>>>
>>>>
>>>> at
>>>> org.eclipse.xpand2.output.OutputImpl.closeFile(OutputImpl.java:172)
>>>> at
>>>> org.eclipse.emf.texo.generator.ArtifactGenerator.run(ArtifactGenerator.java:98)
>>>>
>>>>
>>>> ... 9 more
>>>>
>>>
>>>
>>
>
>
Re: [Texo] Generator java version issue [message #1022670 is a reply to message #1022648] Fri, 22 March 2013 10:19 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 4188
Registered: July 2009
Senior Member
Hi

Make sure you do a clean all and a full rebuild.

Make sure you haven't got a 1.5 JRE in use for some projects and a
1.6/1.7 for others,. When you have problems disable all but one recent
JRE and clean and rebuild and clean again.

Regards

Ed Willink

On 22/03/2013 09:34, Heiko wrote:
> Hi Martin,
> thank for your quick answer.
> No it's JDK Compliance level 1.6.
> These point I also checked yesterday as first option.
>
> Do some more tests:
> old Juno SR1 with the old texo version -> works
> old Juno SR1 with current texo version -> works
> do this also with a very very simple model.
>
> I seems, that the are a problem with the jdt compilation unit
>
> Greetings
> Heiko
>
> Am 22.03.2013 10:20, schrieb Martin Taal:
>> Hi Heiko,
>> Hmm can you check the project properties > Java Compiler there is a jdk
>> compliance option with a setting for source compatibility.
>>
>> Let me know what it says (I hope something < 1.5, then it is easy to
>> solve :-).
>>
>> gr. Martin
>>
>>
>> On 03/22/2013 09:52 AM, Heiko wrote:
>>> Hi,
>>> this week I switch from my Eclipse Juno JEE SR1 to SR2
>>>
>>> Yesterday, after some changes inside the model and xpand files I try
>>> to generate my model again, and I've got an error
>>> about a java version issue.
>>>
>>> After an update to the new Texo version it works.
>>>
>>> Today, it fail's again and I have no idea why.
>>>
>>>
>>>
>>> This is the complete error:
>>>
>>> eclipse.buildId=M20130204-1200
>>> java.version=1.6.0_23
>>> java.vendor=Sun Microsystems Inc.
>>> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
>>> Framework arguments: -product org.eclipse.epp.package.jee.product
>>> Command-line arguments: -os win32 -ws win32 -arch x86 -product
>>> org.eclipse.epp.package.jee.product
>>>
>>> Error
>>> Fri Mar 22 09:35:17 CET 2013
>>> Unhandled event loop exception
>>>
>>> java.lang.IllegalStateException:
>>> java.lang.reflect.InvocationTargetException
>>> at
>>> org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.run(BaseGenerateAction.java:87)
>>>
>>>
>>> at
>>> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
>>>
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
>>>
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
>>>
>>>
>>> at
>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
>>> at
>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
>>> at
>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
>>> at
>>> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
>>>
>>>
>>> at
>>> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>>>
>>>
>>> at
>>> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
>>>
>>>
>>> at
>>> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
>>>
>>>
>>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
>>> at
>>> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>>>
>>>
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
>>>
>>>
>>> at
>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>>> at
>>> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
>>>
>>>
>>> at
>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>>>
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>>>
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>>>
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
>>>
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
>>>
>>>
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>> at java.lang.reflect.Method.invoke(Unknown Source)
>>> at
>>> org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
>>> Caused by: java.lang.reflect.InvocationTargetException
>>> at
>>> org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421)
>>> at
>>> org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
>>>
>>>
>>> at
>>> org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:275)
>>>
>>>
>>> at
>>> org.eclipse.ui.internal.progress.ProgressManager$3.run(ProgressManager.java:960)
>>>
>>>
>>> at
>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
>>> at
>>> org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:995)
>>>
>>>
>>> at
>>> org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:970)
>>>
>>>
>>> at
>>> org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1166)
>>>
>>>
>>> at
>>> org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.run(BaseGenerateAction.java:80)
>>>
>>>
>>> ... 29 more
>>> Caused by: java.lang.IllegalStateException:
>>> java.lang.IllegalStateException: package bar.foo;
>>>
>>> /**
>>> * A representation of the model object '<em><b>Product</b></em>'.
>>> * <!-- begin-user-doc -->
>>> * <!-- end-user-doc -->
>>> * @generated
>>> */
>>> public class Product
>>> extends bar.foo.AbstractPojo
>>> {
>>>
>>>
>>>
>>>
>>> /**
>>> * A toString method which prints the values of all EAttributes
>>> of this instance.
>>> * <!-- begin-user-doc -->
>>> * <!-- end-user-doc -->
>>> * @generated
>>> */
>>> @Override
>>> public String toString() {
>>> return "Product "
>>> ;
>>> }
>>> }
>>>
>>> 22: Syntax error, annotations are only available if source level is
>>> 1.5 or greater
>>>
>>> at
>>> org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromUri(GenerateCode.java:99)
>>>
>>>
>>> at
>>> org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromUris(GenerateCode.java:59)
>>>
>>>
>>> at
>>> org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.generate(BaseGenerateAction.java:128)
>>>
>>>
>>> at
>>> org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.generate(BaseGenerateAction.java:108)
>>>
>>>
>>> at
>>> org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction$1.execute(BaseGenerateAction.java:76)
>>>
>>>
>>> at
>>> org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
>>>
>>>
>>> at
>>> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
>>> at
>>> org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
>>>
>>>
>>> at
>>> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
>>>
>>>
>>> Caused by: java.lang.IllegalStateException: package bar.foo;
>>>
>>> /**
>>> * A representation of the model object '<em><b>Product</b></em>'.
>>> * <!-- begin-user-doc -->
>>> * <!-- end-user-doc -->
>>> * @generated
>>> */
>>> public class Product
>>> extends bar.foo.AbstractPojo
>>> {
>>>
>>>
>>>
>>>
>>> /**
>>> * A toString method which prints the values of all EAttributes
>>> of this instance.
>>> * <!-- begin-user-doc -->
>>> * <!-- end-user-doc -->
>>> * @generated
>>> */
>>> @Override
>>> public String toString() {
>>> return "Product "
>>> ;
>>> }
>>> }
>>>
>>> 22: Syntax error, annotations are only available if source level is
>>> 1.5 or greater
>>>
>>> at
>>> org.eclipse.emf.texo.generator.ArtifactGenerator.run(ArtifactGenerator.java:145)
>>>
>>>
>>> at
>>> org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromUri(GenerateCode.java:96)
>>>
>>>
>>> ... 8 more
>>> Caused by: java.lang.IllegalStateException: package bar.foo;
>>>
>>> /**
>>> * A representation of the model object '<em><b>Product</b></em>'.
>>> * <!-- begin-user-doc -->
>>> * <!-- end-user-doc -->
>>> * @generated
>>> */
>>> public class Product
>>> extends bar.foo.AbstractPojo
>>> {
>>>
>>>
>>>
>>>
>>> /**
>>> * A toString method which prints the values of all EAttributes
>>> of this instance.
>>> * <!-- begin-user-doc -->
>>> * <!-- end-user-doc -->
>>> * @generated
>>> */
>>> @Override
>>> public String toString() {
>>> return "Product "
>>> ;
>>> }
>>> }
>>>
>>> 22: Syntax error, annotations are only available if source level is
>>> 1.5 or greater
>>>
>>> at
>>> org.eclipse.emf.texo.generator.ImportResolver.setSource(ImportResolver.java:494)
>>>
>>>
>>> at
>>> org.eclipse.emf.texo.generator.SourceMerger.organizeImports(SourceMerger.java:147)
>>>
>>>
>>> at
>>> org.eclipse.emf.texo.generator.SourceMerger.mergeImportAndFormat(SourceMerger.java:98)
>>>
>>>
>>> at
>>> org.eclipse.emf.texo.generator.SourceMerger.merge(SourceMerger.java:70)
>>> at
>>> org.eclipse.emf.texo.generator.MergingOutputHandler.beforeWriteAndClose(MergingOutputHandler.java:63)
>>>
>>>
>>> at
>>> org.eclipse.xpand2.output.Outlet.beforeWriteAndClose(Outlet.java:98)
>>> at
>>> org.eclipse.xpand2.output.FileHandleImpl.writeAndClose(FileHandleImpl.java:137)
>>>
>>>
>>> at
>>> org.eclipse.xpand2.output.OutputImpl.closeFile(OutputImpl.java:172)
>>> at
>>> org.eclipse.emf.texo.generator.ArtifactGenerator.run(ArtifactGenerator.java:98)
>>>
>>>
>>> ... 9 more
>>>
>>
>>
>
Re: [Texo] Generator java version issue [message #1384178 is a reply to message #1022669] Wed, 28 May 2014 10:25 Go to previous messageGo to next message
Atang Sutisna is currently offline Atang SutisnaFriend
Messages: 4
Registered: May 2014
Junior Member
I am also getting this issue with Eclipse Kepler 4.3SR2 and Texo 0.1.0.v201312121235.
Strangely, the stack trace seem to be inconsistent on some (?) invocations.

Is there a workaround?

JRE in Eclipse: java-8-oracle 1.8.0-b132
Project level: JavaSE-1.7

eclipse.buildId=4.3.2.M20140221-1700
java.version=1.8.0
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product

EMFT Texo (Incubation) 0.1.0.v201312121235 org.eclipse.emf.texo.feature.group Eclipse Modeling Project
EMFT Texo Runtime Libraries (Incubation) 0.1.0.v201312121235 org.eclipse.emf.texo.runtime.core.feature.group Eclipse Modeling Project
EMFT Texo SDK (Incubation) 0.1.0.v201312121235 org.eclipse.emf.texo.sdk.feature.group Eclipse Modeling Project


/**
* A representation of the model object '<em><b>StorageBin</b></em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@javax.persistence.Entity(name="InventoryBalance_StorageBin")
public class StorageBin
{



/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@javax.persistence.Basic(optional=false)
private java.lang.String id = null;


/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* It uses GeneralInventoryStatus instead of GenericStatus in order to avoid dependency to an "shared" enum type in PostgreSQL,
so the Inventory module maintains its own Status enum type.
* <!-- end-model-doc -->
* @generated
*/
@javax.persistence.Basic(optional=false)
@javax.persistence.Enumerated(javax.persistence.EnumType.STRING)
private id.co.bippo.schema.inventorybalance._1.GeneralInventoryStatus status = null;


/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@javax.persistence.Basic(optional=false)
private java.lang.String name = null;


/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@javax.persistence.ManyToOne(cascade={javax.persistence.CascadeType.MERGE,javax.persistence.CascadeType.PERSIST,javax.persistence.CascadeType.REFRESH})
private id.co.bippo.schema.inventorybalance._1.Warehouse warehouse = null;


/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@javax.persistence.Basic()
private org.joda.time.DateTime creationTime = null;


/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@javax.persistence.Basic()
private org.joda.time.DateTime modificationTime = null;


/**
* Returns the value of '<em><b>id</b></em>' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of '<em><b>id</b></em>' feature
* @generated
*/
public java.lang.String getId() {
return id;
}

/**
* Sets the '{@link StorageBin#getId() <em>id</em>}' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param newId the new value of the '{@link StorageBin#getId() id}' feature.
* @generated
*/
public void setId(java.lang.String newId) {
id = newId;
}
/**
* Returns the value of '<em><b>status</b></em>' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* It uses GeneralInventoryStatus instead of GenericStatus in order to avoid dependency to an "shared" enum type in PostgreSQL,
so the Inventory module maintains its own Status enum type.
* <!-- end-model-doc -->
* @return the value of '<em><b>status</b></em>' feature
* @generated
*/
public id.co.bippo.schema.inventorybalance._1.GeneralInventoryStatus getStatus() {
return status;
}

/**
* Sets the '{@link StorageBin#getStatus() <em>status</em>}' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* It uses GeneralInventoryStatus instead of GenericStatus in order to avoid dependency to an "shared" enum type in PostgreSQL,
so the Inventory module maintains its own Status enum type.
* <!-- end-model-doc -->
* @param newStatus the new value of the '{@link StorageBin#getStatus() status}' feature.
* @generated
*/
public void setStatus(id.co.bippo.schema.inventorybalance._1.GeneralInventoryStatus newStatus) {
status = newStatus;
}
/**
* Returns the value of '<em><b>name</b></em>' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of '<em><b>name</b></em>' feature
* @generated
*/
public java.lang.String getName() {
return name;
}

/**
* Sets the '{@link StorageBin#getName() <em>name</em>}' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param newName the new value of the '{@link StorageBin#getName() name}' feature.
* @generated
*/
public void setName(java.lang.String newName) {
name = newName;
}
/**
* Returns the value of '<em><b>warehouse</b></em>' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of '<em><b>warehouse</b></em>' feature
* @generated
*/
public id.co.bippo.schema.inventorybalance._1.Warehouse getWarehouse() {
return warehouse;
}

/**
* Sets the '{@link StorageBin#getWarehouse() <em>warehouse</em>}' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param newWarehouse the new value of the '{@link StorageBin#getWarehouse() warehouse}' feature.
* @generated
*/
public void setWarehouse(id.co.bippo.schema.inventorybalance._1.Warehouse newWarehouse) {
warehouse = newWarehouse;
}
/**
* Returns the value of '<em><b>creationTime</b></em>' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of '<em><b>creationTime</b></em>' feature
* @generated
*/
public org.joda.time.DateTime getCreationTime() {
return creationTime;
}

/**
* Sets the '{@link StorageBin#getCreationTime() <em>creationTime</em>}' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param newCreationTime the new value of the '{@link StorageBin#getCreationTime() creationTime}' feature.
* @generated
*/
public void setCreationTime(org.joda.time.DateTime newCreationTime) {
creationTime = newCreationTime;
}
/**
* Returns the value of '<em><b>modificationTime</b></em>' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of '<em><b>modificationTime</b></em>' feature
* @generated
*/
public org.joda.time.DateTime getModificationTime() {
return modificationTime;
}

/**
* Sets the '{@link StorageBin#getModificationTime() <em>modificationTime</em>}' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param newModificationTime the new value of the '{@link StorageBin#getModificationTime() modificationTime}' feature.
* @generated
*/
public void setModificationTime(org.joda.time.DateTime newModificationTime) {
modificationTime = newModificationTime;
}

/**
* A toString method which prints the values of all EAttributes of this instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return "StorageBin "
+ " [id: " + getId() + "]"
+ " [status: " + getStatus() + "]"
+ " [name: " + getName() + "]"
+ " [creationTime: " + getCreationTime() + "]"
+ " [modificationTime: " + getModificationTime() + "]"
;
}
}

9: Syntax error, annotations are only available if source level is 1.5 or greater
20: Syntax error, annotations are only available if source level is 1.5 or greater
33: Syntax error, annotations are only available if source level is 1.5 or greater
34: Syntax error, annotations are only available if source level is 1.5 or greater
43: Syntax error, annotations are only available if source level is 1.5 or greater
52: Syntax error, annotations are only available if source level is 1.5 or greater
61: Syntax error, annotations are only available if source level is 1.5 or greater
70: Syntax error, annotations are only available if source level is 1.5 or greater
227: Syntax error, annotations are only available if source level is 1.5 or greater

at org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromModelFile(GenerateCode.java:101)
at org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromModelFiles(GenerateCode.java:60)
at org.eclipse.emf.texo.orm.annotator.GenerateModelJPACode.generateFromModelFiles(GenerateModelJPACode.java:38)
at org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.generate(BaseGenerateAction.java:127)
at org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.generate(BaseGenerateAction.java:107)
at org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction$1.execute(BaseGenerateAction.java:75)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2345)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: java.lang.IllegalStateException: package id.co.bippo.schema.inventorybalance._1;

/**
* A representation of the model object '<em><b>StorageBin</b></em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@javax.persistence.Entity(name="InventoryBalance_StorageBin")
public class StorageBin
{



/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@javax.persistence.Basic(optional=false)
private java.lang.String id = null;


/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* It uses GeneralInventoryStatus instead of GenericStatus in order to avoid dependency to an "shared" enum type in PostgreSQL,
so the Inventory module maintains its own Status enum type.
* <!-- end-model-doc -->
* @generated
*/
@javax.persistence.Basic(optional=false)
@javax.persistence.Enumerated(javax.persistence.EnumType.STRING)
private id.co.bippo.schema.inventorybalance._1.GeneralInventoryStatus status = null;


/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@javax.persistence.Basic(optional=false)
private java.lang.String name = null;


/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@javax.persistence.ManyToOne(cascade={javax.persistence.CascadeType.MERGE,javax.persistence.CascadeType.PERSIST,javax.persistence.CascadeType.REFRESH})
private id.co.bippo.schema.inventorybalance._1.Warehouse warehouse = null;


/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@javax.persistence.Basic()
private org.joda.time.DateTime creationTime = null;


/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@javax.persistence.Basic()
private org.joda.time.DateTime modificationTime = null;


/**
* Returns the value of '<em><b>id</b></em>' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of '<em><b>id</b></em>' feature
* @generated
*/
public java.lang.String getId() {
return id;
}

/**
* Sets the '{@link StorageBin#getId() <em>id</em>}' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param newId the new value of the '{@link StorageBin#getId() id}' feature.
* @generated
*/
public void setId(java.lang.String newId) {
id = newId;
}
/**
* Returns the value of '<em><b>status</b></em>' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* It uses GeneralInventoryStatus instead of GenericStatus in order to avoid dependency to an "shared" enum type in PostgreSQL,
so the Inventory module maintains its own Status enum type.
* <!-- end-model-doc -->
* @return the value of '<em><b>status</b></em>' feature
* @generated
*/
public id.co.bippo.schema.inventorybalance._1.GeneralInventoryStatus getStatus() {
return status;
}

/**
* Sets the '{@link StorageBin#getStatus() <em>status</em>}' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* It uses GeneralInventoryStatus instead of GenericStatus in order to avoid dependency to an "shared" enum type in PostgreSQL,
so the Inventory module maintains its own Status enum type.
* <!-- end-model-doc -->
* @param newStatus the new value of the '{@link StorageBin#getStatus() status}' feature.
* @generated
*/
public void setStatus(id.co.bippo.schema.inventorybalance._1.GeneralInventoryStatus newStatus) {
status = newStatus;
}
/**
* Returns the value of '<em><b>name</b></em>' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of '<em><b>name</b></em>' feature
* @generated
*/
public java.lang.String getName() {
return name;
}

/**
* Sets the '{@link StorageBin#getName() <em>name</em>}' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param newName the new value of the '{@link StorageBin#getName() name}' feature.
* @generated
*/
public void setName(java.lang.String newName) {
name = newName;
}
/**
* Returns the value of '<em><b>warehouse</b></em>' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of '<em><b>warehouse</b></em>' feature
* @generated
*/
public id.co.bippo.schema.inventorybalance._1.Warehouse getWarehouse() {
return warehouse;
}

/**
* Sets the '{@link StorageBin#getWarehouse() <em>warehouse</em>}' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param newWarehouse the new value of the '{@link StorageBin#getWarehouse() warehouse}' feature.
* @generated
*/
public void setWarehouse(id.co.bippo.schema.inventorybalance._1.Warehouse newWarehouse) {
warehouse = newWarehouse;
}
/**
* Returns the value of '<em><b>creationTime</b></em>' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of '<em><b>creationTime</b></em>' feature
* @generated
*/
public org.joda.time.DateTime getCreationTime() {
return creationTime;
}

/**
* Sets the '{@link StorageBin#getCreationTime() <em>creationTime</em>}' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param newCreationTime the new value of the '{@link StorageBin#getCreationTime() creationTime}' feature.
* @generated
*/
public void setCreationTime(org.joda.time.DateTime newCreationTime) {
creationTime = newCreationTime;
}
/**
* Returns the value of '<em><b>modificationTime</b></em>' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of '<em><b>modificationTime</b></em>' feature
* @generated
*/
public org.joda.time.DateTime getModificationTime() {
return modificationTime;
}

/**
* Sets the '{@link StorageBin#getModificationTime() <em>modificationTime</em>}' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param newModificationTime the new value of the '{@link StorageBin#getModificationTime() modificationTime}' feature.
* @generated
*/
public void setModificationTime(org.joda.time.DateTime newModificationTime) {
modificationTime = newModificationTime;
}

/**
* A toString method which prints the values of all EAttributes of this instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return "StorageBin "
+ " [id: " + getId() + "]"
+ " [status: " + getStatus() + "]"
+ " [name: " + getName() + "]"
+ " [creationTime: " + getCreationTime() + "]"
+ " [modificationTime: " + getModificationTime() + "]"
;
}
}

9: Syntax error, annotations are only available if source level is 1.5 or greater
20: Syntax error, annotations are only available if source level is 1.5 or greater
33: Syntax error, annotations are only available if source level is 1.5 or greater
34: Syntax error, annotations are only available if source level is 1.5 or greater
43: Syntax error, annotations are only available if source level is 1.5 or greater
52: Syntax error, annotations are only available if source level is 1.5 or greater
61: Syntax error, annotations are only available if source level is 1.5 or greater
70: Syntax error, annotations are only available if source level is 1.5 or greater
227: Syntax error, annotations are only available if source level is 1.5 or greater

at org.eclipse.emf.texo.generator.ArtifactGenerator.run(ArtifactGenerator.java:145)
at org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromModelFile(GenerateCode.java:98)
... 9 more
Caused by: java.lang.IllegalStateException: package id.co.bippo.schema.inventorybalance._1;

/**
* A representation of the model object '<em><b>StorageBin</b></em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@javax.persistence.Entity(name="InventoryBalance_StorageBin")
public class StorageBin
{



/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@javax.persistence.Basic(optional=false)
private java.lang.String id = null;


/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* It uses GeneralInventoryStatus instead of GenericStatus in order to avoid dependency to an "shared" enum type in PostgreSQL,
so the Inventory module maintains its own Status enum type.
* <!-- end-model-doc -->
* @generated
*/
@javax.persistence.Basic(optional=false)
@javax.persistence.Enumerated(javax.persistence.EnumType.STRING)
private id.co.bippo.schema.inventorybalance._1.GeneralInventoryStatus status = null;


/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@javax.persistence.Basic(optional=false)
private java.lang.String name = null;


/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@javax.persistence.ManyToOne(cascade={javax.persistence.CascadeType.MERGE,javax.persistence.CascadeType.PERSIST,javax.persistence.CascadeType.REFRESH})
private id.co.bippo.schema.inventorybalance._1.Warehouse warehouse = null;


/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@javax.persistence.Basic()
private org.joda.time.DateTime creationTime = null;


/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@javax.persistence.Basic()
private org.joda.time.DateTime modificationTime = null;


/**
* Returns the value of '<em><b>id</b></em>' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of '<em><b>id</b></em>' feature
* @generated
*/
public java.lang.String getId() {
return id;
}

/**
* Sets the '{@link StorageBin#getId() <em>id</em>}' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param newId the new value of the '{@link StorageBin#getId() id}' feature.
* @generated
*/
public void setId(java.lang.String newId) {
id = newId;
}
/**
* Returns the value of '<em><b>status</b></em>' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* It uses GeneralInventoryStatus instead of GenericStatus in order to avoid dependency to an "shared" enum type in PostgreSQL,
so the Inventory module maintains its own Status enum type.
* <!-- end-model-doc -->
* @return the value of '<em><b>status</b></em>' feature
* @generated
*/
public id.co.bippo.schema.inventorybalance._1.GeneralInventoryStatus getStatus() {
return status;
}

/**
* Sets the '{@link StorageBin#getStatus() <em>status</em>}' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* It uses GeneralInventoryStatus instead of GenericStatus in order to avoid dependency to an "shared" enum type in PostgreSQL,
so the Inventory module maintains its own Status enum type.
* <!-- end-model-doc -->
* @param newStatus the new value of the '{@link StorageBin#getStatus() status}' feature.
* @generated
*/
public void setStatus(id.co.bippo.schema.inventorybalance._1.GeneralInventoryStatus newStatus) {
status = newStatus;
}
/**
* Returns the value of '<em><b>name</b></em>' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of '<em><b>name</b></em>' feature
* @generated
*/
public java.lang.String getName() {
return name;
}

/**
* Sets the '{@link StorageBin#getName() <em>name</em>}' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param newName the new value of the '{@link StorageBin#getName() name}' feature.
* @generated
*/
public void setName(java.lang.String newName) {
name = newName;
}
/**
* Returns the value of '<em><b>warehouse</b></em>' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of '<em><b>warehouse</b></em>' feature
* @generated
*/
public id.co.bippo.schema.inventorybalance._1.Warehouse getWarehouse() {
return warehouse;
}

/**
* Sets the '{@link StorageBin#getWarehouse() <em>warehouse</em>}' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param newWarehouse the new value of the '{@link StorageBin#getWarehouse() warehouse}' feature.
* @generated
*/
public void setWarehouse(id.co.bippo.schema.inventorybalance._1.Warehouse newWarehouse) {
warehouse = newWarehouse;
}
/**
* Returns the value of '<em><b>creationTime</b></em>' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of '<em><b>creationTime</b></em>' feature
* @generated
*/
public org.joda.time.DateTime getCreationTime() {
return creationTime;
}

/**
* Sets the '{@link StorageBin#getCreationTime() <em>creationTime</em>}' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param newCreationTime the new value of the '{@link StorageBin#getCreationTime() creationTime}' feature.
* @generated
*/
public void setCreationTime(org.joda.time.DateTime newCreationTime) {
creationTime = newCreationTime;
}
/**
* Returns the value of '<em><b>modificationTime</b></em>' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of '<em><b>modificationTime</b></em>' feature
* @generated
*/
public org.joda.time.DateTime getModificationTime() {
return modificationTime;
}

/**
* Sets the '{@link StorageBin#getModificationTime() <em>modificationTime</em>}' feature.
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param newModificationTime the new value of the '{@link StorageBin#getModificationTime() modificationTime}' feature.
* @generated
*/
public void setModificationTime(org.joda.time.DateTime newModificationTime) {
modificationTime = newModificationTime;
}

/**
* A toString method which prints the values of all EAttributes of this instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return "StorageBin "
+ " [id: " + getId() + "]"
+ " [status: " + getStatus() + "]"
+ " [name: " + getName() + "]"
+ " [creationTime: " + getCreationTime() + "]"
+ " [modificationTime: " + getModificationTime() + "]"
;
}
}

9: Syntax error, annotations are only available if source level is 1.5 or greater
20: Syntax error, annotations are only available if source level is 1.5 or greater
33: Syntax error, annotations are only available if source level is 1.5 or greater
34: Syntax error, annotations are only available if source level is 1.5 or greater
43: Syntax error, annotations are only available if source level is 1.5 or greater
52: Syntax error, annotations are only available if source level is 1.5 or greater
61: Syntax error, annotations are only available if source level is 1.5 or greater
70: Syntax error, annotations are only available if source level is 1.5 or greater
227: Syntax error, annotations are only available if source level is 1.5 or greater

at org.eclipse.emf.texo.generator.ImportResolver.setSource(ImportResolver.java:494)
at org.eclipse.emf.texo.generator.SourceMerger.organizeImports(SourceMerger.java:147)
at org.eclipse.emf.texo.generator.SourceMerger.merge(SourceMerger.java:77)
at org.eclipse.emf.texo.generator.MergingOutputHandler.beforeWriteAndClose(MergingOutputHandler.java:63)
at org.eclipse.xpand2.output.Outlet.beforeWriteAndClose(Outlet.java:98)
at org.eclipse.xpand2.output.FileHandleImpl.writeAndClose(FileHandleImpl.java:137)
at org.eclipse.xpand2.output.OutputImpl.closeFile(OutputImpl.java:173)
at org.eclipse.emf.texo.generator.ArtifactGenerator.run(ArtifactGenerator.java:98)
... 10 more


java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException
at org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.run(BaseGenerateAction.java:86)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Caused by: java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:275)
at org.eclipse.ui.internal.progress.ProgressManager$3.run(ProgressManager.java:960)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:995)
at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:970)
at org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1166)
at org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.run(BaseGenerateAction.java:79)
... 30 more
Caused by: java.lang.IllegalStateException: java.lang.IllegalStateException: package id.co.bippo.schema.inventorybalance._1;


Re: [Texo] Generator java version issue [message #1384195 is a reply to message #1022669] Wed, 28 May 2014 11:28 Go to previous messageGo to next message
Atang Sutisna is currently offline Atang SutisnaFriend
Messages: 4
Registered: May 2014
Junior Member
I've found a solution for my case :

Previously only Oracle JDK 8 is available in Preferences > Java.

I added OpenJDK 7 to available JRE, now Texo can generate the model successfully.
Re: [Texo] Generator java version issue [message #1384200 is a reply to message #1022669] Wed, 28 May 2014 11:41 Go to previous messageGo to next message
Atang Sutisna is currently offline Atang SutisnaFriend
Messages: 4
Registered: May 2014
Junior Member
So it seems Texo is not yet compatible with JDK 8??
icon5.gif  Re: [Texo] Generator java version issue [message #1384254 is a reply to message #1384200] Wed, 28 May 2014 14:27 Go to previous messageGo to next message
Hendy Irawan is currently offline Hendy IrawanFriend
Messages: 6
Registered: May 2014
Junior Member
We're already using Texo for JPA annotated model generation and we're planning to move from Java7 to Java8 soon.

Is Java8 support currently planned?
Re: [Texo] Generator java version issue [message #1384406 is a reply to message #1384254] Wed, 28 May 2014 23:17 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5340
Registered: July 2009
Senior Member
Actually I am not sure what/why this fails. Texo uses jdt to do import resolving and source formatting also. It seems
that jdt complaints about the annotations and source level. This could be outside of Texo's control I think. So somehow
jdt when called by Texo thinks that the source level is lower than 1.5, This can be caused by Texo or by a project setting.

I will test the upcoming days. But afaics there is no obstacle for supporting Java8.

gr. Martin


On 28-05-14 19:50, Hendy Irawan wrote:
> We're already using Texo for JPA annotated model generation and we're planning to move from Java7 to Java8 soon.
>
> Is Java8 support currently planned?


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: [Texo] Generator java version issue [message #1384415 is a reply to message #1384254] Wed, 28 May 2014 23:52 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5340
Registered: July 2009
Senior Member
This is strange, I tried it just now, I downloaded jdk8, started eclipse using this jdk, then did new java project,
select the jdk8 as the runtime environment and I get messages that the compiler compliance level of the new project is
1.4. Which should explains the error/exception message done by Texo.

Even stranger is that texo works fine also in case the compliance level is 1.4.

See the attachments, do you see the same? Does not seem to be a Texo issue though...

gr. Martin

On 28-05-14 19:50, Hendy Irawan wrote:
> We're already using Texo for JPA annotated model generation and we're planning to move from Java7 to Java8 soon.
>
> Is Java8 support currently planned?


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: [Texo] Generator java version issue [message #1384499 is a reply to message #1384415] Thu, 29 May 2014 06:10 Go to previous messageGo to next message
Hendy Irawan is currently offline Hendy IrawanFriend
Messages: 6
Registered: May 2014
Junior Member
Martin Taal wrote on Wed, 28 May 2014 19:52
This is strange, I tried it just now, I downloaded jdk8, started eclipse using this jdk, then did new java project,
select the jdk8 as the runtime environment and I get messages that the compiler compliance level of the new project is
1.4. Which should explains the error/exception message done by Texo.

Even stranger is that texo works fine also in case the compliance level is 1.4.

See the attachments, do you see the same? Does not seem to be a Texo issue though...


Which version of Eclipse do you use? You should use Eclipse 4.3SR2 + patches here: hxxp://stackoverflow.com/a/23260582/122441 .
(You can also use 4.4 but it may be harder to reproduce as we don't use that)

After that, make sure that the only JDK8 is listed in Preferences > Java > Installed JREs and nothing else.
Re: [Texo] Generator java version issue [message #1395730 is a reply to message #1384499] Mon, 07 July 2014 10:03 Go to previous message
rudi wijaya is currently offline rudi wijayaFriend
Messages: 1
Registered: July 2014
Junior Member
I also get this error:

A problem was detected while parsing a Java file
	Line 67: Constructor references are allowed only at source level 1.8 or above

package id.co.bippo.salesorder.jpa;

import id.co.bippo.common.ProductStatus;
import id.co.bippo.common.ProductType;
import id.co.bippo.common.TaxCategory;
import id.co.bippo.common.jpa.ProductInfo;
import id.co.bippo.common.jpa.ShopInfo;

import java.math.BigDecimal;
import java.util.Map.Entry;
import java.util.stream.Collectors;

import javax.measure.unit.Unit;
import javax.persistence.Basic;
import javax.persistence.Embeddable;
import javax.persistence.Embedded;

import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.hibernate.annotations.Parameter;
import org.hibernate.annotations.Type;
import org.joda.money.CurrencyUnit;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;

import com.google.common.base.Optional;
import com.google.common.collect.ListMultimap;
import com.google.common.collect.MultimapBuilder.ListMultimapBuilder;

/**
 * A representation of the model object '<em><b>Product</b></em>'. <!--
 * begin-user-doc --> <!-- end-user-doc -->
 * 
 * @generated
 */
@Embeddable()
public class Product {

...


eclipse.buildId=4.4.0.I20140606-1215
java.version=1.8.0_05
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_CA
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product

This is a continuation of log file /home/rudi/space_spring/.metadata/.bak_0.log
Created Time: 2014-07-06 22:35:00.512


It refers to this Java8 snippet:

[code]
for (final Entry<String, EList<org.soluvas.data.Value<?>>> entry : productUp
.getAttributes()) {
attributeMap.putAll(entry.getKey(),
entry.getValue().stream().map(Value::new).collect(Collectors.toList()));

}
[/code}

(since I just used one Java8 feature here, the workaround is easy, I can use the Java6 way, but still... this problem shouldn't happen)

Project is Java8 level:
index.php/fa/18490/0/
Previous Topic:EMFStore NPE
Next Topic:[Ecore] Java 8 default methods for interfaces
Goto Forum:
  


Current Time: Sat Dec 20 22:18:52 GMT 2014

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

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