Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportedClassesClasspathHandler.handleResource can't handle a scala main class #42

Closed
Ji-Pedro opened this issue Feb 28, 2014 · 6 comments

Comments

@Ji-Pedro
Copy link

Api docs was working just fine until I bring this dependency in my maven pom:

org.apache.kafka
kafka_2.10
0.8.0

mvn compile -X
<...>
[DEBUG] Noticed class kafka.Kafka. in .m2\repository\org\apache\kafka\kafka_2.10\0.8.0\kafka_2.10-0.8.0.jar.
<...>
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:658)
at org.codehaus.enunciate.main.ImportedClassesClasspathHandler.handleResource(ImportedClassesClasspathHandler.java:55)

When decompiling the JAR, here is the name of this class: kafka.Kafka$

stoicflame added a commit that referenced this issue Feb 28, 2014
@stoicflame
Copy link
Owner

Thanks for the report. Fixed at 34937fd.

@jlandry-expedia
Copy link

Ok great thanks, that was super fast. When is the next release expected?

@stoicflame
Copy link
Owner

It hasn't been scheduled yet... Standby...

@stucchi
Copy link

stucchi commented May 13, 2014

Is it possible that the error arises using another package too ?

[DEBUG] Noticed class org.renjin.primitives.R.primitive.. in /Users/lucastucchi/.m2/repository/org/renjin/renjin-core/0.7.0-RC6/renjin-core-0.7.0-RC6.jar.
[ERROR] Failed to execute goal org.codehaus.enunciate:maven-enunciate-plugin:1.28:assemble (default) on project ws: Problem assembling the enunciate app. String index out of range: 0
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:658)
at org.codehaus.enunciate.main.ImportedClassesClasspathHandler.handleResource(ImportedClassesClasspathHandler.java:55) 

this is my maven version

$ mvn --version
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:52+01:00)
Maven home: /usr/local/apache-maven-3.2.1
Java version: 1.7.0_55, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.9.2", arch: "x86_64", family: "mac"

Could you suggest any solution ?

Regards,
Luca

@jlandry-expedia
Copy link

@stucchi this seems to be the exact same problem. It has been fixed and until there is an official release, you have to build your own version from master. I did it and it fixed the issue

@terrancesnyder
Copy link

anyword on when we can get this released to maven central repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants