Just updated and it compiled fine. Now to see if any of my connection
problems are fixed.
From: Heiko Braun [mailto:hbraun@redhat.com]
Sent: Monday, January 11, 2010 8:59 AM
To: Kevin Jordan
Cc: errai-users(a)lists.jboss.org
Subject: Re: [errai-users] Trouble sending messages
Hi Kevin, the compilation problems should be fixed already.
On Jan 11, 2010, at 3:36 PM, Kevin Jordan wrote:
Yes, I am using trunk. Is there a more stable branch/version I should be
using? I had updated again hoping it was just something with the time I
checked out and then ran into the problems Heiko Braun ran into compiling
it.
From: Mike Brock [mailto:cbrock@redhat.com]
Sent: Friday, January 08, 2010 8:52 PM
To: Kevin Jordan
Cc: errai-users(a)lists.jboss.org
Subject: Re: [errai-users] Trouble sending messages
What version of ErraiBus are you using? Are you getting it from trunk?
On 2010-01-08, at 5:37 PM, Kevin Jordan wrote:
DefaultBlockingServlet seems to have the same effect.
From: Mike Brock [mailto:cbrock@redhat.com]
Sent: Friday, January 08, 2010 2:56 PM
To: Kevin Jordan
Cc: errai-users(a)lists.jboss.org
Subject: Re: [errai-users] Trouble sending messages
I will check into this. We're still working on getting the AIO stuff
sorted, and I wouldn't consider the Tomcat or JBoss adapters to be
production ready. You're best to use the DefaultBlockingServlet -- which
will provide adequate performance for development while we get the AIO
adapters squared away over the next few days.
On 2010-01-08, at 2:34 PM, Kevin Jordan wrote:
I'm having trouble getting a message to go through using ErraiBus. I'm
using this on the client side:
CommandMessage msg = (CommandMessage)
CommandMessage.create().toSubject("Items").set("SerialNumber",
serialInput.getValue());
bus.conversationWith(msg, new MessageCallback() {
@Override
public void callback(Message message) {
//throw new
UnsupportedOperationException("Not supported yet.");
Item item = message.get(Item.class, "Item");
MessageBox.alert("Errai",
item.getSerialNumber().toString(), null);
}
});
With this on the server side:
@Service("Items")
public class Items implements MessageCallback {
private MessageBus bus;
@Inject
public Items(MessageBus bus) {
this.bus = bus;
System.out.println("Got a bus...");
}
@Override
public void callback(Message message) {
//throw new UnsupportedOperationException("Not supported yet.");
System.out.println("Incoming message...");
Long serialNum = message.get(Long.class, "SerialNumber");
System.out.println(serialNum);
Item item = new Item();
item.setSerialNumber(serialNum);
ConversationMessage.create(message).set("Item",item).sendNowWith(bus);
}
}
However, all it seems to send is:
{"CommandType":"RemoteSubscribe","ToSubject":"ServerBus","Subject":"temp:Con
versation:2","PriorityProcessing":"1"}
I don't see where it actually sends my body or the subject that I fill out
in my message. Nothing also gets to the Service class. Am I doing
something wrong? I have Tomcat running NIO and everything else seems set up
correctly. It will keep a GET connection open and do the POST of the JSON
above, but nowhere does it seem to send what I want it to. I also seem to
be getting these occasionally, usually on some of the first requests to
in.erraiBus:
java.lang.NullPointerException
at
org.jboss.errai.bus.server.servlet.TomcatCometServlet.event(TomcatCometServl
et.java:105)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilterEvent(Unknow
n Source)
at
org.apache.catalina.core.ApplicationFilterChain.doFilterEvent(Unknown
Source)
at org.apache.catalina.core.StandardWrapperValve.event(Unknown
Source)
at org.apache.catalina.core.StandardContextValve.event(Unknown
Source)
at org.apache.catalina.core.StandardHostValve.event(Unknown Source)
at org.apache.catalina.valves.ValveBase.event(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.event(Unknown
Source)
at org.apache.catalina.connector.CoyoteAdapter.event(Unknown Source)
at org.apache.coyote.http11.Http11NioProcessor.event(Unknown Source)
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.event(Unk
nown Source)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(Unknown Source)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.ja
va:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:9
08)
at java.lang.Thread.run(Thread.java:619)
Can anyone point me at what I'm missing?
_______________________________________________
errai-users mailing list
errai-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/errai-users
_______________________________________________
errai-users mailing list
errai-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/errai-users