Forum Stats

  • 3,875,570 Users
  • 2,266,947 Discussions
  • 7,912,257 Comments

Discussions

Embedded Flex Object Won't Render in Streaming Mode

user6161634
user6161634 Member Posts: 10
edited Oct 22, 2008 9:32PM in WebLogic Portal
I have a JSP portlet with a flex/flash object embedded in the JSP as below.
When I run my portal as a file-based portal the flex object renders fine in the portlet.
I created a portal and desktop in the Portal Admin Console using my .portal file as a template.
When I try to run the portal in streaming mode from this desktop, the flex object does not render. The HTTP request for this object returns a 404.
Any ideas why this is happening? How do I go about fixing it?

...
<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="GoogleMaps" width="710" height="671"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="portlets/MapPortlet/CompactGoogleMaps.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#869ca7" />
<param name="allowScriptAccess" value="always" />
<embed src="portlets/MapPortlet/CompactGoogleMaps.swf" quality="high" bgcolor="#869ca7"
width="100%" height="100%" name="GoogleMaps" align="middle"
play="true"
loop="false"
quality="high"
allowScriptAccess="always"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object>
</body>
...

Answers

  • 648832
    648832 Member Posts: 88
    Nothing jumps out at me. Could you use Firebug or a similar tool to get the actual URL that's being requested (returning the 404), and paste it into this thread?

    George
  • user6161634
    user6161634 Member Posts: 10
    This is the request that gets the 404: http://192.168.1.101:7041/myPortal/appmanager/myPortal/portlets/MapPortlet/CompactGoogleMaps.swf


    Response Headers
    Connection close
    Date Wed, 22 Oct 2008 20:11:08 GMT
    Content-Length 1214
    Content-Type text/html; charset=UTF-8
    X-Powered-By Servlet/2.5 JSP/2.1

    Request Headers
    Host 192.168.1.101:7041
    User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.17) Gecko/20080829 Firefox/2.0.0.17
    Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    Accept-Language en-us,en;q=0.5
    Accept-Encoding gzip,deflate
    Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive 300
    Connection keep-alive
    Referer http://192.168.1.101:7041/myPortal/appmanager/myPortal/myDesktop1
    Cookie JSESSIONID=YKRzL1LRhJFNTBWv6ZznY4p3H2Q8m06c9TCkJGp07Z9jjc12Pwp8!1675127398jc12Pwp8!1675127398
  • 648832
    648832 Member Posts: 88
    Hmm, for whatever reason, that relative URL is spawning an incorrect absolute URL. Try specifying the absolute URL in your HTML instead:

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    id="GoogleMaps" width="710" height="671"
    codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
    <param name="movie" value="http://192.168.1.101/myPortal/portlets/MapPortlet/CompactGoogleMaps.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#869ca7" />
    <param name="allowScriptAccess" value="always" />
    <embed src="http://192.168.1.101/myPortal/portlets/MapPortlet/CompactGoogleMaps.swf" quality="high" bgcolor="#869ca7"
    width="100%" height="100%" name="GoogleMaps" align="middle"
    play="true"
    loop="false"
    quality="high"
    allowScriptAccess="always"
    type="application/x-shockwave-flash"
    pluginspage="http://www.adobe.com/go/getflashplayer">
    </embed>
    </object>

    George
  • user6161634
    user6161634 Member Posts: 10
    Thanks, George.

    Yes, that fixed it. But I guess the root cause of this is still unknown. Possibly a bug in WLP?
This discussion has been closed.