[JBoss Messaging] - Re: Receiving IllegalStateExceptions in client
by timfox
Ben -
I have run your example using 1.0.1.SP4, Windows XP, MySQL, InnoDB and with your paging settings, and I see no exceptions on the client side or in the server side logs:
| run:
| [java] Attempting to send 20000 messages to the testQueue queue...
| [java] 1000 messages sent to server...
| [java] 2000 messages sent to server...
| [java] 3000 messages sent to server...
| [java] 4000 messages sent to server...
| [java] 5000 messages sent to server...
| [java] 6000 messages sent to server...
| [java] 7000 messages sent to server...
| [java] 8000 messages sent to server...
| [java] 9000 messages sent to server...
| [java] 10000 messages sent to server...
| [java] 11000 messages sent to server...
| [java] 12000 messages sent to server...
| [java] 13000 messages sent to server...
| [java] 14000 messages sent to server...
| [java] 15000 messages sent to server...
| [java] 16000 messages sent to server...
| [java] 17000 messages sent to server...
| [java] 18000 messages sent to server...
| [java] 19000 messages sent to server...
| [java] 20000 messages sent to server...
| [java] Finished sending 20000 messages to the testQueue queue
| [java] About to start 10 connections with 50 sessions per connection...
| [java] Connections started. Will allow 120000 milliseconds for listeners to
| receive all messages...
|
| [java] #####################
| [java] ### SUCCESS! ###
| [java] #####################
|
| BUILD SUCCESSFUL
| Total time: 2 minutes 18 seconds
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017559#4017559
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017559
19Â years, 2Â months
[Management, JMX/JBoss] - JMX RMI Remote Client Notification Problem
by GeorgFriedrich
Hi,
I have to write an Eclipse RCP based Client for our JEE Application.
I'm using JBoss 4.0.5.GA with JDK 5 and I have a problem with JMX notifications.
I can successfully connect to the MBeanServer with:
MBeanServerConnection server = (MBeanServerConnection) ctx.lookup("jmx/invoker/RMIAdaptor");
and the
server.isRegistered(new ObjectName("MY_OBJECT_NAME"));
will be successfully executed.
But if I want to register one of my Rich-Client classes as a NotificationListener I become an error:
Caused by: java.lang.NoClassDefFoundError: my/package/MyNotificationListener
Sure, JBoss do not know all of my Rich-Client classes, because I don't copy all of my classes into the $JBOSS_HOME/server/default/lib folder for example!
The "addNotificationListener(...)" call is only successfull, if I use a class which is only do a simple System.out and don't know any of my other classes.
What can I do? I have searched in WIKI, FAQJBossJMX, in this Board, google,... nothing! All examples (e.g. http://wiki.jboss.org/wiki/Wiki.jsp?page=HowDoIAddANotificationListenerTo...) only do a System.out in the
public void handleNotification(Notification notification, Object handback) and do not call another listener. :-/
Thanks for any suggestions...
Georg
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017557#4017557
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017557
19Â years, 2Â months
[Beginners Corner] - loading classes by unregistered classloader
by fuzebest
I really don't know where to post this message, so post it here.
I have an ear containing sar archive. Ear uses own classloader repository defined in META-INF/jboss-app.xml. Sar contains MBean exporting service via RMI, all dependant classes are in the server lib directory.
If I put ear into deploy directory and start Jboss (v 4.0.4, the same applies to 4.0.5) everything works fine.
But if I redeploy ear, Jboss gives me NullPointerException (actually ClassNotFoundException) loading one of my classes.
Detailed stack trace
| java.lang.NullPointerException
| at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:620)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:464)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Class.java:242)
| at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:154)
| at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
| at org.jboss.system.JBossRMIClassLoader.loadClass(JBossRMIClassLoader.java:91)
| at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
| at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
| at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544)
| at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
| at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
| at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
| at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
| at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375)
| at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
| at sun.rmi.transport.Transport$1.run(Transport.java:153)
| at java.security.AccessController.doPrivileged(Native Method)
| at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
| at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
| at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
| at java.lang.Thread.run(Thread.java:595)
| at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
| at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
| at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
| at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
| at org.springframework.remoting.rmi.RmiServiceExporter.prepare(RmiServiceExporter.java:256)
|
(Yes, it's spring RMI exporter)
After class loading log investigation I've found
| [2961838,RepositoryClassLoader,ScannerThread] Unregistering cl=org.jboss.mx.loading.UnifiedClassLoader3@1171d93{ url=file:/opt/jboss-4.0.4.GA/server/default/tmp/deploy/tmp34664arch.ear ,addedOrder=33}
| [2961838,UnifiedLoaderRepository3,ScannerThread] UnifiedLoaderRepository removed(true) org.jboss.mx.loading.UnifiedClassLoader3@1171d93{ url=file:/opt/jboss-4.0.4.GA/server/default/tmp/deploy/tmp34664arch.ear ,addedOrder=33}
|
| ..............
|
| [3014174,RepositoryClassLoader,RMI TCP Connection(1)-10.0.5.7] loadClass org.jboss.mx.loading.UnifiedClassLoader3@1171d93{ url=null ,addedOrder=33} name=org.springframework.remoting.rmi.RmiInvocationWrapper_Stub, loadClassDepth=0
| [3014174,RepositoryClassLoader,RMI TCP Connection(1)-10.0.5.7] loadClassImpl, name=org.springframework.remoting.rmi.RmiInvocationWrapper_Stub, resolve=false [3014174,RepositoryClassLoader,RMI TCP Connection(1)-10.0.5.7] findClass, name=org.springframework.remoting.rmi.RmiInvocationWrapper_Stub
| [3014175,RepositoryClassLoader,RMI TCP Connection(1)-10.0.5.7] loadClass org.jboss.mx.loading.UnifiedClassLoader3@1171d93{ url=null ,addedOrder=33} name=org.springframework.remoting.rmi.RmiInvocationWrapper_Stub not found
|
In first section - class loader destroyed, in second used again to load classes (between these two steps there is not classloading recreation)
My guess - usage of unregistered classloader. Is it true? And how can I fix it?
Thank you!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017554#4017554
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017554
19Â years, 2Â months
[Clustering/JBoss] - Re: Clustering begginner..please HELP
by sreejava
sorry for asking "where the application.xml has to be created".
I got it from various websites...
Let me explain my directory structure.
Mine was a sample application with the following directory structure which properly served from JBoss server (that is when i make a request for http:// localhost:8080/TestApp/ )
Previous Directory Structure (WAR)
TestApp.war
| | /venkatesh.jsp
| | /showname.jsp
| | /db.jsp
| | /MET-INF
| | /Manifest.mf
| | /WEB-INF
| | /web.xml
|
|
But Now, i have changed the directory structure in order to include the application.xml and made it TestApp.EAR as follows,
This is also properly served from JBoss server. So i think i have included the application.xml correctly.
Current Directory structure (EAR)
TestApp.ear
| |
| |----/META-INF/application.xml
| |
| |----/TestApp.war
| | /venkatesh.jsp
| | /showname.jsp
| | /db.jsp
| | /MET-INF
| | /Manifest.mf
| | /WEB-INF
| | /web.xml
|
|
|
Hope, it is correct.
BUT Painfully.
...
....
....i failed Again!!!!!, even with the following (suggested) modifications...
1. Modified workers.properties as per the suggestion.
2. Removed the unnecessary modification in uriworkermap.properties file
3. included application.xml with the following content
<?xml version="1.0" encoding="UTF-8"?>
|
| <application>
| <module>
| <web>
| <web-uri>TestApp.war</web-uri>
| <context-root>/TestApp</context-root>
| </web>
| </module>
| </application>
4.included the disributable tag in web.xmlas follows
<?xml version="1.0" encoding="UTF-8"?>
| <web-app version="2.4"
| xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
| http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" context-path="/TestApp">
| <distributable/>
| <welcome-file-list>
| <welcome-file>
| venkatesh.jsp
| </welcome-file>
| </welcome-file-list>
| </web-app>
still the page-index.html which is inside htdocs/TestApp/ folder appeears when i try http://TestApp;
Kindly help...
with regards
sree
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017553#4017553
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017553
19Â years, 2Â months
[JBoss Seam] - slow queries using lobs in entities
by koatto
I have a problem querying an entity with a lob property, thats my entity's definition :
| @Entity
| public class File{
| @Id @GeneratedValue(strategy=GenerationType.AUTO)
| long code ;
| @ManyToOne
| Person person = null;
| Date timestamp = Calendar.getInstance().getTime();
| String fileName = "";
| @OneToOne
| User creator = null;
| @OneToOne
| User lastUpdater = null;
| String description = "";
| @Lob @Basic(fetch = FetchType.LAZY)
| Blob contents = null;
|
| ...geters/setters
| }
|
and that's the way a query the objects :
List<File> results =entityManager.createQuery(" from File f").getResultList();
entityManager is injected from the seam's context.
I'm using mysql with mysql inno dialect, the query is very very slow and very memory consuming cause hibernate includes the lob field into the sql.
What am i not doing in the right way?
thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017550#4017550
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017550
19Â years, 2Â months