[JBossCache] - Re: Standalone applications and JBoss Cache
by suppyam
I came to the conclusion that TreeCache is not serializable, which would be strange if true... Which is why I posted the other topic "is TreeCache serializable". When binding TreeCache, its an empty object. So the process is:
1. In my weblogic startup class, I bind an EMPTY TreeCache object. Invoke createService() and startService()
2. In my applicatoin code, I am simply looking up this TreeCache object - and it throws an exception.
| Caused by: javax.naming.ConfigurationException [Root exception is java.rmi.MarshalException: error marshalling return; nested exception is:
| java.io.NotSerializableException: org.jboss.cache.TreeCache]
| at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:45)
| at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:77)
| at weblogic.jndi.internal.WLContextImpl.translateException(WLContextImpl.java:418)
| at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:374)
| at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:359)
| at javax.naming.InitialContext.lookup(InitialContext.java:347)
|
|
With the same code, if I bind a TreeMap object instead, I am able to do the lookup.
Am I missing something?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966941#3966941
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966941
19 years, 8 months
[Beginners Corner] - Error while trying to get no. of threads using twiddle.bat
by dheeraj7400
I'm fairly new to JBoss and I was trying to figure out how to use twiddle. I did not find a lot of documentation or examples posted and for some reason I could not get it through my fat head.
i just want to the thread count of the server running on localhost:8877
and getting following error
can any body have any idea what i m missing...
thanks
dheeraj
D:\jboss-3.2.5\bin>twiddle.bat -s localhost:8877 serverinfo -c
17:36:49,764 WARN [NamingContext] Failed to connect to localhost:8877
javax.naming.CommunicationException: Failed to retrieve stub from server localhost:8877 [Root exception is java.io.EOFException]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:207)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1185)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:516)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.jboss.console.twiddle.Twiddle.createMBeanServerConnection(Twiddle.java:239)
at org.jboss.console.twiddle.Twiddle.connect(Twiddle.java:257)
at org.jboss.console.twiddle.Twiddle.access$300(Twiddle.java:51)
at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:128)
at org.jboss.console.twiddle.command.MBeanServerCommand.getMBeanServer(MBeanServerCommand.java:47)
at org.jboss.console.twiddle.command.ServerInfoCommand.execute(ServerInfoCommand.java:118)
at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:288)
Caused by: java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2165)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2631)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:734)
at java.io.ObjectInputStream.(ObjectInputStream.java:253)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:194)
... 11 more
17:36:54,780 ERROR [Twiddle] Exec failed
org.jboss.util.NestedRuntimeException: Receive timed out; - nested throwable: (javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed
out])
at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:132)
at org.jboss.console.twiddle.command.MBeanServerCommand.getMBeanServer(MBeanServerCommand.java:47)
at org.jboss.console.twiddle.command.ServerInfoCommand.execute(ServerInfoCommand.java:118)
at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:288)
Caused by: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1119)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1196)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:516)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.jboss.console.twiddle.Twiddle.createMBeanServerConnection(Twiddle.java:239)
at org.jboss.console.twiddle.Twiddle.connect(Twiddle.java:257)
at org.jboss.console.twiddle.Twiddle.access$300(Twiddle.java:51)
at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:128)
... 3 more
Caused by: java.net.SocketTimeoutException: Receive timed out
at java.net.PlainDatagramSocketImpl.receive(Native Method)
at java.net.DatagramSocket.receive(DatagramSocket.java:711)
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1089)
... 11 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966940#3966940
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966940
19 years, 8 months