Home » Developer & Programmer » JDeveloper, Java & XML » problem with OrdPlayMediaServlet (11.1.1.2.0)
problem with OrdPlayMediaServlet [message #444369] Sun, 21 February 2010 01:20
samaneh
Messages: 5
Registered: September 2009
Location: Iran - Esfahan
Junior Member
Hi
I have a view object with "OrdImageDomain" type column.
I want to show and update image in same page.
I did:

in pagedef:
<attributeValues IterBinding="TeeStudentInfosVO1Iterator"
                     id="TraineeImageStinf" CustomInputHandler="OrdDomainValueHandler">
      <AttrNames>
        <Item Value="TraineeImageStinf"/>
      </AttrNames>
    </attributeValues>

in jspx:
<af:inputFile value="#{bindings.TraineeImageStinf.inputValue}"
                                  label="#{bindings.TraineeImageStinf.hints.label}"
                                  id="it21">
                      <binding:convertOrdDomain bindingRef="#{bindings.TraineeImageStinf}"/>
                    </af:inputFile>

and

<af:media source="#{bindings.TraineeImageStinf.inputValue.source}"
                            contentType="#{bindings.TraineeImageStinf.inputValue.media.mimeType}"
                            id="ot2"/>



in web.xml:
<filter-mapping>
    <filter-name>adfBindings</filter-name>
    <servlet-name>ordDeliverMedia</servlet-name>
  </filter-mapping>

<servlet>
    <servlet-name>ordDeliverMedia</servlet-name>
    <servlet-class>oracle.ord.html.OrdPlayMediaServlet</servlet-class>
    <init-param>
        <param-name>releaseMode</param-name>
        <param-value>Stateful</param-value>
    </init-param>
  </servlet>
  <servlet-mapping>
    <servlet-name>ordDeliverMedia</servlet-name>
    <url-pattern>ordDeliverMedia</url-pattern>
  </servlet-mapping>


But when I run (table had record and image to show), I get this error:

Root cause of ServletException.
java.lang.NullPointerException
	at oracle.ord.html.OrdPlayMediaServlet.renderContent(OrdPlayMediaServlet.java:386)
	at oracle.ord.html.OrdPlayMediaServlet.deliver(OrdPlayMediaServlet.java:264)
	at oracle.ord.html.OrdPlayMediaServlet.doGet(OrdPlayMediaServlet.java:205)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	Truncated. see log file for complete stacktrace


What is wrong?

[Updated on: Sun, 21 February 2010 01:28]

Report message to a moderator

Previous Topic: cannot get metadata infroamtion for non schema user
Next Topic: Oracle Jdev 11g
Goto Forum:
  


Current Time: Thu Dec 08 22:11:50 CST 2016

Total time taken to generate the page: 0.22748 seconds