[JBoss Seam] - could not get id of: org.jboss.seam.framework.Home.instance
by jgilbert
Does anyone have an idea why I am getting this error?
I am experimenting with the new framework classes in the 1.1.0.CR release.
java.lang.IllegalStateException: could not get id of: org.jboss.seam.framework.Home.instance
| at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.entityRefsToIds(ManagedEntityIdentityInterceptor.java:149)
| at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:83)
| at sun.reflect.GeneratedMethodAccessor297.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
| at sun.reflect.GeneratedMethodAccessor296.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:33)
| at sun.reflect.GeneratedMethodAccessor295.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:51)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992446#3992446
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992446
19 years, 4 months
[JBoss Seam] - JavaScript Object Undefined in JMS ObjectMessage Topic Callb
by jasonshaffer
I am experiencing an object undefined JavaScript error in my client side Seam Remoting topic subscription callback function. The function is executed when expected (when I publish an object message to the topic) but the message object's value property is undefined. I have also tried to use the message's object property which is also undefined. Can anyone point me to the right direction?
Here is my JavaScript callback function:
| function subscriptionCallback(message) {
| var game = message.getValue();
| alert('Test: ' + game.getDescription());
| }
|
Here is my server side publishing code:
| private void publish(Game game) {
| try {
| topicPublisher.publish(topicSession.createObjectMessage(game));
| } catch (Exception ex) {
| throw new RuntimeException(ex);
| }
| }
|
Also, I notice an inconsistency in the chatroom example and the Contextual Components documentation. The chatroom example uses the getValue() method to retrieve the object from the message:
| function channelMessageCallback(message) {
| var ctl = getObject("channelDisplay");
|
| var actionDTO = message.getValue();
|
but the documentation instructs us to use the getObject() method:
anonymous wrote :
| A TextMessage contains the text value in its text field (or alternatively call getText() on it), while an ObjectMessage contains its object value in its object field (or call its getObject() method).
|
Thanks for your advise.
Jason
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992445#3992445
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992445
19 years, 4 months