Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Help for RAP app deployed in JBoss AS 7?
Help for RAP app deployed in JBoss AS 7? [message #763104] Fri, 09 December 2011 07:13 Go to next message
David Song is currently offline David SongFriend
Messages: 217
Registered: April 2011
Senior Member
Hi all,
I deploy my rap app in Jboss AS 7 and get a error when I test it with the jfreechart 10.14. but no error when I run in Eclipse RAP development environment。and the jvm params is as below for jboss as 7:

set "JAVA_OPTS=-server -Xms800m -Xmx800m -XX:PermSize=64M -XX:MaxNewSize=256m -XX:MaxPermSize=128m -Djava.awt.headless=true"

set "JAVA_OPTS=%JAVA_OPTS% -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled"

and I get the error info just like below:

14:46:15,712 ERROR [stderr] (UIThread [ChCtePQN+L5XumCwkQgiX2rR]) Error while logging event loop exception:

14:46:15,712 ERROR [stderr] (UIThread [ChCtePQN+L5XumCwkQgiX2rR]) java.lang.OutOfMemoryError: PermGen space

14:46:16,695 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/].[equinoxbridgeservlet]] (http--0.0.0.0-8080-1) Servlet.service() for servlet equinoxbridgeservlet threw exception: java.lang.OutOfMemoryError: PermGen space
at java.lang.Throwable.getStackTraceElement(Native Method) [:1.6.0_27]
at java.lang.Throwable.getOurStackTrace(Throwable.java:591) [:1.6.0_27]
at java.lang.Throwable.printStackTrace(Throwable.java:462) [:1.6.0_27]
at java.lang.Throwable.printStackTrace(Throwable.java:451) [:1.6.0_27]
at org.eclipse.ui.application.WorkbenchAdvisor.eventLoopException(WorkbenchAdvisor.java:335)
at org.eclipse.ui.internal.ExceptionHandler.handleException(ExceptionHandler.java:66)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2737)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2694)
at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2530)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:702)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:685)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
at org.eclipse.rwt.internal.lifecycle.EntryPointManager.createUI(EntryPointManager.java:73)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:211)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:88)
at java.lang.Thread.run(Thread.java:662) [:1.6.0_27]
at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102)
Re: Help for RAP app deployed in JBoss AS 7? [message #763494 is a reply to message #763104] Fri, 09 December 2011 21:21 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
as the exception text says: the VM ran out of perm space. You'll want to
increase the perm gen size, e.g. -XX:MaxPermSize=256m

HTH
Rüdiger

On 09.12.2011 08:13, micromms wrote:
> Hi all,
> I deploy my rap app in Jboss AS 7 and get a error when I test it with
> the jfreechart 10.14. but no error when I run in Eclipse RAP development
> environment。and the jvm params is as below for jboss as 7:
>
> set "JAVA_OPTS=-server -Xms800m -Xmx800m -XX:PermSize=64M
> -XX:MaxNewSize=256m -XX:MaxPermSize=128m -Djava.awt.headless=true"
>
> set "JAVA_OPTS=%JAVA_OPTS% -XX:+CMSClassUnloadingEnabled
> -XX:+CMSPermGenSweepingEnabled"
>
> and I get the error info just like below:
>
> 14:46:15,712 ERROR [stderr] (UIThread [ChCtePQN+L5XumCwkQgiX2rR]) Error
> while logging event loop exception:
>
> 14:46:15,712 ERROR [stderr] (UIThread [ChCtePQN+L5XumCwkQgiX2rR])
> java.lang.OutOfMemoryError: PermGen space
>
> 14:46:16,695 ERROR
> [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/].[equinoxbridgeservlet]]
> (http--0.0.0.0-8080-1) Servlet.service() for servlet
> equinoxbridgeservlet threw exception: java.lang.OutOfMemoryError:
> PermGen space
> at java.lang.Throwable.getStackTraceElement(Native Method) [:1.6.0_27]
> at java.lang.Throwable.getOurStackTrace(Throwable.java:591) [:1.6.0_27]
> at java.lang.Throwable.printStackTrace(Throwable.java:462) [:1.6.0_27]
> at java.lang.Throwable.printStackTrace(Throwable.java:451) [:1.6.0_27]
> at
> org.eclipse.ui.application.WorkbenchAdvisor.eventLoopException(WorkbenchAdvisor.java:335)
>
> at
> org.eclipse.ui.internal.ExceptionHandler.handleException(ExceptionHandler.java:66)
>
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2737)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2694)
> at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2530)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:702)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:685)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
> at
> org.eclipse.rwt.internal.lifecycle.EntryPointManager.createUI(EntryPointManager.java:73)
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:211)
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:88)
>
> at java.lang.Thread.run(Thread.java:662) [:1.6.0_27]
> at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102)
>
--
Rüdiger Herrmann
http://codeaffine.com
Re: Help for RAP app deployed in JBoss AS 7? [message #763555 is a reply to message #763494] Sat, 10 December 2011 01:02 Go to previous messageGo to next message
David Song is currently offline David SongFriend
Messages: 217
Registered: April 2011
Senior Member
Thanks Herrmann. I did increase the perm gen size to "-XX:MaxPermSize=256m", but still get an error page:
Request failed.

HTTP Status Code: 500
Re: Help for RAP app deployed in JBoss AS 7? [message #763557 is a reply to message #763494] Sat, 10 December 2011 01:02 Go to previous messageGo to next message
David Song is currently offline David SongFriend
Messages: 217
Registered: April 2011
Senior Member
Thanks Herrmann. I did increase the perm gen size to "-XX:MaxPermSize=256m", but still get an error page:
Request failed.

HTTP Status Code: 500
Re: Help for RAP app deployed in JBoss AS 7? [message #764484 is a reply to message #763557] Mon, 12 December 2011 09:30 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

> HTTP Status Code: 500

That's not very specific. What's the exception logged to the console?

Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Help for RAP app deployed in JBoss AS 7? [message #764999 is a reply to message #764484] Tue, 13 December 2011 08:43 Go to previous message
David Song is currently offline David SongFriend
Messages: 217
Registered: April 2011
Senior Member
Thanks all, I didn't remove the decision code and the parameters did not work. It does work now
Re: Help for RAP app deployed in JBoss AS 7? [message #765001 is a reply to message #764484] Tue, 13 December 2011 08:43 Go to previous message
David Song is currently offline David SongFriend
Messages: 217
Registered: April 2011
Senior Member
Thanks all, I didn't remove the decision code and the parameters did not work. It does work now
Previous Topic:Help for RAP app deployed in JBoss AS 7?
Next Topic:Arrowbuttons
Goto Forum:
  


Current Time: Sun Oct 17 04:46:31 GMT 2021

Powered by FUDForum. Page generated in 0.02765 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top