Hello,
I am working with a simple hello world portlet and i want to
update preferences in the edit Mode of my portlet.
My producer is on tomcat 5.5.16 and the consumer is WPS 5.1.
My problem is the following. When i submit the form that
allows to update preferences in the edit Mode there is 2
calls to the producer.
The first one send the updated parameters coming from the form.
This calls returns a null pointer Exception in the soap
message but i do not have any exception in the wsrp4j logs
and this call do not acces the portlet code.
Here is the fault :
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>java.lang.NullPointerException</faultstring>
<detail>
<ns1:hostname
xmlns:ns1="http://xml.apache.org/axis/">agd_machine</ns1:hostname>
</detail>
</soapenv:Fault>
And the second call is a simple call in order to display the
edit mode. this call is working fine but i do not understand
why we have this second call.
Is it the expected behaviour ? does somebody has already
seen that issue with another consumer/ with WPS ?
Thank you by advance for your comments/remarks...
Please find attached the SOAP message which is coming from
WPS that returns the null pointer exception (from TCPmon)
Remarks : the portlet is workinf fine in local mode
(deployed on pluto)
kind regards,
Adrien
--------------------- ALICE SECURITE ENFANTS ---------------------
Protégez vos enfants des dangers d'Internet en installant Sécurité Enfants, le
contrôle parental d'Alice.
http://www.aliceadsl.fr/securitepc/default_copa.asp
POST /wsrp4j-producer/WSRP4JProducer/WSRPBaseService HTTP/1.1
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: IBM WebServices/1.0
Host: localhost:8081
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "urn:oasis:names:tc:wsrp:v1:getMarkup"
Content-Length: 1358
Cookie: JSESSIONID=B16CDFBA0645785DC1F20FBC5BE554AB;
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body>
<getMarkup xmlns="urn:oasis:names:tc:wsrp:v1:types">
<registrationContext>
<registrationHandle>192.168.12.115_1173363499726_0</registrationHandle>
</registrationContext>
<portletContext>
<portletHandle>8.0</portletHandle>
</portletContext>
<runtimeContext>
<userAuthentication>wsrp:none</userAuthentication>
<portletInstanceKey>7_0_6KR</portletInstanceKey>
<namespacePrefix>wsrp_rewrite_</namespacePrefix>
</runtimeContext>
<userContext>
<userContextKey>admin</userContextKey>
<profile/>
</userContext>
<markupParams>
<secureClientCommunication>0</secureClientCommunication>
<locales>fr</locales>
<locales>en</locales>
<mimeTypes>text/html</mimeTypes>
<mode>wsrp:view</mode>
<windowState>wsrp:normal</windowState>
<clientData>
<userAgent>Mozilla/5.0 (Windows; U; Windows NT 5.0; fr;
rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2</userAgent>
</clientData>
<markupCharacterSets>UTF-8</markupCharacterSets>
<validNewModes>wsrp:edit</validNewModes>
<validNewModes>wsrp:help</validNewModes>
<validNewModes>wsrp:view</validNewModes>
</markupParams>
</getMarkup>
</soapenv:Body>
</soapenv:Envelope>POST /wsrp4j-producer/WSRP4JProducer/WSRPBaseService
HTTP/1.1
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: IBM WebServices/1.0
Host: localhost:8081
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "urn:oasis:names:tc:wsrp:v1:getMarkup"
Content-Length: 1361
Cookie: JSESSIONID=B16CDFBA0645785DC1F20FBC5BE554AB;
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body>
<getMarkup xmlns="urn:oasis:names:tc:wsrp:v1:types">
<registrationContext>
<registrationHandle>192.168.12.115_1173363499726_0</registrationHandle>
</registrationContext>
<portletContext>
<portletHandle>8.0</portletHandle>
</portletContext>
<runtimeContext>
<userAuthentication>wsrp:none</userAuthentication>
<portletInstanceKey>7_0_6KR</portletInstanceKey>
<namespacePrefix>wsrp_rewrite_</namespacePrefix>
</runtimeContext>
<userContext>
<userContextKey>admin</userContextKey>
<profile/>
</userContext>
<markupParams>
<secureClientCommunication>0</secureClientCommunication>
<locales>fr</locales>
<locales>en</locales>
<mimeTypes>text/html</mimeTypes>
<mode>wsrp:edit</mode>
<windowState>wsrp:maximized</windowState>
<clientData>
<userAgent>Mozilla/5.0 (Windows; U; Windows NT 5.0; fr;
rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2</userAgent>
</clientData>
<markupCharacterSets>UTF-8</markupCharacterSets>
<validNewModes>wsrp:edit</validNewModes>
<validNewModes>wsrp:help</validNewModes>
<validNewModes>wsrp:view</validNewModes>
</markupParams>
</getMarkup>
</soapenv:Body>
</soapenv:Envelope>POST /wsrp4j-producer/WSRP4JProducer/WSRPBaseService
HTTP/1.1
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: IBM WebServices/1.0
Host: localhost:8081
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "urn:oasis:names:tc:wsrp:v1:performBlockingInteraction"
Content-Length: 2071
Cookie: JSESSIONID=B16CDFBA0645785DC1F20FBC5BE554AB;
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body>
<performBlockingInteraction
xmlns="urn:oasis:names:tc:wsrp:v1:types">
<registrationContext>
<registrationHandle>192.168.12.115_1173363499726_0</registrationHandle>
</registrationContext>
<portletContext>
<portletHandle>8.0</portletHandle>
</portletContext>
<runtimeContext>
<userAuthentication>wsrp:none</userAuthentication>
<portletInstanceKey>7_0_6KR</portletInstanceKey>
<namespacePrefix>wsrp_rewrite_</namespacePrefix>
</runtimeContext>
<userContext>
<userContextKey>admin</userContextKey>
<profile/>
</userContext>
<markupParams>
<secureClientCommunication>0</secureClientCommunication>
<locales>fr</locales>
<locales>en</locales>
<mimeTypes>text/html</mimeTypes>
<mode>wsrp:edit</mode>
<windowState>wsrp:maximized</windowState>
<clientData>
<userAgent>Mozilla/5.0 (Windows; U; Windows NT 5.0; fr;
rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2</userAgent>
</clientData>
<markupCharacterSets>UTF-8</markupCharacterSets>
<validNewModes>wsrp:edit</validNewModes>
<validNewModes>wsrp:help</validNewModes>
<validNewModes>wsrp:view</validNewModes>
</markupParams>
<interactionParams>
<portletStateChange>cloneBeforeWrite</portletStateChange>
<interactionState>rO0ABXNyABFqYXZhLnV0aWwuSGFzaE1hcAUH2sHDFmDRAwACRgAKbG9hZEZhY3RvckkACXRocmVzaG9sZHhwP0AAAAAAAAx3CAAAABAAAAABdAAGX3NwYWdldXIAE1tMamF2YS5sYW5nLlN0cmluZzut0lbn6R17RwIAAHhwAAAAAXQAEi9lZGl0TW9kZUFjdGlvbi5kb3g*</interactionState>
<formParameters name="key">
<value>portletId</value>
</formParameters>
<formParameters name="key">
<value>pageId</value>
</formParameters>
<formParameters name="value">
<value>a</value>
</formParameters>
<formParameters name="value">
<value>pageNameValue</value>
</formParameters>
<formParameters name="isSubmit">
<value>submit</value>
</formParameters>
</interactionParams>
</performBlockingInteraction>
</soapenv:Body>
</soapenv:Envelope>POST
/wsrp4j-producer/WSRP4JProducer/WSRPBaseService HTTP/1.1
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: IBM WebServices/1.0
Host: localhost:8081
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "urn:oasis:names:tc:wsrp:v1:getMarkup"
Content-Length: 1361
Cookie: JSESSIONID=B16CDFBA0645785DC1F20FBC5BE554AB;
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body>
<getMarkup xmlns="urn:oasis:names:tc:wsrp:v1:types">
<registrationContext>
<registrationHandle>192.168.12.115_1173363499726_0</registrationHandle>
</registrationContext>
<portletContext>
<portletHandle>8.0</portletHandle>
</portletContext>
<runtimeContext>
<userAuthentication>wsrp:none</userAuthentication>
<portletInstanceKey>7_0_6KR</portletInstanceKey>
<namespacePrefix>wsrp_rewrite_</namespacePrefix>
</runtimeContext>
<userContext>
<userContextKey>admin</userContextKey>
<profile/>
</userContext>
<markupParams>
<secureClientCommunication>0</secureClientCommunication>
<locales>fr</locales>
<locales>en</locales>
<mimeTypes>text/html</mimeTypes>
<mode>wsrp:edit</mode>
<windowState>wsrp:maximized</windowState>
<clientData>
<userAgent>Mozilla/5.0 (Windows; U; Windows NT 5.0;
fr; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2</userAgent>
</clientData>
<markupCharacterSets>UTF-8</markupCharacterSets>
<validNewModes>wsrp:edit</validNewModes>
<validNewModes>wsrp:help</validNewModes>
<validNewModes>wsrp:view</validNewModes>
</markupParams>
</getMarkup>
</soapenv:Body>
</soapenv:Envelope>