Oracle Soap and Jdev

I am currently maintaining and extending web services that were written with Oracle Soap. We plan to migrate these to JAX RPC. I was trying out the new Jdev and did not see a choice to select Oracle Soap when creating new web services. Can this option be enabled? Also, it appears that soap.jar has been significantly updated since the 12/1/2003 version. Is there doc on the changes that were implemented with Oracle soap.
Thx,
Brian

I think you will have problems regardless of the approach you take. I have followed up on this and here are the choices you have to use the new 9.2.0.4 parser, as I understand it, in your application:
1. Delete/backup the old xmlparserv2.jar and replace it with the new one. As there seems to be some new dependencies associated with it (for example xmlmesg.jar), you have to make sure this too is included.
2. When you start OC4J you can pass in the -Xbootclasspath parameter the location of your jar files (e.g. the new parser and associated files). Those files will override the ones that are hardwired into OC4J - e.g.
java -Xbootclasspath/a:D:\temp\xdk\lib\xmlparserv2.jar -jar oc4j.jar
I did option one and then tried working with a number of different Web services that previously worked out of the box and they no longer worked - I got a number of parser errors during the build and run phases.
What this suggests to me, and I believe this is how Oracle Support would treat this, is that the XDK 9.2.0.4 can be used stand alone and the components should work together. If you try to engineer the 9.2.0.4 XDK into the 9.0.3 OC4J/JDev environment, it may or may not work but you unfortunately won't be supported as the only supported configuration is that which is shipped as a product. As far as I know that has been the way the one off XDK's have generally been treated unless it was subsequently indicated by Oracle Support that a particular one-off XDK fixed issues - as far as I know that has not been said for XDK 9.2.0.4 and the 9.0.3 OC4J/JDev stack.
In your case because you would like to use SOAP, the soap.jar that ships with the XDK and should work with the XDK stack is unfortunately out of date. Your natural reaction to try to use the updated one is however where you will run into trouble as no one has regression tested 9.2.0.4 against the 9.0.3 soap.jar files.
Sorry for the long answer but hopefully it clarifies.
Mike.

Similar Messages

  • SOAP and SSL problem

    I am using JDeveloper 9.0.3 and the Oracle SOAP library which is shipped with Oracle JDeveloper.
    My application connects to a SSL enabled webservice.
    The first problem I encountered was a 'no njssl9 in java.library.path' error.
    I used the tips from Lehmann's BLogger site (http://radio.weblogs.com/0132036/2004/02/13.html).
    I could not get this working in JDeveloper 9.0.3 because JDev 9.0.3 is using java jdk 1.3 which has not JSSE built in.
    So I decided to use JDeveloper 9.0.5.2. which uses the java jdk 1.4.
    It works, however now I am stuck with an error that the certificate chain is incomplete.
    The webservice to which I connect sends only the 'last' certificate, so not the entire chain. Can this be the problem?
    I have a couple of questions:
    1) what do I have to do to ensure that my application trusts the webservice SSL certificates. I know I have to install
    the certificate somewhere in the cacerts file. But which certificate en how do I store it?
    2) Is it true that the Oracle SOAP library only works with the Oracle Wallet? Does that mean I cannot get Oracle SOAP
    to work on an Oracle Application Server with my application?
    3) Is there any way to solve the 'no njssl9 in java.library.path' error using the Oracle SOAP library in JDeveloper 9.0.3?

    2) For non-oracle wallets, you need to set the following
    # private key
    # certificate chain
    # trusted certificates
    OracleSSLCredential sslCredObj = new OracleSSLCredential();
    // Set trusted certificates
    sslCredObj.addTrustedCert(easQACA);
    // Construct certificate chain. Place CA at the top
    // and user certificate at the bottom. The order of
    // set certificates in the chain is important. You must set
    // root certificate first, then signer certificates, and finally user
    // certificate.
    sslCredObj.addCertChain(rootCA); (set root CA certificate)
    sslCredObj.addCertChain(signer CA);(set signer certificate)
    sslCredObj.addCertChain(userCert); (set user certificate)
    * Set private key
    sslCredObj.setPrivateKey(userKey, password);
    3) If you have Oracle IAS or database installation, the njssl libraries are under ORACLE_HOME\lib. Include ORACLE_HOME/lib in LD_LIBRARY_PATH or starting the javavm using
    -Djava.library.path=ORACLE_HOME/lib
    should solve the njssl error.

  • SOAP and XML

    How can I setup SOAP and web services to POST and GET XML file from the third party application?
    What document can I read? Thanks!

    If you are an Oracle9i JDeveloper user, you might want to try the Oracle9i JDeveloper guide which gives you a simple helloworld sample to get you going. This uses the SOAP environment that is automatically configured by default on OC4J. See:
    http://otn.oracle.com/sample_code/products/jdev/files/JDevRGuide.zip
    The Web service demo shows how an EJB can be published on OC4J as a Web service - basically by configuring a SOAP-aware servlet that front-ends your Java/PL/SQL component.
    For a more complete example check out the sample one that just came out the other day covering stateless and stateful Java classes, an EJB and a PL/SQL stored procedure:
    http://otn.oracle.com/sample_code/tech/java/web_services/
    For a set of examples of Web services that ship with OC4J, download OC4J and look in the directory:
    <OC4J_Home>\j2ee\home\demo\web_services\
    and take a read of the readme.txt. The area of OTN describing the OC4J Web services content is at:
    http://otn.oracle.com/tech/webservices/
    If you are looking for the Apache SOAP environment that ships with Oracle9iAS, simply look for the soap.ear file that is on the distribution. Normally this is located in <OC4J_Home>/soap/webapps/ but it might be easier to search the OC4J directory structure because its location changed between the 1.0.2.2 release and Release 2 now available here as noted above.
    Hope this gives a start.
    Mike.

  • Oracle BI and ADF application integration

    Hi ,
    I am trying to connect BI Presentation Service. but i am getting the following error.
    Connection attempt failed.
    java.lang.RuntimeException: Unable to retrieve logon token. This version requires a BI build that implements the version 7 SOAP interface. Please verify that you are using the correct BI version.
    Sep 25, 2012 5:40:57 PM oracle.bi.presentation.soap.connection.impl.LogonTokenImpl
    SEVERE: Perform impersonation was enabled for the BI Presentation Services SOAP connection, but there was no logged in user!
    I am using Oracle BI 11.1.1.3 and Jdev 11.1.1.6.
    With Regards,
    WP

    The report which you are trying to execute, can you see the security over there. I doubt that the security is creating a issue here while there is no relation between the BI version and ADF version.
    ADF call BI using webservice only, and webservice does not have any version specific things.
    --vipC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Oracle Portal and Discoverer Integration

    Portal Version: 9.0.2.0.1
    RDBMS Versjion: 9.0.1.3
    OS/Vers. Where Portal is Installed:: Suse 7 SLES
    Error Number(s)::
    Oracle Portal and Discoverer Integration
    We're trying to integrate Discoverer with Portal unsuccessfully.
    We made many things in accordance with oracle's documentation until add discoverer portlets (worksheet and list of workbooks) in a test page.
    In view mode, the worksheet portlet shows the error:
    "The portlet has not been defined. The publisher must define the portlet by clicking on Edit Defaults for the portlet on the edit mode of this page. Please contact the publisher of this page."
    We think we have to edit properties before. Is this? Anyway edit worksheet portlet crashes between step 1 and 2. The error is: "The listener returned the following Message: 500 Internal Server Error".
    We have a public conection created in EM and a discoverer application which can be viewed using plus or viewer.
    Furthermore, it's not possible delete the added portlets neither the page that contain it. The error at delete is:
    Error: An unexpected error occurred: User-Defined Exception (WWC-44082)
    (WWC-00000)
    An unexpected error has occurred in portlet instances: User-Defined Exception (WWC-
    44846)
    An unexpected error occurred: User-Defined Exception (WWC-43000)
    The following error occurred during the call to Web provider:
    oracle.portal.provider.v2.PortletNotFoundException
    at oracle.portal.utils.v2.ContainerException.fillInStackTrace(Unknown Source)
    at java.lang.Throwable.<init>(Throwable.java:78)
    at java.lang.Exception.<init>(Exception.java:29)
    at oracle.portal.utils.v2.ContainerException.<init>(Unknown Source)
    at oracle.portal.provider.v2.PortletException.<init>(Unknown Source)
    at oracle.portal.provider.v2.PortletNotFoundException.<init>(Unknown Source)
    at oracle.disco.portlet.provider.DiscoPortletPersonalizationMgr.destroy
    (DiscoPortletPersonalizationMgr.java:65)
    at oracle.portal.provider.v2.DefaultPortletInstance.deregister(Unknown Source)
    at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.deregisterPortlet
    (Unknown Source)
    at java.lang.reflect.Method.invoke(Native Method)
    at oracle.webdb.provider.v2.utils.soap.SOAPProcessor.doMethodCall(Unknown Source)
    at oracle.webdb.provider.v2.utils.soap.SOAPProcessor.processInternal(Unknown Source)
    at oracle.webdb.provider.v2.utils.soap.SOAPProcessor.process(Unknown Source)
    at oracle.webdb.provider.v2.adapter.SOAPServlet.doSOAPCall(Unknown Source)
    at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ResourceFilterChain.doFilter
    (ResourceFilterChain.java:59)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
    at com.evermind.server.http.ServletRequestDispatcher.invoke
    (ServletRequestDispatcher.java:523)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal
    (ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest
    (HttpRequestHandler.java:735)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    (WWC-43147)
    Edit properties for portlet List of Workbook works but in view mode we have the error in the portlet area:
    "Failed to refresh portlet. Please verify that the information used to create the
    portlet instance or customization is still valid. Otherwise, please contact your
    iAS administrator. oracle.discoiv.controller.FatalControllerException:
    DiscoNetworkException - Nested exception: org.omg.CORBA.OBJECT_NOT_EXIST: minor
    code: 0 completed: No null"
    Any ideas?
    Thanks

    Hi there,
    Have you applied any patches to 9ias since it was first installed? We had the same problem and had to apply a couple of patches to get the portlets working.
    1. Apply the 9.0.2.53.16 one-off patch for Oracle 9iAS Discoverer which takes Discoverer up to 9.0.2.53.16. This patch appears to be password protected and you need to get someone at Oracle support to give you a password.
    2. Apply the Discoverer Portlet Provider: 9.0.2.53.00c patch (patch no. 2595444) which gives you a new discportal.xsl file that actually works. It's this second step that solves your problem but you need to do step 1 before this. This is password protected as well.
    3. As you've upgraded Disco on the server to 9.0.2.53, you'll need to upgrade Disco Admin & Desktop within your 9iDS installation using patch no. 2555265. This is because Disco 9.0.2.53 uses an upgraded EUL that Disco Admin & Desktop need to be patched to use.
    This was the course of action Oracle support advised us about nine months ago. Of course they may have released a further patch to Disco that does 1 & 2 in one go, but we regularly carry out steps 1 and 2 on servers we use and we can use the Disco portlets successfully.
    Hope this helps
    Mark Rittman
    [email protected]

  • Problem with SQLServer 2000, JHS 9.0.5.1 and  jdev 9.0.5.1

    Hi,
    I have JHS 9.0.5.1.9, Jdeveloper 9.0.5.1 and RDBMS - SQLServer 2000, MS SQLServer 2000 jdbc driver sp2 (SelectMethod=cursor).
    When I try update recorods - errors: JBO-26080: Error while selecting entity for ... .
    Cause - FOR UPDATE cannot be specified on Read Only cursor.
    Setting LockTrailer to blank or "and 1=1" didn't help.
    jbo.323.compatible and jbo.903.compatible - didn't help.
    Should JHS (bc4j) work with MS SQLServer ?

    Yes, that is possible. See the JDeveloper online help. Do a full-text search for "non-Oracle datasources" and you will find a topic about Business Components for non-Oracle or foreign datasources.
    This is regardless of using JHeadstart or not, it is ADF Business Components (BC4J) functionality. You should be able to try it out using the BC4J tester (right-click your application module and choose Test).
    If you have further questions about this topic, the best discussion forum is probably http://otn.oracle.com/discussionforums/jdev.html .
    Hope this helps,
    Sandra Muller
    JHeadstart Team

  • SOAP and PL/SQL

    Can SOAP be generated through PL/SQL? Sure as a PL/SQL wrapper
    for the Java function. If so I would image that it would be
    included in an Oracle SDK or documentation. Could someone
    forward me the link please or reference. I have been looking at
    the documentation for XDK for PL/SQL and it does not seem to
    have any references to SOAP.
    Thanks in advance.
    Ben

    You can use JPublisher to wrap your PL/SQL program unit in Java
    and then deploy your Java to the Oracle SOAP server as a web
    service.
    Oracle9iAS Release 2.0 will make this much easier for you.

  • Oracle soap http connection

    I have a webservice deployed in oracle application server. Oracle provides a client stub that works fine for java applications. However when I use the stub as an component for application. I get an permission denied exception. The reason is the default constructor OracleSOAPHTTPConnection takes sysem property as its default property and applet is not allowed to access system property. However even if I use another version of constructor OracleSOAPHTTPConnection(Properties) with an empty properties instance, I still get the same exception. When I debug the code, it seems like the default parameterless constructor is called, rather than the argumented constructor. Can anybody help me out of this? Does anyone have some advise for using soap client in applet?
    My exception stack is attached:
    java.lang.ExeptionInInitializerError
    at MicromagWeb.proxy.MicromagServiceProxy.<init>
    at sun.applet.AppletPanel.run
    at java.lang.Thread.run
    Caused by:
    java.security.AccessControlException: access denied (java.util.PropertyPermission *read, write)
    at java.security.AccessControlContext.checkPermission
    at java.security.AccessController.checkPermission
    at java.lang.SecurityManager.checkPermission
    at java.lang.SecurityManager.checkProeprtiesAccess
    at oracle.soap.transport.http.OracleSOAPHTTPConnection.client(OracleSOAPHTTPConnection.java 105)

    Sorry, the error comes out when soap client stub is
    used as applet component, not as application component.
    I have a webservice deployed in oracle application
    server. Oracle provides a client stub that works fine
    for java applications. However when I use the stub as
    an component for applet. I get an permission
    denied exception. The reason is the default
    constructor OracleSOAPHTTPConnection takes sysem
    property as its default property and applet is not
    allowed to access system property. However even if I
    use another version of constructor
    OracleSOAPHTTPConnection(Properties) with an empty
    properties instance, I still get the same exception.
    When I debug the code, it seems like the default
    parameterless constructor is called, rather than the
    argumented constructor. Can anybody help me out of
    this? Does anyone have some advise for using soap
    client in applet?
    My exception stack is attached:
    java.lang.ExeptionInInitializerError
    at MicromagWeb.proxy.MicromagServiceProxy.<init>
    at sun.applet.AppletPanel.run
    at java.lang.Thread.run
    Caused by:
    java.security.AccessControlException: access denied
    (java.util.PropertyPermission *read, write)
    at java.security.AccessControlContext.checkPermission
    at java.security.AccessController.checkPermission
    at java.lang.SecurityManager.checkPermission
    at java.lang.SecurityManager.checkProeprtiesAccess
    at
    oracle.soap.transport.http.OracleSOAPHTTPConnection.cli
    nt(OracleSOAPHTTPConnection.java 105)

  • Oracle SOAP

    Hi,
    Whenever we use Jdeveloper to create web service automatically, JDeveloper will include Oracle SOAP library. Is there any way to ask JDeveloper to use other SOAP library, eg. an open source SOAP library if there's one?
    Please advise.
    Thank you.

    The Wizards that are integrated in JDeveloper are only able to deal with Oracle's SOAP libraries. If you want to use other open-source libraries, like Apache's Axis, you will have to use the tooling support that is comming with the project - java2wsdl and the ANT tasks.
    All the best,
    Eric

  • Soap and proxyservers

    I'm using oracle soap for a webservice with complex types. The client is an java client and uses the code generated by the soapserver(?proxy_jar). This client needs to connect to the server via a proxyserver. How can I accomplish this.
    Thanks
    Arny

    //Here is an example of a client stub which does not use wallet for proxy authentication
    //Hope it helps....
    import oracle.soap.transport.http.OracleSOAPHTTPConnection;
    import java.net.URL;
    import org.apache.soap.Body;
    import org.apache.soap.Envelope;
    import org.apache.soap.messaging.Message;
    import org.w3c.dom.*;
    import java.util.Vector;
    public final class RecieveStub
    public static final String endpoint = "http://dev1.server.net/service.asmx";
    private OracleSOAPHTTPConnection m_httpConnection = null;
    public ServiceStub()
    //These lines takes care of authentication
    System.setProperty("oracle.soap.transport.noHTTPClient", "true");
    m_httpConnection = new OracleSOAPHTTPConnection();
    m_httpConnection.setProxyHost("23.250.2.18");
    m_httpConnection.setProxyPort(80);
    m_httpConnection.setProxyUserName("username");
    m_httpConnection.setProxyPassword("password");
    public Vector test(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); //Important - applies the settings.
    msg.send(endpointURL, "http://tempuri.org/test", requestEnv);
    Envelope responseEnv = msg.receiveEnvelope();
    Body responseBody = responseEnv.getBody();
    return responseBody.getBodyEntries();
    }

  • SOAP and XML-RPC

    Which are Oracle's plans for supporting SOAP and XML-RPC?

    Oracle iAS 9i release 1.0.2.2 contains SOAP server support for Java programmers.
    Oracle iAS 9i release 2.0 will feature more support, as will an upcoming version of JDeveloper to simplify the development and use of Web Services.

  • Problem in ant task "oracle:jaxwsGenImpl " on Jdev 11G Tech Preview 4

    I am running an ant task in Oracle JDeveloper 11g Tech Preview 4
    the Task is as follows :
    <target name="generate-from-wsdl5" >
    <oracle:jaxwsGenImpl
    wsdl="contract/wsdl/${SRC_WSDL}"
    />
    </target>
    The Output is :
    D:\Pras3\WebServiceRi\ws>ant generate-from-wsdl5
    Buildfile: build.xml
    [taskdef] File D:\Pras3\WebServiceRi\ws\oracle\antlib.xml does not exist
    generate-from-wsdl5:
    BUILD FAILED
    D:\Pras3\WebServiceRi\ws\build.xml:188: Problem: failed to create task or type antlib:oracle:jaxwsGenImpl
    Cause: The name is undefined.
    Action: Check the spelling.
    Action: Check that any custom tasks/types have been declared.
    Action: Check that any <presetdef>/<macrodef> declarations have taken place.
    This appears to be an antlib declaration.
    Action: Check that the implementing library exists in one of:
    -D:\Jdev11-Tecpr4\ant\lib
    -C:\Documents and Settings\jnandi\.ant\lib
    -a directory added on the command line with the -lib argument
    Total time: 0 seconds
    I am getting the above error can sommeone please help me and please tell me how to use the ant task "oracle:jaxwsGenImpl " on Jdev 11G Tech Preview 4 or Jdev 11G Tech Prev 4 dont support this
    Thanks and Regards
    Jyoti

    Hi,
    the JDeveloper 11 forum is: JDeveloper and OC4J 11g Technology Preview
    Frank

  • Problem :ant task "oracle:jaxwsGenImpl " on Jdev 11G Tech Preview 4

    Hi,
    I am running an ant task in Oracle JDeveloper 11g Tech Preview 4
    the Task is as follows :
    <target name="generate-from-wsdl5" >
    <oracle:jaxwsGenImpl
    wsdl="contract/wsdl/${SRC_WSDL}"
    />
    </target>
    The Output is :
    D:\Pras3\WebServiceRi\ws>ant generate-from-wsdl5
    Buildfile: build.xml
    [taskdef] File D:\Pras3\WebServiceRi\ws\oracle\antlib.xml does not exist
    generate-from-wsdl5:
    BUILD FAILED
    D:\Pras3\WebServiceRi\ws\build.xml:188: Problem: failed to create task or type antlib:oracle:jaxwsGenImpl
    Cause: The name is undefined.
    Action: Check the spelling.
    Action: Check that any custom tasks/types have been declared.
    Action: Check that any <presetdef>/<macrodef> declarations have taken place.
    This appears to be an antlib declaration.
    Action: Check that the implementing library exists in one of:
    -D:\Jdev11-Tecpr4\ant\lib
    -C:\Documents and Settings\jnandi\.ant\lib
    -a directory added on the command line with the -lib argument
    Total time: 0 seconds
    I am getting the above error can sommeone please help me and please tell me how to use the ant task "oracle:jaxwsGenImpl " on Jdev 11G Tech Preview 4 or Jdev 11G Tech Prev 4 dont support this
    Thanks and Regards
    Jyoti

    Hi,
    the JDeveloper 11 forum is: JDeveloper and OC4J 11g Technology Preview
    Frank

  • Oracle, Null and empty Strings

    Currently I'm facing problems with a class, which contains a String, which
    is set to "" (empty String).
    When the class is persistent, oracle writes null to the table column
    (which seems to be common oracle behaviour) and when retrieving the class,
    the field is set to null as well, giving me a lot of null-pointer
    exceptions.
    Anyway ... I can cope with that (just a lot of extra work)
    far worse is the problem, wenn searching objects, that have this field set
    to "" oder null.
    Oracle can't find the records because JDO creates Querys "where
    string=null" or "where string=''" , where oracle expects "where string is
    null" to find the records.
    Is there a workaround or solution ?

    Yeah, that would work as well, thx, but since I have to cope with
    null-Strings now everywhere in my program, it doesn't hurt just to forbid
    empty strings on the program side.
    In future times I'll test on Oracle first, then porting to DB/2 - this way
    I suppose work is far less to garant compability.
    Nevertheless ... having to set the bankcode into quotes is a kodo bug in
    my opinion.
    Kodo knows the type of classfields (in this case string) and shouldn't
    send the parameter as a BigDecimal to the database.
    Given that, and having only bankcodes of null (only neccesary when using
    Oracle), the method would look like:
    public Collection getAccounts (String bankCode)
    throws Exception
    return getAccounts (Account.class, "bankcode=="+bankcode);
    which is how a transparent persistent layer, um, should be , um , I mean
    ... just transparent ;-D
    Marc Prud'hommeaux wrote:
    Stefan-
    Couldn't you just do something like:
    public Collection getAccounts (String bankCode)
    throws Exception
    String filter;
    if (bankCode == null || bankCode.length () == 0)
    filter = "(bankCode == null || bankCode == "")";
    else
    filter = "bankCode == "" + bankCode + """;
    return getAccounts (Account.class, filter);
    If I understand the problem correctly, this should work for all the
    databases.
    In article <[email protected]>, Stefan wrote:
    What operations are you performing to cause this SQL to be issued? You
    say you are having trouble removing objects, but this is clearly not a
    DELETE statement. Is this the SQL that is issued when looking up
    objects by identity?I'm not removing objects, I was removing just quotes from parameters ;-)
    A string column... is it also represented as a string field in your class?Yeah ... just to give you an impression of the code:
    First we have a class, representing a bank account:
    public class Account {
    private AccountMgr myAccountMgr;
    private String bankCode;
    private String id;
    Note, that in nearly all cases bankCode will be a number or null.
    I have a second class "AccountMgr", which does all of the persistant stuff
    (seaching, making persistent etc.)
    This class has two methods, one versatile (protected) to retrieve accounts
    by a given filterString and one who just returns accounts by bankCode,
    building the expected filterstring. Here is my current working version:
    public class AccountMgr {
    public Collection getAccounts(String bankCode) throws Exception {
    if (bankCode!=null) {
    if (bankCode.equals("")) {
    throw new Exception("check code, bankCode='' not allowed to get
    same behavior from DB2 and Oracle");
    // if set, quote the bankCode
    bankCode="""+bankCode+""";
    return getAccounts(Account.class,"bankCode=="+bankCode);
    protected Collection getAccounts(Class accountClass, String filterAdd)
    throws Exception {
    PersistenceManager pm = MyHelper.getPersistenceManager();
    String filter="";
    if (filterAdd!=null && !filterAdd.trim().equals("")) {
    filter+=filterAdd + " && ";
    filter += "myAccountMgr==_accMgr";
    Query query = pm.newQuery(accountClass, filter);
    query.declareParameters("AccountMgr _accMgr");
    return (Collection) query.execute(this);
    As you can see, in the first method I have to set the bankCode into
    quotes, when it's not null.
    This is because otherwise a filter like "bankCode=1234" will be translated
    in a way, where 1234 is send as a BigDecimal to the database:
    [...] executing statement <4239745>: (SELECT [...] FROM JDO_ACCOUNT t0
    WHERE t0.BANKCODE = ? : [reused=1;params={(BigDecimal) 1234}]
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Select query differences between oracle 9 and oracle 8.

    Hi,
    I have a problem using the select query between oracle 7 and oracle 9i I don't have the same result :
    ex:
    With oracle7
    SQL> select 'champ1','champ2' from DUAL;
    'CHAMP 'CHAMP
    champ1 champ2
    With Oracle 9
    SQL> select 'champ1','champ2' from DUAL;
    'CHAMP1' 'CHAMP2'
    champ1 champ2
    So Can someone tell me how to solve this problem ? Is there a parameter in oracle 9 to set?
    Thanx.

    Whenever you are posting anything over internet forums like this - you should be very careful about not just posting the details which requires to solve the problem - also should be sensible about your question.
    This is not at all desired when you are posting such question. It may be because - you may not well aware of the fact.
    My suggestion is -> First Go through the basics Of SQL in general.
    Then go for any specific product like Oracle/ SQL Server/ Sybase etc.
    And, finally learn the advanced commands of that DB.
    You asked it - may be you thought the difference in output in terms of lines. But, that is not your actual output. That is the graphical display part only.
    Anyway,
    You can get the quite familier output by first type the following command ->
    set lin 310Regards.
    Satyaki De.

Maybe you are looking for

  • Problem with Microsoft LX-3000 Headset

    I just got a Pavillion DV7 A1T85UAR#ABA. I love evrything about this system, but I can't get my Microsoft LX-3000 USB headset to work. I have installed the audio drivers for both 32bit x86 and 64bit x64. When I go to the sound and check the headset o

  • Problem in Translation Transport

    Hi, I have done the translation of the Text element using SE38. But my problem is that even i manually include the objects in the transport request. the translation is not reflecting in the target system. Thanks, Martin

  • Converting JPanels as image objects

    hi, i am having problem in converting a JPanel object which consits of some JLabels and images into a Image Object. Actually i want to save the JPanel as a jpg file which i will do with jped encoder. so please help me in converting this JPanel to ima

  • Multiple Copies of Same Page Content from Various Trays

    I use 'gs' to create postscript, and 'setpagedevice' to specify trays. I print a single page of content (say the file "f.pdf") on each of six different colors of paper, which are pulled from different trays.   At the moment, I do this by repeating th

  • Query Related to dates

    Hi i have a table ABC in which i declared two date columns START_DATE AND END_DATE . I want to extract all the dates between these two dates which is not specified into table. eg START_DATE=12-JUN-2009 END_DATE=15-JUN-2009 SELECT TO_DATE(START_DATE,