JDEV9.05 with OC4J9.0.3

Hi, I'm using MVCSoft as PM for OC4J
and I'm using JDEV 9.0.5 as O/R mapper.
Once I generated the Jar/Ear files
I then import the ear on JDEV 9.03 and deploy.
I keep receiving this error message while deploying.
Copying default deployment descriptor from archive at
/opt/jdev/j2ee/home/applications/cxdbif/cxdbif.jar/META-INF/orion-ejb-jar.xml
to deployment directory
/opt/jdev/j2ee/home/application-deployments/cxdbif/cxdbif.jar...
ServiceProfileLocalHome_EntityHomeWrapper15.java:807: unreported exception
java.rmi.RemoteException; must be caught or declared to be thrown
collection.add(getWrapperByPK(transaction, key));
^
but I didn't write the code for
ServiceProfileLocalHome_EntityHomeWrapper15.java
Anyone any Idea ?
Sorry but I'm having so many problems with the CMP/CMR on OC4J 9.0.3 which I might have to think to rule it out.
I'm stuck can anyone help ?
cheers.

Hi,
thanks for your reply.
The problem here is that 9.0.4 is a developer preview and not a stable product.
Also I found out the following :
http://www.jcodebox.com/tfaq2.shtm#10
CUSTLocalHome_EntityHomeWrapper4.java:519: unreported exception java.rmi.RemoteException; must be caught or declared to be thrown collection.add(getWrapperByPK(transaction, key));
This unreported java.rmi.RemoteException can be caused when entity beans have additional finders declared. We are not completely sure why this causes a problem in the code OC4J generates but try removing all the additional finders and then adding them one by one to see which one is causing the problem. We will post further information on this problem as soon as we know more.
So I removed all the findAll() generated remaining only with the findByPrimaryKey.
and guess what it worked......
Is there a work around ?
Is 9.0.4 (9.0.5) stable enough to be used for us in production ?
If not when do you thik this is going to happen ?
I know those are difficult questions to answer but as
a Customer I need to know them (possibly ASAP).
Thanks.
Giuseppe.

Similar Messages

  • Integrate JDev9i with weblogic

    Hi,
    Can anyone direct me to any documentation with outlines the steps for intergrating and debugging ejb's using JdEV9I AND WEBLOGIC 6.1

    There is generic documentation for remote debugging other application servers from JDeveloper.
    Bring up the help system in JDeveloper
    Select "Testing and Optimizing the code"
    Select "Debugging in JDeveloper"
    Select "Remote Debugging"
    Select "Guidelines for Remote Debugging Servlets on other servers"
    For creating connection to Weblogic Server
    Check out the help system
    Select "packaging and deploying"
    Select "Creating application server connections"
    Select "Creating a connection to BEA WebLogic "
    raghu
    JDev Team

  • Developing SCM Plugin for JDev9i... Deadlock

    Hi!
    I'm currentlly developing a SCM plugin for JDev9i with the option to use MS Visual Source Safe. I've experienced problems with hanging for a while. I'm using the oracle.ide.scm packages bundled with JDev, and I think I've found where the hangup is caused.
    There's a class called oracle.ide.scm.util.SCMProcess which is a process wrapper around another class called oracle.ide.scm.util.SCMShellRunner. The process will recieve output text from standard out and standard error. These outputs must be caught and displayed as they are given to the system. If they are not displayed, JDev will go into deadlock it seams.
    These classes have their equals respectivelly in java.lang.Process and java.lang.Runtime. I've used these classes to run a command from disk and they work if you properlly handle the output. The problem with this way of doing things is that these classes does not report back to the scm systems and can cause unexpected results from the other interfaces and classes in the oracle.ide.scm...
    Does anybody have any experience in coding plugins of this kind? Have you experienced the same problem and have you found a way around it?
    This does not work as it should:
    SCMShellRunner rt = SCMShellRunner.getInstance();
    SCMProcess p = rt.run(cmd, envArr);
    while(!p.isFinished()) {
    System.err.println(p.getErrorText());
    System.out.println(p.getOutputText());

    Hi.
    The SCMShellRunner and SCMProcess classes are utilities which you
    may find useful in implementing your SCM support; you can still
    use java.lang.Runtime and java.lang.Process if you prefer.
    However, we strongly recommend that you use SCMShellRunner because:
    - On windows systems, the external process is launched in the
    context of a shell.
    - The output and error streams of the external process are
    monitored separate threads to prevent blocking issues because of
    buffer overruns.
    - A native workaround is used to prevent console windows popping
    up every time external processes are launched under Windows.
    Not sure what could be causing the deadlock, but I did notice in
    your code snippet that you are attempting to print output from the
    process before it is finished.
    The 'error text' and 'output text' will become available only
    when the process has successfully terminated, so I guess you're
    seeing an awful lot of "null" in your debug window.
    Also, I would suggest using SCMProcess.waitFor() to block until
    the process has completed; it will not be so greedy with CPU.
    Try something like the following:
    SCMShellRunner rt = SCMShellRunner.getInstance();
    SCMProcess p = rt.run(cmd, envArr);
    p.waitFor();
    if (p.getExitCode().intValue() != 0)
    // throw SCM exception.
    System.err.println(p.getErrorText()); // should be non-null
    System.out.println(p.getOutputText()); // should be non-null
    Thanks,
    Paul. JDev SCM

  • OC4J and SonicMQ

    We are trying to integrate SonicMQ into our project instead of the OC4J JMS stuff. When we used Queues, everything appeared to work except that some messages weren't making their way back to Sonic. We couldn't trace what the problem was. So we switched to Topics. But we seem to be having problems getting the deployment descriptors to work right. We keep getting:
    java.lang.NullPointerException
    04/08/21 01:22:10 at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:1091)
    04/08/21 01:22:10 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    04/08/21 01:22:10 at java.lang.Thread.run(Thread.java:534)
    This isn't very descriptive, so after trying lots of things, I thought I'd post here and see if anyone has ever run into this.

    I would like to say that it is possible to integrate SonicMQ6.0 with OC4J9.0.3. I had created one stand-alone MessageProducer which will enqueue/publish message to Queue/Topic on SonicMQ6.0. Then Two MDBs were deployed in OC4J9.0.3. One MDB was listening to the Queue and another MDB had durable subscription to the Topic. Both MDBs were functioning properly.

  • Deploy Toplink 9.0.3 Entity beans with JDEV9.0.3 and oc4j9.0.3

    Hi,
    I created Entity beans using the toplink mapping tool
    and now I'm trying to compile them in Jdev 9.0.3 and to deploy in OC4j 9.0.3. Unfortunately I
    couldn't find any info on how to do this.
    Can anyone please reply as soon as possible ?

    TopLink does not support Container Managed Persistence (CMP) with OC4J in 9.0.3. Our 10.0.3 developer preview offers this support.
    Was it CMP or BMP you were trying to use. If it is BMP there is an example of using TopLink with OC4J shipped with TopLink.
    Doug

  • Problem using jdk included with JDEV9i

    I am trying to use jdk supplied with jdev9i release candidate 2 on my system
    (win 98).I have included c:\jde9i\jdk\bin in my system's path and c:\jdev9i\jdk\lib
    in my class path.
    But when I invoke compiler using javac it prints a long error message ,
    some of them are given below(I can't see the main exception because it scrolls up).
    Sun.misc.Resource Sun.misc.URLClassPath.getReasource(java.lang.String.boolean)
    java.lang.Object java.net.URLClassLoader$1.run()
    java.lang.Object java.security.AccessController.dePriviledged(java.security.
    PriviledgedExceptionAction,java.security.AccessControlContext)
    So how can I use this jdk to compile and run my other applications.

    Hi,
    My document looks as follows:
    <pre:inventory xmlns:pre="http://www.example.com/books">
    <pre:book year="2000">
    <pre:title>Snow Crash</pre:title>
    <pre:author>Neal Stephenson</pre:author>
    <pre:publisher>Spectra</pre:publisher>
    <pre:isbn>0553380958</pre:isbn>
    <pre:price>14.95</pre:price>
    </pre:book>
    <!-- more books... -->
    </pre:inventory>
    And I tried the following:
    //pre:book
    /pre:inventory and
    /pre:inventory/pre:book
    I have the necessaty code in my namespaceresolver as follows:
    public String getNamespaceURI(String prefix) {
            if (prefix == null)
                  throw new NullPointerException("Null prefix");
            else if ("pre".equals(prefix))
                   return "http://www.example.com/books";
            else if ("xml".equals(prefix))
                   return XMLConstants.XML_NS_URI;
              return XMLConstants.NULL_NS_URI;
                    cheers,
    ovisvana

  • Jdev9.0.3 JSP STRUTS ADF application problem with jdve10.1.3 and 10g IAS

    Hello, All,
    My current application is developed with jdev9.0.3 and deployed to OC4J 9.0.4 on ias, it works fine.
    Now I need to deploy it to our new 10g application server. the application run into the following error:
    NoClassDefFoundError: oracle/jdeveloper/html/HTMLElement
    at oracle.adf.controller.struts.util.ErrorReporting.addError(ErrorReporting.java:99)
    at oracle.adf.controller.struts.util.ErrorReporting.addError(ErrorReporting.java:94)
    Then I tried to migrate the application to jdev10.1.3 first, the code run into some red lines, e.g. <c:out .../> can't be within <c:set.../>, but it compiled ok and run fine within jdeveloper.
    But when I deployed the new .war file into the 10g server, now I run into different set of error(Please see belowe).
    Is there anything I need to do when I deploy a jdev903 application to 10g server, or migrating to jdev10.1.3?
    Any advice will be appreciated,
    Deborah
    java.lang.NoClassDefFoundError     at at oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getDefaultInstance(StrutsPageLifecycleFactory.java:68)
    at org.apache.struts.config.impl.ModuleConfigImpl.freeze(ModuleConfigImpl.java:503)     
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpApplication.loadServlet(HttpApplication.java:2354)
    ...

    Migrating ADF/Struts 10.1.2 to 10.1.3.
    http://radio.weblogs.com/0118231/2006/02/28.html#a665

  • JDev9i  integration with tomcat

    Hi All,
    Is there any way to integrate tomcat with Jdev9i. Actually I am interested to set a
    JDev9i default web server as a tomcat instated of OC4J.
    If Any one having such a experiance pls let me know.
    Thanks in advance

    We actually have an extension that allows you to point to your Tomcat install location.
    It's still being worked on. We hope to place it on OTN in the next month or so..
    You could also just use Tomcat anyway without (righ-click run support etc).
    For example you could generate/edit your JSPs in JDev and then let Tomcat be your JSPengine.
    In this case you could create a project in JDev which maps to one
    of the Webapps in Tomcat.

  • Pl/sql debugging with jdev9.0.5

    Hi,
    I'm trying to debug a pl/sql procedure within jdev implemented debugger. But the problem is that it isn't stopping on the breakpoints I set.
    peace Cyrill

    If it's not stopping on the breakpoints, the most common problem is that the PL/SQL is not compiled with debug info. There are a few ways to compile with debug info:
    1) Make sure the "Generate PL/SQL Debug Information" checkbox is checked in the Tools > Preferences, Database Connections preferences panel. Then, open the PL/SQL units in question from JDeveloper, then right-click and "Make" the PL/SQL. This will recompile with Debug info.
    2) If you are creating the PL/SQL from a SQL*Plus script, add "ALTER SESSION SET PLSQL_DEBUG = TRUE" to the beginning of the script. Any PL/SQL compiled from this point on in the session will be compiled with Debug info.
    3) A third option is to recompile each program unit using "ALTER <prog_unit_type> <prog_unit> COMPILE DEBUG" for example "ALTER PROCEDURE foo COMPILE DEBUG". This recompiles the specific program unit with debug information.
    After using one of the three approaches, try the debugging again. If it still doesn't stop, verify that your PL/SQL is compiled in "Interpreted" mode, in other words verify that the database is not using the new "NATIVE" flag for native compilation of PL/SQL.
    -- Brian

  • Stub generated in Jdev9i for webservice with 'Vector' return type

    Hi,
    In the OAF page that I am developing, I am trying to consume a web service generated in SAP PI using Jdeveloper. My Jdeveloper version is 9.0.3.5(I need to use this version since I need to deploy the OAF page in EBS11i). The stub generated based on the WSDL is given below.
    import oracle.soap.transport.http.OracleSOAPHTTPConnection;
    import org.apache.soap.encoding.soapenc.BeanSerializer;
    import org.apache.soap.encoding.SOAPMappingRegistry;
    import org.apache.soap.util.xml.QName;
    import java.util.Vector;
    import org.w3c.dom.Element;
    import java.net.URL;
    import org.apache.soap.Body;
    import org.apache.soap.Envelope;
    import org.apache.soap.messaging.Message;
    * Generated by the Oracle9i JDeveloper Web Services Stub/Skeleton Generator.
    * Date Created: Tue Jan 25 16:12:55 IST 2011
    * WSDL URL: file:/C://Working/XXXXXXX/RegConsComplaint_OB.wsdl
    public class RegConsComplaint_OBServiceStub
      public RegConsComplaint_OBServiceStub()
        m_httpConnection = new OracleSOAPHTTPConnection();
      public static void main(String[] args)
        try
          RegConsComplaint_OBServiceStub stub = new RegConsComplaint_OBServiceStub();
          // Add your own code here.
        catch(Exception ex)
          ex.printStackTrace();
      public String endpoint = "http://XXXXXX:8000/sap/xi/...../RegConsComplaint_OB";
      private OracleSOAPHTTPConnection m_httpConnection = null;
      private SOAPMappingRegistry m_smr = null;
      public Vector RegConsComplaint_OB(Element requestElem) throws Exception
        URL endpointURL = new URL(endpoint);
        Envelope requestEnv = new Envelope();
        Body requestBody = new Body();
        Vector requestBodyEntries = new Vector();
        requestBodyEntries.addElement(requestElem);
        requestBody.setBodyEntries(requestBodyEntries);
        requestEnv.setBody(requestBody);
        Message msg = new Message();
        msg.setSOAPTransport(m_httpConnection);
        msg.send(endpointURL, "http://sap.com/xi/WebService/soap1.1", requestEnv);
        Envelope responseEnv = msg.receiveEnvelope();
        Body responseBody = responseEnv.getBody();
        return responseBody.getBodyEntries();
    }I am wondering whether I will be able to use this stub generated by Jdeveloper since the input type is 'Element' and return type is 'Vector'; while in the Jdeveloper documentation the supported "primitive XML Schema types and arrays of primitive XML Schema types as parameters and return values for web services" do not include either of the two.
    Regards,
    Sujoy

    Hi Sujoy
    I have been having big problems consuming microsoft sharepoint webservices using jDeveloper 9i.
    Problems with jdk version compatability with jDev and NTLM authentication (Sharepoint).
    so switching to db connection using utl_http.
    Can you pls send me the code set for reference at [email protected]
    thanks.
    Regards
    Sachin

  • How can I display FK description in a JDev9i DataEdit Component

    Hi all,
    I have a difficult issue here on the JDev9i.
    I use an XXXView_Edit.jsp where XXXView is a View Object.
    XXXView is actually based on a XXX entity object which in turn wraps the XXX Database Table.
    These .jsps have generated from the JDev9i wizards BC4J application and BJ4J JSP application.
    The XXX table has, among others, some fields with FKs pointing to some lookup tables. Assume that XXX has a field 'f' that holds the FK of the lookup table FFF. FFF table consist of a PK field 'p' and a description field 'd'.
    And now the problem:
    I want to display in the XXXView_Edit.jsp form the description 'd' of the FK instead of the FK 'f' itself, connected with an LOV pointing to the FFF table (some FFFView Object).
    How can I do this by modifying the DataEdit Component ?
    Thanx!

    Anfortunately,
    This is not the same when I have a DataQuery component.
    The question now becomes as following:
    How can I use FK description in a BC4J data query component?
    Thanks in advance
    Aggelos

  • JSP graph image works in Reports Builder but not in JDev9i

    Robin,
    None of these changes work. What else should I check?
    In the rwservlet.properties file (not rwserver.properties **)
    I changed #IMAGEURL=http://<web_server_name>:<port_num>/reports/rwservlet
    to IMAGEURL=C:\Oracle\Oracle9iDS2\reports\cache\
    or
    IMAGEURL=http://<web_server_name>:<port_num>/servlet/oracle.reports.rwclient
    .RWClient
    [IMAGEURL=http://163.249.38.151:8988/servlet/oracle.reports.rwclient.RWClient]
    [IMAGEURL=http://163.249.38.151:8888/servlet/oracle.reports.rwclient.RWClient]
    Would my localhost name and http port be the in-process JDeveloper OC4J listener?
    Also my ports keep being reassigned (up one number) when I terminate the embedded OC4J server and run the JSP again. (That is what you meant by restart the server, right?) from 8988 to 8989 to 8990 etc.
    John Williams
    Hi John,
    The reason that you aren't seeing that graph in JDeveloper is that rwservlet
    isn't available with the JDeveloper in-process OC4J listener. The OC4J
    listener is the minimum requirement. In addition, Reports forces the graph
    to be retrieved via the Reports server for security reasons. Ie: you
    shouldn't be able to get at graph images simply by knowing their URL. In
    the Reports builder environment, security is not the issue so there is a
    direct reference to the file.
    Now, when you're running from JDeveloper, you need to tell Reports how it
    should configure the URL. Reports runs in a secure mode by default to
    retrieve the images and, since JDeveloper is calling it as a through a Web
    listener, it is responding to a normal request and hence forcing the image
    to be retrieved via rwservlet.
    To tell Reports to access images directly or through another listener, you
    need to alter the %ORACLE_HOME%\reports\conf\rwserver.properties file and
    uncomment and change the following line: **
    #IMAGEURL=http://<web_server_name>:<port_num>/reports/rwservlet
    to
    IMAGEURL=C:\Oracle\Oracle9iDS2\reports\cache\
    Or
    IMAGEURL=http://<web_server_name>:<port_num>/servlet/oracle.reports.rwclient
    .RWClient
    Where <web_server_name> and <port_num> are the values of the in-process
    JDeveloper OC4J listener.
    You will need to re-start the Reports server. This should generate the
    appropriate link to the image when run from JDeveloper.
    When you deploy your application through a standard iAS OC4J instance
    containing the Reports Servlet, this IMAGEURL entry should again be
    commented out. Since the servlet is available in this iAS OC4J instance,
    the images will appear when referenced through rwservlet.
    Robin.
    When I leave the server parameter attribute out my GraphReport.jsp runs
    from JDev9i (using the same server as Reports Builder). The only thing
    missing now is the graph after my report. It shows up as a small square
    image tag.

    I found out the answer to both of my problems.
    1) for the missing graph image
         In the documentation link below I found a pdf file that gave the details.
    In the rwservlet.properties file in the IMAGEURL attribute
    the part that was missing is after the port #.
    IMAGEURL=http://<host>:<port>/<Workspace>-<Project>-context-root
    /servlet/oracle.reports.rwclient.RWClient
    2) for the port conflict - switch from the 'ojvm' virtual machine to 'hotspot'
         so that the embedded OC4J server is killed when it is terminated.
    I found these answers under Oracle Technology Network > documentation
    at http://otn.oracle.com/docs/products/reports/content.html
    Development Tools
    Reports Developer
    Oracle9i Reports Release Notes (pdf file)
    1.19 Oracle JDeveloper Integration
    1.19.2 Graph Not Appearing in Oracle JDeveloper
    When running a JSP report with the rw:graph tag in Oracle JDeveloper, the image is not visible in the browser. To fix this problem, set the IMAGEURL in the rwservlet.properties file in ORACLE_HOME/reports/conf:
    IMAGEURL=http://<host>:<port>/<Workspace>-<Project>-context-root
    /servlet/oracle.reports.rwclient.RWClient
    1.19.3 Reports In-process Server
    If the Java Virtula Machine (JVM) is set to ojvm, minimal, or vanilla in Oracle JDevelopers Virtual Machine settings (Project Settings -> Runner -> Virtual Machine), the rwservlet's in-process server is not killed when JDevelopers embedded OC4J server is terminated. As a result, a port conflict occurs the next time that OC4J is started.
    To avoid this problem, do one of the following:
    Set the JVM to Java Virtual Machine to hotspot.
    Disable the in-process server in ORACLE_HOME/reports/conf/rwservlet.properties and
    use the standalone Reports Server instead.
    John Williams

  • How to include custom application.xml in JDev9i project

    Can anybody explain to me how to include a custom application.xml file when deploying to an .ear file? I need to include application wide security roles, and I can't see where in Jev9i how to do this.
    After searching this forum, I see that jdev9i can't include the orion-application.xml, but I want to include just the standard J2EE application.xml. Is this possible?
    Thanks,
    matt

    The standard application.xml file unfortunately can't be customized in JDev 9.0.2. The reasons why this capability was left out of JDev 9.0.2 are same reasons why the other EAR-level XML files were excluded. The OTN thread
    Re: Regarding 11i and E-business suite
    has a summary of those reasons, which you've probably seen. We know this is an area in need of improvement and will be adding this functionality in the JDev 9.0.3 release. Until then, you'll have to go with a work-around like an Ant build file, batch file, Java application, or some other kind of script.
    Below is a sample Java application which can be used to insert <security-role> elements into an EAR file's application.xml. Modify the main() method to customize for your purposes, and put xmlparserv2.jar on the classpath (in a JDev project, add the "Oracle XML Parser v2" library):
    package mypackage4;
    import java.io.*;
    import java.util.*;
    import java.util.zip.*;
    import oracle.xml.parser.v2.*;
    import org.w3c.dom.*;
    import org.xml.sax.SAXException;
    public class PostProcessEAR
    public static void main( String[] args ) throws IOException
    final String earFile = "C:\\temp\\myapp.ear";
    final PostProcessEAR postProcess = new PostProcessEAR( earFile );
    postProcess.addSecurityRole( null, "first_role" );
    postProcess.addSecurityRole( "Description for the second role", "second_role" );
    postProcess.commit();
    System.out.println( "Done." );
    private final File _earFile;
    private final ArrayList _securityRoles = new ArrayList();
    public PostProcessEAR( String earFile )
    _earFile = new File( earFile );
    public void addSecurityRole( String description, String roleName )
    if ( roleName == null )
    throw new IllegalArgumentException();
    _securityRoles.add( description );
    _securityRoles.add( roleName );
    * Write out modified EAR file.
    public void commit() throws IOException
    if ( _securityRoles.size() == 0 )
    return;
    final ZipFile zipFile = new ZipFile( _earFile );
    final Enumeration entries = zipFile.entries();
    final File outFile = new File( _earFile.getAbsolutePath() + ".out" );
    final ZipOutputStream out = new ZipOutputStream( new BufferedOutputStream( new FileOutputStream( outFile ) ) );
    while ( entries.hasMoreElements() )
    final ZipEntry entry = (ZipEntry) entries.nextElement();
    final InputStream in = zipFile.getInputStream( entry );
    if ( "META-INF/application.xml".equals( entry.getName() ) )
    final XMLDocument modifiedApplicationXml = insertSecurityRoles( in );
    final ByteArrayOutputStream byteOutput = new ByteArrayOutputStream();
    modifiedApplicationXml.print( byteOutput );
    final int numBytes = byteOutput.size();
    entry.setSize( numBytes );
    if ( entry.getMethod() == ZipEntry.STORED )
    entry.setCompressedSize( numBytes );
    final CRC32 crc32 = new CRC32();
    crc32.update( byteOutput.toByteArray() );
    entry.setCrc( crc32.getValue() );
    out.putNextEntry( entry );
    byteOutput.writeTo( out );
    else
    // Copy all other zip entries as they are.
    out.putNextEntry( entry );
    copy( in, out );
    in.close();
    out.close();
    private XMLDocument insertSecurityRoles( InputStream in ) throws IOException
    final DOMParser domParser = new DOMParser();
    domParser.setAttribute( DOMParser.STANDALONE, Boolean.TRUE );
    try
    domParser.parse( in );
    final XMLDocument doc = domParser.getDocument();
    final Element docElem = doc.getDocumentElement();
    final Iterator iter = _securityRoles.iterator();
    while ( iter.hasNext() )
    final String desc = (String) iter.next(); // might be null
    final String roleName = iter.next().toString(); // must not be null
    final Element securityRoleElem = doc.createElement( "security-role" );
    if ( desc != null )
    securityRoleElem.appendChild( createPcdata( doc, "description", desc ) );
    securityRoleElem.appendChild( createPcdata( doc, "role-name", roleName ) );
    docElem.appendChild( securityRoleElem );
    return doc;
    catch ( SAXException e )
    e.printStackTrace();
    return null;
    private Element createPcdata( XMLDocument doc, String elemName, String pcdata )
    final Element elem = doc.createElement( elemName );
    elem.appendChild( doc.createTextNode( pcdata ) );
    return elem;
    private final byte[] buffer = new byte[4096];
    private void copy( InputStream in, OutputStream out ) throws IOException
    while ( true )
    final int bytesRead = in.read( buffer );
    if ( bytesRead < 0 )
    break;
    out.write( buffer, 0, bytesRead );

  • PROBLEM WITH NEW ROW  --- PLEASE HELP

    Hello,
    I've had it with the framework. It's been 20 hours and counting that I am trying to insert/validate a new record.
    Things just don't work as advertised.
    Here's the situation:
    I have an entity object with various validation rules in the validate() method.
    Then I have a simple JSP page to insert new records.
    At submit of button, I follow the framework's default
    create new row and fill it up, with the difference
    that i need to validate the row as soon as I fill it up
    with data from the http request:
    <jbo:OnEvent name="Create">
    <jbo:Row id="newrow" datasource="ds" action="CreateInRange" >
    <% try { %>
    <jbo:SetAttribute dataitem="*" />
    <%
    newrow.validate(); //******* NOTICE HERE THAT I VALIDATE
    } catch (JboException ex) {
    newrow.remove();
    throw ex;
    } %>
    </jbo:Row>
    </jbo:OnEvent>
    Unexpected behavior 1: If the validation fails,
    newrow DOES NOT GET REMOVED!!!! I know this
    since when I view data thru a data table component,
    the row is there WITH THE ERROR INFORMATION set!!.
    If I do a commit transaction, then the erroneous information ENDS UP IN THE DATABASE!!!!!
    Unexpected behavior 2: If I do a rollback, every
    call to subsequent pages results in a jsp error:
    java.lang.ClassCastException: oracle.jbo.html.jsp.datatags.OnEventTag
    PLEASE HELP.
    Chris Lambrou

    I have (hopefully) found a solution to my part of this problem. I was getting the ClassCastExceptions on any page with a <jbo:row> tag after doing a failed DML action. I have tested this with the delete event. (btw, I am using jdev9.0.3.3 w/ BC4J/JSP) Before what I was doing was this:
    <% try { %>
    <jbo:Row id="delrow" datasource="ds" rowkeyparam="jboRowKey" action="Delete" />
    <% } catch (JboException jboEx) { %>
    do something
    <% } catch (Exception ex) { %>
    uh-oh, this is bad
    <% } %>
    If I removed the try/catch block everything worked fine. Unfortunatlely, I need to try/catch block here. To work around the problem I changed the code to this:
    <% Row rowDelete = ds.getRowFromKey(params.getParameter("jboRowKey")); %>
    <% try { %>
    <%
    rowDelete.remove();
    %>
    <% } catch (JboException jboEx) { %>
    do something
    <% } catch (Exception ex) { %>
    uh-oh, this is bad
    <% } %>
    The second bit of code does the same thing (but it doesn't use a bean like I think <jbo:Row> does) and it doesn't cause the ClassCastError on subsequent errors.
    I really hope this helps someone else because it took me forever to get a workaround!
    ~Rob Lundeen

  • How to call webservice using jdev9i

    Hi gurus and experts,
    i need to consume a webservice using oaf. with great effort finally i created stub using axis s/w.
    now i dont know how to use the stub in jdev.where to write the code and what to write.iam strucked :-( .
    since there were no sample tutorial about how to call webservice from jdev9i, iam struggling to make.iam jus a starter.
    and while googling i came to know that stubs can be created using jdev9i .but when i see new-->webservices--web service stub it is greyed out.
    i have 2 questions now:
    1)if stub created using axis can it be used in jdev9i? if yes ,please tell me how? any tutorial links also helps me.
    2)if the stubs should be created only by jdev9i so that webservices can be called using jdev,then please guide me how to make it.
    i need some helping hands from u guys.
    Thanks a lot
    Edited by: 881533 on Oct 25, 2011 2:34 AM
    Edited by: 881533 on Oct 25, 2011 2:37 AM

    Hello sir,
    i got following reply:
    <returnRecordResponse  xmlns="http://xyz" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <returnResult>Error_request</returnResult>
    </returnRecordResponse>
    but correct response is
    <returnRecordResponse  xmlns="http://xyz" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <returnResult>Success</returnResult>
    </returnRecordResponse>
    can you tell me correction in the code which i have put on the forum?or tell me other way to call webservice?

Maybe you are looking for

  • Dynamic table header/footer on multiple pages stay original

    hi experts, i've got a form with a dynamic table. this means that i have a footerrow with mapped information if it should be visible or not. so the table can have from 1 to 40 columns. i did some scripting in the table's initialize section: loop over

  • How to know whether a method is thread-safe through the java-doc?

    In some book, it says that SAXParserFactory.newSAXParser() is thread-safe,but in the java-doc,it doesn't say that. newSAXParser public abstract SAXParser newSAXParser() throws ParserConfigurationException, SAXExceptionCreates a new instance of a SAXP

  • Can't get into User Accounts  in smc

    After few Updating around I can't get into User Accounts in smc. I can go through up to there, but when I doubleclick on User Accounts it's get just clock loading forever, that's all. BTW I have unistalled update 121309-12 'coz with this update when

  • TrueType Font Not Working .. Help!

    So, for my work I have to use PeopleSoft for my Expense Reports, and they use a barcode at the top of the page that uses a font called "3 of 9 Barcode". i have downloaded the font, installed it into \Library\Fonts and verified it shows its installed.

  • Deblessed system folder on a Mac SE?

    My Mac SE shows a flashing question mark folder on start-up. I've been informed that the problem may be a deblessed system folder. Unfortunately, I don't have any of the system discs, or for that matter any formatted 800k discs at all. I realise that