You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-user@portals.apache.org by Anshuk Chinmoy Pal Chaudhuri <An...@infosys.com> on 2006/01/02 06:21:23 UTC
New-Bie to WSRP4J
Hi,
I am new to the wsrp4j project.
I was trying the use the Swing Consumer of the Sample Application that
has been provided at their using the Pluto and etc.
I am getting the error at the TCP Monitor
<?xml version="1.0" encoding="utf-8"?><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:Body><soa
penv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstri
ng>java.lang.NullPointerException</faultstring><detail><ns1:hostname
xmlns:ns1="http://xml.apache.org/axis/">hydhtc34796</ns1:hostname></deta
il></soapenv:Fault></soapenv:Body></soapenv:Envelope>
The Swing consumer says that:
At the console its saying that:
Nested Throwable is:
java.lang.NullPointerException</td></tr><tr><td bgcolor='#0000bb'><font
color='w
hite'><i><a
href='wsrp-portletInstanceKey=172.25.125.121_1136179014160_2&clone.p
ortlet'>Clone</a></i></font></td><td align='right'
bgcolor='#0000bb'><font color
='white'><i><a
href='wsrp-portletInstanceKey=172.25.125.121_1136179014160_2&view
.properties'>View Properties</a> </i></font></td></tr></table>
Portletinstance key 172.25.125.121_1136179014160_1
[INFO] Markup of portlet :calc_1.1
<table><tr><td bgcolor='#0000bb'><font color='white'><b>No title
available! - 1_
calc_1.1</font></b></td><td align='right' bgcolor='#0000bb'><font
color='white'>
</font></td></tr><tr><td
colspan='2'>org.apache.wsrp4j.exception.WSRPException:
Unknown Exception.
Do I have to make some changes in the configuration file?
I am not able to get hold of the error.
Can anyone help me out?
Warm Regards,
Anshuk Pal Chaudhuri
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
Re: wsrp4j / pluto and struts?
Posted by Pete <pd...@yahoo.com>.
I have this working now. There were a few key things
that needed to be debugged before it would work.
Here is a summary:
I was new to struts so I used this as a starting point
for struts generically:
http://benmira.free.fr/en/j2ee/struts1.htm
Then here - this was very very helpful.
http://www.ja-sig.org/wiki/display/PLT/Struts+Bridge
The bridges project is here:
http://portals.apache.org/bridges/multiproject/portals-bridges-struts/features.html
Found an error in WSRP4J - which I posted to the
WSRP4j dev group. Essentially
org.apache.wsrp4j.producer.provider.pluto.driver.WSRPServletRequestWrapperImpl.getParameter
was not ensuring a return of a single String.
Found that I had to add this to the portlet.xml for
each portlet in addition to the very very helpful
notes as noted above:
<init-param>
<name>StrutsPortletConfigLocation</name>
<value>/WEB-INF/struts-portlet-config.xml</value>
</init-param>
This may have been due to our running this on
Websphere 6, not sure. The leading "/" was necessary
for the Digester to find the config file.
Also, in struts-portlet-config.xml I had to include
any bean that I wanted passed from a struts Action.
The reason being that the portlet api has a separate
request/response model than tradition servlet model
and the attributes must be passed via the session. So
I added the "examples.hello" below:
<config>
<render-context>
<attribute name="errors"/>
<attribute name="message"/>
<attribute name="examples.hello"/>
<attribute name="test"/>
</render-context>
<portlet-url-type>
<action path="/hello"/>
</portlet-url-type>
</config>
I'm not sure if this is absolutely everything, but at
least it is all the "big" stuff.
--- Pete <pd...@yahoo.com> wrote:
> Anyone try to use struts with wsrp4j / pluto?
>
> Here is an interesting article which I appears to
> indicate support is possible.
> http://www.ja-sig.org/wiki/display/PLT/Struts+Bridge
>
>
>
> __________________________________________
> Yahoo! DSL � Something to write home about.
> Just $16.99/mo. or less.
> dsl.yahoo.com
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
wsrp4j / pluto and struts?
Posted by Pete <pd...@yahoo.com>.
Anyone try to use struts with wsrp4j / pluto?
Here is an interesting article which I appears to
indicate support is possible.
http://www.ja-sig.org/wiki/display/PLT/Struts+Bridge
__________________________________________
Yahoo! DSL Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com