Author |
Message |
13/03/2009 09:32:48
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Hi,
I can reproduce the following CC editor crash:
1. Make a simple jsp file like crsah.jsp (attached) containing just a browser with url file://C:
2. save the file
--> The windows explorer is embedded
3. save again
--> crash (see attached log)
Can you also reproduce this?
In runtime environment, the embedding of windows explorer works fine.
Regards, Daniel
Filename |
hs_err_pid2892.log |
Download
|
Description |
Crash log |
Filesize |
14 Kbytes
|
Downloaded: |
482 time(s) |
Filename |
crsah.jsp |
Download
|
Description |
Simple file containing a browser (Name misspelled crsah.jsp instead of crash.jsp) |
Filesize |
658 bytes
|
Downloaded: |
397 time(s) |
|
|
|
16/03/2009 07:30:18
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
Hi,
we cannot reproduce this on our side, we can save, save, save, etc.
We would need some deeper client log... Anyway: we'll meet soon, so I would like to take a look onto this issue directly...
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
19/03/2009 09:43:01
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
Hi,
result after directly checking: the browser component does - for whatever reason - not like the URL "file://c:" to much. It seems to crash the second time it is called within the editor.
When creating a http://...-URL-page around, internally containing a frame that points to "file://c:" then things are fine. Or say: much better, the error could not be reproduced anymore.
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
19/03/2009 14:26:02
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Hi,
Another way to avoid the crash, if one is too lazy to create the URL page:
Use HttpSessionAccess.checkIfInLayoutEditorPreview() to set the url to file://C:/xyz only at runtime.
Regards,
Daniel
|
|
|
27/03/2009 16:30:52
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Hi,
As you would have guessed, I was too lazy to create the URL page. Now I have found out that checkIfInLayoutEditorPreview doesn't work as I expected. If a button in the layout is pressed, then the function returns false from now on. I enclose a little example.
I believe this behavior is intended, isn't it? So this is just a warning, use the function only at initialization time.
Filename |
testCheck.jsp |
Download
|
Description |
|
Filesize |
810 bytes
|
Downloaded: |
393 time(s) |
Filename |
Dispatcher.java |
Download
|
Description |
|
Filesize |
1018 bytes
|
Downloaded: |
421 time(s) |
|
|
|
27/03/2009 16:58:01
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
Hi Daniel,
this is by intention. Only the first request gets the additional information that it is a preview request.
Otherwise things may get completely confusing. E.g. you open up a new subpage in the page that you currently preview. You expect the outer page to pass data into the inner page - but the inner page already starts up with dummy data, believing it is running in preview mode.
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
|