InvalidJarIndexException: Invalid index

968 views
Skip to first unread message

hyder

unread,
Sep 13, 2011, 12:40:21 AM9/13/11
to play-fr...@googlegroups.com
Hi,

I'm running into this problem when starting play. Please help!

@67li5d60i
Internal Server Error (500) for request GET /

Oops: InvalidJarIndexException
An unexpected error occured caused by exception InvalidJarIndexException: Invalid index

play.exceptions.UnexpectedException: Unexpected Error
at play.Play.start(Play.java:525)
at play.Play.detectChanges(Play.java:599)
at play.Invoker$Invocation.init(Invoker.java:186)
at Invocation.HTTP Request(Play!)
Caused by: sun.misc.InvalidJarIndexException: Invalid index
at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:858)
at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:765)
at sun.misc.URLClassPath$JarLoader.findResource(URLClassPath.java:735)
at sun.misc.URLClassPath.findResource(URLClassPath.java:146)
at java.net.URLClassLoader$2.run(URLClassLoader.java:385)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(URLClassLoader.java:382)
at java.lang.ClassLoader.getResource(ClassLoader.java:1002)
at java.lang.ClassLoader.getResource(ClassLoader.java:997)
at play.classloading.ApplicationClassloader.getResource(ApplicationClassloader.java:251)
at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1192)
at play.classloading.ApplicationClassloader.getResourceAsStream(ApplicationClassloader.java:233)
at play.classloading.ApplicationClassloader.getClassDefinition(ApplicationClassloader.java:199)
at play.classloading.ApplicationCompiler$1.findType(ApplicationCompiler.java:185)
at play.classloading.ApplicationCompiler$1.findType(ApplicationCompiler.java:154)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:128)
at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:183)
at org.eclipse.jdt.internal.compiler.lookup.Scope.getPackage(Scope.java:2302)
at org.eclipse.jdt.internal.compiler.ast.QualifiedTypeReference.getTypeBinding(QualifiedTypeReference.java:69)
at org.eclipse.jdt.internal.compiler.ast.TypeReference.internalResolveType(TypeReference.java:131)
at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:203)
at org.eclipse.jdt.internal.compiler.ast.InstanceOfExpression.resolveType(InstanceOfExpression.java:76)
at org.eclipse.jdt.internal.compiler.ast.Expression.resolveTypeExpecting(Expression.java:945)
at org.eclipse.jdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:258)
at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:90)
at org.eclipse.jdt.internal.compiler.ast.ForStatement.resolve(ForStatement.java:377)
at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:90)
at org.eclipse.jdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:261)
at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:90)
at org.eclipse.jdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:261)
at org.eclipse.jdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:263)
at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:451)
at org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration.resolveStatements(ConstructorDeclaration.java:499)
at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:410)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1147)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1235)
at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:540)
at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:759)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:464)
at play.classloading.ApplicationCompiler.compile(ApplicationCompiler.java:278)
at play.classloading.ApplicationClassloader.getAllClasses(ApplicationClassloader.java:412)
at play.Play.start(Play.java:485)
... 3 more

Morten Kjetland

unread,
Sep 13, 2011, 1:44:34 AM9/13/11
to play-fr...@googlegroups.com
Strange..


which play version are you using? Which OS? windows?

Are you running play from a network drive?

Do you have any special jar files in the lib folder?


As you can see, I have no idea about what is causing this problem, but I just wrote down stuff that popped into my mind. I hope it helps..

-morten


--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/i3wB35jU-vIJ.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.

hyder

unread,
Sep 13, 2011, 3:07:14 AM9/13/11
to play-fr...@googlegroups.com
Yes, it was working fine and then suddenly out of the blue I get this. Answers below. 

Please advise.


On Tuesday, 13 September 2011 15:44:34 UTC+10, Morten Kjetland wrote:
Strange..


which play version are you using?

 1.2.3
Which OS? windows?
Linux 

Are you running play from a network drive?
No 

Do you have any special jar files in the lib folder?
Yes. I have a few jar files which I need to integrate with an application. They basically provide me with the API to integrate. 
Hmm, well they are not my jars so I don't know how they are generated. But they do point to some other jars in the manifest file. 1 thing I found quite intriguing was that the referenced jars were all relative paths. Effectively, they were not pointing to anything that exist.
Reply all
Reply to author
Forward
0 new messages