[JBoss JIRA] Created: (GTNPORTAL-630) NPE while trying to get resource of type img/png
by Prabhat Jha (JIRA)
NPE while trying to get resource of type img/png
------------------------------------------------
Key: GTNPORTAL-630
URL: https://jira.jboss.org/jira/browse/GTNPORTAL-630
Project: GateIn Portal
Issue Type: Bug
Components: WCI integration
Affects Versions: 3.0.0-Beta05, 3.0.0-Beta04
Reporter: Prabhat Jha
To reproduce this error,
- Build and deploy portlet from http://anonsvn.jboss.org/repos/qa/prabhat/tictactoe-portlet
-Add it to home page and go to see the homepage.
You will get following exception. Please not that there is potentially a bug with bridge but in JBoss Portal, the portlet renders fine so I would expect the same over here as well.
13:24:31,867 INFO [portal:UIPortletActionListener] Try to get a resource of type: image/png for the portlet: StatefulPortletContext[local._dumbvalue,ExoPortletState[portletId=local./tictactoe-portlet.Richfaces Tic Tac Toe Portlet,state={}]]
13:24:31,868 ERROR [portal:UIPortletActionListener] Problem while serving resource for the portlet: local._dumbvalue
java.lang.NullPointerException
at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:83)
at org.exoplatform.portal.webui.application.UIPortletActionListener$ServeResourceActionListener.execute(UIPortletActionListener.java:371)
at org.exoplatform.webui.event.Event.broadcast(Event.java:89)
at org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecycle.java:124)
at org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecycle.java:53)
at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:124)
at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processAction(UIPortalApplicationLifecycle.java:66)
at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processAction(UIPortalApplicationLifecycle.java:30)
at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:124)
at org.exoplatform.webui.core.UIApplication.processAction(UIApplication.java:113)
at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:105)
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(AbstractHttpSer
--
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-694) Exception when selecting Vista window decoration
by Wesley Hales (JIRA)
Exception when selecting Vista window decoration
------------------------------------------------
Key: GTNPORTAL-694
URL: https://jira.jboss.org/jira/browse/GTNPORTAL-694
Project: GateIn Portal
Issue Type: Bug
Affects Versions: 3.0.0-CR01
Reporter: Wesley Hales
Assignee: Truong Le
* Note - This works normally after the exception occured and I logged back in.
Sign In -> Edit Page (Home) -> Add any portlet -> select edit properties of new portlet window -> Decoration Themes -> Select Vista -> Save & Close -> Save the page
Then the error popup and stacktrace below occured for me...
[STDOUT] Creating a new session of the 'sample-ext'
21:30:35,585 INFO [portal:PortalSessionListener] portal' portal
21:33:25,744 ERROR [portal:UIPortalApplication] Error during the processAction phase
java.lang.NullPointerException
at org.exoplatform.portal.webui.portal.UIPortalComponent.getTemplate(UIPortalComponent.java:64)
at org.exoplatform.portal.webui.util.PortalDataMapper.toContainer(PortalDataMapper.java:112)
at org.exoplatform.portal.webui.util.PortalDataMapper.toPageModel(PortalDataMapper.java:180)
at org.exoplatform.portal.webui.util.PortalDataMapper.buildModelObject(PortalDataMapper.java:77)
at org.exoplatform.portal.webui.
Going back to the page and trying to do the same steps again, I get....
[ChromatticSessionImpl] Attempt to insert context EntityContext[state=ObjectStatus[status=TRANSIENT],mapper=EntityMapper[class=class org.gatein.mop.core.api.workspace.UIWindowImpl,typeName=mop:uiwindow]] as an existing child with name mop:70067cdf-79dd-484b-8132-d4cec25cb9ac child of node /production/mop:workspace/mop:portalsites/mop:classic/mop:rootpage/mop:children/mop:pages/mop:children/mop:homepage/mop:rootcomponent
21:34:58,595 ERROR [portal:UIPortalApplication] Error during the processAction phase
org.chromattic.api.DuplicateNameException: Attempt to insert context EntityContext[state=ObjectStatus[status=TRANSIENT],mapper=EntityMapper[class=class org.gatein.mop.core.api.workspace.UIWindowImpl,typeName=mop:uiwindow]] as an existing child with name mop:70067cdf-79dd-484b-8132-d4cec25cb9ac child of node /production/mop:workspace/mop:portalsites/mop:classic/mop:rootpage/mop:children/mop:pages/mop:children/mop:homepage/mop:rootcomponent
at org.chromattic.core.DomainSessionImpl._persist(DomainSessionImpl.java:199)
at org.chromattic.core.DomainSessionImpl._persist(DomainSessionImpl.java:170)
at org.chromattic.core.DomainSession.persist(DomainSession.java:351)
at org.chromattic.core.EntityContext.addChild(EntityContext.java:187)
at org.chromattic.core.mapper.onetomany.hierarchical.AnyChildMap.put(AnyChildMap.java:85)
at org.chromattic.core.mapper.onetomany.hierarchical.AnyChildMap.put(AnyChildMap.java:31)
at org.gatein.mop.core.api.wo
--
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-696) Failure in GateIn unit tests on different DB than hsqldb
by Michal Vanco (JIRA)
Failure in GateIn unit tests on different DB than hsqldb
--------------------------------------------------------
Key: GTNPORTAL-696
URL: https://jira.jboss.org/jira/browse/GTNPORTAL-696
Project: GateIn Portal
Issue Type: Task
Components: Common integration, Identity integration, JCR integration
Environment: GateIn trunk version (rev. 1777)
PostgreSQL 8.2-504
maven 2.2.1
jdk1.6.0_15
Reporter: Michal Vanco
Attachments: log_unit_tests_postgresql.txt
I'm trying to run unit tests on different DBs than HSQL, but get an error in ChromatticIntegrationTestCase.
I tried it with PostgreSQL and MySQL and have the same result.
Procedure is following:
- use current version of GateIn from http://anonsvn.jboss.org/repos/gatein/portal/trunk
- change hibernate dialect in component/test/organization/src/main/resources/conf/exo.portal.component.test.organization-configuration.xml
- change driver, url, user and passw in component/identity/src/test/java/conf/portal/test-configuration.xml
- change driver, url, user, passw and idm dialect in component/identity/src/test/java/conf/portal/idm-configuration.xml
- change driver, url, user, passw and hibernate dialect in component/resources/src/test/java/conf/portal/testjcr/test-jcr-configuration.xml
- change driver, url, user and passw in component/test/core/src/main/resources/conf/portal-configuration.xml
- add repository with jdbc drivers and dependency of jdbc connector to main pom.xml
- then run tests with mvn clean test
In ChromatticIntegrationTestCase get the following error:
14225 [main] ERROR jcr.TxIsolatedOperation - Rollback error
java.lang.IllegalStateException: BaseTransaction.rollback - [com.arjuna.ats.internal.jta.transaction.arjunacore.notx] [com.arjuna.ats.internal.jta.transaction.arjunacore.notx] no transaction!
Full exception log is attached.
Is there anything else to be configured? Or is there any problem with transactions?
--
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-762) Invalid HTML tag format when using javax.portlet.MimeResponse / response.addProperty API
by Tugdual Grall (JIRA)
Invalid HTML tag format when using javax.portlet.MimeResponse / response.addProperty API
-----------------------------------------------------------------------------------------
Key: GTNPORTAL-762
URL: https://jira.jboss.org/jira/browse/GTNPORTAL-762
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 3.0.0-CR01
Environment: CR1 tomcat Bundle
MacOSX
OS FF3.5, Safari4,Chrome
Reporter: Tugdual Grall
In my portlet I have the following code in my portlet:
...
@Override
protected void doHeaders(RenderRequest request, RenderResponse response) {
Element description = response.createElement("meta");
description.setAttribute("name", "description");
description.setAttribute("content", "Some Content about GateIn project");
response.addProperty(MimeResponse.MARKUP_HEAD_ELEMENT, description);
Element keywords = response.createElement("meta");
keywords.setAttribute("name", "keywords");
keywords.setAttribute("content", "exo, gatein,portal,portlet");
response.addProperty(MimeResponse.MARKUP_HEAD_ELEMENT, keywords);
Element cssFile = response.createElement("link");
cssFile.setAttribute("type", "text/css");
cssFile.setAttribute("href", request.getContextPath() + "/resources/my-portlet.css");
cssFile.setAttribute("rel","stylesheet");
response.addProperty(MimeResponse.MARKUP_HEAD_ELEMENT, cssFile);
super.doHeaders(request, response);
}
...
The HTML code generated looks like (do a view source on a page):
------- CODE -----
<?xml version="1.0" encoding="UTF-8"?>
<meta content="Some Content about GateIn project" name="description"/>
<?xml version="1.0" encoding="UTF-8"?>
<meta content="exo, gatein,portal,portlet" name="keywords"/>
<?xml version="1.0" encoding="UTF-8"?>
<link href="/lab-010-portlet-html-header/resources/my-portlet.css" rel="stylesheet" type="text/css"/>
-------- /Code -----
We should remove the blank between lines and the XML definition to have something that looks like
------- CODE -----
<meta content="Some Content about GateIn project" name="description"/>
<meta content="exo, gatein,portal,portlet" name="keywords"/>
<link href="/lab-010-portlet-html-header/resources/my-portlet.css" rel="stylesheet" type="text/css"/>
-------- /Code -----
--
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, 2 months