Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » VIATRA » [model obfuscator] error while saving obfuscated model
[model obfuscator] error while saving obfuscated model [message #1632973] Tue, 24 February 2015 15:51 Go to next message
Stephane Bouchet is currently offline Stephane BouchetFriend
Messages: 276
Registered: July 2009
Senior Member
Hi,

i'm trying the model obfuscator on some examples and get this error[1].

i'm using eclipse 3.8.2, emf 2.9 .

thanks !


[1]
eclipse.buildId=201412121920
java.version=1.7.0_40
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64

Error
Tue Feb 24 16:47:21 CET 2015
Unhandled event loop exception

java.lang.NoClassDefFoundError: com/google/common/io/BaseEncoding
at org.eclipse.viatra.modelobfuscator.util.StringObfuscator.obfuscateData(StringObfuscator.java:44)
at org.eclipse.viatra.modelobfuscator.emf.simple.SimpleEMFModelObfuscator.modifyData(SimpleEMFModelObfuscator.java:172)
at org.eclipse.viatra.modelobfuscator.emf.simple.SimpleEMFModelObfuscator$2$1$2.apply(SimpleEMFModelObfuscator.java:148)
at org.eclipse.viatra.modelobfuscator.emf.simple.SimpleEMFModelObfuscator$2$1$2.apply(SimpleEMFModelObfuscator.java:1)
at org.eclipse.xtext.xbase.lib.IterableExtensions.forEach(IterableExtensions.java:399)
at org.eclipse.viatra.modelobfuscator.emf.simple.SimpleEMFModelObfuscator$2$1.apply(SimpleEMFModelObfuscator.java:153)
at org.eclipse.viatra.modelobfuscator.emf.simple.SimpleEMFModelObfuscator$2$1.apply(SimpleEMFModelObfuscator.java:1)
at org.eclipse.xtext.xbase.lib.IteratorExtensions.forEach(IteratorExtensions.java:354)
at org.eclipse.viatra.modelobfuscator.emf.simple.SimpleEMFModelObfuscator$2.apply(SimpleEMFModelObfuscator.java:156)
at org.eclipse.viatra.modelobfuscator.emf.simple.SimpleEMFModelObfuscator$2.apply(SimpleEMFModelObfuscator.java:1)
at org.eclipse.xtext.xbase.lib.IterableExtensions.forEach(IterableExtensions.java:399)
at org.eclipse.viatra.modelobfuscator.emf.simple.SimpleEMFModelObfuscator.modifyModel(SimpleEMFModelObfuscator.java:159)
at org.eclipse.viatra.modelobfuscator.emf.simple.SimpleEMFModelObfuscator.obfuscate(SimpleEMFModelObfuscator.java:62)
at org.eclipse.viatra.modelobfuscator.ui.handlers.EMFModelObfuscatorHandler$2.execute(EMFModelObfuscatorHandler.java:91)
at org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:78)
at org.eclipse.viatra.modelobfuscator.ui.handlers.EMFModelObfuscatorHandler.execute(EMFModelObfuscatorHandler.java:100)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:829)
at org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:815)
at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:805)
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.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at Application.start(Application.java:70)
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(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.ClassNotFoundException: com.google.common.io.BaseEncoding
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 50 more

Re: [model obfuscator] error while saving obfuscated model [message #1634288 is a reply to message #1632973] Wed, 25 February 2015 07:34 Go to previous messageGo to next message
Abel Hegedus is currently offline Abel HegedusFriend
Messages: 187
Registered: September 2015
Senior Member
Hi,

can you check if you have Google Guava as a plug-in in the Help -> Installation Details -> Plug-ins window? If you have, what version is it?

If you don't have, install for example the Xtend SDK, that should include it.

Did you install from the update site or run from source?

Re: [model obfuscator] error while saving obfuscated model [message #1634423 is a reply to message #1634288] Wed, 25 February 2015 09:01 Go to previous messageGo to next message
Stephane Bouchet is currently offline Stephane BouchetFriend
Messages: 276
Registered: July 2009
Senior Member
Quote:
Hi,

can you check if you have Google Guava as a plug-in in the Help -> Installation Details -> Plug-ins window? If you have, what version is it?


hi,

yes, i have guava installed, version 10.0.1.v201203051515

Quote:

If you don't have, install for example the Xtend SDK, that should include it.

Did you install from the update site or run from source?


I've installed with the update site directly from hudson :
https://hudson.eclipse.org/viatra/job/viatra-modelobfuscator-master/lastSuccessfulBuild/artifact/releng/org.eclipse.viatra.modelobfuscator.update/target/repository/
Re: [model obfuscator] error while saving obfuscated model [message #1636527 is a reply to message #1634423] Thu, 26 February 2015 08:27 Go to previous messageGo to next message
Abel Hegedus is currently offline Abel HegedusFriend
Messages: 187
Registered: September 2015
Senior Member
Thanks for the catch! BaseEncoding was only added to Guava from 14.0 (see https://code.google.com/p/guava-libraries/source/browse/guava/src/com/google/common/io/BaseEncoding.java#129 )

I have updated the version requirement (see http://git.eclipse.org/c/viatra/org.eclipse.viatra.modelobfuscator.git/commit/?id=e7d0ef9cda4d6102cd77b1f3db9f01739b490adb )

You should be able to install the new build ( https://hudson.eclipse.org/viatra/job/viatra-modelobfuscator-master-maven/12/ ) from the update site.

Re: [model obfuscator] error while saving obfuscated model [message #1636684 is a reply to message #1636527] Thu, 26 February 2015 10:15 Go to previous message
Stephane Bouchet is currently offline Stephane BouchetFriend
Messages: 276
Registered: July 2009
Senior Member
Thanks, it worked !
i had only to add the xtext repo ( http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases) to get the correct guava version.
Previous Topic:Attribute problem
Next Topic:Application of GTRULE
Goto Forum:
  


Current Time: Sun Nov 19 18:11:07 GMT 2017

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

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