WSRP Producer issues with Vignette as Consumer
amonbeckler Jun 19, 2006 3:35 PMI have download and installed JBoss Portal 2.4.0-Beta1 packaged with JBoss AS 4.0.4. I am able to bring up the JBoss portal webpage, and login as admin. The standard install has several portlets that show that they are "remotable". But when I try to consume them in Vignette it fails. In Vignette I defined the Producer URL as "http://localhost:8080/portal-wsrp/MarkupService?wsdl". I believe that is working correctly, because Vignette says it adds the producer correctly. If I then try to add a portlet from that producer, it shows me all the available portlets. But if I select any one of them and say "add", it fails. Am I missing some configuration? Or is the WSRP producer actually returning a null when it should be returning a value? I have verified I can use my Vignette setup as a consumer from Pluto/wsrp4j producer.
Vignette throws a NPE:
Error com.vignette.portal.website.admin.components.c_portlet_management_remoteportlets - Problem during implicit portlet creation java.lang.NullPointerException at com.vignette.portal.portlet.managment.internal.implementation.provider.wsrp.RemotePortletImpl.<init>(RemotePortletImpl.java:73)
The server.log in JBoss shows:
2006-06-19 14:11:31,524 DEBUG [org.jboss.ws.server.ServiceEndpointServlet] doPost: /portal-wsrp/PortletManagementService 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.soap.MessageContextAssociation] pushMessageContext: org.jboss.ws.soap.SOAPMessageContextImpl@1ab735a 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.server.ServiceEndpoint] BEGIN handleRequest: jboss.ws:di=portal-wsrp.war,service=WSRPService,port=WSRPPortletManagementService 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.server.ServiceEndpoint] Init handler chain with [0] handlers 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.handler.HandlerChainBaseImpl] Create a handler chain for roles: [] 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.handler.HandlerChainBaseImpl] init: [config=null] 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.soap.MessageFactoryImpl] createMessage: [contentType=text/xml; charset=utf-8] 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.soap.SOAPContentElement] setXMLFragment: <clonePortlet xmlns='urn:oasis:names:tc:wsrp:v1:types'> <registrationContext xsi:nil='true'/> <portletContext> <portletHandle>samples.WeatherPortlet</portletHandle> </portletContext> <userContext> <userContextKey>UBER_ADMIN_KEY</userContextKey> </userContext> </clonePortlet> 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.server.ServiceEndpoint] Incomming SOAPMessage <soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> <soapenv:Header/> <soapenv:Body> <clonePortlet xmlns='urn:oasis:names:tc:wsrp:v1:types'> <registrationContext xsi:nil='true'/> <portletContext> <portletHandle>samples.WeatherPortlet</portletHandle> </portletContext> <userContext> <userContextKey>UBER_ADMIN_KEY</userContextKey> </userContext> </clonePortlet> </soapenv:Body> </soapenv:Envelope> 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.soap.SOAPMessageDispatcher] getDispatchDestination: {urn:oasis:names:tc:wsrp:v1:intf}clonePortlet 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.binding.soap.SOAPBindingProvider] unbindRequestMessage: {urn:oasis:names:tc:wsrp:v1:intf}clonePortlet 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.binding.EndpointInvocation] setRequestParamValue: [name={urn:oasis:names:tc:wsrp:v1:types}clonePortlet,value=org.jboss.ws.soap.SOAPBodyElementDoc] 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.metadata.OperationMetaData] Found java method: public abstract org.jboss.portal.wsrp.core.PortletContext org.jboss.portal.wsrp.core.WSRP_v1_PortletManagement_PortType.clonePortlet(org.jboss.portal.wsrp.core.ClonePortlet) throws org.jboss.portal.wsrp.core.InvalidUserCategoryFault,org.jboss.portal.wsrp.core.AccessDeniedFault,org.jboss.portal.wsrp.core.OperationFailedFault,org.jboss.portal.wsrp.core.InvalidHandleFault,org.jboss.portal.wsrp.core.InvalidRegistrationFault,org.jboss.portal.wsrp.core.InconsistentParametersFault,org.jboss.portal.wsrp.core.MissingParametersFault,java.rmi.RemoteException 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.metadata.OperationMetaData] Compare method params by type name: true 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.metadata.OperationMetaData] Matched parameter: org.jboss.portal.wsrp.core.ClonePortlet == org.jboss.portal.wsrp.core.ClonePortlet 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.metadata.OperationMetaData] Found best matching java method: public abstract org.jboss.portal.wsrp.core.PortletContext org.jboss.portal.wsrp.core.WSRP_v1_PortletManagement_PortType.clonePortlet(org.jboss.portal.wsrp.core.ClonePortlet) throws org.jboss.portal.wsrp.core.InvalidUserCategoryFault,org.jboss.portal.wsrp.core.AccessDeniedFault,org.jboss.portal.wsrp.core.OperationFailedFault,org.jboss.portal.wsrp.core.InvalidHandleFault,org.jboss.portal.wsrp.core.InvalidRegistrationFault,org.jboss.portal.wsrp.core.InconsistentParametersFault,org.jboss.portal.wsrp.core.MissingParametersFault,java.rmi.RemoteException 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.server.ServiceEndpointInvokerJSE] invokeServiceEndpoint: clonePortlet 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.metadata.OperationMetaData] Found java method: public abstract org.jboss.portal.wsrp.core.PortletContext org.jboss.portal.wsrp.core.WSRP_v1_PortletManagement_PortType.clonePortlet(org.jboss.portal.wsrp.core.ClonePortlet) throws org.jboss.portal.wsrp.core.InvalidUserCategoryFault,org.jboss.portal.wsrp.core.AccessDeniedFault,org.jboss.portal.wsrp.core.OperationFailedFault,org.jboss.portal.wsrp.core.InvalidHandleFault,org.jboss.portal.wsrp.core.InvalidRegistrationFault,org.jboss.portal.wsrp.core.InconsistentParametersFault,org.jboss.portal.wsrp.core.MissingParametersFault,java.rmi.RemoteException 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.metadata.OperationMetaData] Compare method params by type name: true 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.metadata.OperationMetaData] Matched parameter: org.jboss.portal.wsrp.core.ClonePortlet == org.jboss.portal.wsrp.core.ClonePortlet 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.metadata.OperationMetaData] Found best matching java method: public abstract org.jboss.portal.wsrp.core.PortletContext org.jboss.portal.wsrp.core.WSRP_v1_PortletManagement_PortType.clonePortlet(org.jboss.portal.wsrp.core.ClonePortlet) throws org.jboss.portal.wsrp.core.InvalidUserCategoryFault,org.jboss.portal.wsrp.core.AccessDeniedFault,org.jboss.portal.wsrp.core.OperationFailedFault,org.jboss.portal.wsrp.core.InvalidHandleFault,org.jboss.portal.wsrp.core.InvalidRegistrationFault,org.jboss.portal.wsrp.core.InconsistentParametersFault,org.jboss.portal.wsrp.core.MissingParametersFault,java.rmi.RemoteException 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.binding.EndpointInvocation] getRequestPayload 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.binding.EndpointInvocation] getRequestParamValue: {urn:oasis:names:tc:wsrp:v1:types}clonePortlet 2006-06-19 14:11:31,539 DEBUG [org.jboss.ws.soap.SOAPContentElement] getObjectValue [xmlType={urn:oasis:names:tc:wsrp:v1:types}>clonePortlet,javaType=class org.jboss.portal.wsrp.core.ClonePortlet] 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.soap.SOAPContentElement] getXMLFragment from DOM 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.soap.SOAPContentElement] xmlFragment: <clonePortlet xmlns='urn:oasis:names:tc:wsrp:v1:types'> <registrationContext xsi:nil='true'/> <portletContext> <portletHandle>samples.WeatherPortlet</portletHandle> </portletContext> <userContext> <userContextKey>UBER_ADMIN_KEY</userContextKey> </userContext> </clonePortlet> 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.jaxrpc.encoding.JAXBDeserializer] deserialize: [xmlName={urn:oasis:names:tc:wsrp:v1:types}clonePortlet,xmlType={urn:oasis:names:tc:wsrp:v1:types}>clonePortlet] 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.jaxrpc.encoding.JAXBDeserializer] deserialized: org.jboss.portal.wsrp.core.ClonePortlet 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.soap.SOAPContentElement] objectValue: org.jboss.portal.wsrp.core.ClonePortlet 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.binding.EndpointInvocation] transformPayloadValue: org.jboss.ws.soap.SOAPBodyElementDoc -> org.jboss.portal.wsrp.core.ClonePortlet 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.metadata.OperationMetaData] Found java method: public abstract org.jboss.portal.wsrp.core.PortletContext org.jboss.portal.wsrp.core.WSRP_v1_PortletManagement_PortType.clonePortlet(org.jboss.portal.wsrp.core.ClonePortlet) throws org.jboss.portal.wsrp.core.InvalidUserCategoryFault,org.jboss.portal.wsrp.core.AccessDeniedFault,org.jboss.portal.wsrp.core.OperationFailedFault,org.jboss.portal.wsrp.core.InvalidHandleFault,org.jboss.portal.wsrp.core.InvalidRegistrationFault,org.jboss.portal.wsrp.core.InconsistentParametersFault,org.jboss.portal.wsrp.core.MissingParametersFault,java.rmi.RemoteException 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.metadata.OperationMetaData] Compare method params by type name: true 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.metadata.OperationMetaData] Matched parameter: org.jboss.portal.wsrp.core.ClonePortlet == org.jboss.portal.wsrp.core.ClonePortlet 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.metadata.OperationMetaData] Found best matching java method: public abstract org.jboss.portal.wsrp.core.PortletContext org.jboss.portal.wsrp.core.WSRP_v1_PortletManagement_PortType.clonePortlet(org.jboss.portal.wsrp.core.ClonePortlet) throws org.jboss.portal.wsrp.core.InvalidUserCategoryFault,org.jboss.portal.wsrp.core.AccessDeniedFault,org.jboss.portal.wsrp.core.OperationFailedFault,org.jboss.portal.wsrp.core.InvalidHandleFault,org.jboss.portal.wsrp.core.InvalidRegistrationFault,org.jboss.portal.wsrp.core.InconsistentParametersFault,org.jboss.portal.wsrp.core.MissingParametersFault,java.rmi.RemoteException 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.binding.EndpointInvocation] syncEndpointInputParam: org.jboss.portal.wsrp.core.ClonePortlet -> org.jboss.portal.wsrp.core.ClonePortlet 2006-06-19 14:11:31,555 INFO [org.jboss.portal.wsrp.producer.WSRPProducerImpl] clonePortlet() invoked 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.binding.EndpointInvocation] setReturnValue: null 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.binding.soap.SOAPBindingProvider] bindResponseMessage: {urn:oasis:names:tc:wsrp:v1:intf}clonePortlet 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.binding.EndpointInvocation] getReturnValue 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.binding.EndpointInvocation] transformPayloadValue: null -> null 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.soap.SOAPContentElement] setObjectValue: null 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.binding.EndpointInvocation] setReturnValue: org.jboss.ws.soap.SOAPBodyElementDoc 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.soap.SOAPContentElement] getXMLFragment from Object [xmlType={urn:oasis:names:tc:wsrp:v1:types}PortletContext,javaType=class org.jboss.portal.wsrp.core.PortletContext] 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.jaxrpc.encoding.NullValueSerializer] serialize: [xmlName={urn:oasis:names:tc:wsrp:v1:types}clonePortletResponse,xmlType={urn:oasis:names:tc:wsrp:v1:types}PortletContext] 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.soap.SOAPContentElement] xmlFragment: <ns1:clonePortletResponse xmlns:ns1='urn:oasis:names:tc:wsrp:v1:types' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:nil='1'/> 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.server.ServiceEndpoint] Outgoing SOAPMessage <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'> <env:Header/> <env:Body> <ns1:clonePortletResponse xmlns:ns1='urn:oasis:names:tc:wsrp:v1:types' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:nil='1'/> </env:Body> </env:Envelope> 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.server.ServiceEndpoint] END handleRequest: jboss.ws:di=portal-wsrp.war,service=WSRPService,port=WSRPPortletManagementService 2006-06-19 14:11:31,555 DEBUG [org.jboss.ws.soap.MessageContextAssociation] popMessageContext: org.jboss.ws.soap.SOAPMessageContextImpl@1ab735a