After updating Spoofax I’ve got the following error.

(Note: I’ve also pulled and build the latests TS:instructions. Might be related.)

call-onsave:
    [java] java.lang.LinkageError: Error reading class bytes: org.strategoxt.strc.$Repair$Definition_0_0
    [java] 	at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
    [java] 	at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
    [java] 	at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
    [java] 	at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
    [java] 	at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
    [java] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [java] 	at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
    [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [java] 	at java.lang.reflect.Method.invoke(Unknown Source)
    [java] 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [java] 	at org.apache.tools.ant.Task.perform(Task.java:348)
    [java] 	at org.apache.tools.ant.Target.execute(Target.java:392)
    [java] 	at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [java] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [java] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [java] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [java] 	at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    [java] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [java] 	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:672)
    [java] 	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:498)
    [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [java] 	at java.lang.reflect.Method.invoke(Unknown Source)
    [java] 	at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
    [java] 	at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.runInSameVM(AntLaunchDelegate.java:307)
    [java] 	at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:260)
    [java] 	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)
    [java] 	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)
    [java] 	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:700)
    [java] 	at org.eclipse.core.externaltools.internal.model.ExternalToolBuilder.launchBuild(ExternalToolBuilder.java:181)
    [java] 	at org.eclipse.core.externaltools.internal.model.ExternalToolBuilder.doBuildBasedOnScope(ExternalToolBuilder.java:169)
    [java] 	at org.eclipse.core.externaltools.internal.model.ExternalToolBuilder.build(ExternalToolBuilder.java:88)
    [java] 	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:733)
    [java] 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    [java] 	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
    [java] 	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
    [java] 	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)
    [java] 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    [java] 	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)
    [java] 	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)
    [java] 	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)
    [java] 	at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:514)
    [java] 	at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:423)
    [java] 	at org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:180)
    [java] 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
    [java] Caused by: java.lang.LinkageError: Error reading class bytes: org.strategoxt.strc.$Repair$Definition_0_0
    [java] 	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:558)
    [java] 	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:492)
    [java] 	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:465)
    [java] 	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
    [java] 	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
    [java] 	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
    [java] 	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
    [java] 	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
    [java] 	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    [java] 	at java.lang.ClassLoader.loadClass(Unknown Source)
    [java] 	at org.strategoxt.strc.Main.registerInterop(Main.java:5388)
    [java] 	at org.strategoxt.HybridInterpreter.registerLibraries(HybridInterpreter.java:390)
    [java] 	at org.strategoxt.HybridInterpreter.init(HybridInterpreter.java:355)
    [java] 	at org.strategoxt.imp.runtime.services.StrategoRuntimeFactory.createPrototype(StrategoRuntimeFactory.java:114)
    [java] 	at org.strategoxt.imp.runtime.services.StrategoRuntimeFactory.getInterpreter(StrategoRuntimeFactory.java:95)
    [java] 	at org.strategoxt.imp.runtime.services.StrategoObserver.initialize(StrategoObserver.java:327)
    [java] 	at org.strategoxt.imp.runtime.services.StrategoObserver.getRuntime(StrategoObserver.java:843)
    [java] 	at org.strategoxt.imp.runtime.services.StrategoObserver.getInputBuilder(StrategoObserver.java:189)
    [java] 	at org.strategoxt.imp.runtime.services.StrategoObserver.update(StrategoObserver.java:399)
    [java] 	at org.strategoxt.imp.runtime.FileState.getAnalyzedAst(FileState.java:90)
    [java] 	at org.strategoxt.imp.metatooling.building.AntForceOnSave.main(AntForceOnSave.java:18)
    [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [java] 	at java.lang.reflect.Method.invoke(Unknown Source)
    [java] 	at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
    [java] 	at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
    [java] 	... 45 more
    [java] Caused by: java.util.zip.ZipException: invalid literal/lengths set
    [java] 	at java.util.zip.InflaterInputStream.read(Unknown Source)
    [java] 	at org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleEntry$ZipBundleEntryInputStream.read(ZipBundleEntry.java:157)
    [java] 	at org.eclipse.osgi.internal.baseadaptor.AdaptorUtil.getBytes(AdaptorUtil.java:247)
    [java] 	at org.eclipse.osgi.baseadaptor.bundlefile.BundleEntry.getBytes(BundleEntry.java:96)
    [java] 	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:554)
    [java] 	... 71 more
    [java] Java Result: -1
Submitted by Daco Harkes on 15 March 2014 at 17:16

On 18 March 2014 at 08:28 Vlad Vergu commented:

Hi. Does this still happen? Is this reproducible? Are you sure your filesystem is in good shape?


On 18 March 2014 at 10:51 Daco Harkes commented:

Nope. And I cannot reproduce it anymore.


On 24 March 2014 at 21:06 Daco Harkes commented:

Cannot reproduce anymore, closing.


On 24 March 2014 at 21:06 Daco Harkes closed this issue.

Log in to post comments