Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359188 - Service call got error by simple service
Summary: Service call got error by simple service
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-28 03:57 EDT by Xin Wu CLA
Modified: 2017-02-23 14:20 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xin Wu CLA 2011-09-28 03:57:20 EDT
Build Identifier: 20110927 nightly build

Service call got error by simple service
Error message: 

[CRRUI1083E] got error when handling click event。
[CRRUI2002E] Button1_onClick
h1 got error:'egl.egl.lang.EglAny' is null or not an object
[CRRUI2094E] error caused by the following EGL function invocation:

    client/h1.egl() at line 29
    Button.Widget.runEventHandlers() [native JavaScript]


Reproducible: Always

Steps to Reproduce:
1. Create new Web Client with Service project
2. Create service "s1.egl", add function  
   function echo() returns(string)
		return("hello");
   end
3. Configure service deployment and service binding in DD editor
    service binding information:  Name(srv)  URI(workspace://test/server.s1)
4. Create RUIHandler and drag button widgets to call the service
5. Add onclick & callback function
    function Button1_onClick(event Event in)
    	call srv.echo() returning to CallBack;
    end

    function CallBack(str string in)
    	TextField.text = str;
    end

6. Switch to preview, click the button got the error message attached above.
Comment 1 Scott Greer CLA 2011-09-28 09:06:55 EDT
Brian had found this problem yesterday, before this bug was opened, but I wasn't able to get the fix committed until this morning.  This part needed some updates that were overlooked in the EglToEglx work....
Comment 2 Xin Wu CLA 2011-09-28 21:47:34 EDT
Scott,
It works fine now, thanks so much!
Comment 3 Lisa Lasher CLA 2011-10-11 16:17:47 EDT
Closing this defect.