| Summary: | "org is not defined" JavaScript error | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Igor Pavlenko <dopperst> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P2 | CC: | b.muskalla, Istvan.Ballok, jboehme, stefan.roeck, swimmer_86 | ||||
| Version: | 1.2 | ||||||
| Target Milestone: | 1.5 M1 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Igor Pavlenko
Created attachment 137281 [details]
Patch to solve the problem
All calls of the org.eclipse.rwt.internal.resources.ResourceUtil.write(File, int[]) method are in the org.eclipse.rwt.internal.resources.ResourceManagerImpl.
So it is possible to add some synchronization code in ResourceManagerImpl to solve described problem.
I do not know if this patch solves the problem with "org is not defined", but I cannot reproduce the problem with this patch (and I can without it). But this solves the problem with asynchronous call of the ResourceUtil.write.
Thanks for the patch, Igor. We are aware of this issue but as it only affects the first request after launch, we do not consider this highest priority. The very first request to a RAP application must always run uninterrupted. After this, everything should be thread-safe. This issue has been fixed by the introduction of the ApplicationContext. Since RAP 1.5M1, the resources are not registered by the first session anymore, but by activating an ApplicationContext on server start. This happens before the RWT servlet is even registered. Therefore, the breakpoint mentioned in the original post is now only reached once from ApplicationContext#activate(). *** Bug 374934 has been marked as a duplicate of this bug. *** |