[Installation, Configuration & DEPLOYMENT] - NoSuchMethodError when accessing library class.
by leomrlima
My JBoss Version is 4.2.3, and I'm using Sun's JDK 1.6.0_11 in a RHEL 2.6.9-55.ELsmp. I'm also using current Apache POI 3.5-beta5 (poi-3.5-beta5.jar).
When my application tries to access a method (that compiles OK in Eclipse using the same .jar file), it throws a:
java.lang.NoSuchMethodError: org.apache.poi.hssf.usermodel.HSSFCell.setCellValue(Lorg/apache/poi/hssf/usermodel/HSSFRichTextString;)V
Which I find strange, as the only library containing POI files is the correct one. I tried to validate the .jar file used accessing "name=Default,service=LoaderRepository" from the JMX Console. The method displayClassInfo() gets me the same UnifiedClassLoader3 object hash and the correct code source (++++CodeSource: (file:/data/jboss/server/default/lib/poi-3.5-beta5.jar )).
I tried to 'google' around but I found only references about multiple .jar files, which I don't know is the problem here, because I get the correct .jar when I display the class info.
What can I do to resolve this? Is there a way to invoce "displayClassInfo()" from inside the App context?
Thanks!
Leonardo.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226606#4226606
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226606
17 years, 2 months
[JBoss Cache: Core Edition] - ERROR [UDP] failed handling incoming message
by krishnan366
I get this error repeatedly in my jboss 5.0.0 GA console, everytime after a re-deployment and none of the get or put requests work. I am using jbosscache 3.0.2 GA
ERROR [UDP] failed handling incoming message
| java.lang.NoClassDefFoundError
| at org.jgroups.protocols.UNICAST.handleDataReceived(UNICAST.java:565)
| at org.jgroups.protocols.UNICAST.up(UNICAST.java:282)
| at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:747)
| at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:167)
| at org.jgroups.protocols.FD.up(FD.java:284)
| at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:308)
| at org.jgroups.protocols.MERGE2.up(MERGE2.java:144)
| at org.jgroups.protocols.Discovery.up(Discovery.java:263)
| at org.jgroups.protocols.PING.up(PING.java:270)
| at org.jgroups.protocols.TP.passMessageUp(TP.java:1277)
| at org.jgroups.protocols.TP.access$100(TP.java:49)
| at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1830)
|
| at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1809)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
| utor.java:650)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
| .java:675)
| at java.lang.Thread.run(Thread.java:595)
Workaround : If I restart the server , everything works as expected.
What is the permanent solution to this problem?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226603#4226603
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226603
17 years, 2 months
[Microcontainer] - Re: Hashtable Bean in microcontainer XML configuration
by alesj
"jmesnil" wrote :
| Is it possible to do that?
|
Sure it is.
Hashtable is just the name of the class for what MC knows.
OK, the trick is still to get those entries in. ;-)
| <bean name="JNDI" class="java.util.Hashtable">
| <install method="put">
| <parameter>java.naming.provider.url</parameter>
| <parameter>jnp://localhost:1099</parameter>
| </install>
| </bean>
|
or
| <bean name="JNDI" class="java.util.Hashtable">
| <constructor class="java.util.Map">
| <map class="java.util.Hashtable" keyClass="java.lang.String" valueClass="java.lang.String">
| <entry> <key>java.naming.factory.initial</key> <value>org.jnp.interfaces.NamingContextFactory</value>
| </entry>
| <entry>
| <key>java.naming.provider.url</key>
| <value>jnp://localhost:1099</value>
| </entry>
| <entry>
| <key>java.naming.factory.url.pkgs</key>
| <value>org.jboss.naming:org.jnp.interfaces"</value>
| </entry>
| </map>
| </constructor>
| </bean>
|
"jmesnil" wrote :
| Where can I find an example/doc about that?
|
There is no such (exact) example.
Unless you expect us to cover every bean possible. :-)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226600#4226600
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226600
17 years, 2 months
[Microcontainer] - Hashtable Bean in microcontainer XML configuration
by jmesnil
Hi,
I've several POJOs deployed from the microcontainer which requires a Hashtable in their constructor (JNDI properties fwiw).
I looked in the doc but I've not found a way to declare a Bean which is a Hashtable with all the required properties.
So I use a map in all the POJO's constructor:
| <bean name="SourceDestinationFactory" class="org.jboss.messaging.jms.bridge.impl.JNDIDestinationFactory">
| <constructor>
| <parameter>
| <map class="java.util.Hashtable" keyClass="java.lang.String" valueClass="java.lang.String">
| <entry>
| <key>java.naming.factory.initial</key>
| <value>org.jnp.interfaces.NamingContextFactory</value>
| </entry>
| <entry>
| <key>java.naming.provider.url</key>
| <value>jnp://localhost:1099</value>
| </entry>
| <entry>
| <key>java.naming.factory.url.pkgs</key>
| <value>org.jboss.naming:org.jnp.interfaces"</value>
| </entry>
| </map>
| </parameter>
| <parameter>/queue/source</parameter>
| </constructor>
| </bean>
|
What I'd like is to define a "JNDI" bean and inject it directly in my POJOs instead:
| <bean name="SourceDestinationFactory" class="org.jboss.messaging.jms.bridge.impl.JNDIDestinationFactory">
| <constructor>
| <parameter>
| <inject bean="JNDI" />
| </parameter>
| <parameter>/queue/source</parameter>
| </constructor>
| </bean>
|
where JNDI bean is a Hashtable where I filled in the JNDI properties
Is it possible to do that? Where can I find an example/doc about that?
thanks!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226592#4226592
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226592
17 years, 2 months