[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Enterprise Client crashes when refreshing a new jsp  XML
Forum Index -> Development
Author Message
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Hi Captain,

got another crash:
When I press "Refresh Preview" an a freshly created jsp the Client crashes. I just created the jsp an did nothing at all with it.

Frauke
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Oh, it even crashes if I press "save".
But now I did some changes before....

Frauke
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

Hi,

pleeeeease: tell me more details.

What does "crash" mean? Is there a stack trace?
Does it always happen?
Is there any log output on client or server side?


...THANKS!!!!

Björn

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

...I assue this is somehow related with the missing directory... Is it?
Björn

Björn Müller, CaptainCasa GmbH
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Well, yes, since I could not create the directory from within the Client, I created it with the windoes explorer.
Than I restarted the client (and even the Tomcat) and created the file within the new (emtpy) directory.

Got problems submitting the request (--> screenshot follows)

Frauke
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

javax.servlet.ServletException: Servlet execution threw an exception
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.eclnt.jsfserver.util.ThreadingFilter.doFilter(ThreadingFilter.java:135)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.eclnt.jsfserver.util.CompressionFilter.doFilter(CompressionFilter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Error: javax.faces.el.EvaluationException: java.lang.Error: Could not write D:/cms_workspace/SmartA
CT/apache-tomcat-6.0.16/webapps/compact/icms_casabac/jsp/migration/migration.jsp
at org.eclnt.jsfserver.elements.MethodBindingDelegator.invoke(MethodBindingDelegator.java:90)
at org.eclnt.jsfserver.elements.BaseActionComponent.broadcast(BaseActionComponent.java:210)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
... 17 more
Caused by: javax.faces.el.EvaluationException: java.lang.Error: Could not write D:/cms_workspace/SmartACT/apache-tomcat-
6.0.16/webapps/compact/icms_casabac/jsp/migration/migration.jsp
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
at org.eclnt.jsfserver.elements.MethodBindingDelegator.invoke(MethodBindingDelegator.java:57)
... 25 more
Caused by: java.lang.Error: Could not write D:/cms_workspace/SmartACT/apache-tomcat-6.0.16/webapps/compact/icms_casabac/
jsp/migration/migration.jsp
at org.eclnt.util.file.FileManager.writeTextFile(FileManager.java:166)
at org.eclnt.util.file.FileManager.writeUTF8File(FileManager.java:145)
at org.eclnt.editor.Editor.save(Editor.java:1330)
at org.eclnt.editor.Editor.onSave(Editor.java:1093)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
... 26 more
schmuck

Power User
[Avatar]

Joined: 08/04/2008 16:27:16
Messages: 83
Offline

Did you create the new folder in the enterpriseclient/server/tomcat/webapps/xyz location, or in your eclipse workspace?

If you have created it into the tomcat folder:

Best way should be to create all folders in eclipse workspace (webcontents folder), and to use the reload server button of the tools.

Because also the GUI editor is writing into the workspace, and the reload server button "just" copys the developed content into a the tomcat/webapps folders ...

So the files and folders in the workspace are the main location to develop and the tomcat webapp is "just" a "runtime environment".


regards,
Michael Schmuck


@ captain, please correct me if I am wrong ...

[ICQ]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

...thanks for the details + also the explanations how to work-around!

We corrected the bug, so directories are created properly when previewing/saving jsp files now...

We published an interim version http://www.CaptainCasa.com/download/setup_2_1_20080828.exe or http://www.CaptainCasa.com/download/EnterpriseClient_2_1_20080828.zip in which this bug is corrected. (The interim version is not part of the DevZone. The solution will be part of the next official update as well.)

Björn

Björn Müller, CaptainCasa GmbH
gargula

Power User

Joined: 18/01/2008 13:01:44
Messages: 34
Offline

Hi Björn,

we have this problem too...
I send you the stack and the editorlog....

Is this the same problem???

Thanks
Christian
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team