JSP 2.0 with JDev 10g (9.0.5.0.0) preview

Hi everybody,
Is it possible to compile JSP 2.0 files with JDev 10g. If so, how ?
I added a new library named JSP20 Runtime which points to the JSP jars from OC4J 10G (10.0.3). I added this library to my project in replacement of the default JSP Runtime library. It seems that something else must also be done to compile my JSP.
Got any idea ?
After this, to run my JSP, I must also figure how I can bypass the default embedded OC4J and use the preview version of OC4J 10.0.3. Will it be mandatory to deploy my project to the standalone OC4J ?
Thank you

tagdir is not a taglib attribute. Replace the tagdir attribute with the uri that points to the file something like this:
<%@ taglib prefix="tags" uri="uri-where-file-is"/>
Richard

Similar Messages

  • Jsp 2.0 and jdev 10g production (custom tags)

    there are some examples at
    http://otn.oracle.com/sample_code/tech/java/jsps/index.html
    I have certian questions it would be great if some one would clear these for me..
    In JSP 1.2 if we wanted to write the custom tag's we had tag classes that extend TagSupport or TagBodySupport and the doStart() and doEnd() tag with the evaluate body. I could spit out the complete html text on an encounter of a tag! but in the JSP 2.0 a doTag() seems to take care of the intracies! how??
    Now with jsp 2.0 I want to do the same... say some thing like this ....
    <tg:myTag list="${somelist}"></tg:myTag> and say in my tag handler class I know what to do with this list. May be I will create complete html code and will use jspWriter to write out the html inbetween these tags!!
    I have downloaded the eStore example but this class
    javax.servlet.jsp.tagext.SimpleTagSupport; is not imported. So I am not able to look at the SimpleTagSupport class.
    If I am trying to run the example in jdev 10g production should I have to specify that I am using jsp 2.0 so that jdev knows not to use jsp 1.2? if so how can I do this.
    Does all the examples provided use the OC4J standalone? Can I use the embedded oc4J instead?
    regards.

    After reading a bit more now I know how the tags work.
    However from the example I see (eStore) an array called by name "products" is created and set on the jspContext. If I already have the list and want to pass on the list which is in a bean or a session or a request can I provide it this way.
    <tag:myTag var=${bean.list}>
    or
    <tag:myTag var=${session.list}>
    or
    <tag:myTag var=${request.list}>in the .tld file I should specify the attribute var and whether it should be runtime evaluable.
    and in the TagClass
    private Collection var;
    private String listName;
    public void setVar(Colloection aList) {
      this.var = aList;
    public Collection getVar() {
      return var;
    public void doTag( ) throws JspException{
      // do i always need to this next line ------
      getJspContext( ).setAttribute(listName, getVar());
    }so that in my .tag file I can use some thing like this
    <c:forEach var="list" items="${item}">
      <td>${item.subObject.name}</td>
      <td>${item.subObject.value}</td>
    </c:forEach>And finally... as and when a tag is encountered the .tag file contents corresponding to that tag is called to get the html text and all that text is printed out in the jsp page right (without the jspWriter "out"). How does the browser know when to stop? like doEndTag() function? are these functions implicitly called?
    regards.

  • Jsp 2.0 with jdev 10 g production

    hi,
    envi: jdev 10g production.
    I have downloaded some jsp examples which tell about the custom tag implementation from otn site. In the page this
    <%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %> throws the error
    Error(15): Invalid attribute: tagdiris jdev 10g prod: compatible with jsp 2.0. I mean do i have to install any other jsp runtime jars. When I create a new jsp does the ide automatically create a jsp with version 2.0 ??
    regards.

    tagdir is not a taglib attribute. Replace the tagdir attribute with the uri that points to the file something like this:
    <%@ taglib prefix="tags" uri="uri-where-file-is"/>
    Richard

  • Compile error with Jdev 10g Preview

    I am trying out Jdev 10g with JHeadstart. I followed the instruction on the Oracle JHeadstart 10g and Oracle JDeveloper 10g preview document, and then used the isnstructions on the NewJhsProjectInstructions.html document.
    The first time I tried to compile the project, I got a whole list of errors which looked like;
    /usr/oracle/jhs904/jheadstart/src/jhsruntime_source.zip!/oracle/jheadstart/model/bc4j/JhsApplicationModuleImpl.java
    Error(143,31): cannot access class oracle.cle.persistence.HandlerNotFoundException; file oracle/cle/persistence/HandlerNotFoundException.class not
    This was due to Jdeveloper trying to compile jhsruntime_source.zip. I removed this from the java source path and added jhsruntime.jar.
    I am now getting thisError(22,53): cannot access class oracle.jheadstart.model.bc4j.handler.DataObjectHandlerImpl; file oracle/jheadstart/model/bc4j/handler/DataObjectHandlerImpl.class not found error;
    I have checked, and cinfirmed that the class file oracle/jheadstart/model/bc4j/handler/DataObjectHandlerImpl.class is in jhsruntime.jar.
    The Java Source path in Jdeveloper is ;
    /home/chandana/jdevhome/mywork/JHS/src;/usr/oracle/jhs904/jheadstart/lib/jhsruntime.jar.
    Can some one tell me what is wrong ?

    Hi Chandana,
    You should not put jhsruntime.jar in the Java Source Path. It should be in the Additional Classpath.
    The Java Source Path (Project Settings - Common - Input Paths) should only contain /home/chandana/jdevhome/mywork/JHS/src .
    If you created the library JhsLibs the way it was described in the JDev 10g document, your project should now compile correctly. The JhsLibs library ensures that your project can compile against jhsruntime.jar (amongst others).
    Hope this helps,
    Sandra Muller
    JHeadstart Team

  • Error Call Web Service Deployed to OC4J 10g with JDev 10g

    I deployed a PL/SQL Package as a Web Service to a Stand Alone 10g OC4J instance. When I invoke the Web Service the text I am returned is this:
    <?xml version='1.0' encoding='UTF-8'?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server.Exception:</faultcode>
    <faultstring>java.rmi.RemoteException: null; nested exception is:
         java.lang.NullPointerException</faultstring>
    <faultactor>/webservice/Mayoclinic</faultactor>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    I can successfully run the Web Service in the OC4J instance in JDev 10g.
    Any ideas. I recieve know errors in JDev 10g Deploying the application.

    Last line should be ...
    Any ideas. I recieve NO errors in JDev 10g Deploying the application.

  • Deploying to AS with jDev 10g using ADF

    Hi everyone, could anyone tell me the steps to deploy an application in the AS, i'm using jDeveloper 10g ADF and in my application i have an jsp that displays info from a database, when i test it with the embebed oc4j from jDev it works great, the problem is when i try to deploy it to the AppServer, jDev generate and deploys my ear file into de AS but when i look into my web app properties (into the web module, war file) in the JSP/servlet options i can't see my jsp page. I supose that i'm not doing right my Deployment Descriptor. Any suggestion?? thanks in advance.
    Mauricio

    Hi Prasoon,
    I'm not sure where your ADFdefault.do has come from.
    But I'd suggest that rather than trying to create code based on an online demo (they are not really designed for you to follow every step, more as a taster) you follow this How To that documents and takes you through the development and running of a very similar web service using Struts.
    http://otn.oracle.com/products/jdev/howtos/10g/WS_ADF/ADFWS_HowTo.html
    You don't have to use Struts to test and run a web service. There are other demos and Tutorials:
    This one takes you through end to end development and testing:
    http://otn.oracle.com/products/jdev/viewlets/10g/WS_End2End_Demo_viewlet_swf.html
    or this tutorial:
    http://otn.oracle.com/obe/obe9051jdev/WebServicesOBE/OBEWebServices.htm
    regards
    Susan
    JDeveloper PM

  • Error in jsp tag files with jdev 101310 and oc4j standalone10130

    Hello,
    I'm creating a simple jsp tag file that show "it´s test" and a jsp with the jsp tag file,
    the problem is:
    java.lang.NoSuchMethodError: oracle.jsp.runtime.OracleJspRuntime.releaseTagHandlers(Ljavax/servlet/jsp/PageContext;)V     at oracle.jsp._tag._tagMeta_tag.doTag(_tagMeta_tag.java:71)     at admin.applicationproperties._jspService(_applicationproperties.java:56)     [SRC:/admin/applicationproperties.jsp:10]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:270)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:42)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:204)     at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)     at com.gtsCol.bonPen.servlets.ApplicationPropertiesServlet.doGet(ApplicationPropertiesServlet.java:51)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)     at java.lang.Thread.run(Thread.java:595)
    my mail is [email protected]
    thansk for your help.

    Hola a todos,
    Estoy creando un jsp tag file que solo muestra un mensaje "Esto es una prueba" y la incluyo en una jsp normal, el problema es que no parece soportar este tipo de tags.
    El error que muestra es el siguiente.
    java.lang.NoSuchMethodError: oracle.jsp.runtime.OracleJspRuntime.releaseTagHandlers(Ljavax/servlet/jsp/PageContext;)V     at oracle.jsp._tag._tagMeta_tag.doTag(_tagMeta_tag.java:71)     at admin.applicationproperties._jspService(_applicationproperties.java:56)     [SRC:/admin/applicationproperties.jsp:10]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:270)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:42)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:204)     at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)     at com.gtsCol.bonPen.servlets.ApplicationPropertiesServlet.doGet(ApplicationPropertiesServlet.java:51)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)     at java.lang.Thread.run(Thread.java:595)
    mi correo electronico es [email protected]
    De antemano gracias por la ayuda que me puedan brindar.

  • How to switch to a different JSP / EL implementation with WebLogic 10g?

    Hi everyone,
    we have a web application (JSP + servlets), that runs fine on Tomcat 5.5. We are porting it to WebLogic 10g3 - we've solved all of the issues except one. Some of the EL expressions are processes correctly in Tomcat, but it fails in WebLogic.
    For example we have a custom tag (component inherited from a SimpleTag), that renders a combobox. The component has "textExpression" attribute, that it evaluated like
    String text = (String) pageContext.getExpressionEvaluator().evaluate(textExpr, String.class, pageContext.getVariableResolver(), null);
    but if the expression has two parts - i.e. something like "{...} {...}" - the parse fails, for example with the following exception:
    javax.servlet.jsp.el.ELParseException: Error occured while trying to parse '${(option.partner.jmeno eq null && option.partner.prijmeni eq null && option.partner.nazevSpolecnostiFoPo ne null) ? option.partner.nazevSpolecnostiFoPo : option.partner.jmeno } ${(option.partner.jmeno eq null && option.partner.prijmeni eq null && option.partner.nazevSpolecnostiFoPo ne null) ? '' : option.partner.prijmeni}'
    weblogic.jsp.internal.jsp.el.ExpressionEvaluatorImpl.parseEL(ExpressionEvaluatorImpl.java:171)
    weblogic.jsp.internal.jsp.el.ExpressionEvaluatorImpl.parseExpression(ExpressionEvaluatorImpl.java:134)
    weblogic.jsp.internal.jsp.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:125)
    Is it possible to switch the JSP / EL engine to Jasper? I'd expect some property pointing to ExpressionEvaluator implementation / parameter in the deployment descriptor but I haven't found anything like that yet.
    thanks
    Tomas

    Anyway I've achieved some progress with the Jasper - I've found that when precompiled using the JspC compiler from Jasper package, the resulting servlets are inherited from org.apache.jasper.runtime.HttpJspBase and thus should probably use the "proper" JSP EL implementation. But I still can't use these servlets from Weblogic, as I receive java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.runtime.PageContextImpl.
    java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.runtime.PageContextImpl
         at org.apache.jsp.WEB_002dINF.jsp.servletExceptionFragment_jsp._jspService(servletExceptionFragment_jsp.java:64)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:251)
         at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:145)
         at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:251)
         at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1144)
         at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:880)
    The servlet is compiled properly, the jasper-runtime.jar is in the WEB-INF/lib directory, yet the weblogic is not able to load the PageContextImpl class :-(
    Edited by: user6510516 on 25.2.2009 4:14

  • Params in queries with Jdev 10g

    I had a working UIX App and used the null event to setting parameters for my query but using 10g doesn't work. I tried setWhereClause in my application module class, calling it from the data action, but i get an error (index out of bounds). If I try "setWhereClause", it works fine but it's veeeeery slow (I think the query first fechs all rows). I need something that before getting rows, initialize the query (my view object is defined with an empty where clause, because the queries will be defined in runtime via a Emp_ID). Of course, there is and index on emp_id. Help me, please...

    Andy, excuse me for the repost.
    If I try the way you explain, it worked fine, but the problem is that I'm also convertint to struts. In the data action, I have overriden this:
    protected void initializeRequestParameters(DataActionContext actionContext)
    There I try to set the params:
    // TODO: Override this oracle.adf.controller.struts.actions.DataAction method
    //super.initializeRequestParameters(actionContext);
    HttpServletRequest
    // If I uncomment the line super..., the result is the same.
    req=actionContext.getHttpServletRequest();
    String evento=req.getParameter("event");
    DatosUsuario dat = DatosUsuario.getDatosUsuario(req);
    String exp=dat.sId_Expediente;
    BindingContext bc=actionContext.getBindingContext();
    DCDataControl dc= bc.getContext(req).getDefaultDataControl();
    Object misdatos=dc.getDataProvider();
    Elendil am=(Elendil)misdatos;
    am.ParamAnotacionExp(exp);
    In my viewobject, I have this where clause:
    anotacionexp.id_expediente = :1
    Then, in my ApplicationModule class:
    public void ParamAnotacionExp(String idexpediente)
    AnotacionExpViewImpl vo=getAnotacionExpView1();
    vo.setWhereClauseParam(1,idexpediente);
    //vo.setWhereClauseParam(0,idexpediente); With 0, the result is the same.
    vo.executeQuery();
    And when I run, I get this:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.ArrayIndexOutOfBoundsException, msg=0
         at oracle.jbo.JboException.<init>(JboException.java:343)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.dispatchMethod(AbstractRemoteApplicationModuleImpl.java:4658)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.executeMethod(AbstractRemoteApplicationModuleImpl.java:4854)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgRequest(AbstractRemoteApplicationModuleImpl.java:3449)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgEntries(AbstractRemoteApplicationModuleImpl.java:3630)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.readServiceMessage(AbstractRemoteApplicationModuleImpl.java:2975)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processMessage(AbstractRemoteApplicationModuleImpl.java:1639)
         at oracle.jbo.server.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:5986)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.sync(AbstractRemoteApplicationModuleImpl.java:1608)
         at oracle.jbo.server.remote.colo.ServerApplicationModuleImpl.doMessage(ServerApplicationModuleImpl.java:245)
         at oracle.jbo.common.colo.ColoApplicationModuleImpl.doMessage(ColoApplicationModuleImpl.java:102)
         at oracle.jbo.client.remote.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:5233)
         at oracle.jbo.client.remote.PooledRequestHandler.doMessage(PooledRequestHandler.java:70)
         at oracle.jbo.client.remote.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:5233)
         at oracle.jbo.client.remote.ApplicationModuleImpl.sendServiceMessage(ApplicationModuleImpl.java:998)
         at oracle.jbo.client.remote.ApplicationModuleImpl.sendServiceMessage(ApplicationModuleImpl.java:1012)
         at oracle.jbo.client.remote.ApplicationModuleImpl.sendWorkingSetRequests(ApplicationModuleImpl.java:3049)
         at oracle.jbo.client.remote.ApplicationModuleImpl.sendRequest(ApplicationModuleImpl.java:1041)
         at oracle.jbo.client.remote.ApplicationModuleImpl.riInvokeExportedMethod(ApplicationModuleImpl.java:5255)
         at galadriel.client.ElendilClient.ParamAnotacionExp(ElendilClient.java:21)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java)
         at oracle.jbo.common.ws.WSProxy.invokeMethod(WSProxy.java:120)
         at oracle.jbo.common.ws.WSProxy.invoke(WSProxy.java:90)
         at $Proxy3.ParamAnotacionExp(Unknown Source)
         at controller.AnotacionesDataAction.initializeRequestParameters(AnotacionesDataAction.java:63)
         at oracle.adf.controller.struts.actions.DataAction.executeImpl(DataAction.java:104)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:69)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:356)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:148)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:148)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:610)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:784)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:536)
    ## Detail 0 ##
    java.lang.ArrayIndexOutOfBoundsException: 0
         at oracle.jdbc.dbaccess.DBDataSetImpl._getDBItem(DBDataSetImpl.java:323)
         at oracle.jdbc.dbaccess.DBDataSetImpl._createOrGetDBItem(DBDataSetImpl.java:566)
         at oracle.jdbc.dbaccess.DBDataSetImpl.setNullBindItem(DBDataSetImpl.java:1878)
         at oracle.jdbc.driver.OraclePreparedStatement.setNull(OraclePreparedStatement.java:1190)
         at oracle.jbo.server.ViewRowSetImpl.bindParameters(ViewRowSetImpl.java:1436)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:576)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:2946)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:553)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:612)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:594)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:2890)
         at galadriel.ElendilImpl.ParamAnotacionExp(ElendilImpl.java:111)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.dispatchMethod(AbstractRemoteApplicationModuleImpl.java:4636)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.executeMethod(AbstractRemoteApplicationModuleImpl.java:4854)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgRequest(AbstractRemoteApplicationModuleImpl.java:3449)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgEntries(AbstractRemoteApplicationModuleImpl.java:3630)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.readServiceMessage(AbstractRemoteApplicationModuleImpl.java:2975)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processMessage(AbstractRemoteApplicationModuleImpl.java:1639)
         at oracle.jbo.server.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:5986)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.sync(AbstractRemoteApplicationModuleImpl.java:1608)
         at oracle.jbo.server.remote.colo.ServerApplicationModuleImpl.doMessage(ServerApplicationModuleImpl.java:245)
         at oracle.jbo.common.colo.ColoApplicationModuleImpl.doMessage(ColoApplicationModuleImpl.java:102)
         at oracle.jbo.client.remote.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:5233)
         at oracle.jbo.client.remote.PooledRequestHandler.doMessage(PooledRequestHandler.java:70)
         at oracle.jbo.client.remote.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:5233)
         at oracle.jbo.client.remote.ApplicationModuleImpl.sendServiceMessage(ApplicationModuleImpl.java:998)
         at oracle.jbo.client.remote.ApplicationModuleImpl.sendServiceMessage(ApplicationModuleImpl.java:1012)
         at oracle.jbo.client.remote.ApplicationModuleImpl.sendWorkingSetRequests(ApplicationModuleImpl.java:3049)
         at oracle.jbo.client.remote.ApplicationModuleImpl.sendRequest(ApplicationModuleImpl.java:1041)
         at oracle.jbo.client.remote.ApplicationModuleImpl.riInvokeExportedMethod(ApplicationModuleImpl.java:5255)
         at galadriel.client.ElendilClient.ParamAnotacionExp(ElendilClient.java:21)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java)
         at oracle.jbo.common.ws.WSProxy.invokeMethod(WSProxy.java:120)
         at oracle.jbo.common.ws.WSProxy.invoke(WSProxy.java:90)
         at $Proxy3.ParamAnotacionExp(Unknown Source)
         at controller.AnotacionesDataAction.initializeRequestParameters(AnotacionesDataAction.java:63)
         at oracle.adf.controller.struts.actions.DataAction.executeImpl(DataAction.java:104)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:69)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:356)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:148)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:148)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:610)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:784)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:536)
    I'm sure I'm doing somthing wrong, but don't know what. Thank you for your help.

  • Problem with JDev 10g ADF table component and rangeChangeListener

    Hi,
    I'm populating an ADF table component from a backing bean and would like the range of rows be changed using custom method on the backing bean.
    I have declared table on page as shown below and the table is populated correctly. However the onRangeChanged method in the backing bean never fires when
    user hits previous or next. Any ideas of what I missed ?.
    Thanks,
    Kenneth
    <af:table emptyText="No items were found"
    value="#{companySearchBean.companies}"
    var="company" rows="20"
    first="#{companySearchBean.firstCompany}"
    rendered="#{companySearchBean.queryExecuted}"
    rangeChangeListener="#{companySearchBean.onRangeChanged}">
    <af:column sortable="false" headerText="Company Name">
    <af:outputText value="#{company.partyName}"/>
    </af:column>
    <af:column sortable="false" headerText="Party Number"
    formatType="number">
    <af:outputText value="#{company.partyFileNo}"/>
    </af:column>
    </af:table>

    Hi,
    I'm populating an ADF table component from a backing bean and would like the range of rows be changed using custom method on the backing bean.
    I have declared table on page as shown below and the table is populated correctly. However the onRangeChanged method in the backing bean never fires when
    user hits previous or next. Any ideas of what I missed ?.
    Thanks,
    Kenneth
    <af:table emptyText="No items were found"
    value="#{companySearchBean.companies}"
    var="company" rows="20"
    first="#{companySearchBean.firstCompany}"
    rendered="#{companySearchBean.queryExecuted}"
    rangeChangeListener="#{companySearchBean.onRangeChanged}">
    <af:column sortable="false" headerText="Company Name">
    <af:outputText value="#{company.partyName}"/>
    </af:column>
    <af:column sortable="false" headerText="Party Number"
    formatType="number">
    <af:outputText value="#{company.partyFileNo}"/>
    </af:column>
    </af:table>

  • Param binding with Struts and JDev 10G

    This comes from a post in UIX forum. I transcribe the complete text. Can someone help me? Thanks in advance.
    Params in queries with Jdev 10g Sep 22, 2003 11:50 PM
    Reply
    I had a working UIX App and used the null event to setting parameters for my query but using 10g doesn't work. I tried setWhereClause in my application module class, calling it from the data action, but i get an error (index out of bounds). If I try "setWhereClause", it works fine but it's veeeeery slow (I think the query first fechs all rows). I need something that before getting rows, initialize the query (my view object is defined with an empty where clause, because the queries will be defined in runtime via a Emp_ID). Of course, there is and index on emp_id. Help me, please...
    Re: Params in queries with Jdev 10g ( In Reply To : Params in queries with Jdev 10g ) Sep 24, 2003 12:37 AM
    Reply
    Hi, this is my code using BC4J and the null event in the uix page. This worked fin with Jdev 9.0.3.
    public static EventResult EstableceParametros(BajaContext bc,
    Page page, PageEvent event)
    String exp;
    DatosUsuario dat = DatosUsuario.getDatosUsuario(bc);
    exp=dat.sId_Expediente;
    ApplicationModule am=ServletBindingUtils.getApplicationModule(bc);
    ViewObject vo=ServletBindingUtils.getViewObject(bc);
    vo.setWhereClauseParam(0,exp);
    return new EventResult(page);
    Now, I have removed the where clause from the viewobject and using dataAction I do this:
    protected void initializeRequestParameters(DataActionContext actionContext)
    // TODO: Override this oracle.adf.controller.struts.actions.DataAction method
    super.initializeRequestParameters(actionContext);
    HttpServletRequest req=actionContext.getHttpServletRequest();
    String evento=req.getParameter("event");
    DatosUsuario dat = DatosUsuario.getDatosUsuario(req);
    String exp=dat.sId_Expediente;
    BindingContext bc=actionContext.getBindingContext();
    DCDataControl dc= bc.getContext(req).getDefaultDataControl();
    Object misdatos=dc.getDataProvider();
    Elendil am=(Elendil)misdatos;
    am.ParamAnotacionExp(exp);
    In my application module class:
    public void ParamAnotacionExp(String idexpediente)
    AnotacionExpViewImpl vo=getAnotacionExpView1();
    * if (idexpediente.equals(""))
    vo.setWhereClause("centro = centro and id_expediente like " + "'%'");
    else
    vo.setWhereClause("centro = centro and id_expediente = " + idexpediente);
    vo.executeQuery();
    //(1) vo.setWhereClauseParam(1,idexpediente);
    vo.setWhereClause("id_expediente = " + idexpediente);
    vo.executeQuery();
    If I use I get a null pointer, so I removed the where clause from the view object.
    Than you very much.
    Re: Params in queries with Jdev 10g ( In Reply To : Re: Params in queries with Jdev 10g ) Sep 26, 2003 3:52 PM
    Reply
    Juanma -
    I finally found time to put together a test case, but unfortunately I wasn't able to reproduce the problem. Here is what I tried:
    - In JDev 9.0.3, I created a simple BC4J data model based on the Scott schema - with a single ViewObject for the Emp table.
    - I modified the EmpView query to include the following bind variable in the where clause:
    WHERE Emp.SAL < :1
    - I used the uiXML Browse & Edit Form wizard to create some simple uiXML/BC4J pages.
    - I added the following event handler to View1.uix:
    <event name="null">
    <bc4j:findRootAppModule name="EmpView1AppModule">
    <bc4j:findViewObject name="EmpView1">
    <method class="events.TestEvents" method="doNull"/>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    TestEvents.doNull() looks like this:
    public static EventResult doNull(
    BajaContext context,
    Page page,
    PageEvent event)
    ViewObject vo = ServletBindingUtils.getViewObject(context);
    vo.setWhereClauseParam(0, "5000");
    return new EventResult(page);
    - When I run View1.uix in the embedded OC4J server, I can see that the EmpView VO is restricted based on the criteria specified in the call to ViewObject.setWhereClauseParam() in my null event handler. Only employees with salaries less than 5000 are displayed.
    - Next, I made a copy of my entire workspace and copied it into my jdev10g/jdev/mywork directory.
    - I then imported the workspace into 10g, allowing the UIX files to be converted to EL, and also allowing the BC4J model definition to be updated.
    - Finally, I try running again in 10g - everything works as expected.
    So, the good news is that this stuff should still work in 10g. The bad news is that it is going to take some more work for us to nail down exactly why this isn't working for your application. The best place to start would probably be for us to take a look at the null pointer exception that you are seeing - so please post the stack trace when you can.
    Thanks,
    Andy
    Re: Params in queries with Jdev 10g ( In Reply To : Params in queries with Jdev 10g ) Sep 28, 2003 11:05 PM
    Reply
    Andy, excuse me for the repost.
    If I try the way you explain, it worked fine, but the problem is that I'm also convertint to struts. In the data action, I have overriden this:
    protected void initializeRequestParameters(DataActionContext actionContext)
    There I try to set the params:
    // TODO: Override this oracle.adf.controller.struts.actions.DataAction method
    //super.initializeRequestParameters(actionContext);
    HttpServletRequest
    // If I uncomment the line super..., the result is the same.
    req=actionContext.getHttpServletRequest();
    String evento=req.getParameter("event");
    DatosUsuario dat = DatosUsuario.getDatosUsuario(req);
    String exp=dat.sId_Expediente;
    BindingContext bc=actionContext.getBindingContext();
    DCDataControl dc= bc.getContext(req).getDefaultDataControl();
    Object misdatos=dc.getDataProvider();
    Elendil am=(Elendil)misdatos;
    am.ParamAnotacionExp(exp);
    In my viewobject, I have this where clause:
    anotacionexp.id_expediente = :1
    Then, in my ApplicationModule class:
    public void ParamAnotacionExp(String idexpediente)
    AnotacionExpViewImpl vo=getAnotacionExpView1();
    vo.setWhereClauseParam(1,idexpediente);
    //vo.setWhereClauseParam(0,idexpediente); With 0, the result is the same.
    vo.executeQuery();
    And when I run, I get this:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.ArrayIndexOutOfBoundsException, msg=0
    at oracle.jbo.JboException.<init>(JboException.java:343)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.dispatchMethod(Abs tractRemoteApplicationModuleImpl.java:4658)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.executeMethod(Abst ractRemoteApplicationModuleImpl.java:4854)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgReque st(AbstractRemoteApplicationModuleImpl.java:3449)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgEntri es(AbstractRemoteApplicationModuleImpl.java:3630)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.readServiceMessage (AbstractRemoteApplicationModuleImpl.java:2975)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processMessage(Abs tractRemoteApplicationModuleImpl.java:1639)
    at oracle.jbo.server.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:59 86)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.sync(AbstractRemot eApplicationModuleImpl.java:1608)
    at oracle.jbo.server.remote.colo.ServerApplicationModuleImpl.doMessage(ServerAppli cationModuleImpl.java:245)
    at oracle.jbo.common.colo.ColoApplicationModuleImpl.doMessage(ColoApplicationModul eImpl.java:102)
    at oracle.jbo.client.remote.ApplicationModuleImpl.doMessage(ApplicationModuleImpl. java:5233)
    at oracle.jbo.client.remote.PooledRequestHandler.doMessage(PooledRequestHandler.ja va:70)
    at oracle.jbo.client.remote.ApplicationModuleImpl.doMessage(ApplicationModuleImpl. java:5233)
    at oracle.jbo.client.remote.ApplicationModuleImpl.sendServiceMessage(ApplicationMo duleImpl.java:998)
    at oracle.jbo.client.remote.ApplicationModuleImpl.sendServiceMessage(ApplicationMo duleImpl.java:1012)
    at oracle.jbo.client.remote.ApplicationModuleImpl.sendWorkingSetRequests(Applicati onModuleImpl.java:3049)
    at oracle.jbo.client.remote.ApplicationModuleImpl.sendRequest(ApplicationModuleImp l.java:1041)
    at oracle.jbo.client.remote.ApplicationModuleImpl.riInvokeExportedMethod(Applicati onModuleImpl.java:5255)
    at galadriel.client.ElendilClient.ParamAnotacionExp(ElendilClient.java:21)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
    at java.lang.reflect.Method.invoke(Method.java)
    at oracle.jbo.common.ws.WSProxy.invokeMethod(WSProxy.java:120)
    at oracle.jbo.common.ws.WSProxy.invoke(WSProxy.java:90)
    at $Proxy3.ParamAnotacionExp(Unknown Source)
    at controller.AnotacionesDataAction.initializeRequestParameters(AnotacionesDataAct ion.java:63)
    at oracle.adf.controller.struts.actions.DataAction.executeImpl(DataAction.java:104 )
    at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:69)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor .java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java: 65)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:356)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java: 16)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:148)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java: 20)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:148)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatch er.java:610)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletReques tDispatcher.java:317)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.j ava:784)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResou rcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:536)
    ## Detail 0 ##
    java.lang.ArrayIndexOutOfBoundsException: 0
    at oracle.jdbc.dbaccess.DBDataSetImpl._getDBItem(DBDataSetImpl.java:323)
    at oracle.jdbc.dbaccess.DBDataSetImpl._createOrGetDBItem(DBDataSetImpl.java:566)
    at oracle.jdbc.dbaccess.DBDataSetImpl.setNullBindItem(DBDataSetImpl.java:1878)
    at oracle.jdbc.driver.OraclePreparedStatement.setNull(OraclePreparedStatement.java :1190)
    at oracle.jbo.server.ViewRowSetImpl.bindParameters(ViewRowSetImpl.java:1436)
    at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:576)
    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java: 2946)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:553)
    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:612 )
    at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:594)
    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:2890)
    at galadriel.ElendilImpl.ParamAnotacionExp(ElendilImpl.java:111)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
    at java.lang.reflect.Method.invoke(Method.java)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.dispatchMethod(Abs tractRemoteApplicationModuleImpl.java:4636)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.executeMethod(Abst ractRemoteApplicationModuleImpl.java:4854)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgReque st(AbstractRemoteApplicationModuleImpl.java:3449)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgEntri es(AbstractRemoteApplicationModuleImpl.java:3630)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.readServiceMessage (AbstractRemoteApplicationModuleImpl.java:2975)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processMessage(Abs tractRemoteApplicationModuleImpl.java:1639)
    at oracle.jbo.server.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:59 86)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.sync(AbstractRemot eApplicationModuleImpl.java:1608)
    at oracle.jbo.server.remote.colo.ServerApplicationModuleImpl.doMessage(ServerAppli cationModuleImpl.java:245)
    at oracle.jbo.common.colo.ColoApplicationModuleImpl.doMessage(ColoApplicationModul eImpl.java:102)
    at oracle.jbo.client.remote.ApplicationModuleImpl.doMessage(ApplicationModuleImpl. java:5233)
    at oracle.jbo.client.remote.PooledRequestHandler.doMessage(PooledRequestHandler.ja va:70)
    at oracle.jbo.client.remote.ApplicationModuleImpl.doMessage(ApplicationModuleImpl. java:5233)
    at oracle.jbo.client.remote.ApplicationModuleImpl.sendServiceMessage(ApplicationMo duleImpl.java:998)
    at oracle.jbo.client.remote.ApplicationModuleImpl.sendServiceMessage(ApplicationMo duleImpl.java:1012)
    at oracle.jbo.client.remote.ApplicationModuleImpl.sendWorkingSetRequests(Applicati onModuleImpl.java:3049)
    at oracle.jbo.client.remote.ApplicationModuleImpl.sendRequest(ApplicationModuleImp l.java:1041)
    at oracle.jbo.client.remote.ApplicationModuleImpl.riInvokeExportedMethod(Applicati onModuleImpl.java:5255)
    at galadriel.client.ElendilClient.ParamAnotacionExp(ElendilClient.java:21)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
    at java.lang.reflect.Method.invoke(Method.java)
    at oracle.jbo.common.ws.WSProxy.invokeMethod(WSProxy.java:120)
    at oracle.jbo.common.ws.WSProxy.invoke(WSProxy.java:90)
    at $Proxy3.ParamAnotacionExp(Unknown Source)
    at controller.AnotacionesDataAction.initializeRequestParameters(AnotacionesDataAct ion.java:63)
    at oracle.adf.controller.struts.actions.DataAction.executeImpl(DataAction.java:104 )
    at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:69)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor .java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java: 65)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:356)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java: 16)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:148)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java: 20)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:148)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatch er.java:610)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletReques tDispatcher.java:317)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.j ava:784)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResou rcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:536)
    I'm sure I'm doing somthing wrong, but don't know what. Thank you for your help.
    Re: Params in queries with Jdev 10g ( In Reply To : Re: Params in queries with Jdev 10g ) Sep 29, 2003 5:24 PM
    Reply
    Juanma -
    Not sure what would cause this JboException... Could you try posting to the JDev forum - I'm guessing the BC4J folks might be more familiar with this error...
    Andy

    Check out:
    Setting the view's where clause at runtime

  • JDev 10g and EJB 2.0 on non-OC4J server

    It looks like JDev 10g only supports EJB 2.0 for OC4J out-of-the-box. Is this correct?
    If we wanted to generate EJB 2.0 CMP entity beans etc to deploy to a non-OC4J app server (e.g. JBoss) using JDev 10g, what would we need to do? Are there any tutorials/how-to's available?
    As a newbie to JDeveloper and J2EE, trying to work out how to re-write our Forms system in J2EE, I have to say I'm getting tired of how most of the JDev documentation - and much of the software - only seems to relate to using OC4J (or 9iAS) as your app server. If we and our customers wanted to be restricted an Oracle app server, we could just stick with Forms 9i and save ourselves a world of Java pain.
    Plus, nearly all the 10g client documentation relates to JSP clients, but we want a rich GUI using Swing (JClient would be useful but we can't figure out how to deploy it 3-tier to JBoss).
    So, Oracle, how about giving your users some more documentation on how to use JDev10g/JClient/ADF/EJB 2.0 etc with non-OC4J servers and perhaps even without JSP?
    I am sure that JDev10g and ADF could offer us a great deal of help in building our system, if only we could figure out how to use it.
    Thanks,
    Chris

    Thanks, Deepak.
    But the how-to is for old versions of JDev/JBoss:
    "This document was written for Oracle9i JDeveloper Release Candidate and JBoss 2.4.4 (Dated December 29, 2001), although other versions of Oracle9i JDeveloper and/or JBoss should behave the same."
    I'll let you know if this works with JDev 10g and JBoss 3.2.3, but I have my doubts.
    If anybody has some more recent information on this, please let me know!
    Chris

  • JDev 10G OSX Issues

    Hi-
    I am starting this thread as a discussion area for bugs and issues with JDev 10G on Apple OSX 10.3. JDev is not officially supported on OSX, however, I am hoping that by providing well defined issue lists we can move that process along. Please add to this list if you are running JDev on OSX and find other issues!
    Thanks Gerard for encouraging me to post these (and sorry for my slow response).
    Eric Everman
    ___Problems in the 10G release that were present in preview release___
    -The Apple LnF has some missing icons and general painting issues in the file browser.
    -com.apple.macos.useScreenMenuBar has been depreciated message on startup (noted other places)
    -(MAJOR) JDev cannot correctly resolve paths using symbolic links. I haven't tried this, but I would suspect this is a problem on Linux as well. If I open a project that uses a symbolic link within its path, JDev seems to think there are two copies each file - one on the linked path and one on the fully resolved path. Somehow out of this, Jdev ends up placing all files into a Miscellaneous package under Web Content and Application Sources.
    -Import... The dialog seems to have a hardcoded background color. When running under OSX with the Apple LnF, the background color is the dark color of the Oracle LnF in portions of the dialog.
    -The sort order for files in the file dialogs is case sensative is a unfriendly way: A-Z sorts as a group before a-z. Preferable would be Aa, Bb, etc, as OSX applications (and windows applications) do. Is this also a problem in Linux?
    -Quiting JDev results in the following error (terminal text from JDev start to JDev Quit):
    ================================
    Exception in thread "Thread-0" java.lang.SecurityException
    at oracle.ide.IdeCore$1.checkExit(IdeCore.java:165)
    at java.lang.Runtime.exit(Runtime.java:88)
    at java.lang.System.exit(System.java:715)
    at com.apple.eawt.Application.handleQuit(Application.java:406)
    JavaAWT: Assertion failure: Java exception thrown
    JavaAWT: File src/macosx/native/apple/awt/util/AWTException.m; Line 40
    JavaAWT: Assertion failure: _javaException
    JavaAWT: File src/macosx/native/apple/awt/util/AWTException.m; Line 48
    2004-04-30 10:54:36.344 java[2230] See Java exception object
    ================================
    -Dual monitors Issue: (partially fixed) Works great under Apple LnF as long as com.apple.macos.useScreenMenuBar is 'false'. When set to 'true' and working in the non-main window (the window w/o the menubar), context menus pop-up at the edge of the main window instead of at the mouse location.
    -Command-Q will quit JDev, but will not always kill the associated Embedded OC4J instance. I can't always reproduce this - perhaps it happens after I've switched projects, recompiled somethings, etc..
    -Quiting JDev using any method other File|Quit results in the open file list not being saved. (Other methods are Command-Q or the JDev menu item Quit option)
    ___Problems in the preview release that were fixed in the 10G release___
    -Fixed: The close/minimize buttons on tabs and panes now display properly in the Apple LnF.
    -Fixed: Save As... removes the original file from the project list. So it looks as if the file has been renamed - in reality the original file is still on the disc, just no longer part of the project.
    -Fixed: The state of open files is not restored when JDev is resarted. Somewhere along the line I ended up with the JDev Welcome page and a class file as being the open files each time I start JDev, regardless of what files were open when I closed JDev. Tried with OSX LnF and Oracle LnF.
    -Fixed: When running under OSX LnF, editing code will result in the addition of a 'Code' menu to the menu bar, however, all of the other menu items are de-activated (greyed out). When the context changes to something other then code editing, the 'Code' menu item disappears, but all of the other menu items remain de-activated. Also, the Code item is added after the Help item, which is non standard. Under the Oracle LnF, the behaviour is as expected.
    -(Have not replicated in 10G release) After switching from MS Windows to OSX using JDev 10G for both, leading square bracket characters ([) seem to be stripted from JavaScript in JSP pages. Additionally, an extra space is sometimes inserted after a litteral in square braces.  If you see something similar, please submit more details.  I have a more detailed writeup in the Technologies|Apple section - search for 'square bracket characters'.
    -Fixed: Structure pane incorrectly displayed multi-line JSP comments that started with carriage returns.
    ___New Issues in the 10G release (or not before found)___
    -On startup, several errors are listed in the JDev message pane:
    ================================
    /Applications/jdev/jdev/lib/ext/bc4j_installer.jar!/META-INF/jdev-ext.xml
    Error: <Line 4, Column 22>: XSD-2034: (Error) Element 'feature' not expected.
    Error: <Line 24, Column 14>: XSD-2021: (Error) Element not completed: 'extensions'
    /Applications/jdev/jdev/lib/ext/bigraphext.jar!/META-INF/jdev-ext.xml
    Error: <Line 4, Column 22>: XSD-2034: (Error) Element 'feature' not expected.
    Error: <Line 17, Column 14>: XSD-2021: (Error) Element not completed: 'extensions'
    ================================
    After adding the JUnit extension, I also get these messages at startup:
    =================================
    /Applications/jdev/jdev/lib/ext/jdev905_JUnit Folder/bc4j_junit_addin.jar!/meta-inf/jdev-ext.xml
    Error: <Line 4, Column 22>: XSD-2034: (Error) Element 'feature' not expected.
    Error: <Line 39, Column 14>: XSD-2021: (Error) Element not completed: 'extensions'
    /Applications/jdev/jdev/lib/ext/jdev905_JUnit Folder/junit_addin.jar!/meta-inf/jdev-ext.xml
    Error: <Line 4, Column 22>: XSD-2034: (Error) Element 'feature' not expected.
    Error: <Line 98, Column 14>: XSD-2021: (Error) Element not completed: 'extensions'
    ================================
    -The window location and/or size is not restored on startup. I typically run dual monitors with jdev full-screen on the larger of the two. jdev often starts less then full screen size or not in the full screen location.
    -Inner Classes are not properly used by JDev. This chunk of code:
    ================================
    import java.util.Map;
    //code in a method
    Map.Entry entry;
    ================================
    Results in JDev underlining Map.entry with a mouseover note that says 'Access not allowed for class 'java.util.Map.Entry'.
    -Find and Replace with 'prompt' option locks the editor (hard to replicate)
    -JDev will sometimes 'swallow' a keystroke while it is poping up a Code Insight box (hard to replicate)
    ___General Feature Requests___
    -Several of the common File menu options could be added to the context menu in the Application Navigator tab. For instance, Save As, Remove From Project, Delete, and Refactor-> are all common functions that are nice to have 'right there'.
    -When typing import statements, is there some way to have jdev continue showing context lists after a selection is made? For instance, when entering:
    import org.apache.commons.lang.RandomStringUtils;
    I type "org." which allows me to choose apache from the list. Then... nothing - I have to backspace to delete the '.' and retype it in order to get the next code completion popup. In JBuilder there was the option to select an item from the list by pressing the '.' (dot), which would immediately continue with another context selection box.

    Okay, lets see how many of these we can already deal with:
    ** General Look And Feel Issues:
    * Missing icons and redrawing issues in the file browser
    Loged as new bug 3609752
    * ...useScreenMenuBar has been depreciated message
    Can find this, are you sure this is not being confused with the antialiasing messages?
    * Dialog background colors
    Logged as bug 2610818
    * Open dialog sorting
    Logged as new bug 3609768
    * AWT exception on exiting:
    Logged as bug 3525259
    * Multi monitor bug
    Unfortunately we only have a few macs and non of them have more than one monitor at the moment. But from your description this problem seem to lie with Apple rather than us. I will keep an eye on it for you though.
    ** Error messages on startup
    I belive this is a common problem accross all platform.
    ** Inner classs issue
    Again this is a problem with all versions of JDeveloper. Logged as bug 3546309, not currently scheduled to be fixed until the next release. Note that this only seems to affect the highligthing in the editor and nothing else.
    ** Items not being saved, position not being restored.
    If you press Apple-Q the Java virtual machine will kill jdeveloper and not allow it to close down properly. This can be resolve by addin hooks provided by apple. For the 903 preview release we had an addin for this. I will look at providing a drop in for 9.0.5.1
    ** Symbolic links, and other enhancements
    In will invetigate symbolic links and get back to you. I will also look at tracing down ER or log bugs for the other enhancemnts you mention
    Thanks for the details,
    G.

  • More info about Jdev 10g, where to get

    Hi all,
    I have done some jDev 10g tutorials for jsp, j2ee, struts. When i started to write some code on my one many problems appeared. So i am interested, where to get info, documentation or how to work with jdev 10g.
    To get questions like :
    -What is diferent between struts action and action data?
    -How to develop with modules? If i'd like to have login, forum, calendar modules and use them in difrent application.
    - ...what can be done with jdev 10g an also how
    Any links or book titles would be fine or suggestions how to learn developing j2ee applications with jdev 10g.
    By the way I am studen who'd like to learn as much as possible to be a good developer for j2ee applications.
    Hope it's not to late.
    Thanks for help

    Check out ADF Data Binding primer on Steve Muench blog
    http://radio.weblogs.com/0118231/2003/09/08.html#a149
    Did you check out the help system in JDeveloper 10g ?
    raghu
    JDev Team

  • Problems with JDev 11g using JBOSS and ANT

    Hi,
    I'm trying to migrate to JDev 11g with JBoss ( version 7.X ) as the AppServer
    With JDev 10g all works fine with JBoss, even the Remote Debug, all OK
    here is the problems I have :
    1) ANT
    JDev doesn't save my ANT settings
    every time I launch ANT : Run Ant Target - I must set the Advance settings
    JDev 10g I only need to do that once, the settings are saved but not in the 11g, why ?
    2) persistence
    I get this error when deploying to JBoss
    16:34:50,967 INFO [org.jboss.as.server] (HttpManagementService-threads - 1) JBA
    S015870: Deploy of deployment "prod_v0.0.1_iDigital.menu.ear" was rolled back wi
    th failure message {"JBAS014771: Services with missing/unavailable dependencies"
    => ["jboss.persistenceunit.\"prod_v0.0.1_iDigital.menu.ear/iDigital.menu-WebApp
    .war#InfraModel\"jboss.naming.context.java.jdbc.stdDSMissing[jboss.persistenceun
    it.\"prod_v0.0.1_iDigital.menu.ear/iDigital.menu-WebApp.war#InfraModel\"jboss.na
    ming.context.java.jdbc.stdDS]","jboss.persistenceunit.\"prod_v0.0.1_iDigital.men
    u.ear#InfraModel\"jboss.naming.context.java.jdbc.stdDSMissing[jboss.persistenceu
    nit.\"prod_v0.0.1_iDigital.menu.ear#InfraModel\"jboss.naming.context.java.jdbc.s
    tdDS]"]}
    it seems that is something related to dependencies not well configured during build stage of the EAR, but with 10g works fine
    BTW, I can't run my project with WebLogic either, gives this error :
    <5/Abr/2013 18H27m BST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1365182860563' for task '0'. Error is: 'weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].'
    weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].
         at weblogic.application.internal.flow.CheckLibraryReferenceFlow.prepare(CheckLibraryReferenceFlow.java:26)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
         Truncated. see log file for complete stacktrace
    >
    <5/Abr/2013 18H27m BST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'iDigital.menu'.>
    <5/Abr/2013 18H27m BST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].
         at weblogic.application.internal.flow.CheckLibraryReferenceFlow.prepare(CheckLibraryReferenceFlow.java:26)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
         Truncated. see log file for complete stacktrace
    can someone give me a clue ?
    thanks
    Edited by: FernandoLeite on Apr 5, 2013 10:31 AM

    I can't say many about the ant stuff, but have you tried to put the parameters in a property file and use this to get the parameters to ant?
    The reason you can't run the application on WLS is that you have not installed the adf runtime on your wls. The error 'application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].' points to this.
    Timo

Maybe you are looking for

  • Battery Life significantly! reduced just by loading Maverick

    So when will Apple address this major issue? Just do a search and see that a lot of people have experienced this. My battery life was cut by 2/3 the moment I loaded Maverick. I loaded it based on the promise of improved battery life. THIS IS A LAPTOP

  • Need help with actively replacing text in SVG

    I am new to Dreamweaver, Illustrator and SVG.  Also, I do have a firm understanding of HTML but limited knowledge of Javascript and other languages.  I am trying to create a website where the user is able to type in a form field (or something to that

  • Multiclip with different aspect ratio

    I'm noticing that when I try to do a multiclip with a movie format that involves a different aspect ratio than DV I lose the ability to view live multiclip angles. I've tried several formats and it doesn't appear to be codec related. If the aspect ra

  • Bind parse errors

    Oracle 11.2.0.1. Background: doing "multi-threading" using DBMS_PARALLEL_EXECUTE, which uses the bind variables +:start_id+ and +:end_id+ when executing a "thread". The Problem: Oracle chokes on parsing a bind variable used in a FOR loop. Example: //

  • How to get name of the month from current date.

    Hi,    How to get the name of the month from current date. Thanks, Senthil