Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359188

Summary: Service call got error by simple service
Product: z_Archived Reporter: Xin Wu <cdlwuxin>
Component: EDTAssignee: Project Inbox <edt.javascriptgen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: cdlwuxin, greer
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.