[gatein-issues] [JBoss JIRA] Commented: (GTNPORTAL-1905) StAX integration

Minh Hoang TO (JIRA) jira-events at lists.jboss.org
Wed May 25 23:08:00 EDT 2011


    [ https://issues.jboss.org/browse/GTNPORTAL-1905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604488#comment-12604488 ] 

Minh Hoang TO commented on GTNPORTAL-1905:
------------------------------------------

I was blocked by an incomprehensible error. In the class NewPortalConfigListener (which is a Startable object 's plugin), i defined simply an unused method buildStaxNavigator

{code:java}

private StaxNavigator<StAXElement> buildStaxNavigator(....)
{
   XMLStreamReader stream =....;
   
   return new StaxNavigator<StAXElement>(new Naming.Enumerated.Simple<StAXElement>(StAXElement.class, NO_SUCH_ELEMENT), stream);
}

{code}

With the call to new operator in return statement, GateIn Kernel failed to instantiate NewPortalConfigListener object

Everything was fine as i replaced 'return ....' with 'return null;'


If i customized the class StaxNavigatorImpl (remove the parameterized type), everything was OK!!!

> StAX integration
> ----------------
>
>                 Key: GTNPORTAL-1905
>                 URL: https://issues.jboss.org/browse/GTNPORTAL-1905
>             Project: GateIn Portal
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 3.2.0-GA
>            Reporter: Minh Hoang TO
>            Assignee: Minh Hoang TO
>              Labels: portal-s53
>   Original Estimate: 1 day, 4 hours
>          Time Spent: 2 days
>  Remaining Estimate: 0 minutes
>
> Use StaxNav, an XML processing Framework, to bind XML configuration to GateIn object (PageNavigation, PortalConfig, Page, PortletApplication,...)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the gatein-issues mailing list