8bitme / lambdaj

Automatically exported from code.google.com/p/lambdaj
Apache License 2.0
0 stars 0 forks source link

ch.lambdaj.proxy.ClassImposterizer.createProxyClass NoClassDefFoundError #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. add into the project classpath lambdaj-2.3.1-with-dependencies.jar
2. generate a runnable jar with required libraries into the generated Jar
3. if I run my jar from console I get the below stacktrace. If I run from 
eclipse it works (I'm using other dependencies such Hibernate but the error is 
when Lambdaj doesn't finds a class). If I comment my code that uses lambdaj it 
works.

Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:58)
Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/Type
        at net.sf.cglib.core.TypeUtils.parseType(TypeUtils.java:180)
        at net.sf.cglib.core.KeyFactory.<clinit>(KeyFactory.java:66)
        at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69)
        at ch.lambdaj.proxy.ClassImposterizer.createProxyClass(ClassImposterizer
.java:113)
        at ch.lambdaj.proxy.ClassImposterizer.imposterise(ClassImposterizer.java
:100)
        at ch.lambdaj.proxy.ProxyUtil.createArgumentProxy(ProxyUtil.java:60)
        at ch.lambdaj.function.argument.ArgumentsFactory.createPlaceholder(Argum
entsFactory.java:52)
        at ch.lambdaj.function.argument.ArgumentsFactory.registerNewArgument(Arg
umentsFactory.java:45)
        at ch.lambdaj.function.argument.ArgumentsFactory.createArgument(Argument
sFactory.java:39)
        at ch.lambdaj.function.argument.ArgumentsFactory.createArgument(Argument
sFactory.java:31)
        at ch.lambdaj.Lambda.on(Lambda.java:43)
        at aggrPack.Transformation.compareQuantitySum(Transformation.java:66)
        at aggrPack.Transformation.convert(Transformation.java:42)
        at aggrPack.Transformation.inspectDir(Transformation.java:91)
        at aggrPack.Transformation.main(Transformation.java:117)
        ... 5 more
Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.Type
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 20 more

Original issue reported on code.google.com by franke.g...@gmail.com on 25 Oct 2010 at 6:19

GoogleCodeExporter commented 9 years ago
I am not able to reproduce this issue. Could you please provide some more 
information? For example would be great if could attach the non-working jar and 
send the part of the code that throws the exception.

Thank you
Mario

Original comment by mario.fu...@gmail.com on 30 Oct 2010 at 3:14

GoogleCodeExporter commented 9 years ago
Cannot reproduce.

Original comment by mario.fu...@gmail.com on 20 Dec 2010 at 10:28

GoogleCodeExporter commented 9 years ago
hi,

I sort of can reproduce this 

Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/Type

when I have the cglib.jar and cglib-nodep.jar both included into the classpath

I dunno if its the same issue as its state here

Original comment by kin.t...@gmail.com on 2 May 2013 at 4:17