You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-dev@portals.apache.org by "Vishal Goenka (JIRA)" <ws...@ws.apache.org> on 2005/06/25 01:21:59 UTC

[jira] Created: (WSRP4J-66) Class org.apache.wsrp4j.producer.provider.pluto.driver.StoredResponse does not implement getOutputStream (returns null)

Class org.apache.wsrp4j.producer.provider.pluto.driver.StoredResponse does not implement getOutputStream (returns null)
-----------------------------------------------------------------------------------------------------------------------

         Key: WSRP4J-66
         URL: http://issues.apache.org/jira/browse/WSRP4J-66
     Project: WSRP4J
        Type: Bug
  Components: Pluto Driver  
    Versions: current (nightly)    
 Environment: All
    Reporter: Vishal Goenka
    Priority: Minor


Class org.apache.wsrp4j.producer.provider.pluto.driver.StoredResponse extends HttpResponse and while it does implement getWriter, it does not implement the getOutputStream() method. Since this class is wrapped as the HttpResponse object when the portlet is invoked, any code that uses the getOutputStream() method gets a NullPointerException.

I have a fix that is based on a class from the Pluto source itself. I will be happy to contribute the fix, if there is interest.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (WSRP4J-66) Class org.apache.wsrp4j.producer.provider.pluto.driver.StoredResponse does not implement getOutputStream (returns null)

Posted by "Sagar Gattepally (JIRA)" <ws...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/WSRP4J-66?page=comments#action_12365943 ] 

Sagar Gattepally commented on WSRP4J-66:
----------------------------------------

Error: The type StoredResponse must implement the inherited abstract method ServletResponse.getContentType()	StoredResponse.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 41	February 10, 2006 10:39:25 AM	25354
Error: The type StoredResponse must implement the inherited abstract method ServletResponse.setCharacterEncoding(String)	StoredResponse.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 41	February 10, 2006 10:39:25 AM	25353

Warning: The local variable env is never read	PortletInvokerImpl.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 133	February 9, 2006 6:50:23 PM	25326
Warning: The local variable env is never read	PortletInvokerImpl.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 249	February 9, 2006 6:50:23 PM	25327
Warning: The serializable class PortletStateImpl does not declare a static final serialVersionUID field of type long	PortletStateImpl.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 35	February 9, 2006 6:48:53 PM	25281
Warning: The serializable class StoredResponse does not declare a static final serialVersionUID field of type long	StoredResponse.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 41	February 10, 2006 10:39:25 AM	25352
Warning: The field StoredResponse._statusCode is never read locally	StoredResponse.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 53	February 10, 2006 10:39:25 AM	25355
Warning: The field StoredResponse._statusMessage is never read locally	StoredResponse.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 56	February 10, 2006 10:39:25 AM	25356
Warning: The field StoredResponse._redirectURI is never read locally	StoredResponse.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 59	February 10, 2006 10:39:25 AM	25357
Warning: The method finish() from the type StoredResponse is never used locally	StoredResponse.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 139	February 10, 2006 10:39:25 AM	25358
Warning: Javadoc: The method setStatus(int, String) from the type HttpServletResponse is deprecated	StoredResponse.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 303	February 10, 2006 10:39:25 AM	25359
Warning: The serializable class WSRPPortletEntityImpl does not declare a static final serialVersionUID field of type long	WSRPPortletEntityImpl.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 35	February 9, 2006 6:48:52 PM	25267


> Class org.apache.wsrp4j.producer.provider.pluto.driver.StoredResponse does not implement getOutputStream (returns null)
> -----------------------------------------------------------------------------------------------------------------------
>
>          Key: WSRP4J-66
>          URL: http://issues.apache.org/jira/browse/WSRP4J-66
>      Project: WSRP4J
>         Type: Bug
>   Components: Pluto Driver
>     Versions: current (nightly)
>  Environment: All
>     Reporter: Vishal Goenka
>     Priority: Minor

>
> Class org.apache.wsrp4j.producer.provider.pluto.driver.StoredResponse extends HttpResponse and while it does implement getWriter, it does not implement the getOutputStream() method. Since this class is wrapped as the HttpResponse object when the portlet is invoked, any code that uses the getOutputStream() method gets a NullPointerException.
> I have a fix that is based on a class from the Pluto source itself. I will be happy to contribute the fix, if there is interest.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (WSRP4J-66) Class org.apache.wsrp4j.producer.provider.pluto.driver.StoredResponse does not implement getOutputStream (returns null)

Posted by "Carsten Ziegeler (JIRA)" <ws...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/WSRP4J-66?page=comments#action_12356762 ] 

Carsten Ziegeler commented on WSRP4J-66:
----------------------------------------

Hi, can you please add the fix as a patch here?
Thanks

> Class org.apache.wsrp4j.producer.provider.pluto.driver.StoredResponse does not implement getOutputStream (returns null)
> -----------------------------------------------------------------------------------------------------------------------
>
>          Key: WSRP4J-66
>          URL: http://issues.apache.org/jira/browse/WSRP4J-66
>      Project: WSRP4J
>         Type: Bug
>   Components: Pluto Driver
>     Versions: current (nightly)
>  Environment: All
>     Reporter: Vishal Goenka
>     Priority: Minor

>
> Class org.apache.wsrp4j.producer.provider.pluto.driver.StoredResponse extends HttpResponse and while it does implement getWriter, it does not implement the getOutputStream() method. Since this class is wrapped as the HttpResponse object when the portlet is invoked, any code that uses the getOutputStream() method gets a NullPointerException.
> I have a fix that is based on a class from the Pluto source itself. I will be happy to contribute the fix, if there is interest.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (WSRP4J-66) Class org.apache.wsrp4j.producer.provider.pluto.driver.StoredResponse does not implement getOutputStream (returns null)

Posted by "Sagar Gattepally (JIRA)" <ws...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/WSRP4J-66?page=comments#action_12365942 ] 

Sagar Gattepally commented on WSRP4J-66:
----------------------------------------

Error:: The type StoredResponse must implement the inherited abstract method ServletResponse.getContentType()	StoredResponse.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 41	February 10, 2006 10:39:25 AM	25354

Error:	The type StoredResponse must implement the inherited abstract method ServletResponse.setCharacterEncoding(String)	StoredResponse.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 41	February 10, 2006 10:39:25 AM	25353

Warning:	The local variable env is never read	PortletInvokerImpl.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 133	February 9, 2006 6:50:23 PM	25326
Warning:	The local variable env is never read	PortletInvokerImpl.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 249	February 9, 2006 6:50:23 PM	25327
Warning:	The serializable class PortletStateImpl does not declare a static final serialVersionUID field of type long	PortletStateImpl.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 35	February 9, 2006 6:48:53 PM	25281
Warning:	The serializable class StoredResponse does not declare a static final serialVersionUID field of type long	StoredResponse.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 41	February 10, 2006 10:39:25 AM	25352
Warning:	The field StoredResponse._statusCode is never read locally	StoredResponse.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 53	February 10, 2006 10:39:25 AM	25355
Warning:	The field StoredResponse._statusMessage is never read locally	StoredResponse.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 56	February 10, 2006 10:39:25 AM	25356
Warning:	The field StoredResponse._redirectURI is never read locally	StoredResponse.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 59	February 10, 2006 10:39:25 AM	25357
Warning:	The method finish() from the type StoredResponse is never used locally	StoredResponse.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 139	February 10, 2006 10:39:25 AM	25358
Warning:	Javadoc: The method setStatus(int, String) from the type HttpServletResponse is deprecated	StoredResponse.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 303	February 10, 2006 10:39:25 AM	25359
Warning:	The serializable class WSRPPortletEntityImpl does not declare a static final serialVersionUID field of type long	WSRPPortletEntityImpl.java	Producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver	line 35	February 9, 2006 6:48:52 PM	25267


> Class org.apache.wsrp4j.producer.provider.pluto.driver.StoredResponse does not implement getOutputStream (returns null)
> -----------------------------------------------------------------------------------------------------------------------
>
>          Key: WSRP4J-66
>          URL: http://issues.apache.org/jira/browse/WSRP4J-66
>      Project: WSRP4J
>         Type: Bug
>   Components: Pluto Driver
>     Versions: current (nightly)
>  Environment: All
>     Reporter: Vishal Goenka
>     Priority: Minor

>
> Class org.apache.wsrp4j.producer.provider.pluto.driver.StoredResponse extends HttpResponse and while it does implement getWriter, it does not implement the getOutputStream() method. Since this class is wrapped as the HttpResponse object when the portlet is invoked, any code that uses the getOutputStream() method gets a NullPointerException.
> I have a fix that is based on a class from the Pluto source itself. I will be happy to contribute the fix, if there is interest.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira