zeuslee777 / jarjar

Automatically exported from code.google.com/p/jarjar
0 stars 0 forks source link

Need diagnostics of errors inside asm #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I get exception:

===
BUILD FAILED
/home/stepancheg/devel/yandex/mysql-diff/build.xml:102:
java.lang.StringIndexOutOfBoundsException: String index ou
t of range: 130
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:115)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:
41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.Main.runBuild(Main.java:698)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
range: 130
        at java.lang.String.charAt(String.java:694)
        at com.tonicsystems.jarjar.asm.signature.SignatureReader.a(Unknown
Source)
        at
com.tonicsystems.jarjar.asm.signature.SignatureReader.accept(Unknown Source)
        at
com.tonicsystems.jarjar.asm.commons.Remapper.mapSignature(Unknown Source)
        at
com.tonicsystems.jarjar.asm.commons.RemappingClassAdapter.visitMethod(Unknown
Source)
        at com.tonicsystems.jarjar.asm.ClassReader.accept(Unknown Source)
        at com.tonicsystems.jarjar.asm.ClassReader.accept(Unknown Source)
        at
com.tonicsystems.jarjar.ext_util.JarTransformer.process(JarTransformer.java:35)
        at
com.tonicsystems.jarjar.ext_util.JarProcessorChain.process(JarProcessorChain.jav
a:31)
        at com.tonicsystems.jarjar.MainProcessor.process(MainProcessor.java:80)
        at
com.tonicsystems.jarjar.ext_util.AntJarProcessor.zipFile(AntJarProcessor.java:70
)
        at org.apache.tools.ant.taskdefs.Zip.addResources(Zip.java:763)
        at org.apache.tools.ant.taskdefs.Zip.addResources(Zip.java:810)
        at org.apache.tools.ant.taskdefs.Zip.executeMain(Zip.java:543)
        at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java:410)
        at
com.tonicsystems.jarjar.ext_util.AntJarProcessor.execute(AntJarProcessor.java:51
)
        at com.tonicsystems.jarjar.JarJarTask.execute(JarJarTask.java:49)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        ... 11 more
===

I cannot understand, what class cannot be processed by asm.

JarTransformer.process should throw exception with currently processed
class name, like:

===
JarTransformer.process(EntryStruct struct) {
  try {
    // current "process" body
  } catch (Exception e) {
    throw new JarJarException("failed to process " + struct.name + ": " + e);
  }
}
===

Original issue reported on code.google.com by stepan.k...@gmail.com on 4 Oct 2008 at 3:00

GoogleCodeExporter commented 8 years ago
More debugging info would be useful but this exception shouldn't be 
happening--can 
you tell me how to reproduce?

Original comment by chris.no...@gmail.com on 11 Jan 2009 at 8:34

GoogleCodeExporter commented 8 years ago
I couldn't reproduce problem after problem suddenly disappeared, sorry.

Original comment by stepan.k...@gmail.com on 11 Jan 2009 at 8:39

GoogleCodeExporter commented 8 years ago
I'm having a similar problem. I'm using jarjar from ant. When I try to build 
the jar
file with it I'm getting exception:

java.lang.StringIndexOutOfBoundsException: String index out of range: 10
        at java.lang.String.charAt(String.java:686)
        at com.tonicsystems.jarjar.asm.signature.SignatureReader.a(Unknown Source)
        at com.tonicsystems.jarjar.asm.signature.SignatureReader.accept(Unknown Source)
        at com.tonicsystems.jarjar.asm.commons.Remapper.mapSignature(Unknown Source)
        at
com.tonicsystems.jarjar.asm.commons.RemappingClassAdapter.visitMethod(Unknown 
Source)
        at com.tonicsystems.jarjar.asm.ClassReader.accept(Unknown Source)
        at com.tonicsystems.jarjar.asm.ClassReader.accept(Unknown Source)
        at
com.tonicsystems.jarjar.ext_util.JarTransformer.process(JarTransformer.java:35)
        at
com.tonicsystems.jarjar.ext_util.JarProcessorChain.process(JarProcessorChain.jav
a:31)
        at com.tonicsystems.jarjar.MainProcessor.process(MainProcessor.java:80)
        at
com.tonicsystems.jarjar.ext_util.AntJarProcessor.zipFile(AntJarProcessor.java:70
)
        at org.apache.tools.ant.taskdefs.Zip.zipFile(Zip.java:1551)
        at org.apache.tools.ant.taskdefs.Zip.addResources(Zip.java:792)
        at org.apache.tools.ant.taskdefs.Zip.addResources(Zip.java:853)
        at org.apache.tools.ant.taskdefs.Zip.executeMain(Zip.java:499)
        at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java:416)
        at
com.tonicsystems.jarjar.ext_util.AntJarProcessor.execute(AntJarProcessor.java:51
)
        at com.tonicsystems.jarjar.JarJarTask.execute(JarJarTask.java:49)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:
41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.Main.runBuild(Main.java:758)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

My Ant version is 1.7.1, Java version is 1.6.0_17. Unfortunately exception 
doesn't go
away for me.

Original comment by juriy.b...@gmail.com on 1 Mar 2010 at 12:32