Preview Mode issue [message #810676] |
Thu, 01 March 2012 07:12  |
Eclipse User |
|
|
|
Hi,
I have been receiving couple of errors while using 'Preview' in the EDT.Please find the details below.
1) No data or screen designed was displayed and the following error popped up int he console.
Debug messages disabled
2012-03-01 16:58:44.336:INFO:oejs.Server:jetty-7.6.0.v20120127
2012-03-01 16:58:44.602:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/SkillrClient,file:/E:/EGL_WorkSpace/SkillRate010312/SkillrClient/}
2012-03-01 16:58:44.680:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:9701
2) I have included the resource binding and all the necessary details for the connectivity to AS400, but i do not see the data being displayed for the services that are being invoked.
Samplet code below:
services: Package
service sqlservices
ds SQLDataSource?{@Resource{uri = "binding:R611"}};
Handler : Package
dbService SQLServices?{@dedicatedService};
function start()
readFromTable();
end
function readFromTable()
call dbService.getAllSkills() returning to updateAll
onException serviceExceptionHandler;
end
There are no errors in the code.
In debug, the line 'function readFromTable()' and the subsequent line is being executed but after that it returns to the 'function start()'. There are no exception thrown and i am able to see that the defaults of displaying a array of records is being executed instead (i.e intialization based on the field attributes). Thanks in advance
Regards,
Karthik
|
|
|
|
|
|
|
|
|
|
|
|
Re: Preview Mode issue [message #813751 is a reply to message #812243] |
Mon, 05 March 2012 12:08   |
Eclipse User |
|
|
|
Okay, so I've tried 0.8 M1, 0.8 M2, and a recent nightly build, but I cannot reproduce this. Can you export your project as a zip file and attach it (File > Export > General > Archive File)? You can remove any sensitive data like passwords in your deployment descriptor beforehand. This will let me used the exact generated code that you're running.
Also, please go to Help > About > Installation Details > Features, click on the "Feature Id" column to sort it, find id "org.eclipse.edt.feature", and paste its version here. See my attached screenshot for an example from the M1 build. This will let me know exactly which build is being used so I can better match your environment.
And, to clear one thing up that might be confusing you: When you run a call statement from a RUI application to invoke a service, it is an asynchronous call. So we kick off the call and then the RUI application will immediately continue executing its code. A "step into" on the call statement does not step into the service, because the service is a separate process and not running in the browser. That's why you see it move to the next line of the RUI function instead of waiting for the service invocation to finish. Tip: If you want to debug your service function, just put a breakpoint in it.
The callback function in your RUI application will be run once the service has finished processing. JavaScript is single-threaded so only one piece of code can be running at a time, therefore your callback won't be invoked until nothing else is running.
-Justin
|
|
|
|
|
|
|
|
|
Re: Preview Mode issue [message #821721 is a reply to message #821461] |
Thu, 15 March 2012 14:38  |
Eclipse User |
|
|
|
Hi Karthik,
Are you using a 32bit or 64bit system? I tried out Oracle JRE 1.7 on both Linux and Windows (32bit) with EDT 0.7, and did not hit any issues, but your machine is clearly experiencing an error with 1.7 that I'd love to be able to reproduce.
When you switched to 1.6, were you still having the other problems mentioned in this thread? If so, we should have a new milestone build for 0.8 available in the near future which would be worth trying out once available.
-Justin
|
|
|
Powered by
FUDForum. Page generated in 0.04322 seconds