Strange problem with procedure calling from Java!!!

I am using Oracle 8.1.7 Database, Oracle 8i Application server and WInNT platform.
I am facing a strange problem while inserting a String from Java to Oracle database through Procedure. When i am passing the String containing single quotes(e.g "test' and ' and ' end") and without including any escape charactes for the single quotes I am passing the String by the setString() method then the procedure is inserting the single quotes without any problem.
Of course when I am independently executing the procedure thru backend and passing the same String containing single quotes then the error message comes as " quoted string not properly terminated" which is justified,
I have even printed the String in a file through sql on the runtime of the procedure when it is called by Java and then also the String contatins single quotes that is passed through java without any escape characters. This means that procedure is inserting the String into the column without any hassles!!!!!
Can anyone tell me what may be the reason for the peculiar behaviour of Database?
Thanks

Sri Ram wrote:
No actually in the documentation of oracle database 10g plsql user guide, oracle explains the concept of declaring nested plsql subprograms he gave the example but in the main block he gave NULL, without calling any procedure.Can you provide a link to where in the Oracle documentation you saw this example?
in order to know which procedure is getting first i added a dbms statement in both the functions and called the function from the main block.
the original example was
DECLARE
PROCEDURE proc1(number1 NUMBER); -- forward declaration
PROCEDURE proc2(number2 NUMBER) IS
BEGIN
proc1(number2); -- calls proc1
END;
PROCEDURE proc1(number1 NUMBER) IS
BEGIN
proc2 (number1); -- calls proc2
END;
BEGIN
NULL;
END;
---------------------------------------------------------------------------------------------------------The original example is equivalent to:
BEGIN
   NULL;
END;That is, the main block never calls anything. Either you are misinterpreting the Oracle documentation, or if the example came from a non-Oracle source as I suspect, the author of that example has a deeply flawed understanding of how programming works.
John

Similar Messages

  • Passing UDT TABLE of VARCHAR as an Input parameter in Stored procedure call from java

    I have following Type defined at the schema: ident_arr IS TABLE OF VARCHAR2(100) which is type of one of the input parameters. I am able to create oracle.sql.ARRAY object to map it with this UDT before calling my stored procedure from java. When I execute my stored procedure, I get the following error:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'P_PV_WCC_INSERT'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    I have already checked all other parameter types.

    Hello,
    Thank you, guys, for advice. I should have explained calling context before, but what I basically need to do is to see if procedure(arg1, list(record(arg2, arg3))) returns true.
    I see array binding wouldn't fit there nicely. Internal procedure calls would be proc(next(arg1), next(arg2), next(arg3)) - if all these return true, external call should also return true. I would need to make a list of repeating values of arg1 and separate list(record(arg2, arg3)) into separate lists. I would also need to record whether the internal call returns true to deduce whether external call returns true.
    As I see no better way yet, I'll make Oracle procedure proc(arg1, arg2, arg3) and implement a loop in .NET side. If I optimize for performance, I'll probably pack the array of records into string and pass it for Oracle side to parse.
    Regards,
    Aurimas Pranskevicius

  • Strange problem with ORA-12154 from only one client

    Hi all,
    I have a strange problem.
    I have three 11.2.0.1 databases on three different hosts.
    For simplicity lets say:
    Host1: database ovm1a
    Host2: database ovm7a
    Host3: database ovm8a
    I have a database schema in all three databases named EHJ. In all three databases, there are fixed user
    database links to the other databases. So EHJ in ovm1a has two links, one to ovm7a and one to ovm8a. The EHJ schema in ovm7a has two fixed user links to the EHJ schema in the ovm1a and ovm8a databases. And the same is true for the EHJ schema in the third database, ovm8a.
    If I log into the EHJ schema for each of the three databases, I can successfully select over the database links. I've been using the SQL statement: select count(*) from user_users@dblink_name;
    For each of the two links in each of the three databases, the query returns 1 so I know the database links are working properly and I have my networking setup properly.
    Now, here is the weirdness.
    I have an Oracle Application Server where our Oracle Forms and Reports run. The Oracle client on this install is 10.1.0.5. I've got a tnsnames.ora file setup on this Oracle App server to connect to all three databases ovm1a, ovm7a and ovm8a. I can successfully use the 10.2.0.5 client SQL*PLUS to connect to the EHJ schema in the ovms1, ovms7 and ovms8 databases.
    However, (and only when) connected to the ovm1a database from this client, attempts to select over the link throw the famous error: ORA-12154: TNS:could not resolve the connect identifier specified
    This error happens with both links in the ovm1a database when connected via this one client.
    BUT, if I connect using the same 10.1.0.5 client to the EHJ schema in the ovm7a or ovm8a databases, the database links in those two databases are working just fine.
    I'm pulling my hair out trying to figure this out.
    I've tried using SQL*PLUS from my desktop machine (10g R2 client) connecting to the EHJ schema on all three databases and the db links all work fine.
    Any help in trying to troubleshoot this would be greatly appreciated.
    Cheers

    JSebastian wrote:
    I have an Oracle Application Server where our Oracle Forms and Reports run. The Oracle client on this install is 10.1.0.5. I've got a tnsnames.ora file setup on this Oracle App server to connect to all three databases ovm1a, ovm7a and ovm8a.But the client (and tnsnames.ora) in question here is actually one (each) of the three databases, right? I.e. error is thrown by the db server, acting as client (db link side).
    >
    However, (and only when) connected to the ovm1a database from this client, attempts to select over the link throw the famous error: ORA-12154: TNS:could not resolve the connect identifier specified Connected how, as opposed to when you "successfully select..."?
    This error happens with both links in the ovm1a database when connected via this one client.Does Oracle config files on ovma1 host differ from the other two db hosts?
    Does
    SQL> select property_name,property_value from database_properties
      2  where property_name in ('GLOBAL_DB_NAME','NLS_RDBMS_VERSION');
    SQL> select owner,db_link,host from dba_db_links;return as expected on all three db's?
    I've tried using SQL*PLUS from my desktop machine (10g R2 client) connecting to the EHJ schema on all three databases and the db links all work fine.Make sure you are connecting to correct databases. (Simply, three tns aliases could all be pointing to the same database.)
    Edited by: orafad on May 25, 2011 11:24 PM

  • SPA8000 Problem with outgoing calls from trunk

    Hi all,
    I have SPA8000 with the latest firmware 6.1.12.
    Tried the first time to configure the trunk groups. With incoming calls it caused no problems. But with the outgoing calls cannot solve the problem:
    When dialing, the SPA8000 try found number to itself.
    Port 8 in trunk group 1.
    10.120.0.67 - ip of SPA8000.
    172.17.1.1 - ip of PBX
    302 - number of trunk.
    444 - other number on PBX.
    INVITE sip:[email protected]:6060 SIP/2.0
    Via: SIP/2.0/UDP 10.120.0.67:5361;branch=z9hG4bK-e9bbff35
    From: <sip:[email protected]>;tag=1e668866b76f0b0do1
    To: <sip:[email protected]>
    Remote-Party-ID: <sip:[email protected]:6060>;screen=yes;party=calling
    Call-ID: [email protected]
    CSeq: 101 INVITE
    Max-Forwards: 70
    Contact: <sip:[email protected]:5361>
    Expires: 240
    User-Agent: Linksys/SPA8000-6.1.12
    Allow-Events: talk, hold, conference
    Content-Length: 202
    Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
    Supported: x-sipura, replaces
    Content-Type: application/sdp
    v=0
    o=- 13756 13756 IN IP4 10.120.0.67
    s=-
    c=IN IP4 10.120.0.67
    t=0 0
    m=audio 19469 RTP/AVP 8 101
    a=rtpmap:8 PCMA/8000
    a=rtpmap:101 telephone-event/8000
    a=fmtp:101 0-15
    a=ptime:30
    a=sendrecv
    SIP/2.0 404 Not Found
    To: <sip:[email protected]>;tag=63d33124-0
    From: <sip:[email protected]>;tag=1e668866b76f0b0do1
    Call-ID: [email protected]
    CSeq: 101 INVITE
    Via: SIP/2.0/UDP 10.120.0.67:5361;branch=z9hG4bK-e9bbff35
    Server: Linksys/SPA8000-6.1.12
    Allow-Events: talk, hold, conference
    Content-Length: 0
    What is wrong? What must I do to outgoing call?
    Screenshots of configuration:

    Hey!
    Thank u soo much ana_bidi! It worked and my phone is back to life
    I even sent an email to Nokia and I got the weirdest reply ever! They were telling me to check if my sim was inserted correctly I was like whaaaat? And I did mention to them that I can receive calls and send/recieve SMS! I seriously don't know what made them suggest that thing
    Anyways thanks again for the solution!
    Have a great day! 
    Walid Shaaya

  • Problem with incoming call from pstn

    Hi,
    we have a 2610XM router with CCME 3.2 and 4 bri
    and we don't redirect incomming call from pstn on a internal IP Phone.
    which command for redirect call ?
    my isdn number (french) is 0156838050
    and when we call this number with my mobile (number 0685284832), look this debug
    debug isdn q931:
    Mar 22 12:53:46.350: ISDN BR1/0 Q931: Ux_DLRelInd: DL_REL_IND received from L2
    *Mar 22 12:53:46.378: ISDN BR1/0 Q931: RX <- SETUP pd = 8 callref = 0x73
    Bearer Capability i = 0x8090A3
    Standard = CCITT
    Transer Capability = Speech
    Transfer Mode = Circuit
    Transfer Rate = 64 kbit/s
    Channel ID i = 0x89
    Calling Party Number i = 0x2083, '685284832'
    Plan:Unknown, Type:National
    Called Party Number i = 0x81, '8050'
    Plan:ISDN, Type:Unknown
    Sending Complete
    *Mar 22 12:53:46.382: %ISDN-6-LAYER2UP: Layer 2 for Interface BR1/0, TEI 64 changed to up
    Router#
    *Mar 22 12:53:46.415: ISDN BR1/0 Q931: TX -> CALL_PROC pd = 8 callref = 0xF3
    Channel ID i = 0x89
    *Mar 22 12:53:46.439: ISDN BR1/0 Q931: TX -> DISCONNECT pd = 8 callref = 0xF3
    Cause i = 0x8081 - Unallocated/unassigned number
    *Mar 22 12:53:46.527: ISDN BR1/0 Q931: RX <- RELEASE_COMP pd = 8 callref = 0x73
    Cause i = 0x87E4 - Invalid information element contents
    Router#
    thanks for your help

    You have to either use a transfer pattern or a translation rule.
    http://www.cisco.com/en/US/products/sw/iosswrel/ps5012/products_feature_guide_chapter09186a00801812db.html

  • Problems with data controls from java classes in JSF pages.

    Hi! We have a problem in our Application that we are developing with JSF pages using Data Controls generated from facades java classes. When we running a page in debug mode and the page are loading, if we insert a breakpoint in the first line of method referenced in the data control, the execution enter two times in the method, and this is a problem for us. How to solve this?
    We are using JDeveloper 11.1.1.2 with ADF faces.

    You might need to play around with the refresh property of the action binding.
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/adf_lifecycle.htm#BJECHBHF

  • Problem with function call from sql when using distinct

    I have the following problem.
    SELECT DISTINCT colA from tabA where my_function(colB) = 'TRUE'
    This statement will return a handfull of results from a table with 70k + records. The function takes about 0.5 secs to execute.
    How do i force the optimizer to do the select distinct first then execute the function on the results rather than execute the function for every single line first?
    Thanks in advance
    Keith

    Let's compare some of those methods:
    michaels>  CREATE OR REPLACE FUNCTION my_function (tr VARCHAR2)
       RETURN VARCHAR2
    AS
    BEGIN
       DBMS_APPLICATION_INFO.set_client_info (SYS_CONTEXT ('userenv','client_info') + 1);
       IF LOWER (tr) LIKE '%name%'
       THEN
          RETURN 'TRUE';
       ELSE
          RETURN 'FALSE';
       END IF;
    END my_function;
    Function created.
    michaels>  CREATE TABLE taba AS SELECT object_id cola ,object_name colb FROM all_arguments
    Table created.
    michaels>  SELECT COUNT(*) FROM taba
      COUNT(*)
         78786
    michaels>  EXEC dbms_application_info.set_client_info(0)
    michaels>  SELECT DISTINCT colA from tabA where my_function(colB) = 'TRUE'
    167 rows selected.
    michaels>  SELECT SYS_CONTEXT ('userenv','client_info') ci FROM dual
    CI   
    78786
    michaels>  EXEC dbms_application_info.set_client_info(0)
    michaels>  SELECT DISTINCT cola FROM (SELECT ROWNUM r, t.* FROM (SELECT DISTINCT cola, colb FROM taba) t)
              WHERE my_function (colb) = 'TRUE'
    167 rows selected.
    michaels>  SELECT SYS_CONTEXT ('userenv','client_info') ci FROM dual
    CI   
    14225
    michaels>  EXEC dbms_application_info.set_client_info(0)
    michaels>  SELECT DISTINCT cola FROM taba WHERE (SELECT my_function (colb) FROM DUAL) = 'TRUE'
    167 rows selected.
    michaels>  SELECT SYS_CONTEXT ('userenv','client_info') ci FROM dual
    CI   
    14281
    michaels>  EXEC dbms_application_info.set_client_info(0)
    michaels>  SELECT DISTINCT cola FROM taba WHERE EXISTS (SELECT ROWNUM FROM dual WHERE my_function (colb) = 'TRUE')
    167 rows selected.
    michaels>  SELECT SYS_CONTEXT ('userenv','client_info') ci FROM dual
    CI   
    13913
    michaels>  EXEC dbms_application_info.set_client_info(0)
    michaels>  WITH temp AS
      (SELECT DISTINCT colA, colB FROM tabA)
    SELECT DISTINCT colA FROM temp WHERE  my_function(colB) = 'TRUE'
    167 rows selected.
    michaels>  SELECT SYS_CONTEXT ('userenv','client_info') ci FROM dual
    CI   
    78786
    michaels>  EXEC dbms_application_info.set_client_info(0)
    michaels>  WITH temp AS
      (SELECT colB, my_function(colB) func FROM (SELECT DISTINCT colB FROM   tabA))
    SELECT DISTINCT colA FROM tabA a, temp t WHERE  a.colB = t.colB AND t.func = 'TRUE'
    michaels>  SELECT SYS_CONTEXT ('userenv','client_info') ci FROM dual
    CI   
    78786 The combination with exists, rownum and dual gives the least calls to the function.

  • Problems with running applet from Java Tutorial

    Hello
    I'd like to compile applet from Lesson Applets, trail: Deployment, title of lesson: A Simple Network Client Applet. But at the beginning of the source code is written that it will work only with: JavaSE 5 version.
    * SwingWorker can be downloaded at:
    * https://swingworker.dev.java.net/
    * SwingWorker must be downloaded for JavaSE 5, but will be included
    * in JavaSE 6.
    Well, does anyone know about applet doing the same thing which would work in older versions of JDK?. Do I necessarily have to install JavaSE6?. I have J2EE 1.4SDK and I run into errors compiling this example.
    Cheers
    Message was edited by:
    macmacmac

    I've got another applet which was written for version 1.1 of Java. It compiles but when I run it, instead of letters of quote I get rectangles, positioned one next to the other. So I can't read the quote. What's wrong with this applet?. Here's the code of it:
    * 1.1 version.
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class QuoteClientApplet3 extends Applet
    implements ActionListener {
    boolean DEBUG = false;
    InetAddress address;
    TextField portField;
    Label display;
    DatagramSocket socket;
    public void init() {
    //Initialize networking stuff.
    String host = getCodeBase().getHost();
    try {
    address = InetAddress.getByName(host);
    } catch (UnknownHostException e) {
    System.out.println("Couldn't get Internet address: Unknown host");
    // What should we do?
    try {
    socket = new DatagramSocket();
    } catch (IOException e) {
    System.out.println("Couldn't create new DatagramSocket");
    return;
    //Set up the UI.
    GridBagLayout gridBag = new GridBagLayout();
    GridBagConstraints c = new GridBagConstraints();
    setLayout(gridBag);
    Label l1 = new Label("Quote of the Moment:", Label.CENTER);
    c.anchor = GridBagConstraints.SOUTH;
    c.gridwidth = GridBagConstraints.REMAINDER;
    gridBag.setConstraints(l1, c);
    add(l1);
    display = new Label("(no quote received yet)", Label.CENTER);
    c.anchor = GridBagConstraints.NORTH;
    c.weightx = 1.0;
    c.fill = GridBagConstraints.HORIZONTAL;
    gridBag.setConstraints(display, c);
    add(display);
    Label l2 = new Label("Enter the port (on host " + host
    + ") to send the request to:",
    Label.RIGHT);
    c.anchor = GridBagConstraints.SOUTH;
    c.gridwidth = 1;
    c.weightx = 0.0;
    c.weighty = 1.0;
    c.fill = GridBagConstraints.NONE;
    gridBag.setConstraints(l2, c);
    add(l2);
    portField = new TextField(6);
    gridBag.setConstraints(portField, c);
    add(portField);
    Button button = new Button("Send");
    gridBag.setConstraints(button, c);
    add(button);
    portField.addActionListener(this);
    button.addActionListener(this);
    public Insets getInsets() {
    return new Insets(4,4,5,5);
    public void paint(Graphics g) {
    Dimension d = getSize();
    Color bg = getBackground();
    g.setColor(bg);
    g.draw3DRect(0, 0, d.width - 1, d.height - 1, true);
    g.draw3DRect(3, 3, d.width - 7, d.height - 7, false);
    void doIt(int port) {
    DatagramPacket packet;
    byte[] sendBuf = new byte[256];
    packet = new DatagramPacket(sendBuf, 256, address, port);
    try { // send request
    if (DEBUG) {
    System.out.println("Applet about to send packet to address "
    + address + " at port " + port);
    socket.send(packet);
    if (DEBUG) {
    System.out.println("Applet sent packet.");
    } catch (IOException e) {
    System.out.println("Applet socket.send failed:");
    e.printStackTrace();
    return;
    packet = new DatagramPacket(sendBuf, 256);
    try { // get response
    if (DEBUG) {
    System.out.println("Applet about to call socket.receive().");
    socket.receive(packet);
    if (DEBUG) {
    System.out.println("Applet returned from socket.receive().");
    } catch (IOException e) {
    System.out.println("Applet socket.receive failed:");
    e.printStackTrace();
    return;
    String received = new String(packet.getData());
    if (DEBUG) {
    System.out.println("Quote of the Moment: " + received);
    display.setText(received);
    public void actionPerformed(ActionEvent event) {
    int port;
    try {
    port = Integer.parseInt(portField.getText());
    doIt(port);
    } catch (NumberFormatException e) {
    //No integer entered. Should warn the user.
    }

  • Problem with f95 called from make inference rule

    I am porting an existing FORTRAN application to a Sun Solaris machine.  The application is built with a moderately large make file and the source files span multiple directories (basically grouped by functionality).  All foo.f,  foo.o  and foo.lst files are referenced by their absolute path names within the make file.  The Sun Studio 12.3 FORTRAN compiler successfully finds the /home/uid/ ... /foo.f files from all the source directories as input and writes foo.lst files to the same directory as was specified for the matching foo.f file.  However, foo.o object files are written to the current working directory from where the make was executed and not to the same directory as the corresponding foo.f file.
    Using a different make does not change the outcome.
    Changing compilers (with no other change to the make) restores the proper functionality for writing output files to the same directory as was specified by the corresponding *.f locations.
    Have I found a bug or am I just making a newbie's mistake ?

    Sorry, I missed that info. I can reproduce the problem when combining -Xlist with -c option only.
    Look like we have a bug with the new driver when combining the two output options and producing the two output files in the same compilation.
    In this case, the -Xlisto is still accepted and produces the output .lst file at the specified location but the -o option for the ,o file is completely ignored. Is that what you ran into ?
    Since the -Xlist option is not needed to build the application, you can work around the problem by removing the -Xlist option to build the app and use the -Xlist option only when you need to look at the .lst file.
    Sorry about the trouble.

  • Strange problem with removing element from node

    Hi,
    I have a problem when I removed elements from a node.
    here is the code:
    String text = "123456";
    IANode nodeA= wdContext.nodeA();
    wdContext.nodeB().invalidate();
    IBNode nodeB = wdContext.nodeB();
    for(int i=0; i<nodeA.size(); i++)
    IAElement e = nodeA.getEt_Emp_RespElementAt(i);
    if (e.getID().compareTo(text)!= 0)
         nodeB.removeElement(e);
    else
    wdComponentAPI.getMessageManager().reportSuccess(e.getID() + " was not removed");
    The node A does have a row with field "ID" equals to 123456.
    When running the application, it does write that "123456" was not removed...but it removes it....In fact my table is now empty.
    How is it possible if it didn't perform the remove operation for ID = 123456 ?
    Thanks in advance.

    David,
    Because you are iterating node in wrong direction: see my reply to your post Re: Loop problem (seems that you assigns me 2 points without reading reply, and mark it as solved just because you stop solving it
    So, in example in this thread, you must iterate node B in reverse direction, get element from B and remove it from B if it has some specific ID.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • Problem with opening browser from Java app.

    Hi guys, I'm not sure if this is the right place to post this, so please excuse me if I'm wrong. I'm trying to open an html page (it's a help file) from a Java application. I'm currently using java.awt.Desktop.     browse(URI uri); which gets the job done, as long as I don't pass any parameters to the page. (e.g. http://www.site.com/site.html?param1=1). Doing that gives me an IOException. Is there a way to do this without using the JNLP API?

    This is the file path copied directly from the browser's address bar:
    file:///home/riaan/EMCHelp/Help.html?page=WorkFlowActivityCategory.html"{code}
    Which causes the app to throw an exception, but when I change it to:
    {code}file:///home/riaan/EMCHelp/Help.html{code}
    it opens Help.html in the browser.  That's why I thought that it might be the query that's a problem.  Perhaps it's a simple issue of not escaping a character or something that I failed to see.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Lync 2013 I have a strange problem concerning group call pickup in lync 2013.the pickup calls on snom 710 having only a second delay, but in lync client it having about 5-7 second Anybody out there having similar problems with call pickup Groups?

    HI
    I have a strange problem concerning  group call pickup  in lync 2013.the pickup calls on snom 710 having only a second delay, but in lync client it having  about 5-7 second
    Anybody out there having similar problems with call pickup Groups?

    Hi,
    Did you meet any other call delay when you using Lync?
    As the issue happen for Lync desktop client, it can be performance issue. Please check if there is any error message from FE Server when the issue happen.
    Also please check if you have updated Lync Server to the latest version, if not, update it and then test again.
    Best Regards,
    Eason Huang  
    Eason Huang
    TechNet Community Support

  • I have a problem with color prints from photoshop elements 12. The pictures are too light and with strange colors. I have a Canon pixma mg615I0 printer and use mac os X yosemite. The pictures are taken with a coanon eos 550d in the color space sRGB. I hav

    Hi
    I have a problem with color prints from photoshop elements 12. The pictures are too light and with strange colors. I have a Canon pixma mg615I0 printer and use mac os X yosemite. The pictures are taken with a coanon eos 550d in the color space sRGB. I have followed adobes recommendations and have tried both letting the printer respektive photoshop manage the colors. But nothing works. I see that there are different opinions about which is best to do so I tried both. I have the latest printer driver installed. Can anyone help me with this?

    Do the following:
    Print a test page from the printer. Perhaps the print head needs cleaning via its maintenance facility.
    Let the printer manage colors, not PSE
    Calibrate the monitor

  • Strange Problem with InKeyset filter

    I encountered a strange problem with inkeyset filter.I am trying to do some operations on the the selected set of keys within a cache. I have posted the psuedo code below
    InKeySetFilter inKeySet=new InKeySetFilter(AlwaysFilter.INSTANCE,orgDestFlightSubset);
    // Set of Keys for NamedCacheInstance
    inKeySet.ensureConverted
    (NamedCacheInstance.getCacheService().getBackingMapManager().getContext().getKeyToInternalConverter());
    Extra code to be Added
    System.out.println(NamedCacheInstance.entrySet(inKeySet).size());
    Always prints 0 eventhoug the keys are present in cache. If i add the following code
    NamedCacheInstance.get(orgDestFlightSubset.toArray()[0]) above printing it gives 1 as a result.
    I am sure that object is in cache becoz cache.get() does not call the DB again
    Can anyone tell me what could be the possible problem?

    Hi,
    user10866091 wrote:
    I encountered a strange problem with inkeyset filter.I am trying to do some operations on the the selected set of keys within a cache. I have posted the psuedo code below
    InKeySetFilter inKeySet=new InKeySetFilter(AlwaysFilter.INSTANCE,orgDestFlightSubset);The orgDestFlightSubset must contain keys in Java format which are existing cache keys.
    user10866091 wrote:
    // Set of Keys for NamedCacheInstance
    inKeySet.ensureConverted
    (NamedCacheInstance.getCacheService().getBackingMapManager().getContext().getKeyToInternalConverter());I assume NamedCacheInstance is a NamedCache instance obtained from CacheFactory.
    In this case you should not call the ensureConverted method. This is called by Coherence on the storage nodes upon deserializing of the filter.
    Try these changes.
    Best regards,
    Robert

  • Strange Problems with XDK v10 Beta Version

    Hello together,
    I encounter two strange problems with the new 10.1.0.0.0 Beta release of XDK. I already posted them in the Beta Release Testing Forum, but got no replies, so I decided to start another try here. Maybe anyone can help me...
    I upgraded a fine-working XSQL web application from XDK 9.2.0.4 to the new 10.1.0.0.0 Beta release of XDK. Since then, two bugs came up, which are reproducible by will:
    1.)
    When processing XSQL insert-requests, the error given below is thrown. I already found an entry in the bug database that says that exactly this error should have been fixed since 9.2.0.3 (see http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=230695.1), but no it seems to be there again.
    This is the stack trace:
    XSQL-017: Unexpected Error Occurred
    java.lang.NoClassDefFoundError: oracle/sql/OPAQUE
    at oracle.xml.xsql.actions.XSQLInsertRequestHandler.handleAction(XSQLInsertRequestHandler.java:118)
    at oracle.xml.xsql.XSQLDocHandler.getDocument(XSQLDocHandler.java:158)
    at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:171)
    at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:61)
    at oracle.xml.xsql.XSQLServlet.doPost(XSQLServlet.java:82)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5412)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3086)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    2.)
    When I deploy and start the application now, I always get the following error only once(!) after deployment when I call the application for the first time:
    XSQL-017: Unexpected Error Occurred
    java.lang.NullPointerException
    at weblogic.jdbc.oci.Statement.executeQuery(Statement.java:865)
    at oracle.xml.xsql.actions.XSQLQueryHandler.handleAction(XSQLQueryHandler.java:161)
    at oracle.xml.xsql.XSQLDocHandler.getDocument(XSQLDocHandler.java:158)
    at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:171)
    at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:61)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5412)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3086)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    When I reload the same page, it works. However, this is not really a good state for productive use.
    Any ideas? After days of research, I'd be very glad for any help.
    Thanks alot,
    Eckhard

    Once again me:
    I guess I should partially revoke for the second topic: The error described above under 2.) seems to be rather a Weblogic versioning problem than a XDK bug, as it only occurs when deploying the application to WebLogic 7.0 (instead of 6.1, which was used before). Maybe I should search the BEA docs for an answer.
    However, the first bug is still a problem to me...

Maybe you are looking for