ceylon / ceylon-module-resolver

DEPRECATED
Apache License 2.0
23 stars 9 forks source link

Invalid signature for some artifacts #71

Closed FroMage closed 11 years ago

FroMage commented 11 years ago

This is perhaps related to ceylon/ceylon-js#258 but for the JVM:

This happens apparently after compiling a module which depends on java.base/7 but did not declare it.

        ceylon run default
        ceylon run: Invalid SHA1 for artifact: com.redhat.ceylon.common-0.6.1(.car|.jar)
        com.redhat.ceylon.cmr.impl.InvalidArchiveException: Invalid SHA1 for artifact: com.redhat.ceylon.common-0.6.1(.car|.jar)
                at com.redhat.ceylon.cmr.impl.AbstractNodeRepositoryManager.getLeafNode(AbstractNodeRepositoryManager.java:280)
                at com.redhat.ceylon.cmr.impl.RootRepositoryManager.getArtifactResult(RootRepositoryManager.java:64)
                at ceylon.modules.jboss.runtime.CeylonModuleLoader.findArtifact(CeylonModuleLoader.java:213)
                at ceylon.modules.jboss.runtime.CeylonModuleLoader.init(CeylonModuleLoader.java:138)
                at ceylon.modules.jboss.runtime.CeylonModuleLoader.<init>(CeylonModuleLoader.java:130)
                at ceylon.modules.jboss.runtime.JBossRuntime.createModuleLoader(JBossRuntime.java:32)
                at ceylon.modules.jboss.runtime.AbstractJBossRuntime.loadModule(AbstractJBossRuntime.java:77)
                at ceylon.modules.api.runtime.AbstractRuntime.execute(AbstractRuntime.java:110)
                at ceylon.modules.Main.execute(Main.java:69)
                at ceylon.modules.Main.main(Main.java:42)
                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:491)
                at org.jboss.modules.Module.run(Module.java:270)
                at org.jboss.modules.Main.main(Main.java:294)
                at ceylon.modules.bootstrap.CeylonRunTool.run(CeylonRunTool.java:152)
                at com.redhat.ceylon.tools.CeylonTool.run(CeylonTool.java:267)
                at com.redhat.ceylon.tools.CeylonTool.bootstrap(CeylonTool.java:230)
                at com.redhat.ceylon.tools.CeylonTool.start(CeylonTool.java:203)
                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:491)
                at com.redhat.ceylon.launcher.Launcher.run(Launcher.java:68)
                at com.redhat.ceylon.launcher.Launcher.main(Launcher.java:19)
russel commented 11 years ago

I have now restructured the project to be fully compliant (as far as I know) and it runs fine in Eclipse. From the command line compilation is fine () but I still get this problem at run time(*).

() With Java 7 no warnings, with Java 8 lots of warnings. (*) Same error using either Java 7 or Java 8.

russel commented 11 years ago

If anyone want to try out the examples I am working on they are here: https://github.com/russel/Pi_Quadrature/tree/master/Ceylon

quintesse commented 11 years ago

I'm not able to reproduce this, can you give more code/details?

quintesse commented 11 years ago

@russel I'm not sure but it seems you commented on the wrong issue perhaps?

quintesse commented 11 years ago

Ah I see now there was a relevant issue opened on the compiler project ceylon/ceylon-compiler#1348

quintesse commented 11 years ago

@FroMage Where you able to reproduce this yourself? If so, can you give details?

FroMage commented 11 years ago

Haven't tried yet so no.

quintesse commented 11 years ago

I'm not able to reproduce this at all and with @FroMage 's fix for ceylon/ceylon-compiler#1348 it's not even possible anymore to compile code using undeclared imports.

So closing unless someone can reproduce. If so, please reopen with detailed instructions as to how.