Send message from client problem

Hi all,
i want send some JMS messages from standalone client program to MDB through OC4J JMS service. I wrote little sample client program:
     public static void main(String [] args)
          throws Exception
          Hashtable env = new Hashtable();
          env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
          env.put(Context.SECURITY_PRINCIPAL, "admin");
          env.put(Context.SECURITY_CREDENTIALS, "admin");
          env.put(Context.PROVIDER_URL, "ormi://localhost:23791/");
          Context context = new InitialContext(env);
          QueueConnectionFactory connectionFactory = (QueueConnectionFactory)context.lookup("jms/my/test.queueConnectionFactory");
          QueueConnection connection = connectionFactory.createQueueConnection();
          QueueSession qSession = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
          Queue q = (Queue)context.lookup("jms/my/test.queue");
          QueueSender sender = qSession.createSender(q);
          connection.start();
          TextMessage message = qSession.createTextMessage();
          message.setText("Text messaga no.: "+i);
          sender.send(message);
          sender.close();
          qSession.close();
          connection.close();
But it throws JMSException:
javax.jms.JMSException: Unable to connect to JMSServer (/127.0.0.1:9127)
     at com.evermind.server.jms.EvermindQueueConnection.connect(EvermindQueueConnection.java:144)
     at com.evermind.server.jms.EvermindQueueConnection.send(EvermindQueueConnection.java:94)
     at com.evermind.server.jms.EvermindQueueSession.send(EvermindQueueSession.java:117)
     at com.evermind.server.jms.EvermindQueueSender.send(EvermindQueueSender.java:75)
     at com.evermind.server.jms.EvermindQueueSender.send(EvermindQueueSender.java:36)
     at com.evermind.server.jms.EvermindQueueSender.send(EvermindQueueSender.java:31)
     at SenderClient.main(SenderClient.java:35)
Row 35 is sender.send(message);
And running standalone OC4J (9.0.3) throws exception too:
java.lang.NullPointerException
     at com.evermind.server.jms.JMSServer.removeClient(JMSServer.java:724)
     at com.evermind.server.jms.JMSRequestHandler.run(JMSRequestHandler.java:278)
     at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:66)
All jms.xml stuff is configured properly.
Can someone help me what i do wrong?
Best regards
Radovan Sninsky

Hi radovan,
Check your jdk versions at your server and client. Make sure that your are running your server and client with the same jre. Even i had the same problem when oc4j was started with jdk1.4 jre and running the client using jdk1.3.
Hope this helps
shrini

Similar Messages

  • TS2755 Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help of how to set up messages on each

    Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help on how to set up messages on each device separately and to start using messages app on each device independently. Thanks

    search google for "iphone remove picture from contact"

  • Send message from java not client

    I have a java app running on my server and I'd like to send
    messages to subscribed clients. All the messaging examples I find
    have the messages originating from a flex producer. I want java to
    be the producer.

    I used this example to get it done.
    http://western-skies.blogspot.com/2006/07/flex-sending-messages-from-server-side.html

  • Im having trouble sending messages from my iPhone 4..ever since i upgraded to iOS 5, its giving me this problem. It says your SMS mailbox is full. Delete some messages to recieve new messages.  I've deleted around 10 huge conversations, rebooted it, resto

    Im having trouble sending messages from my iPhone 4..ever since i upgraded to iOS 5, its giving me this problem. It says your SMS mailbox is full. Delete some messages to recieve new messages. 
    I've deleted around 10 huge conversations, rebooted it, restored it, done a soft and hard reset too. What should i do?

    my boyfriend restored his iphone as a brand new phone and still had this problem, he deleted all his text conversations except mine and his best friend's conversations still nothing, i told him to delete OUR conversation since its a 2 year conversation that he has NEVER deleted ..... he said YES!! we tried to delete it and the phone freezes as soon as we click on the CLEAR CONVERSATION button!!!! we tried about 5 times and this happened everytime we tried!!!! ....is like the phone doesnt wanna let go of our conversation!!! every other conversation he deleted the phone was fine except for when we try and delete ours!!
    so yesterday he left his phone alone around 4 pm since we have the apple appointment today at 130pm.......around 11 pm last night his phone went NUTS receiving all the text messages i had sent and never received!!!! and now the phone works just fine!!! ...... CONFUSED?????? yeah we are too!!!
    but we're still going to the apple store to see what they can tell us!!!

  • How to send message from Message Driven Bean  to JMS client?

    In my project I have JMS client, two QueueConnectionFactory and Message Driven Bean. Client send message to MDB through the first QueueConnectionFactory , in one's turn MDB send message to client through the second Queue Connection Factory . I already config my Sun AppServer for sending message in one way, and sending message from MDB to the second QueueConnectionFactory. But on my Client there is an error : �JNDI lookup failed: javax.naming.NameNotFoundException: No object bound to name java:comp/env/jms/MyQueue2� (jms/MyQueue2 � this is the name of my Queue). So it couldn't get this message.
    P.S.
    Thank you for help!!!

    What is the name of the second queue?is the connection factory on the local?Yes the connection factory is on the local. The name of my first queue is jms/MYQueue and the name of another one is jms/MyQueue2.

  • Cant receive/send message from certain group anymo...

    I'm using the linux client version 4.3.0.37 on a 32 bit Linux
    using the button "check for last version" tells me i'm using the latest version
    all of sudden yesterday I stopped being able to receive/send message from most of my groups anymore
    I've seen this post reporting a similar problem
    it seems the groups affected are recent ones which got their names starting with "19:xxxxx" when i run the command  "/get name"
    I've reinstalled my skype on a completly new machine (still on linux) and get exactly the same problem, however while skype sync all the messages it retrieves also the message I was not able to see. but after the sync is done, new messages are again not coming in.
    Is that a known issue with a workaround ?

    I answered this question for you earlier. 
    Call your carrier, or have him call his.
    Lastly, when you are actually NEXT TO HIM, try texting him and see if it works.   Maybe he is just ignoring you.

  • Mail with multiple gmail accounts sending messages from wrong email, other than the one i select

    mail with multiple gmail accounts sending messages from wrong email, other than the one i select:
    i'm using mail on osx 10.7 with multiple gmail accounts. when i create an email, i check to be sure i'm sending/replying from the correct account. after i send it, somehow it actually sends it from a different account, other than the one i've selected "from." this is evidenced by the reply email i receive. how can i fix this?
    in preferences, i have "send new messages from : account of selected mailbox"

    From the Mail menu bar, select
              Mail ▹ Preferences...
    The Mail preference dialog opens. Select the Composing tab from the row of icons at the top. From the menu labeled
              Send new messages from:
    choose
              Account of selected mailbox
    Note that this setting may have no effect if you start a new message while a VIP or smart mailbox is selected in the mailbox list. Those are saved searches, not actual mailboxes.
    If the problem remains, select the Accounts tab in the preference dialog, then select the affected account in the list on the left.
    In the Account Information pane, select the correct server in the menu labeled
              Outgoing Mail Server (SMTP)
    If there's only one server in the menu, select
              Edit SMTP Server List...
    and add a new server with the correct settings. If you're not sure how to do that, try the Mail Settings Lookup.
    Another possibility is that the wrong card in your address book is selected as yours. Select your card in the Contacts application. Then select
              Card ▹ Make This My Card
    from the menu bar.

  • I have a dll file, i want to send messages from this to the device ,how can i do it in labview

    Hi,
    I am a new user of labview.
    I got Vector Card, DUT, DC Power supply and .dll file. Hoe can i connect dll file and hoe to senf the information to the device,
     i want to send/receive a message to that device . and measure temperature , humidity of the device. is any one can help?
    i have a .dll file, i want to send messages from this file to the testing device ,how can i do it in labview?

    Dear Sandy,
    How are your DUT, Vector Card and your PC connected?
    What vector card is this?
    There are a huge amount of Knowledge base articles that you can access from www.ni.com.  Simply go to the website and do a search on dll, etc.
    There are also a lot of example problems shipped with LabVIEW that will be very helpful for you to learn from and to modify to meet your needs.  Go to File»Find Example ....
    There are LabVIEW classes taught locally as well that are very helpful.  If you're interested I can arrange for you to receive an email with info about it.
    Sincerely,
    Sammy Z.  

  • Why won't imessage send messages from my phone number? It jut uses my  email  address.

    Why won't I message send messages from my number? It keeps using my email address. I have signed in and out of my apple id several times but no luck, I have also restored my phone. Imessage says it is waiting for activation could this be the problem?

    Hi there,
    You may want to take a troubleshooting steps found in the article below.
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    -Griff W.

  • Why is my iphone sending messages from my email and not my number?

    My phone will send messages from my email rather than my number. I have gone to the settings to switch it to send just from my number. When i do that, it does not send. What do i do to fix this problem!?

    Hello therealdeal333,
    Thank you for participating in the Apple Support Communities.
    It sounds like you're only able to send iMessages using your Apple ID (email address) on your iPhone. If you're not able to send iMessages using your phone number, first try signing out of iMessage and FaceTime on your iPhone:
    Go to Settings > Messages > Send & Receive, tap your Apple ID, then tap Sign Out.
    Go to Settings > FaceTime, tap your Apple ID, then tap Sign Out.
    If you send iMessages from other devices (such as a Mac or iPad), sign out of those as well.
    Then sign back in on your iPhone:
    On your iPhone first, sign back in to iMessage and Facetime.
    Sign back in to iMessage and Facetime on your other devices (if necessary.)
    You can find the steps I quoted above, as well as more troubleshooting help, at this link:
    If you can't send or receive messages on your iPhone, iPad, or iPod touch - Apple Support
    Best Regards,
    Jeremy

  • Process wait SQL*Net message from dblink /SQL*Net message from client

    Hi There,
    We have an ETL process that we kindly need your help with. The process been running since Sun, where it transfers the data from one server (via remote query). The process was running ok till last night where it appeared
    to have stopped working and/or the session is just idling doing nothing.
    Here are some tests that we did to figure out what's going on:
    1. when looking at the session IO, we noticed that it's not changing:
    etl_user@datap> select sess_io.sid,
      2         sess_io.block_gets,
      3         sess_io.consistent_gets,
      4         sess_io.physical_reads,
      5         sess_io.block_changes,
      6         sess_io.consistent_changes
      7    from v$sess_io sess_io, v$session sesion
      8   where sesion.sid = sess_io.sid
      9     and sesion.username is not null
    10     and sess_io.sid=301
    11  order by 1;
                        logical   physical
      SID BLOCK_GETS      reads      reads BLOCK_CHANGES CONSISTENT_CHANGES
      301  388131317   97721268   26687579     223052804             161334
    Elapsed: 00:00:00.012. Check there is nothing blocking the session
    etl_user@datap> select * from v$lock where sid=301;
    ADDR     KADDR           SID TY        ID1        ID2      LMODE    REQUEST      CTIME      BLOCK
    684703F0 6847041C        301 DX         35          0          1          0      45237          0
    684714C4 684714F0        301 AE     199675          0          4          0     260148          0
    619651EC 6196521C        301 TM      52733          0          3          0      45241          0
    67F86ACC 67F86B0C        301 TX     458763      52730          6          0      45241          03. Check if the session is still valid:
    etl_user@datap> select status from v$session where sid=301;
    STATUS
    ACTIVE4. Check if there is anything in long ops that has not completed:
    etl_user@datap> SELECT SID, SERIAL#, opname, SOFAR, TOTALWORK,
      2      ROUND(SOFAR/TOTALWORK*100,2) COMPLETE, TIME_REMAINING/60
      3      FROM   V$SESSION_LONGOPS
      4      WHERE
      5      TOTALWORK != 0
      6      AND    SOFAR != TOTALWORK
      7     order by 1;
    no rows selected
    Elapsed: 00:00:00.005. Check if there is anything in long ops for the session:
    etl_user@datap> r
      1* select SID,SOFAR,TOTALWORK,START_TIME,LAST_UPDATE_TIME,TIME_REMAINING,MESSAGE from V$SESSION_LONGOPS where sid=301
      SID      SOFAR  TOTALWORK START_TIM LAST_UPDA TIME_REMAINING MESSAGE
      301          0          0 22-JUL-12 22-JUL-12                Gather Table's Index Statistics: Table address_etl : 0 out of 0 Indexes done
    Elapsed: 00:00:00.00This is a bit odd!! This particular step have actually completed successfully on the 22nd of July, and we don't know why it's still showing in long opps!? any ideas?
    6. Looking at the sql and what's it actually doing:
    etl_user@datap> select a.sid, a.value session_cpu, c.physical_reads,
      2  c.consistent_gets,d.event,
      3  d.seconds_in_wait
      4  from v$sesstat a,v$statname b, v$sess_io c, v$session_wait d
      5  where a.sid= &p_sid_number
      6  and b.name = 'CPU used by this session'
      7  and a.statistic# = b.statistic#
      8  and a.sid=c.sid
      9  and a.sid=d.sid;
    Enter value for p_sid_number: 301
    old   5: where a.sid= &p_sid_number
    new   5: where a.sid= 301
                 CPU   physical    logical                                   seconds
      SID       used      reads      reads EVENT                             waiting
      301    1966595   26687579   97721268 SQL*Net message from dblink         45792
    Elapsed: 00:00:00.037. We looked at the remote DB where the data resides on, and we noticed that the remote session was also waiting on the db link:
    SYS@destp> select a.sid, a.value session_cpu, c.physical_reads,
      2  c.consistent_gets,d.event,
      3  d.seconds_in_wait
      4  from v$sesstat a,v$statname b, v$sess_io c, v$session_wait d
      5  where a.sid= &p_sid_number
      6  and b.name = 'CPU used by this session'
      7  and a.statistic# = b.statistic#
      8  and a.sid=c.sid
      9  and a.sid=d.sid;
    Enter value for p_sid_number: 388
    old   5: where a.sid= &p_sid_number
    new   5: where a.sid= 390
           SID SESSION_CPU PHYSICAL_READS CONSISTENT_GETS EVENT                                                    SECONDS_IN_WAIT
           390         136              0            7605 SQL*Net message from client                                        46101
    SYS@destp>We have had an issue in the past where the connection was being dropped by the network when the process runs for few days, hence we have added the following to the sqlnet.ora and listener.ora files:
    sqlnet.ora:
    SQLNET.EXPIRE_TIME = 1
    SQLNET.INBOUND_CONNECT_TIMEOUT = 6000
    listener.ora:
    INBOUND_CONNECT_TIMEOUT_LISTENER = 6000What else can we do and/or further investigate to work out the root cause of the problem, and may be help resolve this. We don't want to just stop and start the process again as it took few days already. We have
    had a chat to the infrastructure team and they've assured us that there have been no network outages.
    Also, the alert logs for both instances (local and remote) shows no errors what so ever!
    Your input is highly appreciated.
    Thanks
    Edited by: rsar001 on Jul 25, 2012 10:22 AM

    Ran the query on both local/remote db, and no rows returned:
    etl_user@datap> SELECT DECODE(request,0,'Holder: ','Waiter: ')||vl.sid sess, status,
      2  id1, id2, lmode, request, vl.type
      3  FROM V$LOCK vl, v$session vs
      4  WHERE (id1, id2, vl.type) IN
      5  (SELECT id1, id2, type FROM V$LOCK WHERE request>0)
      6  and vl.sid = vs.sid
      7  ORDER BY id1, request
      8  /
    no rows selected
    Elapsed: 00:00:00.21

  • How to send message from multiline container to same webservice or bus. sys

    Hi All,
    I want to send message from multiline container to a syn web service sequentially.
    I am getting that multiline container after a transformations step (1: n mapping).
    where i dont known what will be the value for n (number of message in multiline container). This will vary; depend upon input message to BPM.
    Scenario is like this.
    1. Receive step
    2. Transfromation to 1: n
    3. Want to send message from multiline container to a web service (business service),default loop and block step doesn’t give desirable result.
    any help will be appreciable
    Regards,
    Adish

    Adish Jain wrote:>
    > where as, if I will use block, it will send the same message to multiple receivers which are present in multiline receiver container. So need to think in different manner.
    Not necessarily.
    When you use block step in ForEach mode, you can select the container variable from:
    - a receiver container;
    - an interface container;
    The line element can then be either a receiver or an interface.
    The problem is that for this to work, the interfaces need to be async (since they are to be used as containers) and hence you won't be able to make your scenario work.
    But again, explain why your scenario with loop step didn't work.
    The only gap here is how to determine the number of loops (defining the counter variable value). But that can be easily solved if you include a new message with occurrence 1 as a target message of your mapping and as a container in your bpm.
    This new message needs only 1 single field, that should be filled with the number of messages you've created in the mapping (you could use count standard function, f.ex.).
    In your bpm, make sure to pass this fields value into the counter container right after your transformation step.
    Regards,
    Henrique.

  • Sending message across clients

    Hello,
    wanted to know how to send message across clients. Suppose I have 2 XI servers : one is XI other is PI. I want to send message from PI to XI. how will we configure this scenario? what adapters will be used and what is the message flow ?
    Thank you.

    Hi,
    Check my thread it may be helpful
    XI adapter
    Regards,
    Prakash

  • Modify Calendar item gives "You don't have the permissions requied to send messages from this mailbox" .

     Situation:
    -Customer has taken over an existing company.
    -New users where created in the domain.
    -Mail accounts where created and the .pst's imported.
    -Everything fine so far.
    Problem:
    When a user tries to edit a calendar item created in the past the message "You don't have the permission required to send messages from this mailbox" appears. After that the item is changed in the users calendar who edited the item but not in the
    other users calendar who where also invited.
    Everything works fine when a new calendar item is generated.
    Cannot find anything on this.
    Please help!!

    Hi,
    According to your description, I understand that you create a new mailbox for a user and imported Calendar items to this mailbox by using PST file.
    If that is the case, the calendar items which are imported should be created by other user. It is just imported in this mailbox. Please check whether the original mailbox which these calendar items created on is still existed in Exchange server or not. Then
    check the calendar items in the original mailbox.
    Additionally, if the original user is still existed in your AD or exchange server, please assign Send As permission for the new user to this mailbox to have a try.
    Regards,
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Winnie Liang
    TechNet Community Support

  • Error: You don't have permission to send messages from this mailbox.

    When I try to email from an email Mailbox in SharePoint I'm getting this error message.
    Error: You don't have permission to send messages from this mailbox.
    This error only occurs if I try to send from the Project email i.e.
    [email protected]
    I've never seen this error message before and previously never had this problem so I'm wondering if this is caused by a recent change.
    Cheers,
    Mark
    Learning SharePoint

    Hi Mark,
    According to your description, my understanding is that you got a permission issue when you emailed
     from a site mailbox.
    From the From address
    [email protected], whether you are using Office 365.
    By default, email sent from the site mailbox has a From address of the individual who sends the email. To allow a user to use the site mailbox email address as the
    From address, you can give the user Send As permission for the site mailbox email address.
    The permission seems to be for Exchange level, not SharePoint. So, please grant Send As permission to the user.
    More information, please refer to the links:
    https://support.office.com/en-us/article/Prepare-for-using-site-mailboxes-in-Office-365-6381daa5-3d98-4629-972d-d19e1dc48c1b?ui=en-US&rs=en-US&ad=US#__toc346536395
    http://www.lynced.com.au/2014/03/sharepoint-online-site-mailbox-send-as.html
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

Maybe you are looking for

  • Encore keeps crashing on startup on macbook pro. I have all the latest cc and osx updates

    encore keeps crashing on startup on macbook pro. I have all the latest cc and osx updates

  • Gr exchange rate

    Dear All, PO in USD which is a foreign currency. May I know what rate that during GR is using to calculate the amount in local currency? The day that do GR or the rate which updated in PO header delivery/invoice tab. Exchange rate fixed is NOT ticked

  • CJ20N tcode in display mode

    Dear Experts, I have a task step in workflow. I use a BO method in it . In that method I need to write code to open CJ20N tcode in display mode. I want to know is there any tcode to display CJ20N in display mode. If yes then using call transaction i

  • Expose IDoc as Webservice without PI/XI

    Is it possible to expose an IDoc as an webservice without PI/XI? I noticed there is a port called XML-HTTP. Does it use SOAP? Can i use this port for webservices. Thanks.

  • Publishing a list with specifics views anf filters for all the users to see it.

    Hi i was working on the item level permissions of a list which are accessed by all users. I have applied the item level permissions for specific users having specific records to work with. Now, there are situations when we need to show all the users