[
http://jira.jboss.com/jira/browse/JBSEAM-323?page=comments#action_12340483 ]
Michael Steiner commented on JBSEAM-323:
----------------------------------------
NPE is solved but I have still problem to make it work. Callback js function gets
undefined object when resulting type is an interface. When I change this to implementation
class it works fine.
My remote method gets String as argument and declares web.components.MyClass as return
type but in real it returns web.components.MyClassImpl
Response looks OK field1 and field2 are set properly but I am not if bean type is correct
because client is intersted only in interface not in implementation type.
<envelope><header><context><conversationId>4</conversationId></context></header><body><result
id="1"><value><ref
id="0"/></value><refs><ref id="0"><bean
type="web.components.MyClassImpl"><member
name="field1"><number>0.123</number></member><member
name="field2"><number>0.6666</number></member></bean></ref></refs></result></body></envelope>
NPE when calling WebRemote method returning interface
-------------------------------------------------------
Key: JBSEAM-323
URL:
http://jira.jboss.com/jira/browse/JBSEAM-323
Project: JBoss Seam
Issue Type: Bug
Components: Remoting
Affects Versions: 1.1
Reporter: Michael Steiner
Priority: Minor
InterfaceGenerator calls c = c.getSuperclass(); for interaces it is null than calls
!c.equals(Object.class) and this throws NullPointerException.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira