Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

JMS EntryAlreadyInSpaceException

Hi All. I have a JMSConsumer and a JMSProducer. I´m running some tests, I´m simulating several concurrent users and only one time I received the following exception :

Sep 29, 2008 5:03:18 PM com.j_spaces.jms.GSMessageProducerImpl send
SEVERE: GSMessageProducerImpl.send() EntryAlreadyInSpaceException: MyQueue | destination: MyQueue | uid: 16482959936E1222392057087460494
2008-09-29 17:03:18,738 ERROR http-192.168.1.217-8777-Processor45 co.com.sirius.utils.debug.DebugHelper - javax.jms.JMSException: EntryAlreadyInSpaceException : com.jspaces.core.client.EntryAlreadyInSpaceException: Entry UID=16482959936E1222392057087460494 class=com.jspaces.jms.GSObjectMessageImpl rejected - an entry with the same UID already in space.
        at com.j_spaces.jms.GSMessageProducerImpl.send(SourceFile:464)
        at com.j_spaces.jms.GSMessageProducerImpl.send(SourceFile:344)
at com.pol.maf.client.jms.JMSProducer.evaluarTransaccion(JMSProducer.java:88)

Thanks

Attachments

  1. JMSProducer.java
  2. JMSSynchConsumer.java

This thread was imported from the previous forum.
For your reference, the original is available here

asked 2008-09-29 17:53:06 -0500

nullcipher2 gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

Can you post the exact scenario to reproduce this problem?
How your JMSConsumer and a JMSProducer looks like?
Is this using GigaSpaces 6.6?
Shay

Attachments

  1. JMSProducer.java
  2. JMSSynchConsumer.java

answered 2008-09-30 17:02:27 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

OK, I have a WS deployed in Tomcat 5.5, the WS calls the JMSProducer:

    private JMSProducer producer;

@WebMethod
public String webMethod(...) {

    try {
        ....
        String msg = producer.evaluarTransaccion(...);
        ....

    } catch( ... ) {
        ...
    }
}

In the other side(GS side: -cluster schema=partitioned-sync2backup) resides the JMSSynchConsumer. I´ve attached the sources.

Today, running some tests, I got:

08-oct-2008 10:14:46 GRAVE [com.gigaspaces.core.common]: internal error java.lang.NullPointerException at com.j_spaces.core.client.ExternalizableEntryPacket.isFifo(SourceFile:367) at com.j_spaces.obf.se.a(SourceFile:587) at com.j_spaces.obf.se.b(SourceFile:373) at com.j_spaces.obf.se.a(SourceFile:211) at com.j_spaces.obf.pw.a(SourceFile:904) at com.j_spaces.obf.pw.a(SourceFile:872) at com.j_spaces.obf.pw.a(SourceFile:855) at com.j_spaces.core.JSpaceImpl.write(SourceFile:444) 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 com.j_spaces.obf.nf.a(SourceFile:332) at com.j_spaces.obf.hq.a(SourceFile:437) at com.j_spaces.obf.hq.a(SourceFile:525) at com.j_spaces.obf.ow.work(SourceFile:174) at com.j_spaces.obf.oe.a(SourceFile:211) at com.j_spaces.obf.oe.dispatch(SourceFile:201) at com.j_spaces.obf.de.run(SourceFile:62) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595)

08-oct-2008 10:14:46 GRAVE [com.gigaspaces.core.common]: internal error java.lang.NullPointerException at com.j_spaces.core.client.ExternalizableEntryPacket.isFifo(SourceFile:367) at com.j_spaces.obf.se.a(SourceFile:587) at com.j_spaces.obf.se.b(SourceFile:373) at com.j_spaces.obf.se.a(SourceFile:211) at com.j_spaces.obf.pw.a(SourceFile:904) at com.j_spaces.obf.pw.a(SourceFile:872) at com.j_spaces.obf.pw.a(SourceFile:855)

    at com.j_spaces.core.JSpaceImpl.write(SourceFile:444)
    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 com.j_spaces.obf.nf.a(SourceFile:332)
    at com.j_spaces.obf.hq.a(SourceFile:437)
    at com.j_spaces.obf.hq.a(SourceFile:525)
    at com.j_spaces.obf.ow.work(SourceFile:174)
    at com.j_spaces.obf.oe.a(SourceFile:211)
    at com.j_spaces.obf.oe.dispatch(SourceFile:201)
    at com.j_spaces.obf.de.run(SourceFile:62)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    at java.lang.Thread.run(Thread.java:595)

USING Gigaspaces XAP 6.5.1 GA edition, Build 2400

Thanks h4. Attachments

[JMSProducer.java|/upfiles/13759715047583634.java]

[JMSSynchConsumer.java|/upfiles/13759715047318934.java]

nullcipher2 gravatar imagenullcipher2 ( 2008-10-08 11:09:41 -0500 )edit

Even I got this error. I got this error when I had a object field in the POJO. In my case object can be any serializable object of any type. I used to get this error only when I have polling worker running on the space. Then I redefined my POJO implementing Externalize and every thing seems to be working fine. Try verifing your implementation. Hope this might help you.

venkatg gravatar imagevenkatg ( 2008-10-10 14:14:29 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2008-09-29 17:53:06 -0500

Seen: 87 times

Last updated: Sep 30 '08