janslow / jarjar

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

java.lang.ArrayIndexOutOfBoundsException if source log4j or commons-logging #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. <zipfileset
src="C:\3rd\log4j\dist\logging-log4j-1.2.13\dist\lib\log4j-1.2.13.jar"/>
2. <zipfileset
src="C:\3rd\commons-logging\dist\commons-logging-1.1\commons-logging-1.1.jar
"/>

What is the expected output? What do you see instead?

--- Nested Exception ---
java.lang.ArrayIndexOutOfBoundsException: 39
    at com.tonicsystems.jarjar.asm.Type.a(Unknown Source)
    at com.tonicsystems.jarjar.asm.Type.getElementType(Unknown Source)
    at com.tonicsystems.jarjar.asm.commons.Remapper.mapType(Unknown Source)
    at com.tonicsystems.jarjar.asm.commons.Remapper.mapType(Unknown Source)
    at com.tonicsystems.jarjar.PackageRemapper.mapPath(PackageRemapper.java:82)
    at com.tonicsystems.jarjar.PackageRemapper.mapValue(PackageRemapper.java:104)
    at
com.tonicsystems.jarjar.asm.commons.RemappingMethodAdapter.visitLdcInsn(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:83)
    at
com.tonicsystems.jarjar.ext_util.AntJarProcessor.zipFile(AntJarProcessor.java:55
)
    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:42
)
    at com.tonicsystems.jarjar.JarJarTask.execute(JarJarTask.java:50)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
    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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecut
or.java:38)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
    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)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:17)

What version of the product are you using? On what operating system?

jarjar-1.0rc5.jar, Win XP Pro

Please provide any additional information below.

Other commons and third party libraries get added with jarjar fine.

Original issue reported on code.google.com by Stwitb...@gmail.com on 18 Sep 2007 at 6:13

GoogleCodeExporter commented 8 years ago
+1 to fix this problem. I've seen it too.

Original comment by npel...@gmail.com on 4 Oct 2007 at 11:43

GoogleCodeExporter commented 8 years ago
same here. I have seen it even without commons (using axis)

Original comment by ssu...@gmail.com on 4 Nov 2007 at 4:46

GoogleCodeExporter commented 8 years ago
Duplicate of issue #2, fixed today in SVN.

Original comment by chris.no...@gmail.com on 8 Nov 2007 at 6:27