[JBoss JIRA] Created: (GTNPORTAL-919) StackOverflow on JsonGeneratorImpl
by Thomas Heute (JIRA)
StackOverflow on JsonGeneratorImpl
----------------------------------
Key: GTNPORTAL-919
URL: https://jira.jboss.org/jira/browse/GTNPORTAL-919
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 3.0.0-CR01
Environment: tomcat with WCM 2.0-Beta01-SNAPSHOT, GateIn 3.0.0 CR01-CP01
Reporter: Benjamin Paillereau
Priority: Blocker
Fix For: 3.1.0-GA
Caused by: java.lang.StackOverflowError
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.Package.defineSystemPackage(Package.java:520)
at java.lang.Package.getSystemPackages(Package.java:511)
at java.lang.ClassLoader.getPackages(ClassLoader.java:1551)
at java.lang.ClassLoader.getPackages(ClassLoader.java:1549)
at java.lang.ClassLoader.getPackages(ClassLoader.java:1549)
at java.lang.Package.getPackages(Package.java:281)
at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl.createJsonObject(JsonGeneratorImpl.java:94)
at org.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl.createJsonValue(JsonGeneratorImpl.java:221)
at org.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl.createJsonObject(JsonGeneratorImpl.java:97)
at org.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl.createJsonValue(JsonGeneratorImpl.java:221)
at org.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl.createJsonObject(JsonGeneratorImpl.java:97)
at org.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl.createJsonValue(JsonGeneratorImpl.java:221)
at org.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl.createJsonObject(JsonGeneratorImpl.java:97)
at org.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl.createJsonValue(JsonGeneratorImpl.java:221)
at org.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl.createJsonObject(JsonGeneratorImpl.java:97)
...
the code is the following :
import org.exoplatform.portal.webui.util.Util;
import org.exoplatform.services.wcm.navigation.NavigationService;
def navigations = Util.getUIPortal().getNavigations();
def navigationService = uicomponent.getApplicationComponent(NavigationService.class);
def JSONnavigation = navigationService.getNavigationsAsJSON(navigations);
the method at the origin of the stack overflow :
public String getNavigationsAsJSON(List<PageNavigation> navigations) throws Exception {
PortalNavigation portalNavigation = new PortalNavigation(navigations);
JsonValue jsonValue = new JsonGeneratorImpl().createJsonObject(portalNavigation);
String JSONnavigation = jsonValue.toString();
JSONnavigation = JSONnavigation.substring(1, JSONnavigation.length() - 1);
JSONnavigation = JSONnavigation.replaceFirst("\"navigations\":", "");
return JSONnavigation;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 1 month
[JBoss JIRA] Created: (GTNPORTAL-856) StackOverflow on JsonGeneratorImpl
by Benjamin Paillereau (JIRA)
StackOverflow on JsonGeneratorImpl
----------------------------------
Key: GTNPORTAL-856
URL: https://jira.jboss.org/jira/browse/GTNPORTAL-856
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 3.0.0-CR01
Environment: tomcat with WCM 2.0-Beta01-SNAPSHOT, GateIn 3.0.0 CR01-CP01
Reporter: Benjamin Paillereau
Priority: Blocker
Caused by: java.lang.StackOverflowError
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.Package.defineSystemPackage(Package.java:520)
at java.lang.Package.getSystemPackages(Package.java:511)
at java.lang.ClassLoader.getPackages(ClassLoader.java:1551)
at java.lang.ClassLoader.getPackages(ClassLoader.java:1549)
at java.lang.ClassLoader.getPackages(ClassLoader.java:1549)
at java.lang.Package.getPackages(Package.java:281)
at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl.createJsonObject(JsonGeneratorImpl.java:94)
at org.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl.createJsonValue(JsonGeneratorImpl.java:221)
at org.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl.createJsonObject(JsonGeneratorImpl.java:97)
at org.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl.createJsonValue(JsonGeneratorImpl.java:221)
at org.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl.createJsonObject(JsonGeneratorImpl.java:97)
at org.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl.createJsonValue(JsonGeneratorImpl.java:221)
at org.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl.createJsonObject(JsonGeneratorImpl.java:97)
at org.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl.createJsonValue(JsonGeneratorImpl.java:221)
at org.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl.createJsonObject(JsonGeneratorImpl.java:97)
...
the code is the following :
import org.exoplatform.portal.webui.util.Util;
import org.exoplatform.services.wcm.navigation.NavigationService;
def navigations = Util.getUIPortal().getNavigations();
def navigationService = uicomponent.getApplicationComponent(NavigationService.class);
def JSONnavigation = navigationService.getNavigationsAsJSON(navigations);
the method at the origin of the stack overflow :
public String getNavigationsAsJSON(List<PageNavigation> navigations) throws Exception {
PortalNavigation portalNavigation = new PortalNavigation(navigations);
JsonValue jsonValue = new JsonGeneratorImpl().createJsonObject(portalNavigation);
String JSONnavigation = jsonValue.toString();
JSONnavigation = JSONnavigation.substring(1, JSONnavigation.length() - 1);
JSONnavigation = JSONnavigation.replaceFirst("\"navigations\":", "");
return JSONnavigation;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 1 month
[JBoss JIRA] Created: (GTNPORTAL-702) Remove "Import Applications" feature from Administration category menu
by Nicolas Martignole (JIRA)
Remove "Import Applications" feature from Administration category menu
-----------------------------------------------------------------------
Key: GTNPORTAL-702
URL: https://jira.jboss.org/jira/browse/GTNPORTAL-702
Project: GateIn Portal
Issue Type: Feature Request
Components: User Interface
Affects Versions: 3.0.0-CR01
Reporter: Nicolas Martignole
Priority: Minor
GateIn Portal has an "Import Applications" submenu feature that is used to import applications the very first time GateIn is used. Julien Viet told me that this is related to the JCR.
I would suggest to remove this feature, that has to be manually triggered, and let the Portal adds any valid WAR package at startup-time. This would avoir the need to execute this task once for all.
When we compare with Liferay 5.2, any valid web application is automatically available in the "Control Panel" Menu. When an application is not valid, but some of its meta can be extracted, the Liferay control panel will show the Portlet name grayed out.
As a GateIn Portal user, I'd like to drop my WAR in the webapp folder, reload the list of available applications, and see all my Portlets, without the need to call this "Import Applications" feature.
Nicolas
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 1 month
[JBoss JIRA] Created: (GTNPORTAL-690) IllegalStateException when logout from GateIn portal with clustered setup
by Marek Posolda (JIRA)
IllegalStateException when logout from GateIn portal with clustered setup
-------------------------------------------------------------------------
Key: GTNPORTAL-690
URL: https://jira.jboss.org/jira/browse/GTNPORTAL-690
Project: GateIn Portal
Issue Type: Bug
Affects Versions: 3.0.0-CR01
Environment: Sun JDK 1.6,
GateIn-3.0.0-CR01 bundle with JBoss 5.1.0
Reporter: Marek Posolda
1) Edit server/default/conf/gatein/configuration.properties for clustered setup (file attached)
2) Run it with ./run.sh -Dexo.profiles=cluster
3) When login as root and then logout back I can see IllegalAccessException in server log.
I tried it also with GateIn deployed in "all" configuration and with GateIn deployed on EAP-5. I can see this exception in all setups I tried. Nothing seems to be broken, only the exception in server log is annoying:
java.lang.IllegalStateException: Cannot create a session after the response has been committed
at org.apache.catalina.connector.Request.doGetSession(Request.java:2338)
at org.apache.catalina.connector.Request.getSession(Request.java:2094)
at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:844)
at org.exoplatform.portal.application.replication.ReplicatingStateManager.getSession(ReplicatingStateManager.java:174)
at org.exoplatform.portal.application.replication.ReplicatingStateManager.storeUIRootComponent(ReplicatingStateManager.java:120)
at org.exoplatform.portal.application.PortalStateManager.storeUIRootComponent(PortalStateManager.java:59)
at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:115)
at org.exoplatform.web.WebAppController.service(WebAppController.java:143)
at org.exoplatform.portal.application.PortalController.onService(PortalController.java:127)
at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:116)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 1 month