ceylon / ceylon-module-resolver

DEPRECATED
Apache License 2.0
23 stars 9 forks source link

CNF Exception on invalid URL #108

Closed FroMage closed 10 years ago

FroMage commented 10 years ago

When I upload to an invalid URL I get:

Publishing to Herd at http://localhost:9000/uploads/1587
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
An exception has occurred in the compiler (ceylonc 1.1.0 (Unflatzburged)).
java.lang.NoClassDefFoundError: org/apache/http/client/ClientProtocolException
    at com.redhat.ceylon.cmr.webdav.WebDAVContentStore.convertIOException(WebDAVContentStore.java:150)
...
Caused by: java.lang.ClassNotFoundException: org.apache.http.client.ClientProtocolException from [Module "com.redhat.ceylon.module-resolver:1.1.0" from local module loader @716d9094 (roots: /usr/share/ceylon/1.1.0/repo)]
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

That sounds like a module.xml issue with dependencies that should be easy to fix.

gavinking commented 10 years ago

@quintesse?

quintesse commented 10 years ago

Sure, will take a look ASAP.

gavinking commented 10 years ago

thanks.

quintesse commented 10 years ago

I'm not able to reproduce this locally, can you give more details @FroMage ?

I'm getting:

error: Failed to write module to repository: com.redhat.ceylon.cmr.impl.CMRException: Unexpected response: Not Found 404
FroMage commented 10 years ago

Well, perhaps this is already fixed then. This was with an oldish distribution. Do we print an error line or a stack trace now?

quintesse commented 10 years ago

See my previous message (I had updated it with the current message). It's still won't win any prizes but at least there's no stack trace.

quintesse commented 10 years ago

Will close for now then.