Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Remote image rendering problem with WCM

7 views
Skip to first unread message

smart_dev

unread,
Nov 20, 2009, 7:30:56 AM11/20/09
to
Hi,

I am using Websphere Portal 6.1.0.1 with content manageament. I have different remote server for content management. I am fetching image content from this remote server to my portal server using custom JSP which runs the code. This code is giving me the following HTML string in response and rendered by including this JSP in parent JSP file.

The image is rendered perfectly right. But the problem is my all other portlets on that page is not working correctly. They have side effects becuase of this image. When I digged down little bit further what I observed is that, I am getting HTTP 500 as status code. Which means that there is something wrong with the request.

I am not sure why this has happened? When I try with absolute URL path for the image, eg. http://www.gmail.com/images/gmail_logo.jpg then it works fine. But when I try to use the image from the remote server location using WCM then it fails.

Any idea on how to resolve this?

Regards,
Mihir Shah

smart_dev

unread,
Nov 20, 2009, 7:50:30 AM11/20/09
to
Hi Akash,

I am accessing resource which provides anonymous access to the users. So no authentication problem there. In fact I am able to see the image on my portal server.

Akash Bharti

unread,
Nov 20, 2009, 7:50:30 AM11/20/09
to
I hope its not authentication issue. Are you using credential vault or some authentication mechanism to access the resource from the remote server?

Thanks
Akash

Akash Bharti

unread,
Nov 20, 2009, 8:05:54 AM11/20/09
to
Can you paste/attach the complete error/log on the calling Portal side?

Also, I hope you must not be seeing any error on the WCM side, since as u said, the image is rendered properly...

Thanks
Akash

smart_dev

unread,
Nov 20, 2009, 8:53:31 AM11/20/09
to
Akash,

I am not seeing any specific errors in the log files. The error is very specific to my application which is getting a null pointer execption due to this.

I am using ajax in my code and there I have checked the status for the request and it gave me "500" instead of "200". Which means that there is some internal error while that image is rendered from the remote content server using the URL i mentioned in my post earlier.

I am trying to find out why it gave me HTTP 500 code.

Regards,
Mihir Shah

smart_dev

unread,
Dec 1, 2009, 5:33:55 AM12/1/09
to
Hi,

When I further drill down this issue, what I found is, my HTTP session is lost in my portlet while calling remote anonymous content.

Following URL has been called from my theme's banner.jspf.

This content is having anonymous access because of which I am able to access it through /connect. Now the problem is I am setting few parameters in portlet session before this call and when I try to access them after the call, I get null as a result. What I observer is my original session becomes null and I have to create new session.

Is this a common problem with anonymous content? Is HTTP session vanished when you access anonymous content on remote server?

Try_Catch_Finally

unread,
Dec 3, 2009, 7:32:14 AM12/3/09
to
Could any one please reply to this, as i am also facing similar kind
of issue?

thanks much..
<Neeraj Sidhaye/>
http://ExtremePortal.blogspot.com

0 new messages