[go: up one dir, main page]

Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Vorto » ThingWorx Example Generator Problems(ThingWorx Generator in VORTO doesn't work. How to solve the problem?)
icon9.gif  ThingWorx Example Generator Problems [message #1728538] Tue, 05 April 2016 09:35 Go to next message
Arnold Roth is currently offline Arnold RothFriend
Messages: 4
Registered: April 2016
Junior Member
Hello everybody,

I am trying to generate code from my information model in VORTO with the ThingWorx Code Generator. Unfortunately it doesn't work, Eclipse is throwing a major ERROR.

Is there a newer version of the ThingWorx Generator?
Has anyone had success in generating code with this generator?

Thank you and best regards,
Arnold
Re: ThingWorx Example Generator Problems [message #1729080 is a reply to message #1728538] Mon, 11 April 2016 02:20 Go to previous messageGo to next message
Alexander Edelmann is currently offline Alexander EdelmannFriend
Messages: 39
Registered: January 2015
Member
Hi Arnold,
I have some clarification questions:
What is the exception it is throwing?
Are you generating from the Eclipse Vorto Repository or inside the toolset?
For which vorto model are you trying to generate?

Cheers, Alex
Re: ThingWorx Example Generator Problems [message #1729096 is a reply to message #1729080] Mon, 11 April 2016 07:53 Go to previous messageGo to next message
Arnold Roth is currently offline Arnold RothFriend
Messages: 4
Registered: April 2016
Junior Member
Hi Alexander,

I am trying to generate from inside the toolset by right-clicking the information model and choosing the "ThingWorx Code Generator".

index.php/fa/25619/0/

I have created the information model based on the tutorial provided in the VORTO Documentation (PhilipsHue Lamp).

index.php/fa/25620/0/

And this is the ERROR that I am getting when I run the generator:

[ERROR] org.eclipse.core.runtime.CoreException: Plug-in org.eclipse.vorto.codegen.examples.thingworx was unable to load class org.eclipse.vorto.codegen.examples.thingworx.ThingWorxCodeGenerator.
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:176)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
	at org.eclipse.vorto.codegen.ui.handler.CodeGeneratorInvocationHandler.evaluate(CodeGeneratorInvocationHandler.java:62)
	at org.eclipse.vorto.codegen.ui.handler.CodeGeneratorInvocationHandler.execute(CodeGeneratorInvocationHandler.java:48)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295)
	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
	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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:252)
	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:234)
	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:493)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:486)
	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
	at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:343)
	at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:830)
	at org.eclipse.ui.menus.CommandContributionItem.access$21(CommandContributionItem.java:816)
	at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:806)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:694)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:606)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
	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:669)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
Caused by: java.lang.ClassNotFoundException: org.eclipse.vorto.codegen.examples.thingworx.ThingWorxCodeGenerator cannot be found by org.eclipse.vorto.codegen.examples.thingworx_0.4.0.201603041023
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:573)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
	... 49 more


Than you for your help!

Kind regards,
Arnold
Re: ThingWorx Example Generator Problems [message #1729379 is a reply to message #1729096] Wed, 13 April 2016 13:36 Go to previous messageGo to next message
Alexander Edelmann is currently offline Alexander EdelmannFriend
Messages: 39
Registered: January 2015
Member
Hi Arnold,

I could reproduce your problem locally. I created a github issue for your problem under https://github.com/eclipse/vorto/issues/143

We will be trying to provide a fix for it as soon as possible.

My Apologies for the inconvenience!

- Alex

[Updated on: Wed, 13 April 2016 13:37]

Report message to a moderator

Re: ThingWorx Example Generator Problems [message #1730121 is a reply to message #1729379] Thu, 21 April 2016 14:05 Go to previous messageGo to next message
Arnold Roth is currently offline Arnold RothFriend
Messages: 4
Registered: April 2016
Junior Member
Hi Alexander,

are there any updates regarding this issue?

regards,
Arnold
Re: ThingWorx Example Generator Problems [message #1733601 is a reply to message #1730121] Mon, 30 May 2016 11:35 Go to previous messageGo to next message
Olaf Weinmann is currently offline Olaf WeinmannFriend
Messages: 29
Registered: May 2015
Junior Member
Hi Arnold,

Did you have the chance to test our Bugfix? Is everything working now?

Thanks,

Olaf
Re: ThingWorx Example Generator Problems [message #1733644 is a reply to message #1733601] Mon, 30 May 2016 16:18 Go to previous messageGo to next message
Arnold Roth is currently offline Arnold RothFriend
Messages: 4
Registered: April 2016
Junior Member
Hello Olaf,

yes, I have updated Vorto to the latest version (nightly) and the ThingWorx-Generator is now working without any ERRORS.

Thank you for your help!

Kind regards,
Arnold
Re: ThingWorx Example Generator Problems [message #1733831 is a reply to message #1733644] Wed, 01 June 2016 10:19 Go to previous message
Olaf Weinmann is currently offline Olaf WeinmannFriend
Messages: 29
Registered: May 2015
Junior Member
You are welcome! Smile

Cheers,

Olaf
Previous Topic:Use of events in Functional Block
Next Topic:Cross reference example
Goto Forum:
  


Current Time: Thu Dec 12 16:48:39 GMT 2024

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

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

Back to the top