[JBoss-user] [JBoss Messaging] - Re: A simple JMS Client won't work - Errors with different j

2006-05-30 Thread anshah1
I am using jboss-4.0.3SP1 AS. I am not using a stand-alone messaging server. 
The messaging version is I am using is from JBoss Messaging 1.0.0.GA. 

I did not find any jboss-messaging-client.jar file in this distribution so to 
speak. There exists a jboss-messaging-client-scoped.jar in this directory. 
Should I be using this one?

I downloaded the jboss-messaging-1.0.1.CR1 distribution and am using the 
jboss-messaging-client.jar file present there in.

I tried running examples and they went through just fine. Finally, I run my 
client in this manner.

java -cp 
..\lib\jboss-messaging-client.jar;..\lib\jbossall-client.jar;C:\jboss-4.0.3SP1\client\jboss-j2ee.jar;.
 polygraph/PolygraphMessageProducer 

This still hangs and here's the complete stack dump..

 
  | Looking up:: JBossQueue[A]
  | Full thread dump Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode):
  | 
  | "SocketServerInvoker#0-3474" prio=6 tid=0x02ec5e18 nid=0x1594 runnable 
[0x030ef000..0x030efa68]
  | at java.net.PlainSocketImpl.socketAccept(Native Method)
  | at java.net.PlainSocketImpl.accept(Unknown Source)
  | - locked <0x070900a8> (a java.net.SocksSocketImpl)
  | at java.net.ServerSocket.implAccept(Unknown Source)
  | at java.net.ServerSocket.accept(Unknown Source)
  | at 
org.jboss.remoting.transport.socket.SocketServerInvoker.run(SocketServerInvoker.java:383)
  | at java.lang.Thread.run(Unknown Source)
  | 
  | "RMI ConnectionExpiration-[130.20.106.144:1098]" daemon prio=6 
tid=0x02e87b98 nid=0x48c waiting on condition [0x030af000..0x030afae8]
  | at java.lang.Thread.sleep(Native Method)
  | at sun.rmi.transport.tcp.TCPChannel$Reaper.run(Unknown Source)
  | at java.lang.Thread.run(Unknown Source)
  | 
  | "GC Daemon" daemon prio=2 tid=0x02dc0a58 nid=0xb0 in Object.wait() 
[0x0306f000..0x0306fb68]
  | at java.lang.Object.wait(Native Method)
  | - waiting on <0x07509880> (a sun.misc.GC$LatencyLock)
  | at sun.misc.GC$Daemon.run(Unknown Source)
  | - locked <0x07509880> (a sun.misc.GC$LatencyLock)
  | 
  | "RMI RenewClean-[130.20.106.144:1098]" daemon prio=6 tid=0x02e01ce0 
nid=0xb84 in Object.wait() [0x0302f000..0x0302fbe8]
  | at java.lang.Object.wait(Native Method)
  | - waiting on <0x07509530> (a java.lang.ref.ReferenceQueue$Lock)
  | at java.lang.ref.ReferenceQueue.remove(Unknown Source)
  | - locked <0x07509530> (a java.lang.ref.ReferenceQueue$Lock)
  | at 
sun.rmi.transport.DGCClient$EndpointEntry$RenewCleanThread.run(Unknown Source)
  | at java.lang.Thread.run(Unknown Source)
  | 
  | "Low Memory Detector" daemon prio=6 tid=0x00b72778 nid=0x1778 runnable 
[0x..0x]
  | 
  | "CompilerThread0" daemon prio=10 tid=0x00b71478 nid=0x490 waiting on 
condition [0x..0x02cefa4c]
  | 
  | "Signal Dispatcher" daemon prio=10 tid=0x00b70828 nid=0x4a0 waiting on 
condition [0x..0x]
  | 
  | "Finalizer" daemon prio=8 tid=0x00b673c8 nid=0xbb8 in Object.wait() 
[0x02c6f000..0x02c6fa68]
  | at java.lang.Object.wait(Native Method)
  | - waiting on <0x074fab68> (a java.lang.ref.ReferenceQueue$Lock)
  | at java.lang.ref.ReferenceQueue.remove(Unknown Source)
  | - locked <0x074fab68> (a java.lang.ref.ReferenceQueue$Lock)
  | at java.lang.ref.ReferenceQueue.remove(Unknown Source)
  | at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
  | 
  | "Reference Handler" daemon prio=10 tid=0x00b65f30 nid=0x10a4 in 
Object.wait() [0x02c2f000..0x02c2fae8]
  | at java.lang.Object.wait(Native Method)
  | - waiting on <0x074fabe8> (a java.lang.ref.Reference$Lock)
  | at java.lang.Object.wait(Unknown Source)
  | at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
  | - locked <0x074fabe8> (a java.lang.ref.Reference$Lock)
  | 
  | "main" prio=6 tid=0x003a6950 nid=0x230 runnable [0x0007f000..0x0007fc40]
  | at java.net.SocketInputStream.socketRead0(Native Method)
  | at java.net.SocketInputStream.read(Unknown Source)
  | at java.io.BufferedInputStream.fill(Unknown Source)
  | at java.io.BufferedInputStream.read1(Unknown Source)
  | at java.io.BufferedInputStream.read(Unknown Source)
  | - locked <0x07001868> (a java.io.BufferedInputStream)
  | at java.io.FilterInputStream.read(Unknown Source)
  | at 
org.jboss.serial.io.JBossObjectInputStream.checkSignature(JBossObjectInputStream.java:84)
  | at 
org.jboss.serial.io.JBossObjectInputStream.(JBossObjectInputStream.java:68)
  | at 
org.jboss.serial.io.JBossObjectInputStream.(JBossObjectInputStream.java:57)
  | at 
org.jboss.remoting.serialization.impl.jboss.JBossSerializationManager.createInput(JBossSerializationManager.java:57)
  | at 
org.jboss.remoting.transport.socket.ClientSocketWrapper.createInputStream(ClientSocketWrapper.java:83)
  | at 
org.jboss.remoting.transport.socket.ClientSocketWrapper.createStreams(ClientSocketWrapper.java:76)
  | at 
org.jboss.remoting.transport.so

[JBoss-user] [JBoss Messaging] - Re: A simple JMS Client won't work - Errors with different j

2006-05-30 Thread anshah1
Sorry hit submit too fast. On the server I can see errors of this sort.

java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
at java.io.FilterInputStream.read(FilterInputStream.java:66)
at 
org.jboss.serial.io.JBossObjectInputStream.read(JBossObjectInputStream.java:126)
at 
org.jboss.remoting.transport.socket.ServerThread.readVersion(ServerThread.java:464)
at 
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:381)
at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:484)
at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:240)
10:12:46,350 ERROR [ServerThread] failed to process invocation.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947763#3947763

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947763


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Messaging] - Re: A simple JMS Client won't work - Errors with different j

2006-05-30 Thread anshah1
Yes it is a stand alone client. It seems changing the order of 
jbossall-client.jar and jboss-messaging-client.jar helped upto some extent. Now 
there's no exception nothing however my client simply hangs. It gets through 
"Looking up queue::" step and that's about it.

It won't go any further??

Thanks.
Anuj


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947762#3947762

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947762


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Messaging] - A simple JMS Client won't work - Errors with different jars

2006-05-26 Thread anshah1
Hi,

I have a simple JMS Client, 


  | Properties env = new Properties();
  | env.setProperty("java.naming.factory.initial",
  | 
"org.jnp.interfaces.NamingContextFactory");
  | env.setProperty("java.naming.provider.url", 
"servername");
  | env.setProperty("java.naming.factory.url.pkgs",
  | "org.jboss.naming:org.jnp.interfaces");
  | InitialContext jndi = new InitialContext(env);
  | QueueConnectionFactory cf = null;
  | QueueConnection connection = null;
  | cf = (QueueConnectionFactory) 
jndi.lookup("/ConnectionFactory");
  | String lookUpString = "/queue/A";
  | 
  | Queue queue = (Queue) jndi.lookup(lookUpString);
  | System.out.println("Looking up:: " + queue);
  | connection = cf.createQueueConnection();
  | QueueSession session = 
connection.createQueueSession(false,
  | Session.AUTO_ACKNOWLEDGE);
  | QueueSender sender = session.createSender(queue);
  | TextMessage message = session.createTextMessage();
  | message.setText("Results Done!!");
  | System.out.println("In sendMessage()");
  | sender.send(message);
  | 


I have downloaded the 1.0.1.CR2 release. I have the jboss-messaging-client.jar 
from this release in my classpath. However on running this code I get the 
following error.




  | ERROR [main] (JBossConnectionFactory.java:251) - Failed to config client 
side AOP
  | java.lang.reflect.InvocationTargetException
  | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  | at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown 
Source)
  | at java.lang.reflect.Constructor.newInstance(Unknown Source)
  | at 
org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:367)
  | at org.jboss.remoting.Client.connect(Client.java:377)
  | at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.invoke(ClientConnectionFactoryDelegate.java:184)
  | at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$getClientAOPConfig_8697532701842707646.invokeNext(ClientConnectionFactoryDelegate$getClientAOPConfig_8697532701842707646.java)
  | at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.getClientAOPConfig(ClientConnectionFactoryDelegate.java)
  | at 
org.jboss.jms.client.JBossConnectionFactory.ensureAOPConfigLoaded(JBossConnectionFactory.java:234)
  | at 
org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:197)
  | at 
org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:109)
  | at 
org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:104)
  | at 
polygraph.PolygraphMessageProducer.main(PolygraphMessageProducer.java:31)
  | Caused by: java.lang.NoSuchMethodError: 
org.jboss.util.propertyeditor.PropertyEditors.mapJavaBeanProperties(Ljava/lang/Object;Ljava/util/Properties;Z)V
  | at 
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.setup(MicroSocketClientInvoker.java:135)
  | at 
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.(MicroSocketClientInvoker.java:118)
  | at 
org.jboss.remoting.transport.socket.SocketClientInvoker.(SocketClientInvoker.java:108)
  | ... 14 more
  | java.lang.RuntimeException: Failed to config client side AOP
  | at 
org.jboss.jms.client.JBossConnectionFactory.ensureAOPConfigLoaded(JBossConnectionFactory.java:252)
  | at 
org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:197)
  | at 
org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:109)
  | at 
org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:104)
  | at 
polygraph.PolygraphMessageProducer.main(PolygraphMessageProducer.java:31)
  | Caused by: java.lang.reflect.InvocationTargetException
  | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  | at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown 
Source)
  | at java.lang.reflect.Constructor.newInstance(Unknown Source)
  | at 
org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:367)
  | at org.jboss.remoting.Client.connect(Client.java:377)
  | at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.invoke(ClientC

[JBoss-user] [JBoss Messaging] - Problems with JMS table creation: SQLExceptions

2006-04-21 Thread anshah1
Hi,

I had things working till about last night. where I was trying to send a simple 
text message to a queue. I see something of the sort
13:02:16,648 INFO  [Queue] Queue[/queue/NCBIQueue] started, fullSize=75000, 
pageSize=2000, downCacheSize=1000

in my server output and I am sure that the queue is available. Also I find that 
my message driven bean has been deployed correctly. But I never found a line 
that says that the server has started in so many seconds..

When I looked deep into my server.log file I figured that there are innumerable 
SQL exceptions being caused of the form

2006-04-21 13:02:15,539 DEBUG [org.jboss.jms.server.plugin.JDBCChannelMapper] 
Failed to create users table: CREATE TABLE JMS_USER (USERID VARCHAR(32) NOT 
NULL, PASSWD VARCHAR(32) NOT NULL, CLIENTID VARCHAR(128), PRIMARY KEY(USERID))
  | java.sql.SQLException: Table already exists: JMS_USER in statement [CREATE 
TABLE JMS_USER]
  | 
  | java.sql.SQLException: Table already exists: JMS_ROLE in statement [CREATE 
TABLE JMS_ROLE]
  | 


and so on. None of my configuration files have changed from before. here's my 
messaging service.xml file that defines the queue.


  |
  |   jboss.messaging:loader=ScopedLoaderRepository
  |  
java2ParentDelagation=false
  |   
  |   
  |  jboss.messaging:service=ServerPeer
  |   
  |   
  |  jboss.messaging:service=ServerPeer
  |   
  | 
  | 

i can post my application jboss file but it's huge and since I get a line 
saying 

Deployed: 
file:/C:/jboss-4.0.3SP1/server/messaging/tmp/deploy/tmp58411brm.ear-contents/brm-server.jar


I assume that should have deployed just fine and also my application works just 
fine except the messaging part. 

My MDB does not receive the message at all. Of course there's a problem with 
this since the message tables are not created correctly.

Any clue as to how to solve this problem?

Thanks,
Anuj


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938731#3938731

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938731


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Messaging] - Re: Cannot configure JBOSS Messaging

2006-04-17 Thread anshah1
Seems to be working now, I had a problem with my EJB that was listening to the 
queue. Once that was deployed correctly, I could send a message and recieve one 
too.

Thanks for all your time.
Anuj


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937793#3937793

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3937793


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Messaging] - Re: Cannot configure JBOSS Messaging

2006-04-17 Thread anshah1
So here's a step by step

1) Installed Jboss 4.0.3SP1 on my local C: (Windows)
2) Test Server installation .. Works fine. Shutdown server.
3) Download JBOSS Messaging and follow the automatic configuration step
from the user manual
4) Ran one of your samples from the user manual and got SUCCESS there.
5) put the following xml file ( messaging-service.xml ) in 
C:\jboss-4.0.3SP1\server\messaging\deploy


   
  | - 
  | - 
  |   jboss.messaging:loader=ScopedLoaderRepository 
  |   
java2ParentDelagation=false
 
  |   
  | - 
  |   jboss.messaging:service=ServerPeer
 
  |   
  |   

6) Start the server with run -c messaging > debug.txt
7) Try to send a message to this queue using the client code posted before
8) So once I do that I got a ClassNotFoundException on one of the jboss server 
files and hence I had to put the jboss messaging jar file in there.


In my deploy directory (messaging configuration) I have a directory 
C:\jboss-4.0.3SP1\server\messaging\deploy\jboss-messaging.sar.

does that help you identify what might be wrong?

Thanks for your time,
Anuj





View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937756#3937756

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3937756


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Messaging] - Re: Cannot configure JBOSS Messaging

2006-04-14 Thread anshah1
Well if I remove that jar file then I run into other class not found problems..

here's what I got 

11:45:48,439 INFO  [STDOUT] Queue JBossQueue[NCBIQueue] exists
  | 11:45:50,392 INFO  [STDOUT] In sendMessage()
  | 11:45:50,392 ERROR [ExceptionInterceptor] Caught RuntimeException
  | java.lang.RuntimeException: java.lang.ClassNotFoundException: No 
ClassLoaders found for: org.jboss.jms.server.container.SecurityAspect
  | at 
org.jboss.aop.advice.GenericAspectFactory.getClazz(GenericAspectFactory.java:141)
  | at 
org.jboss.aop.advice.GenericAspectFactory.createPerInstance(GenericAspectFactory.java:182)
  | at 
org.jboss.aop.InstanceAdvisorDelegate.initializeAspects(InstanceAdvisorDelegate.java:80)
  | at 
org.jboss.aop.InstanceAdvisorDelegate.(InstanceAdvisorDelegate.java:58)
  | at 
org.jboss.aop.ClassInstanceAdvisor.(ClassInstanceAdvisor.java:72)
  | at 
org.jboss.jms.server.endpoint.advised.SessionAdvised._getInstanceAdvisor(SessionAdvised.java)

Once I put the jar file in there, all class not found errors do disappear for 
sure. 


Thanks,
anuj


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937436#3937436

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3937436


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Messaging] - Re: Cannot configure JBOSS Messaging

2006-04-14 Thread anshah1
Yes, 

So presently I am in the test phase and am trying to send a message from a SLSB 
to the queue. I have my jboss-messaging-client-scoped.jar file in the lib 
directory for my jboss messaging configuration 
($JBOSS_HOME/server/messaging/lib).

Is there any other jar file that I would need?

Thanks
Anuj


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937416#3937416

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3937416


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Messaging] - Re: Cannot configure JBOSS Messaging

2006-04-13 Thread anshah1
Hmm. So that problem is now fixed. I can see messages while my server is 
running that tell me that the deployment worked just fine. however here's an 
exception I get when I try to send a message to my queue.

Firstly, I can see the following

  | 16:42:41,723 INFO  [Queue] Queue[/queue/NCBIQueue] started, fullSize=75000, 
pageSize=2000, downCacheSize=1000
  | 

So now I know that it's available. Here's my send message code
InitialContext ic = null;
  |QueueConnectionFactory cf = null;
  |QueueConnection connection =  null;
  |QueueConnection connection2 =  null;
  | 
  |try {
  | 
  |ic = new InitialContext();
  | 
  |cf = (QueueConnectionFactory)ic.lookup("/ConnectionFactory");
  |Queue queue = (Queue)ic.lookup("queue/NCBIQueue");
  |System.out.println("Queue " + queue + " exists");
  | 
  |connection = cf.createQueueConnection();
  |QueueSession session = connection.createQueueSession(false, 
Session.AUTO_ACKNOWLEDGE);
  |QueueSender sender = session.createSender(queue);
  |   
  |TextMessage message = session.createTextMessage("Hello!");
  |System.out.println("In sendMessage()");
  |sender.send(message);
  | 
  |}catch(NamingException ne){
  |ne.printStackTrace();
  | 
  |}catch(JMSException jmse){
  |jmse.printStackTrace();
  | 
  |}catch(Exception e){
  |e.printStackTrace();
  | 
  |}finally{
  | 
  |if(ic != null) {
  |try {
  |connection.close();
  |ic.close();
  |}catch(Exception ignore){ }
  |}
  |   
  |}

however this throws the following exception

java.lang.IllegalStateException: Unable to resolve MethodInvocation advice 
org.jboss.jms.server.container.SecurityAspect.handleSend
  | at 
org.jboss.aop.advice.AbstractAdvice.resolveAdvice(AbstractAdvice.java:228)
  | at 
org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:125)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at org.jboss.aop.Advisor.dynamicInvoke(Advisor.java:719)
  | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:99)
  | at 
org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:126)
  | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:831)
  | at 
org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:72)
  | at org.jboss.remoting.Client.invoke(Client.java:527)
  | at org.jboss.remoting.Client.invoke(Client.java:490)
  | at 
org.jboss.jms.client.delegate.DelegateSupport.invoke(DelegateSupport.java:112)
  | at 
org.jboss.jms.client.delegate.ClientSessionDelegate$send_N3028277934545793941.invokeNext(ClientSessionDelegate$send_N3028277934545793941.java)
  | at 
org.jboss.jms.client.container.TransactionAspect.handleSend(TransactionAspect.java:151)
  | at 
org.jboss.aop.advice.org.jboss.jms.client.container.TransactionAspect11.invoke(TransactionAspect11.java)
  | at 
org.jboss.jms.client.delegate.ClientSessionDelegate$send_N3028277934545793941.invokeNext(ClientSessionDelegate$send_N3028277934545793941.java)
  | at 
org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:130)
  | at 
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:117)
  | at 
org.jboss.jms.client.delegate.ClientSessionDelegate$send_N3028277934545793941.invokeNext(ClientSessionDelegate$send_N3028277934545793941.java)
  | at 
org.jboss.jms.client.container.ExceptionInterceptor.invoke(ExceptionInterceptor.java:69)
  | at 
org.jboss.jms.client.delegate.ClientSessionDelegate$send_N3028277934545793941.invokeNext(ClientSessionDelegate$send_N3028277934545793941.java)
  | at 
org.jboss.jms.client.container.ClientLogInterceptor.invoke(ClientLogInterceptor.java:107)
  | at 
org.jboss.jms.client.delegate.ClientSessionDelegate$send_N3028277934545793941.invokeNext(ClientSessionDelegate$send_N3028277934545793941.java)
  | at 
org.jboss.jms.client.delegate.ClientSessionDelegate.send(ClientSessionDelegate.java)
  | at 
org.jboss.jms.client.container.ProducerAspect.handleSend(ProducerAspect.java:238)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |

[JBoss-user] [EJB/JBoss] - Re: when i deploy an ejb with jboss4.0.4,those exceptions oc

2006-04-04 Thread anshah1
Sorry, wrong post. i don't get a warning, in fact I get an error from JBOSS
saying

Bean   : NCBIMessageDrivenBean
  | Method : public void ejbCreate() throws CreateException
  | Section: 15.7.3
  | Warning: The ejbCreate() method must define no application exceptions.
  | 
  | 12:08:54,724 ERROR [MainDeployer] Could not create deployment: 
file:/C:/jboss-4.0.3SP1/server/default/tmp/deploy/tmp23571brm.ear-contents/brm-server.jar
  | org.jboss.deployment.DeploymentException: Verification of Enterprise Beans 
failed, see above for error messages.
  | at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:575)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDisp

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3934903#3934903

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934903


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: when i deploy an ejb with jboss4.0.4,those exceptions oc

2006-04-04 Thread anshah1
It's interesting that I am the only one replying to my own posts. But 
nevertheless this might help someone along the line who runs into this.

I solved the problem by simply removing the throws clause from both ejbCreate 
and ejbRemove methods. 

At least the bean deployed just fine.

-Anuj


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3934911#3934911

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934911


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: when i deploy an ejb with jboss4.0.4,those exceptions oc

2006-04-04 Thread anshah1
I get a similiar message, and i have an ejbCreate method in my bean. 

I am using Message Driven Bean here along with XDoclet. But it seems no matter 
what i do I always get that exception.

Here's a snapshot of my bean

  | /**
  |  * @ejb.bean name="NCBIMessageDrivenBean"
  |  *  destination-type="javax.jms.Queue"
  |  *
  |  * @jboss.destination-jndi-name name="queue/NCBIQueue"
  |  */
  | public class NCBIMessageDrivenBean implements MessageDrivenBean, 
MessageListener {
  | 
  |  /**
  |   * @ejb.create-method
  |   */
  |   public void ejbCreate() throws javax.ejb.CreateException {
  | 
  |   }
  | 

My guess is Xdoclet is screwing up somewhere but I am not sure where. Since 
XDoclet generally just generates the supporting JAVA and XML files. This seems 
to be more like a deployment issue with JBOSS. 

Any clues on how to proceed debugging this ??

Thanks
anuj


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3934901#3934901

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934901


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: Help requried for JBoss 3.2.5 behind Firewall

2006-03-30 Thread anshah1
Hi Sanket,

Here's a list of things i did.

Firstly my client code

  | Properties env = new Properties();
  | 
  | env.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
"org.jboss.naming.HttpNamingContextFactory");
  | env.setProperty(Context.PROVIDER_URL, 
"http://externaladdr:8080/invoker/JNDIFactory";);
  | Context ctx = new InitialContext(env);
  | Object data = ctx .lookup("jmx/invoker/RMIAdaptor");
  | 

So, i am not using a jndi properties file on the client at all. it's all hard 
coded in there at present.

Then my jboss.xml for one particular bean is


  | 
  |  CCEAppSessionBean
  |  ejb/CCEAppSessionBean
  |  CCEAppSessionBeanLocal
  |  Standard Stateless 
SessionBean
  |  
  | 
  | 
  | stateless-http-invoker
  | 
  | 
  |  
  | 
  | 
  |   
  | 

and the invoker binding is 


  | 
  | stateless-http-invoker
  | jboss:service=invoker,type=http
  | org.jboss.proxy.ejb.ProxyFactory
  | 
  | 
  | 
  |  org.jboss.proxy.ejb.HomeInterceptor
  | org.jboss.proxy.SecurityInterceptor  
 org.jboss.proxy.TransactionInterceptor
  | org.jboss.invocation.InvokerInterceptor
  | 
  | 
  | 
  | 
  | 
org.jboss.proxy.SecurityInterceptor
  | org.jboss.proxy.TransactionInterceptor
  | org.jboss.invocation.InvokerInterceptor
  |  
  | 
  | 
  | 
  | 

And this is the jboss.xml for my application. As far as the jboss-service.xml 
is concerned i am not sure whether i have to change anything cause that looks 
all configured by default. This seems like a good tech-note to do, a step by 
step process. Couldn't find sufficient documentation on this topic at all.

Thanks.,
Anuj



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933802#3933802

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933802


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: Help requried for JBoss 3.2.5 behind Firewall

2006-03-29 Thread anshah1
I am trying to achieve the same kind of deal. RMI over http with JBOSS 4.

I was wondering what would be the correct way of testing this. Everything seems 
to be working fine however I do not know whether it's over Http or direct RMI.

i have modified my jboss.xml to create invoker bindings for both stateless and 
stateful sessions beans. My Entity beans are accessed only locally by the 
server.

Thanks,
anuj


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933546#3933546

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933546


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: Hot deploy of ds.xml files generates errors

2006-03-16 Thread anshah1
Have I not read the manual or something??


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930747#3930747

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930747


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Hot deploy of ds.xml files generates errors

2006-03-10 Thread anshah1
Hi,

I am using JBOSS 4.0.3SP1 with Java 1.5.2. I have noticed an issue when it 
comes to changing *ds.xml files present in the deploy directory. 

I get this error.

10:57:39,588 INFO  [ConnectionFactoryBindingService] Unbound ConnectionManager 
'jboss.jca:name=KEGGDS,service=DataSourceBinding' from JNDI name 'java:KEGGDS'
10:57:39,603 INFO  [ConnectionFactoryBindingService] Unbound ConnectionManager 
'jboss.jca:name=IPDS,service=DataSourceBinding' from JNDI name 'java:IPDS'
10:57:39,603 INFO  [ConnectionFactoryBindingService] Unbound ConnectionManager 
'jboss.jca:name=BRMDS,service=DataSourceBinding' from JNDI name 'java:BRMDS'
10:57:40,650 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 
'jboss.jca:name=BRMDS,service=DataSourceBinding' to JNDI name 'java:BRMDS'
10:57:40,650 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 
'jboss.jca:name=IPDS,service=DataSourceBinding' to JNDI name 'java:IPDS'
10:57:40,650 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 
'jboss.jca:name=KEGGDS,service=DataSourceBinding' to JNDI name 'java:KEGGDS'
10:59:06,702 ERROR [UserBean#findByName] Find failed
org.jboss.util.NestedSQLException: You are trying to use a connection factory 
that has been shut down: ManagedConnectionFactory is null.; - nested throwable: 
(javax.resource.ResourceException: You are trying to use a connection factory 
that has been shut down: ManagedConnectionFactory is null.)
at 
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:79)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.execute(JDBCAbstractQueryCommand.java:210)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.execute(JDBCAbstractQueryCommand.java:128)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityCommand.java:47)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntity(JDBCStoreManager.java:589)
at 
org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager.java:300)
at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity(CachedConnectionInterceptor.java:236)
at 
org.jboss.ejb.EntityContainer.findSingleObject(EntityContainer.java:1086)
at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:663)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at 
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1113)
at 
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)
at 
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:189)
at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:180)
at 
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)


It seems like it unbinds the JNDI name and rebinds it just fine, however the 
next time I try to connect, it throws the above error.

Any suggestions?

Thanks,
Anuj


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929432#3929432

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929432


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Client blocks while accessing EJB on JBOSS ver4.0.3

2006-03-02 Thread anshah1
This post is for other ignorant people like me. Investigate the Service 
Activator design pattern for this problem. 

--Anuj

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927633#3927633

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927633


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Client blocks while accessing EJB on JBOSS ver4.0.3

2006-02-28 Thread anshah1
I guess you're right, I was reading a bit about JMS and think that it would 
work best for our situation. Thanks a lot for your help persabi.

I'll have more questions on MDB later. :))

Anuj


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926875#3926875

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926875


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Client blocks while accessing EJB on JBOSS ver4.0.3

2006-02-27 Thread anshah1
Thanks for your reply, however this does not appear to be the right solution in 
my case. 

 System.out.println("Waiting for asynbch invocation to complete");
  while (!future.isDone())
  {
 Thread.sleep(100);
  }
  ret = (String)future.get();


This effectively means that the client is waiting for some response for the 
server, however in my case my client may simply log off and wish to come back 
later. The next time the client logs in, some form of UI tells the client 
"Welcome Mister, you task is now complete, you can retrieve your data by 
clicking here"


thanks once again.
Anuj








View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926642#3926642

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926642


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Client blocks while accessing EJB on JBOSS ver4.0.3

2006-02-24 Thread anshah1
Hi,

I believe I've found the problem, however not the solution yet. The problem has 
to do with a transaction that is initiated by a stateless SB. So here's the 
scenario.

The client initiates a request for data retrieval from a remote web service 
API. This request is handled on the server side by a SLSB. The SLSB now queries 
the web service and retrieves data to put in the local database. It so happens 
that the web service retrieval takes a long time, more than the set transaction 
time and the session timeout. Now the jboss server tries either remove this 
bean or remove the transaction and things don't quite work out. It then creates 
a number of context lock messages and finally just hangs.

So that's the problem. the solution to this would be to not use SLSB for these 
long running tasks. I've been googling this quite a bit and it seems there's 
something of a Work Manager API in the new jboss and that should be able to 
handle such tasks.

My question now is a design question. What is the best way to handle a large 
computation or a large data retrieval task (whose time is going to be longer 
than either the session timeout or transaction timeout) using EJBs? 

Is JMS an option, a work manager api or something else? Also we can now move to 
something of this sort. Say a user initiates a request, we want to process it 
at our own time and return the results to the user at some time later. So this 
is kind of asynchronous.

Please point me to the best solution for this problem in terms of design.

Sincerely,
Anuj


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926198#3926198

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926198


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Client blocks while accessing EJB on JBOSS ver4.0.3

2006-02-22 Thread anshah1
Hi, 

i have a client server environment set up and the server (EJB 2.0) version is 
4.0.3SP1. Now I run into a situation here. 

Suppose I am logged in my client using a particular user and pswd, then I 
execute a task which takes a couple of minutes to run. This task is handled by 
a stateless SB, involves querying a web service for some data and then finally 
updating the database with retrieved value and displaying them to the user. 

Now if i try to log in again, using the same user and password but a new client 
instance, i do not get any exception thrown, however my client simply blocks 
and waits till my first task was completed. 

The moment my execution task is completed, my login goes through and i get 
access to my client environment. 

Also if I were to create two separate instances of my client environment and 
login using the same user, i can do that. That is to say that I can have two 
sessions for the same user operating simultaneously, but i am sure if i try to 
run any tasks, then they'll be blocked until the first executed one completes. 

I am quite confused with this operation. Also I am kind of a beginner in this 
regard. 

We need to get this problem sorted out soon, I appreciate any pointers or help 
in this matter. 

thanks, 
Anuj 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925649#3925649

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925649


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Client blocks while accessing JBOSS4.0.3SP1

2006-02-21 Thread anshah1
Hi,

i have a client server environment set up and the server version is 4.0.3SP1. 
Now I run into a situation here. 

Suppose I am logged in my client using a particular user and pswd, then I 
execute a task which takes a couple of minutes to run. This task is handled by 
a stateless session bean, involves querying a web service for some data and 
then finally updating the database with retrieved value and displaying them to 
the user. 

Now if i try to log in again, using the same user and password but a new client 
instance, i do not get any exception thrown, however my client simply blocks 
and waits till my first task was completed. 

The moment my execution task is completed, my login goes through and i get 
access to my client environment.

Also if I were to create two separate instances of my client environment and 
login using the same user, i can do that. That is to say that I can have two 
sessions for the same user operating simultaneously, but i am sure if i try to 
run any tasks, then they'll be blocked until the first executed one completes.

I am quite confused with this operation. Also I am kind of a beginner in this 
regard. 

We need to get this problem sorted out soon, I appreciate any pointers or help 
in this matter.

thanks,
Anuj


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925450#3925450

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925450


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: StateLESS Session bean throws Could not passivate except

2005-12-14 Thread anshah1
please ignore this post entirely!! it was a stateful bean in which there was a 
java.sql.Connection which is could not passivate...

Anyways the only complain I have now is that it could have atleast told me that 
on the stack trace somewhere... but nevertheless all is well that ends well



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912744#3912744

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912744


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - StateLESS Session bean throws Could not passivate exception

2005-12-14 Thread anshah1
Hi all,

i am quite perplexed by this situation. My config is JBOSS 3.2.1 with Java and 
connecting to a postgres database. all my connections work just fine and our 
system is in good shape except one glitch.

We are retrieving data from some external datasource. This process takes a good 
20-30 minutes to come back. In all these activities we are using simple 
stateless session beans. one bean calls another and so on. 

Since it takes such a long time to come back, i believe JBOSS will obviously 
destroy some of the stateless session beans or ejbRemove them. So i have code 
to close the connection to a db in the remove method.. 

however midway through those 20 minutes, i get a could not passivate exception. 
Here's the stack trace:

javax.ejb.EJBException: Could not passivate; failed to save state; 
CausedByException is:
org.jboss.resource.adapter.jdbc.WrappedConnection
at 
org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:378)
at 
org.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(StatefulSessionInstanceCache.java:85)
at 
org.jboss.ejb.plugins.AbstractInstanceCache.tryToPassivate(AbstractInstanceCache.java:156)
at 
org.jboss.ejb.plugins.AbstractInstanceCache.release(AbstractInstanceCache.java:192)
at 
org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy.ageOut(LRUEnterpriseContextCachePolicy.java:274)
at 
org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy$OveragerTask.kickOut(LRUEnterpriseContextCachePolicy.java:446)
at 
org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy$OveragerTask.run(LRUEnterpriseContextCachePolicy.java:405)
at java.util.TimerThread.mainLoop(Timer.java:432)
at java.util.TimerThread.run(Timer.java:382)
java.io.NotSerializableException: 
org.jboss.resource.adapter.jdbc.WrappedConnection
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at 
org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:370)
at 
org.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(StatefulSessionInstanceCache.java:85)
at 
org.jboss.ejb.plugins.AbstractInstanceCache.tryToPassivate(AbstractInstanceCache.java:156)
at 
org.jboss.ejb.plugins.AbstractInstanceCache.release(AbstractInstanceCache.java:192)
at 
org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy.ageOut(LRUEnterpriseContextCachePolicy.java:274)
at 
org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy$OveragerTask.kickOut(LRUEnterpriseContextCachePolicy.java:446)
at 
org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy$OveragerTask.run(LRUEnterpriseContextCachePolicy.java:405)
at java.util.TimerThread.mainLoop(Timer.java:432)
at java.util.TimerThread.run(Timer.java:382)

now here's a list of my questions, firstly I don't know which passivate method 
of which class does this call. I can put print statements and figure that out 
hopefully but that's a minor issue.

here's the ejb methods of the class that contains the control when this 
exception is thrown...

  public void ejbCreate() throws CreateException {
/** @todo Complete this method */
Context ctx;
try {
  ctx = new InitialContext();
  mCCEDataSource = (DataSource) ctx.lookup("java:/CCEDS");

  mNCBIProxy = new SeqHound(
  "C:\\jboss-3.2.1\\server\\default\\deploy\\.shoundremrc");
  mNCBIProxy.SHoundInit(true, "CCE");
  System.out.println("ejbCreate looked up CCEDS successfully");
}
catch (Exception e) {
  e.printStackTrace();
  throw new CreateException();
}
  }


  public void ejbRemove() throws EJBException, RemoteException {

try {
if (mCCEDataSourceConnection != null) {
mCCEDataSourceConnection.close();
}
mNCBIProxy.SHoundFini();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SQLException e) {
e.printStackTrace();
}

}

Mind you this is a stateless session bean, (saw it in the ejb jar file). I 
don't know what else to post. I need some help debugging this and finding out 
what the exact problem is.

Any pointers are appreciated.

Thanks
Anuj



View the original post : 
http://www.jboss.com/inde

[JBoss-user] [Messaging, JMS & JBossMQ] - Weird problem while testing JBoss for Messaging

2004-08-05 Thread anshah1
Hi all,

I am trying to evaluate the performance for JBoss using JMS However of late I have run 
into some really weird problem. 

I start up a publisher object, publishing to a particular topic and I realize that it 
publishes close to 800 msg\sec however the moment i start up a subscriber to the same 
topic, the publishing as well as subscribing rate goes down drastically and eventually 
comes to a halt.

I am using the Soniq benchmarking framework and jboss 3.2.5 as the server. I have 10 
publihsers running and 1- subscribers running. Has this got anything todo with 
increasing the sockets etc on windows as some of the posts indicate. If so then would 
someone please  point me to docs that help me overcome this error.

Anuj


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844301#3844301

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844301


---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user