[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Editor crash  XML
Forum Index -> Development
Author Message
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 [Disk] Download
 Description Crash log
 Filesize 14 Kbytes
 Downloaded:  468 time(s)

 Filename crsah.jsp [Disk] Download
 Description Simple file containing a browser (Name misspelled crsah.jsp instead of crash.jsp)
 Filesize 658 bytes
 Downloaded:  385 time(s)

[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5538
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
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5538
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
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
[WWW]
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 [Disk] Download
 Description
 Filesize 810 bytes
 Downloaded:  382 time(s)

 Filename Dispatcher.java [Disk] Download
 Description
 Filesize 1018 bytes
 Downloaded:  410 time(s)

[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5538
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
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team