Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsPreview Mode issue
https://www.eclipse.org/forums/index.php/mv/msg/301442/810676/#msg_810676
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.
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.
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]]>Karthik Sevugarathinam2012-03-01T12:12:11-00:00Re: Preview Mode issue
https://www.eclipse.org/forums/index.php/mv/msg/301442/810726/#msg_810726
Those messages in the console are just informational messages from the test server. I'll see if I can get Jetty to stop printing them, but either way they are not errors and you do not need to worry about them.
As for the other problem, it sounds like what you're saying is that the page keeps on reloading for some reason. Can you put breakpoints in your RUI handler and run in debug mode? Put one in start, readFromTable, and updateAll. I'm curious if updateAll is ever being invoked. "start" should only be invoked once, unless you're explicitly invoking it in some other function.
If "updateAll" does get invoked, is it being passed the correct data? You can also put breakpoints in your service to see if everything is running okay on that end.
-Justin]]>Justin Spadea2012-03-01T13:32:58-00:00Re: Preview Mode issue
https://www.eclipse.org/forums/index.php/mv/msg/301442/810750/#msg_810750
i did try placing break points but i do not see programming breaking at even the dbservice.getAllSkills. Once the program tries to execute "call dbService.getAllSkills() returning to updateAll" it hits function Start() again.I am aware that the dbservices are not being invoked but all my bindings are fine.Thank you
My friend and myself are working on the same buid in separate machine, but he does not encounter the same.The only difference being the version.
Regards,
Karthik
]]>Karthik Sevugarathinam2012-03-01T14:05:17-00:00Re: Preview Mode issue
https://www.eclipse.org/forums/index.php/mv/msg/301442/810757/#msg_810757
Which build are you using? Nightly (if this, from which night?), 0.8 milestone 1, 0.8 milestone 2, ...
-Justin]]>Justin Spadea2012-03-01T14:16:14-00:00Re: Preview Mode issue
https://www.eclipse.org/forums/index.php/mv/msg/301442/810899/#msg_810899
i did the update using the nightly build link below and updated it with 0.8 1 milestone. Thanks
"//download.eclipse.org/edt/updates/nightly"
Regards,
Karthik]]>Karthik Sevugarathinam2012-03-01T16:54:57-00:00Re: Preview Mode issue
https://www.eclipse.org/forums/index.php/mv/msg/301442/811140/#msg_811140
-Justin]]>Justin Spadea2012-03-02T00:59:11-00:00Re: Preview Mode issue
https://www.eclipse.org/forums/index.php/mv/msg/301442/811502/#msg_811502
I have updated the software till 0.8 milestone2 , but appears there has been some changes made in milestone2 as well.
dbService loginServices?{@dedicatedService};
The editor/compiler does not resolve the keyword "@dedicatedService".Thanks
Regards,
Karthik]]>Karthik Sevugarathinam2012-03-02T12:31:16-00:00Re: Preview Mode issue
https://www.eclipse.org/forums/index.php/mv/msg/301442/811511/#msg_811511
Click here for a note Justin posted about the changes.]]>Joe Pluta2012-03-02T12:47:35-00:00Re: Preview Mode issue
https://www.eclipse.org/forums/index.php/mv/msg/301442/811633/#msg_811633
-Justin]]>Justin Spadea2012-03-02T16:23:40-00:00Re: Preview Mode issue
https://www.eclipse.org/forums/index.php/mv/msg/301442/812243/#msg_812243
Please find attached the handler source and also the screen shot of the issue.i have done the coding using the 0.7 version.Thanks
function start()
readFromTable();
end
function readFromTable()
call dbService.getAllSkills() returning to updateAll
onException serviceExceptionHandler;
end
For some reason or the other the pointer returns back to Start() function in debug and the dbService is not invoked.The connection and all other details are fine.Thanks
Regards,
Karthik]]>Karthik Sevugarathinam2012-03-03T13:23:07-00:00Re: Preview Mode issue
https://www.eclipse.org/forums/index.php/mv/msg/301442/813751/#msg_813751
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]]>Justin Spadea2012-03-05T17:08:32-00:00Re: Preview Mode issue
https://www.eclipse.org/forums/index.php/mv/msg/301442/814139/#msg_814139
I am unable to attach the archive file since the compressed size of the file is 7.23 MB. I have attached the version in which i ran the code. Please let me know if there is any other means to transfer them to you. Thank you
Regards,
Karthik]]>Karthik Sevugarathinam2012-03-06T04:31:05-00:00Re: Preview Mode issue
https://www.eclipse.org/forums/index.php/mv/msg/301442/814542/#msg_814542
Also, have you been changing versions of EDT? The screenshot shows it's 0.7.0, but some of the previous posts have sounded like 0.8.0 builds based on error messages.
As mentioned in previous posts, to switch to a current build you will need to change your code a little bit that's accessing the dedicated service. It would become:
call SQLService.getAllSkills() using new httpproxy returning to updateAll onException serviceExceptionHandler;
And then you should remove your "dbService" field.
Note that the fix I added does not address any problems with the onConstructionFunction being invoked multiple times, but that sounds like something that could have been indirectly fixed with all that's gone on since 0.7.
Let me know what you decide - staying on 0.7 or trying the new 0.8 nightly build.
-Justin]]>Justin Spadea2012-03-06T22:02:41-00:00Re: Preview Mode issue
https://www.eclipse.org/forums/index.php/mv/msg/301442/815289/#msg_815289
I have attached a simple test without including the ruiwidgets and dojo during exporting to archive folder(EGL_Sample).
I will also install the nightly update and verify to see if i still face any issues. Thanks a lot for your help with the issue.
Regards,
Karthik]]>Karthik Sevugarathinam2012-03-07T13:23:35-00:00Re: Preview Mode issue
https://www.eclipse.org/forums/index.php/mv/msg/301442/815331/#msg_815331
1. For the "services" package, right-click > Properties > EGL Compiler > click the box to override generation settings, and change it to enable the Java generator and disable the JavaScript generator.
2. Do the same thing for the "records" package, but have it enable both Java and JavaScript generators.
Once I did this things were running correctly for me on both 0.7 and 0.8 (note: this won't fix the bind error you were seeing, but without these changes the service will never run since it wasn't generated to Java).
When you try out the latest 0.8 nightly build, you will need to make another change, in SQLService.egl. The 0.8 syntax for the binding is: ds SQLDataSource?{@Resource{uri = "binding:MyIBM"}};
-Justin]]>Justin Spadea2012-03-07T14:18:40-00:00Re: Preview Mode issue
https://www.eclipse.org/forums/index.php/mv/msg/301442/821461/#msg_821461
The java updates are also causing issues.I recently upgraded my system and was running with java update version 1.7 (i have only EGL Version 0.7) , today i reversed back to java version 1.6 and find the issue being resolved.I am new to open source technology and do not know the actual reason behind it but was able to get through the issue.Thanks a lot for your help.
Regards,
Karthik]]>Karthik Sevugarathinam2012-03-15T11:42:45-00:00Re: Preview Mode issue
https://www.eclipse.org/forums/index.php/mv/msg/301442/821721/#msg_821721
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.