<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/callbackparams/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/callbackparams/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/callbackparams/bugs/</id><updated>2014-12-27T10:06:32.799000Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>#4 class loading conflicts with springjunit4classrunner</title><link href="https://sourceforge.net/p/callbackparams/bugs/4/?limit=25#3b9e" rel="alternate"/><published>2014-12-27T10:06:32.799000Z</published><updated>2014-12-27T10:06:32.799000Z</updated><author><name>Henrik Kaipe</name><uri>https://sourceforge.net/u/kaipe/</uri></author><id>https://sourceforge.net3f497028af32e4a70c3ee019f484e4a936688463</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; accepted&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Priority&lt;/strong&gt;: 5 --&amp;gt; 8&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#4 class loading conflicts with springjunit4classrunner</title><link href="https://sourceforge.net/p/callbackparams/bugs/4/?limit=25#065a" rel="alternate"/><published>2014-11-17T14:42:03.460000Z</published><updated>2014-11-17T14:42:03.460000Z</updated><author><name>Artur</name><uri>https://sourceforge.net/u/apfelpl/</uri></author><id>https://sourceforge.net9e4f59d6caa6651ff86c2ed783d4fc9c3949bbcc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ok, I am not sure if this is a valid bug for the project&lt;br /&gt;
passing&lt;/p&gt;
&lt;p&gt;-Dlog4j.ignoreTCL=true &lt;/p&gt;
&lt;p&gt;solved the problem. The logger is working now correctly.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#4 class loading conflicts with springjunit4classrunner</title><link href="https://sourceforge.net/p/callbackparams/bugs/4/?limit=25#7ab6" rel="alternate"/><published>2014-11-17T13:10:49.937000Z</published><updated>2014-11-17T13:10:49.937000Z</updated><author><name>Artur</name><uri>https://sourceforge.net/u/apfelpl/</uri></author><id>https://sourceforge.net0129aa08c9325ab52513beb1359b48fd1b2b1814</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It seems that step 2 is not even required. &lt;br /&gt;
It's enough to use step 1 and the error is thrown when spring tries to configure log4j&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>class loading conflicts with springjunit4classrunner</title><link href="https://sourceforge.net/p/callbackparams/bugs/4/" rel="alternate"/><published>2014-11-17T11:54:01.030000Z</published><updated>2014-11-17T11:54:01.030000Z</updated><author><name>Artur</name><uri>https://sourceforge.net/u/apfelpl/</uri></author><id>https://sourceforge.netc2671596239536dab63a69beb007e589b532c8a4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Using CallbackParams in conjunction with spring test runner results in classloading clashes.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Use Callback Params with conjunction with spring runner:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
@RunWith(CallbackParamsRunner.class)&lt;br /&gt;
@WrappedRunner(SpringJUnit4ClassRunner.class)&lt;br /&gt;
&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;
&lt;/code&gt;&lt;/li&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;
&lt;/code&gt;&lt;li&gt;
&lt;p&gt;Use a logger in your test class&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
private static Log logger; &lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Running the test will result in the following error&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
log4j:ERROR A "org.apache.log4j.RollingFileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.&lt;br /&gt;
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by &lt;br /&gt;
log4j:ERROR &lt;span&gt;[org.callbackparams.internal.CallbackTestClassReloader@3e401b01]&lt;/span&gt; whereas object of type &lt;br /&gt;
log4j:ERROR "org.apache.log4j.RollingFileAppender" was loaded by &lt;span&gt;[sun.misc.Launcher$AppClassLoader@17072b90]&lt;/span&gt;.&lt;br /&gt;
log4j:ERROR Could not instantiate appender named "rfile".&lt;br /&gt;
log4j:WARN No appenders could be found for logger (org.springframework.test.context.TestContextManager).&lt;br /&gt;
log4j:WARN Please initialize the log4j system properly.&lt;br /&gt;
&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;
&lt;/code&gt;&lt;/li&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;
&lt;/code&gt;&lt;/ol&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;
&lt;p&gt;Is this a known issue?&lt;br /&gt;
cheers&lt;br /&gt;
Artur&lt;/p&gt;&lt;/code&gt;&lt;/div&gt;</summary></entry><entry><title>class loading conflicts with springjunit4classrunner</title><link href="https://sourceforge.net/p/callbackparams/bugs/4/" rel="alternate"/><published>2014-11-17T11:54:01.030000Z</published><updated>2014-11-17T11:54:01.030000Z</updated><author><name>Artur</name><uri>https://sourceforge.net/u/apfelpl/</uri></author><id>https://sourceforge.netc7216cd7fdd837c34f6ab4e89365c4e5fd74be0d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 4 has been modified: class loading conflicts with springjunit4classrunner&lt;br /&gt;
Edited By: Henrik Kaipe (kaipe)&lt;br /&gt;
Status updated: u'open' =&amp;gt; u'accepted'&lt;br /&gt;
_priority updated: u'5' =&amp;gt; u'8'&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#3 Initialization error: can't find a method in the BCEL library</title><link href="https://sourceforge.net/p/callbackparams/bugs/3/?limit=25#3f9b" rel="alternate"/><published>2014-10-27T20:12:09.808000Z</published><updated>2014-10-27T20:12:09.808000Z</updated><author><name>Henrik Kaipe</name><uri>https://sourceforge.net/u/kaipe/</uri></author><id>https://sourceforge.net308931df6f434ad34f5a4a6cfdaf4c8abc6ec783</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you for this report. I am glad you seem to have found a workaround for the problem but I keep this issue open for a while in hope of more feedback on the effects of this problem. Maybe someone can come up with a small quick-fix to help CallbackParams co-existance with Xalan.&lt;/p&gt;
&lt;p&gt;A couple of other thoughts on this issue ...&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;I am not sure about your specific case but it might be a good idea to put the test-dependencies first on class-path.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;This kind of problem was predicted a long time ago and a possible solution has been suggested - maven-shade-plugin:  &lt;a href="http://maven.apache.org/plugins/maven-shade-plugin/examples/class-relocation.html" rel="nofollow"&gt;http://maven.apache.org/plugins/maven-shade-plugin/examples/class-relocation.html&lt;/a&gt;&lt;br /&gt;
But so far the drawbacks, such as a more complicated development-and-buld process, have stood out and made us stick with the explicit BCEL-dependency and the potential version-conflicts that come with it.&lt;br /&gt;
Do you think it would a better idea to hurry up with BCEL shading and class-relocation? then please let us know&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#3 Initialization error: can't find a method in the BCEL library</title><link href="https://sourceforge.net/p/callbackparams/bugs/3/?limit=25#0bf1" rel="alternate"/><published>2014-10-22T14:44:20.227000Z</published><updated>2014-10-22T14:44:20.227000Z</updated><author><name>Jeremy John Reeder</name><uri>https://sourceforge.net/u/jeremyjohn/</uri></author><id>https://sourceforge.netea1854dadaf17a4327701776758dbaa40f9765cb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I discovered the problem. Another library, by the name of Xalan, is used by my project. Inside that library is embedded another version of BCEL. I had to edit my pom.xml file to exclude portions of Xalan from the classpath.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Initialization error: can't find a method in the BCEL library</title><link href="https://sourceforge.net/p/callbackparams/bugs/3/" rel="alternate"/><published>2014-10-21T17:49:56.465000Z</published><updated>2014-10-21T17:49:56.465000Z</updated><author><name>Jeremy John Reeder</name><uri>https://sourceforge.net/u/jeremyjohn/</uri></author><id>https://sourceforge.net623bf3344b3461e9289cfa8eedaa690bbeefdede</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In Java 7, JUnit 4.11 reports an "initializationError" when I try to run a test through CallbackParamsRunner with CallbackParams 1.0-beta-6. The stack trace is as follows:&lt;/p&gt;
&lt;p&gt;java.lang.NoSuchMethodError: org.apache.bcel.generic.Type.getType(Ljava/lang/Class;)Lorg/apache/bcel/generic/Type;&lt;br /&gt;
    at org.callbackparams.internal.CallbackMethodProxyingRebyter.&amp;lt;clinit&amp;gt;(CallbackMethodProxyingRebyter.java:59)&lt;br /&gt;
    at org.callbackparams.internal.CallbackTestClassReloader.newInstance(CallbackTestClassReloader.java:98)&lt;br /&gt;
    at org.callbackparams.junit4.Junit4RunWrapper.&amp;lt;init&amp;gt;(Junit4RunWrapper.java:36)&lt;br /&gt;
    ...&lt;/p&gt;
&lt;p&gt;The Dependency Analyzer of the Maven Helper plugin for IntelliJ IDEA shows no BCEL conflicts, the only version of BCEL being the one that's included by CallbackParams: version 5.2. I can see that org.apache.bcel.generic.Type.getType(String) exists, but getType(Class) certainly does not exist in that class. Why is CallbackMethodProxyingRebyter depending on a method that doesn't exist?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Make callbacks eligible candidates for Mockito spying</title><link href="https://sourceforge.net/p/callbackparams/bugs/2/" rel="alternate"/><published>2010-12-04T14:21:16Z</published><updated>2010-12-04T14:21:16Z</updated><author><name>Henrik Kaipe</name><uri>https://sourceforge.net/u/kaipe/</uri></author><id>https://sourceforge.net9cbbbef86f9fae52f18f76ea941de49a24bf7e1c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Using version 1.8.5 of Mockito - try this in a CallbackParams test-class:&lt;/p&gt;
&lt;p&gt;@CallbackField Collection&amp;lt;?&amp;gt; callback;&lt;br /&gt;
{&lt;br /&gt;
callback = Mockito.spy(callback);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;The initiative will result in a MockitoException with this message:&lt;br /&gt;
Cannot mock/spy class $Proxy9&lt;br /&gt;
Mockito cannot mock/spy following:&lt;br /&gt;
- final classes&lt;br /&gt;
- anonymous classes&lt;br /&gt;
- primitive types&lt;/p&gt;
&lt;p&gt;In short - callbacks are not eligible candidates for Mockito spying. There is a reason for this - the callbacks are created by using the Java SE API for dynamic proxies. However, there is no good reason to why callbacks should be non-eligible for Mockito spying, so this should be fixed. It is probably easy to fix by creating some hand-rolled dynamic-proxy tools that also provide Mockito with desirable class-implementations for the callback instances.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Generics does not work</title><link href="https://sourceforge.net/p/callbackparams/bugs/1/" rel="alternate"/><published>2010-11-29T22:46:29Z</published><updated>2010-11-29T22:46:29Z</updated><author><name>Henrik Kaipe</name><uri>https://sourceforge.net/u/kaipe/</uri></author><id>https://sourceforge.netc51f20043649bb248c9f48011258e133a4972438</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When a callback declaration used generic type templates, such as ...&lt;br /&gt;
MyCallbackInterface&amp;lt;Whatever&amp;gt; callback&lt;br /&gt;
... then "callback" will be forwarded to all callback-elements that can produce an instance of MyCallbackInterface, regardless of whether the type-parameter is "Whatever" or not. This should be fixed so that only instances of the specified generic type will be exposed.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>