"Error 500" when creating an OpenSocial widget

When I attempt to create an OpenSocial widget i get the following error: “Failed creating the widget: Error 500”

I’ve tried a few different URL sources, including those from http://eedemos.opensocial2.org/ http://eedemos.opensocial2.org/ shown in below image.

All required server and client setup/configuration has been done according to instructions in the OpenSocial Deployment Cookbook.

I need to test the OpenSocial widgets/embedded experiences functionality. I’d appreciate any info or guidance on what the problem may be and if there are other sources of OpenSocial gadgets that can be used/tested.

Thanks

Subject: RE: “Error 500” when creating an OpenSocial widget

Hi Rob,

There should be more information in your Notes client trace logs. I would expect a stack trace. If you find the related error, can you post it here?

Thanks,
-Stanton

Subject: Stack trace output is posted below …

Not sure if you need any other support data as well. Just let me know,
Thanks

Subject: Stack trace

Stanton, thanks for the response.

Here is the stack trace outputs:
CLPEE5020W: An error occurred making a request to the server java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source) at com.ibm.rcp.net.http.internal.protocol.HttpURLConnection.getOutputStream(Unknown Source) at com.ibm.rcp.fiesta.service.internal.HTTPUtils.doPost(Unknown Source) at com.ibm.rcp.fiesta.service.internal.HTTPUtils.doPostToFiesta(Unknown Source) at com.ibm.rcp.fiesta.service.internal.HTTPUtils.doApplicationJsonPostToFiesta(Unknown Source) at com.ibm.rcp.fiesta.service.internal.HTTPUtils.doApplicationJsonPostToFiesta(Unknown Source) at com.ibm.rcp.fiesta.service.metadata.GadgetMetadataRequestJob.run(Unknown Source) at org.eclipse.core.internal.jobs.Worker.run(Unknown Source) CLPEE5001E: Error retrieving the gadget(s) metadata. java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source) at com.ibm.rcp.net.http.internal.protocol.HttpURLConnection.getOutputStream(Unknown Source) at com.ibm.rcp.fiesta.service.internal.HTTPUtils.doPost(Unknown Source) at com.ibm.rcp.fiesta.service.internal.HTTPUtils.doPostToFiesta(Unknown Source) at com.ibm.rcp.fiesta.service.internal.HTTPUtils.doApplicationJsonPostToFiesta(Unknown Source) at com.ibm.rcp.fiesta.service.internal.HTTPUtils.doApplicationJsonPostToFiesta(Unknown Source) at com.ibm.rcp.fiesta.service.metadata.GadgetMetadataRequestJob.run(Unknown Source) at org.eclipse.core.internal.jobs.Worker.run(Unknown Source) CLFWW5004E: Gadget metadata request encountered an error: Connection refused: connect Connection refused: connect java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source) at com.ibm.rcp.net.http.internal.protocol.HttpURLConnection.getOutputStream(Unknown Source) at com.ibm.rcp.fiesta.service.internal.HTTPUtils.doPost(Unknown Source) at com.ibm.rcp.fiesta.service.internal.HTTPUtils.doPostToFiesta(Unknown Source) at com.ibm.rcp.fiesta.service.internal.HTTPUtils.doApplicationJsonPostToFiesta(Unknown Source) at com.ibm.rcp.fiesta.service.internal.HTTPUtils.doApplicationJsonPostToFiesta(Unknown Source) at com.ibm.rcp.fiesta.service.metadata.GadgetMetadataRequestJob.run(Unknown Source) at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)

Subject: Some things to try

Based on the stack traces the more details logs you e-mailed me, I have some things for you to try.

Please enable customized tracing. Follow steps #1-6 here: http://www-10.lotus.com/ldd/dominowiki.nsf/dx/Collecting_support_data_OSC90#Collecting+Support+Data+in+Notes http://www-10.lotus.com/ldd/dominowiki.nsf/dx/Collecting_support_data_OSC90#Collecting+Support+Data+in+Notes

Reproduce the issue. In the logs, you’ll see an entry like the following
ENTRY http://localhost: http://localhost://fiesta/rpc application/json; charset=UTF-8 default:

From that log entry, make note of and use it to go to the following url in your Notes embedded browser:
http://localhost: http://localhost://fiesta/notesdomino/notesdominocommoncontainer.html

Are you able to get to that page? You’ll just see a spinning icon and some ellipses.

The thought here is that your client is rejecting the request to localhost: which is where the Expeditor web container is running. You may have entries in your hosts file or certain loopback adapters that are causing this operation to fail. Or, you could have customized the way the web container works via the rcpinstall.properties in /workspace/.config.

Thanks,
-Stanton

Subject: Results…

Stanton, I did find an entry in the logs as you indicated. I then used the reported port # (49289) with the following URL in the Notes browser, but I was NOT able to get to the page. Returned: “This program cannot display the webpage”.

http://localhost: http://localhost:/49289/fiesta/notesdomino/notesdominocommoncontainer.html

As I mentioned in the email response to you, I do have an entry in the hosts file for the local Domino server.

So, still not sure what can be causing the problem.

Thanks,

Subject: Open a PMR

Hi Rob,

Can you open a PMR for this issue? Please include the full logs you’ve collected from your Notes client after reproducing the issue. You can link to this thread in the PMR and state that you’ve been working with Ryan and myself on this issue.

Thanks,
-Stanton

Subject: We can’t

I am not Rob, but, I am at TLCC with Rob. We do not have the ability to open a PMR at IBM (didn’t go for the very expensive package that allows that…).

Howard

Subject: Can you zip up the entire logs directory?

Subject: Workspace/logs zipped here

I zipped the /workspace/logs folder.

Hope that helps, and thanks for the responses.

Let me know if there is anything else I can do.

Subject: oops, looks like attachments are not allowed …

The zipped log folder attachment I tried to send was stripped from the post.

Is there another way I can get this info to you? ie: email

Thanks

Subject: You can e-mail me the logs

ssievers@us.ibm.com

One interesting thing to try would be to try to navigate to the gadget URL[1] in the notes embedded browser. Presumably you can get to the gadget xml just fine in an external browser?

[1] http://eedemos.opensocial2.org/gadgets/gwt/stockwatcher/stockwatcher_embedded.xml http://eedemos.opensocial2.org/gadgets/gwt/stockwatcher/stockwatcher_embedded.xml

Subject: Thanks Stanton, email sent to you. (EOM)