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

java.lang.ArraylndexOutOfBoundsException: 29 #83

Open
chirstwy opened this issue May 4, 2020 · 6 comments
Open

java.lang.ArraylndexOutOfBoundsException: 29 #83

chirstwy opened this issue May 4, 2020 · 6 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@chirstwy
Copy link

chirstwy commented May 4, 2020

When running confusion(Loading classpath...), this exception was thrown, how to solve it?

@x4e
Copy link
Collaborator

x4e commented May 4, 2020

Please post the entire stacktrace

@chirstwy
Copy link
Author

chirstwy commented May 5, 2020

Please post the entire stacktrace
Loading classpath...
java.lang.ArrayIndexOutOfBoundsException: 29
at org.objectweb.asm.ClassReader.readUtf(ClassReader.java:3425)
at org.objectweb.asm.ClassReader.readUTF8(ClassReader.java:3412)
at org.objectweb.asm.ClassReader.readStringish(ClassReader.java:3481)
at org.objectweb.asm.ClassReader.readModule(ClassReader.java:3509)
at org.objectweb.asm.ClassReader.readModuleAttributes(ClassReader.java:711)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:535)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:391)
at me.superblaubeere27.jobf.JObfImpl.loadClasspathFile(JObfImpl.java:134)
at me.superblaubeere27.jobf.JObfImpl.lambda$loadClasspath$1(JObfImpl.java:153)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at me.superblaubeere27.jobf.JObfImpl.loadClasspath(JObfImpl.java:151)
at me.superblaubeere27.jobf.JObfImpl.processJar(JObfImpl.java:234)
at me.superblaubeere27.jobf.ui.GUI.lambda$startObfuscator$13(GUI.java:316)
at java.lang.Thread.run(Thread.java:748)

@chirstwy
Copy link
Author

chirstwy commented May 5, 2020

Please post the entire stacktrace

This exception occurs when the program adds dependent jars. Is it possible to obfuscate without adding dependent packages?

@x4e
Copy link
Collaborator

x4e commented May 5, 2020

It sounds like one of your libraries has invalid classes, we should have better handling for this when loading libraries

@x4e x4e added bug Something isn't working good first issue Good for newcomers labels May 5, 2020
@chirstwy
Copy link
Author

chirstwy commented May 5, 2020

Is there no way to solve this exception in your obfuscated program, only from my dependent libraries?

@chirstwy
Copy link
Author

chirstwy commented May 5, 2020

It sounds like one of your libraries has invalid classes, we should have better handling for this when loading libraries

Because I use dependency libraries directly, I don't know how to find invalid classes from the dependency libraries?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants