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
too much data exception from javassist #310
Comments
From johan.ha...@gmail.com on November 14, 2010 23:34:06 Issue 291 has been merged into this issue. |
From johan.ha...@gmail.com on November 14, 2010 23:34:37 Hm, which class is it that causes the exception? |
From ssuyam...@gmail.com on November 15, 2010 07:28:46 Hi, Thanks, log4j:ERROR Could not instantiate appender named "stat". Attachment: TooMuchDataErrorProof.java |
From ssuyam...@gmail.com on November 17, 2010 07:08:27 Hi Johan, Thanks, |
From johan.ha...@gmail.com on December 27, 2010 05:02:21 Unfortunately not :/ Perhaps you can try with the latest version of Javassist? |
From philvar...@gmail.com on August 30, 2011 23:16:26 This is a bug with javassist: https://issues.jboss.org/browse/JASSIST-142 It is fixed as of 3.15.0-GA. If you're using Maven, the dependency now uses the groupID "org.javassist" instead of "javassist" as it did in older versions.
|
From johan.ha...@gmail.com on August 30, 2011 23:51:53 PowerMock 1.4.10 depends on Javassist 3.15 Status: Accepted |
From ssuyam...@gmail.com on November 09, 2010 17:58:16
What steps will reproduce the problem? 1.call mockstatic in test class
2. in the test class unmarshall xml using JAXB. JAXBContext.newInstance call fails with the exception. But initialization works fine with easymock and issues appear with powermock-easymock-junit extension.
java.lang.RuntimeException: javassist.CannotCompileException: by java.io.IOException: too much data
at org.powermock.core.classloader.MockClassLoader.loadUnmockedClass(MockClassLoader.java:188)
at org.powermock.core.classloader.MockClassLoader.loadModifiedClass(MockClassLoader.java:148)
at org.powermock.core.classloader.DeferSupportingClassLoader.loadClass(DeferSupportingClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:99)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:144)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:297)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:383)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:348)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:255)
3. I tried with javassist 3.13 and 3.3 , all ended in same exception. What is the expected output? What do you see instead? expected output is business class which is mocked What version of the product are you using? On what operating system? powermock-easymock-junit-1.4.6.zip Please provide any additional information below.
Original issue: http://code.google.com/p/powermock/issues/detail?id=290
The text was updated successfully, but these errors were encountered: