Problem with WMS themes & Oracle MapViewer Version 11.1.1.2

Hello, in my application I load the background raster from a external server using wms. With differents version of mapviewer 11 with a weblogic server (e.g: release 1, release 11.1.1.4) all it's allrigth, but when I change the mapviewer to release 11.1.1.2 I can't see the raster and I get the next error:
21-sep-2011 11:33:10 oracle.sdovis.theme.WMSMapThemeDefinition setSrs
INFO: Theme SRID set to 23030 for EPSG 82337
21-sep-2011 11:33:10 oracle.sdovis.theme.WMSMapThemeProducer prepareData
SEVERE: MAPVIEWER-01048: Cannot load WMS map image.
21-sep-2011 11:33:10 oracle.sdovis.theme.DynGeomThemeProducer prepareData
I can understand why..., I don't know what's is the problem because differents versions of mapviewer work without problem on the same weblogic server (Weblogic 11 patchset R2).
Anyone know if mapviewer 11.1.1.2 has a problem with WMS?
Thanks for your answer!!

although with Oracle Fusion Middleware MapViewer Version 11g ps3 (11.1.1.4) and 11g ps4 (11.1.1.5.1) everything work ok in my WebLogic Server: 10.3.3.0, with Mapviewer Version 11.1.1.2 I get the next error:
29-sep-2011 13:25:53 oracle.sdovis.theme.WMSMapThemeDefinition setSrs
INFO: Theme SRID set to 23030 for EPSG 82337
sun.awt.image.ImageFormatException: Not a JPEG file: starts with 0xff 0xd9
     at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
     at sun.awt.image.JPEGImageDecoder.produceImage(JPEGImageDecoder.java:119)
     at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:246)
     at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
     at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)
29-sep-2011 13:25:53 oracle.sdovis.theme.WMSMapThemeProducer prepareData
SEVERE: MAPVIEWER-01048: Cannot load WMS map image.
I've seen that the wms external service works ok and returns an url with the correct image, but something wrong happens inside of mapviewer that don't allow generate the image....

Similar Messages

  • Problems with the iOS 5.1 version, HELP!

    I just upgraded to the latest version - iOS 5.1 on my iPhone 4, but now the screen is freezing all the time, and the phone shuts down. Is this a problem with the new 5.1 version? What can I do to fix it?

    Try to restore it... I'm hating this iOS 5.1, everything was working much better before it was released. I shouldn't have upgraded...

  • Problems with Airport setup after buying Version 7 models, (older ones will not upgrade)

    Problems with Airport setup after buying Version 7 models, (older ones will not upgrade)
    I re set up my Airport network , having had 4 expresses for years doing a good job. I bought another and an express, but then a time capsule after my external drive died. .Problems with Airport setup after buying Version 7 models, (older ones will not upgrade)
    I moved house and have fibre network so 38mb/s - they all look ok on the utility, but its not till I saw the App version that they are not compatible as mac will not upgrade the version 6 ones, leaving me with 2 disjointed networks and 7 appliances, 4 of the old , 3 of the new.
    my new house is expansive so i wanted the extended range and airplay in each room.
    This is not told to customers, and utility doesnt show any issues.
    I do not seem to get any range from either network now, - and I'm quite experienced with airport (6 yrs of setting up & using & extending)
    Any advice ?
    LJx
    Message was edited by: LJLDN
    Message was edited by: LJLDN

    Sorry couldn't change the detonations to Airport and am new so cant delete!

  • Problem with implicitly created Oracle pipes

    Hi, I am having a problem with implicitly created Oracle pipes. I am not sure if this is the correct forum for this topic, but I could not see one which suited better..
    I am using Oracle pipes as a commiunication mechanism between processes (some are written in PL/SQL and other in PRO*C).
    The general problem I have is that if a timeout occurs during the communication process, I end up with 1 or perhaps 2 implicitly created pipes.
    The biggest problem for me is that I am unable to determine if a create is implicitly created (via dbms_pipe.send_message or receive_message). This causes problems, since these implicitly created pipes are left behind and not deleted. I'll show you the basic flow of the processes and you shall see my problem.
    server: create request pipe "req_pipe"
    server: listen for request on requests pipe.
    client: create two pipes for comms with server.
    client: send request and the names of the newly created pipes to the server.
    server: read request and pipename from request pipe (from this point all comms between the client and server are now done over the 2 pipes the client created).
    server: send ack message to client to ensure they are still there (since requests can be queued in the request pipe and clients could have timed out before the request is received)
    client: send "i'm still here" ack back to the server.
    server: process request and send result back to client.
    client: send ack back to server to let server know we have received the response.
    server: send ack back to client to show that work is now committed.
    OK thats the general event flow. I use the rule, that pipes created by a process are removed by a process. So the client always removes the pipes it created in all situations. But since this can happen at any point we can get in the situation:
    client: timeout occurs, delete pipes.
    server: send message to client (creates an implicit pipe) and therefor works (no errors raised)
    server: do a read for response from previous message. (implicitly creates pipe) (will fail).
    Now we have two implicitly created pipes! These pipes will exist until the database instance is shutdown, and in a poorly performing environment, we could get thousands of these pipes lying around... not a good situation.
    How can I either stop pipes being implicilty created, or how do I detect if a pipe was implicitly created.
    I have tried a couple of things, like using v$db_pipes to check if a pipe exists before doing send/reveive calls but this is FAR to slow to do a select on that view.
    We have also looked at keeping a record of pipes created by the client then have some process (perhaps the server) clean up these pipes after some time frame. This is a workable solution but is not favourable since it adds extra overhead having to check these pipes often, and created an extra level of complexity which is not required..
    Any suggestions will be greatly appreciated.
    Feel free to email me with any suggestions on my email provided below, or just post a reply to this formum..
    Many thanks,
    Karl Bridger
    [email protected]

    I solved the problem by changing the SOAP massage format from Document/Wrapped to Document/Literal

  • Problem with plymouth themes

    Hello world ,
    sorry if my englsih is bad
    I've installed Plymouth on my laptop (Lenovo Thinkpad Edge E330, with intel GPU) but i've a display problem with every themes of plymouth , le screen is black with 3 white dots.
    My /etc/default/grub is :
    GRUB_DEFAULT=0
    GRUB_TIMEOUT=0
    GRUB_DISTRIBUTOR="Arch"
    GRUB_CMDLINE_LINUX_DEFAULT="show splash acpi_osi=Linux"
    GRUB_CMDLINE_LINUX=""
    # Preload both GPT and MBR modules so that they are not missed
    GRUB_PRELOAD_MODULES="part_gpt part_msdos"
    # Uncomment to enable Hidden Menu, and optionally hide the timeout count
    #GRUB_HIDDEN_TIMEOUT=5
    #GRUB_HIDDEN_TIMEOUT_QUIET=true
    # Uncomment to use basic console
    GRUB_TERMINAL_INPUT=console
    # Uncomment to disable graphical terminal
    #GRUB_TERMINAL_OUTPUT=console
    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    GRUB_GFXMODE=auto
    # Uncomment to allow the kernel use the same resolution used by grub
    GRUB_GFXPAYLOAD_LINUX=keep
    # Uncomment if you want GRUB to pass to the Linux kernel the old parameter
    # format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
    #GRUB_DISABLE_LINUX_UUID=true
    # Uncomment to disable generation of recovery mode menu entries
    GRUB_DISABLE_RECOVERY=true
    # Uncomment and set to the desired menu colors. Used by normal and wallpaper
    # modes only. Entries specified as foreground/background.
    #GRUB_COLOR_NORMAL="light-blue/black"
    #GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
    # Uncomment one of them for the gfx desired, a image background or a gfxtheme
    #GRUB_BACKGROUND="/path/to/wallpaper"
    #GRUB_THEME="/path/to/gfxtheme"
    # Uncomment to get a beep at GRUB start
    #GRUB_INIT_TUNE="480 440 1"
    #GRUB_SAVEDEFAULT="true"
    My /etc/plymouth/plymouthd.conf is :
    # Distribution defaults. Changes to this file will get overwritten during
    # upgrades.
    [Daemon]
    Theme=arch-logo-gnomish
    ShowDelay=5
    What's the solution ? Thank's for reading this post

    Hi there,
    I also have this problem, as do others:
    https://aur.archlinux.org/packages/plymouth/
    I posted a comment; hopefully the author knows a fix.
    Plymouth and Plymouth-release were merged, as per request:
    https://www.mail-archive.com/aur-genera … 26017.html
    This may be the result of that.
    FYI: I have an Intel HD 3000, latest xf86-video-intel driver

  • Problems with Download of Oracle IFS /IFS Devkit for NT

    I am having problems with download of Oracle IFS and Oracle IFS Devkit for NT.
    When I ran the ifsdevkit.bat file the last four files did not get copied over. Subsequently when I ran the upload_ifsdevkit batch file as indicated in document I got error message saying
    'System cannot find the path specified'.
    When I opened the batch file it is looking for BIN directory under the C:\OraHome1\ifs directory but none exists. I wonder if this is the cause of problem. This would mean that the ifs1081.zip file has a bug in that it did not create the BIN directory and files under C:\OraHome1\ifs
    Would appreciate if somebody can help. Thanks
    null

    Is C:\OraHome1 your ORACLE_HOME directory? (Usually, it's C:\Oracle\Ora81)
    Also, have you installed iFS (successfully) in that ORACLE_HOME? If so, you are guaranteed to have an %ORACLE_HOME%\ifs\bin directory.
    Finally, did you enter the correct directory as the parameter to the DEVKIT script?

  • Problems with reverting to an earlier version

    The update with Flash Player was causing problems, so I uninstalled Flash Player 11 and then installed Flash Player 10. But I now have Flash Player 10 Plugin and FlashPlayer 11 Active X on my computer. I am not sure how this happened, but is this OK or is this going to cause me more problems?
    Have now just checked again in Control and it also says I now have Adobe 11 plug in. So I guess I am back to where I started.
    I saw my original question but could not find out how to attach this question to it. Sorry.
    [email address removed]

    Dear Pat,
    Thank you. I have received the exact same reply from Amreso.
    I thank you both for your replies. If the problem occurs again, I shall follow your advice.
    I just need to pluck up the courage. I get so nervous with the computer when it plays up.
    Regards
    Anthony
    Date: Fri, 19 Apr 2013 02:11:29 -0700
    From: [email protected]
    To: [email protected]
    Subject: Problems with reverting to an earlier version
        Re: Problems with reverting to an earlier version
        created by Pat Willener in Installing Flash Player - View the full discussion
    This is a public forum; please do not post your email address (by sending the entire forum notification message with all its headers back to the forum).
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5250122#5250122
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5250122#5250122
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5250122#5250122. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Installing Flash Player by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Problem with rendering GeoRaster in MapViewer...

    Hi,
    I am using the MapBuilder (10.1.3.1), and I import a georaster for an Oracle Spatial 10g Database. I created a GeoRaster Theme and a Base Map including GeoRaster Theme created. In preview mode of Map Builder, the GeoRaster is displayed correctly. In MapViewer (Ver 10131_B061023) this GeoRaster does not appear... A cyan rectangle appears, apparently with the size of GeoRaster...
    I have copied the Java Advanced Imaging (JAI) library files (jai_core.jar and jai_codec.jar) to the OracleAS MapViewer library path (\mapviewer\web\WEB-INF\lib), and restart mapviewer...
    Does anyone have any idea of what may be happening wrong?
    Thanks

    There may be a problem with the map request sent to MapViewer. Please post the map request and the log information (you can get from the log file - set the log level to "finest").

  • Problem with XMLDOM package (Oracle 10.2.0.1.0)

    Hi,
    I am using the dbms_xmldom package to generate xml files (specific structure).
    Below is the code but It produces nothing (dbms_output does not return) :
    DECLARE
    doc xmldom.DOMDocument;
    main_node xmldom.DOMNode;
    root_node xmldom.DOMNode;
    root_elmt xmldom.DOMElement;
    transmissionHeaderNode xmldom.DOMNode;
    transmissionHeaderElement xmldom.DOMElement;
    item_node xmldom.DOMNode;
    item_elmt xmldom.DOMElement;
    item_text xmldom.DOMText;
    buffer_problem CLOB;
    BEGIN
    doc := xmldom.newDOMDocument;
    main_node := xmldom.makeNode(doc);
    xmldom.setversion(doc,'1.0');
    root_elmt := xmldom.createElement(doc, 'InvoiceTransmission');
    root_node := xmldom.appendChild( main_node, xmldom.makeNode(root_elmt));
    transmissionHeaderElement := xmldom.createElement(doc, 'TransmissionHeader');
    transmissionHeaderNode := xmldom.appendChild(root_node, xmldom.makeNode(transmissionHeaderElement));
    item_elmt := xmldom.createElement(doc, 'TransmissionDateTime');
    item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    item_text := xmldom.createTextNode(doc, TO_CHAR(SYSDATE,'DD-MM-YYYY'));
    item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    item_elmt := xmldom.createElement(doc, 'IssuingOrganiszationID');
    item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    item_text := xmldom.createTextNode(doc,'0258');
    item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    item_elmt := xmldom.createElement(doc, 'Version');
    item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    item_text := xmldom.createTextNode(doc, 'IATA:ISXMLInvoiceV3.0');
    item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    xmldom.writetobuffer(doc, buffer_problem);
    dbms_output.put_line(buffer_problem);
    xmldom.freeDocument(doc);
    END;
    That's strange because when remove a code part like :
    item_elmt := xmldom.createElement(doc, 'Version');
    item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    item_text := xmldom.createTextNode(doc, 'IATA:ISXMLInvoiceV3.0');
    item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    I can get the ouput xml :
    <?xml version="1.0"?>
    <InvoiceTransmission>
    <TransmissionHeader>
    <TransmissionDateTime>26-10-2010</TransmissionDateTime>
    <IssuingOrganiszationID>0258</IssuingOrganiszationID>
    </TransmissionHeader>
    </InvoiceTransmission>
    I don't if it's a problem with xmldom or with dbms_output package...
    Please someone can help me ?

    Works fine for me
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    SQL> set serveroutput on;
    SQL>
    SQL> DECLARE
      2     doc xmldom.DOMDocument;
      3     main_node xmldom.DOMNode;
      4     root_node xmldom.DOMNode;
      5     root_elmt xmldom.DOMElement;
      6 
      7     transmissionHeaderNode xmldom.DOMNode;
      8     transmissionHeaderElement xmldom.DOMElement;
      9     item_node xmldom.DOMNode;
    10     item_elmt xmldom.DOMElement;
    11     item_text xmldom.DOMText;
    12 
    13     buffer_problem CLOB;
    14 
    15  BEGIN
    16 
    17     doc := xmldom.newDOMDocument;
    18     main_node := xmldom.makeNode(doc);
    19     xmldom.setversion(doc,'1.0');
    20     root_elmt := xmldom.createElement(doc, 'InvoiceTransmission');
    21     root_node := xmldom.appendChild( main_node, xmldom.makeNode(root_elmt));
    22 
    23     transmissionHeaderElement := xmldom.createElement(doc, 'TransmissionHeader');
    24     transmissionHeaderNode := xmldom.appendChild(root_node, xmldom.makeNode(transmissionHeaderElement));
    25 
    26     item_elmt := xmldom.createElement(doc, 'TransmissionDateTime');
    27     item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    28     item_text := xmldom.createTextNode(doc, TO_CHAR(SYSDATE,'DD-MM-YYYY'));
    29     item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    30 
    31     item_elmt := xmldom.createElement(doc, 'IssuingOrganiszationID');
    32     item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    33     item_text := xmldom.createTextNode(doc,'0258');
    34     item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    35 
    36     item_elmt := xmldom.createElement(doc, 'Version');
    37     item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    38     item_text := xmldom.createTextNode(doc, 'IATA:ISXMLInvoiceV3.0');
    39     item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    40 
    41     --buffer_problem := 'a';  -- added to initialize clob
    42     xmldom.writetobuffer(doc, buffer_problem);  -- change to writetoclob
    43     dbms_output.put_line(buffer_problem);
    44     xmldom.freeDocument(doc);
    45 
    46  END;
    47  /
    <?xml version="1.0"?>
    <InvoiceTransmission>
      <TransmissionHeader>
        <TransmissionDateTime>26-10-2010</TransmissionDateTime>
        <IssuingOrganiszationID>0258</IssuingOrganiszationID>
        <Version>IATA:ISXMLInvoiceV3.0</Version>
      </TransmissionHeader>
    </InvoiceTransmission>Suggestions:
    - Use dbms_xmldom instead of just xmldom. Oracle changed the name in the 9i days and xmldom is a synonym to dbms_xmldom.
    - Use .writeToClob intead of .writeToBuffer
    - I would suggest trying to upgrade to .4 as you pick up a lot of improvements and bug fixes. Whether what you are encountering is a bug I cannot say but would seem so.
    - See the FAQ under your sign-in name to learn how to use the tag to format the code like I did above.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Problems with the forums -- Oracle personnel please escalate

    I'm sure many have posted this somewhere, but in case they haven't -- the forums aren't rendering code snippets, which looks like xml, properly. In some cases, its eliminating them altogether, in others, it cuts out big chunks, in others it replaces some xml markup with smilies. The result is that its rendering tons of posts and information in them as totally useless.
    If I had to guess, this is because the forums aren't rendering using rawText or something like this, but at the very least, until the problem can be totally fixed, turn off smilies. Smilies are nice, but next to code which document answers, they are unimportant.
    Thanks,
    B

    Shay,
    "We did report it to the people in charge, and they asked that feedback will be posted on the feedback forum."
    I understand your personal plight, and I thank you for passing on the information as you were told. But what I'm talking about is kind of big-picture stuff, pertaining to Oracle as a whole. It encompasses not only the issue of the new forums, but support of any product, be it on forums or metalink, documentation, examples, etc. The frustration coming out that I see seems to have a central theme: Oracle having a "fend for yourself" mentality to their customers.
    Someone posts on the forums, can't get an answer, so they are told "these are for user communication". Then they are told "go post a tar". Then they post a tar and are sent a document they've already read. Then others have said that tars won't address how-tos. Then the JDev forums have problems, and users give feedback, and the response is "go post this somewhere else.".
    This looks like continually passing the buck, propagating an internal bureaucracy to for users to have to understand how to navigate, and forcing upon your users the responsibility for facilitating communication within Oracle. I think Oracle really needs to work on putting themselves in the shoes of their customers, and change the self-centric attitude. I highly doubt that Oracle treats their customers with respect to accounts receivable with the same apparent lethargy they treat customers with respect to support.
    B

  • Problem with RollBack in  Oracle Batching

    Hi all,
    This is Adhil. I am facing a problem with Oracle Batching in java.
    I am using java 1.5 and Oracle 10 g.
    I have a below standalone code to test the Oracle Batching (Assume that i have the 2 tables with zero records ).
    with the batch size set as 10, I am trying add 2 records in each table.
    Now I rise divideByZero error exception manually and trying to rollback the connection in catch statement . But couldn't rollback the connection. I see the 2 records added in both of my tables.
    The same code when i set the batchsize 2 and trying to insert 10 records ,I could rollback and no rows get inserted.
    Since I am going to get the no of insert from user in runtime , my rollback may fail in any combinations as in my first case(with batch size 10 and if the no of insert is 2).
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    import oracle.jdbc.*;
    public class BatchTest{
         public static void main(String args[]) throws Exception{
              Connection conn = null;
              conn = new BatchTest().createConnection();
              new BatchTest().insertdata(conn);
         public Connection createConnection() throws Exception{
                   Properties props =new Properties();
                   props.load(ClassLoader.getSystemResourceAsStream("connection.properties"));
                   String connectionString = (String)props.get("connection");
                   String username = (String)props.get("username");
                   String password = (String)props.get("password");
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   Connection connection = DriverManager.getConnection(connectionString, username, password);
                   return connection;
         public void insertdata(Connection dbConnection){
              PreparedStatement psCnt =null;
              PreparedStatement psImp =null;
              try{
              dbConnection.setAutoCommit(false);
              psCnt = dbConnection.prepareStatement("insert into CHKCNT values (?,?)");
              psImp = dbConnection.prepareStatement("insert into CHKIMP values (?,?)");
              ((OraclePreparedStatement)psCnt).setExecuteBatch (10);
              ((OraclePreparedStatement)psImp).setExecuteBatch (10);
              int x=0;
              for(int i=1;i<=2;i++){
                        psCnt.setInt(1,i);
                        psCnt.setString(2,"Jack");
                        psImp.setInt(1,i);
                        psImp.setString(2,"John");
                        psImp.executeUpdate();
                        psCnt.executeUpdate();
              if(true) x=10/0;
              dbConnection.commit();
              }catch(Exception e){
                   try{
                   dbConnection.rollback();
                   dbConnection.close();
                   }catch(Exception ex){
                   e.printStackTrace();
              }finally{
                   try{
                        psCnt.close();
                   }catch(Exception ee){
                   ee.printStackTrace();
    Can anyone suggest me a way to make my rollback work.
    Thanks in advance.
    -adhil.J

    Hi all,
    This is Adhil. I am facing a problem with Oracle Batching in java.
    I am using java 1.5 and Oracle 10 g.
    I have a below standalone code to test the Oracle Batching (Assume that i have the 2 tables with zero records ).
    with the batch size set as 10, I am trying add 2 records in each table.
    Now I rise divideByZero error exception manually and trying to rollback the connection in catch statement . But couldn't rollback the connection. I see the 2 records added in both of my tables.
    The same code when i set the batchsize 2 and trying to insert 10 records ,I could rollback and no rows get inserted.
    Since I am going to get the no of insert from user in runtime , my rollback may fail in any combinations as in my first case(with batch size 10 and if the no of insert is 2).
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    import oracle.jdbc.*;
    public class BatchTest{
         public static void main(String args[]) throws Exception{
              Connection conn = null;
              conn = new BatchTest().createConnection();
              new BatchTest().insertdata(conn);
         public Connection createConnection() throws Exception{
                   Properties props =new Properties();
                   props.load(ClassLoader.getSystemResourceAsStream("connection.properties"));
                   String connectionString = (String)props.get("connection");
                   String username = (String)props.get("username");
                   String password = (String)props.get("password");
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   Connection connection = DriverManager.getConnection(connectionString, username, password);
                   return connection;
         public void insertdata(Connection dbConnection){
              PreparedStatement psCnt =null;
              PreparedStatement psImp =null;
              try{
              dbConnection.setAutoCommit(false);
              psCnt = dbConnection.prepareStatement("insert into CHKCNT values (?,?)");
              psImp = dbConnection.prepareStatement("insert into CHKIMP values (?,?)");
              ((OraclePreparedStatement)psCnt).setExecuteBatch (10);
              ((OraclePreparedStatement)psImp).setExecuteBatch (10);
              int x=0;
              for(int i=1;i<=2;i++){
                        psCnt.setInt(1,i);
                        psCnt.setString(2,"Jack");
                        psImp.setInt(1,i);
                        psImp.setString(2,"John");
                        psImp.executeUpdate();
                        psCnt.executeUpdate();
              if(true) x=10/0;
              dbConnection.commit();
              }catch(Exception e){
                   try{
                   dbConnection.rollback();
                   dbConnection.close();
                   }catch(Exception ex){
                   e.printStackTrace();
              }finally{
                   try{
                        psCnt.close();
                   }catch(Exception ee){
                   ee.printStackTrace();
    Can anyone suggest me a way to make my rollback work.
    Thanks in advance.
    -adhil.J

  • Problem with query for Oracle

    Hello Experts,
    I'm tryng to develop my first application for EP (v7 SP12) with NWDS (without NWDI).
    This application has to read and write data in the EP DB (oracle v10).
    I'm using:
    <u>a Dictionary Project</u> (define the DB Tables)
    <u>a Java Project</u> (define class as DAO, DBManager etc)
    <u>a Library Project</u>
    <u>an EJB Project</u>
    <u>an EAR Project</u>
    With these projects I can deploy a <u>webService</u> in my EP server.
    BUT I have some problem with a query that I'm tryng to sent to my DB through a DAO Class called by my WebService.
    The query is simple and correct but it does not work...
    This is the error message returned (the query id in bold)
    (column names: GIORNO, NOMEDITTA, NOMEAREA, NOMESETTORE)
    <i>HTTP/1.1 500 Internal Server Error
    Connection: close
    Server: SAP J2EE Engine/7.00
    Content-Type: text/xml; charset=UTF-8
    Date: Fri, 21 Sep 2007 14:29:57 GMT
    Set-Cookie: <value is hidden>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>java.sql.SQLException: com.sap.sql.log.OpenSQLException: The SQL statement <b>"SELECT NOMESETTORE, MIN(? - "GIORNO") AS GIORNI FROM SRS_DATEINFORTUNI WHERE NOMEDITTA = ? AND NOMEAREA= ? GROUP BY NOMESETTORE ORDER BY NOMESETTORE"</b> <u>contains the syntax error[s]: - 1:25 - the arithmetic expression >>? - "GIORNO"<< contains a host variable (parameter marker)</u></faultstring><detail><ns1:getGiorniSettori_com.akhela.giorniSenzaInfortuni.ejb.exception.GiorniSenzaInfortuniException xmlns:ns1='urn:GiorniSenzaInfortuniWSWsd/GiorniSenzaInfortuniWSVi'></ns1:getGiorniSettori_com.akhela.giorniSenzaInfortuni.ejb.exception.GiorniSenzaInfortuniException></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope></i>
    The variable '?' is the today date, the difference <b>"(?-GIORNO)"</b> is an int..
    Moreover in my DAO class the query is <b>"SELECT NOMESETTORE, MIN(? - GIORNO) AS GIORNI FROM SRS_DATEINFORTUNI WHERE NOMEDITTA = ? AND NOMEAREA= ? GROUP BY NOMESETTORE ORDER BY NOMESETTORE</b>", instead in the error message is reported <b>MIN(? - "GIORNO")</b>...
    We have tryed also with alternative query, for example we used <b>"MIN(SYSDATA - GIORNO)"</b> but <b>SYSDATA</b> was interpreted as column name and  not found....
    Any help???
    Best Regards

    Hi, I found something about the Host Variable (http://help.sap.com/saphelp_nw70/helpdata/en/ed/dbf8b7823b084f80a6eb7ad43bdbb9/content.htm), there explain that if you want to use an host variable you have to put ':' as prefix..
    My problem is that <u>I need to extract the minimum of the subtraction between two dates:</u>
    Query <b>MIN(? - GIORNO)</b> --> <i>Error: the arithmetic expression >>? - "GIORNO"<< contains a host variable (parameter marker)</i>
    So I tried to use the ':' as indicated in the manual..
    <b>MIN:(? - GIORNO)</b> --> - <i>SQL syntax error: the token ":" was not expected here
                   - expecting LPAREN, found ':'</i>
    <b>MIN(:(? - GIORNO))</b> --> <i>- 1:25 - Open SQL syntax error: :PARAMETER not allowed
                   - 1:26 - SQL syntax error: the token "(" was not expected here
                   - 1:26 - expecting ID, found '('</i>
    Then I tried to avoid the MIN() function and I tried to do just the subtraction:
    <b>? - GIORNO</b> --><i> - 1:21 - the arithmetic expression >>? - "GIORNO"<< contains a host variable (parameter marker)</i>
    <b>:(? - GIORNO)</b> --> <i>- 1:21 - Open SQL syntax error: :PARAMETER not allowed
                - 1:22 - SQL syntax error: the token "(" was not expected here
                - 1:22 - expecting ID, found '('</i>
    <b>'2007-09-24' - GIORNO</b> --> <i>- 1:34 - SQL syntax error: first argument of operator "-" must be a number, date/time or interval
                     - 1:43 - SQL syntax error: arguments of operator "-" do not have correct types
                     - 1:43 - SQL syntax error: derived columns in SELECT list with AS must be values</i>
    <b>GIORNO - GIORNO</b> --> <i>- 1:21 - the group by list and the select list are inconsistent: the column >>"GIORNO"<< is neither grouped nor aggregated
                  - 1:30 - the group by list and the select list are inconsistent: the column >>"GIORNO"<< is neither grouped nor aggregated</i>
    Why these parts of query are not accepted???
    I don't understand why... I hope you can help me.
    Best Regards
    Alessandro

  • Problem with portal theme for WD Application

    Hi Experts,
    We have enhanced our ECC with EHP4 and SP18 in our existing portal.And now i am getting some theme problem.
    I have few Wendynpro ABAP application in the portal which was coming with correct theme earlier bur after
    enhancement all the other application in the portal are coming with the proper theme except all the
    Webdynpro abap application.
    All the WDApplicatio are coming as blue same like its coming in the backend system.I tried with many option
    but i am not able to correct it since i have very little knowledge about the portal.
    Thanks,
    Satya

    The problem is probably due to the fact that ERP Enhp4 contains NetWeaver 7.0 Enhancement Package 1 in which SAP delivers the Lightspeed rendering and the new Signature theme SAP_TRADSHOW_PLUS.  The Portal at the 7.0 SP18 release level would not have the correct mimes for Tradeshow Plug or for Lightspeed. If the UR rendering of the backend is higher than that of the portal, it has to fallback to using the local stylesheet of the ABAP AS to protect that hte rendering is done correctly (see OSS Note 1267950 and 1033496).  You can try the option WDFORCEEXTERNALSTYLESHEET, but because of the drastic differences in the 7.01 and 7.0 rendering this will very likely lead to rendering errors (visual errors or more serious - JavaScript errors).

  • Problem with Adobe Acrobat Pro Extended version 9.3.4 reading Inventor 2009

    I would like to be able to generate 3D PDF files from Autodesk Inventor CAD models (e.g. .iam files) using Adobe Acrobat Pro Extended.  I am constrained to use Inventor 2009.  When I originally installed Acrobat Pro Extended, I was able to make this work after installing the IMPORT3D update at:
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=4073
    Recently (9/5/2010), I updated Acrobat Pro Extended to version 9.3.4.  I believe that following that update, I lost the ability to read in Inventor 2009 files.  Acrobat Pro Extended now gives the error messages:
    "Exception has been raised" followed by:
    "Acrobat could not open 'file' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).  To create an Adobe PDF document, go to the source application. Then print the document to Adobe PDF."
    This is exactly what happened when I first installed Acrobat Pro extended and before I installed the IMPORT3D update mentioned above.  I tried re-installing that update but now the installer gives the error message:
    "No qualifying products found to apply this update."
    Note that Inventor 2009 does allow one to "Save Copy As" to PDF format, but this just creates a 2D PDF snapshot of the current model view -- same for print to pdf.
    I suppose one thing to try is removing Acrobat Pro Extended and then re-installing without the 9.3.4 update, but with the IMPORT3D update -- but if that is necessary, then I won't be able to take advantage of any further updates (e.g. security updates) to Acrobat, which seems like a bad situation.
    Has anyone else had this problem? Or is it just me?

    I may have figured out what was causing my problem with conversion of Inventor 2009 to 3D PDF.  After playing around with a number of inventor files, I discovered that the conversion worked fine when there were no references to external files.  For example a .ipt file (part file) seemed to convert fine.  I believe the problem was that on the form one obtains with Edit->Preferences->Convert to PDF->Autodesk Inventor->Edit Settings->Import->Assembly, the check box for "use root file directory" was NOT checked.  Oddly, this is the default and I'm pretty sure I tried setting the conversion options to the default.  In any case, I now seem to be able to perform the conversion of Inventor 2009 to 3D PDF so this problem is solved I guess.

  • Problem with SpryMenuBarHorizontal on IE any version

    I have a problem with SpryMenuBarHorizontal, you do not see the SubMenu on IE.
    It's ok on Firefox, Safari, Opera, but on any version of IE don't work.
    I tried to fix the CSS, but nothing.
    Thank you for your help
    Margherita

    This is the URL http://www.datapress.it/hemodec/index.html
    and this is the CSS. Thank you for the help
    @charset "UTF-8";
    /* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    LAYOUT INFORMATION: describes box model, positioning, z-order
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
    list-style-type: none;
    font-size: 100%;
    cursor: default;
    padding: 0;
    margin: 0;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
    padding: 0px;
    z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
    list-style-type: none;
    font-size: 15px;
    position: relative;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
    line-height: normal;
    font-weight: bold;
    text-decoration: none;
    top: 5px;
    padding: 0px;
    float: left;
    width: 15em;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    z-index: 1020;
    cursor: default;
    width: 223px;
    position: absolute;
    left: -1000em;
    border-bottom-width: thin;
    border-bottom-style: dotted;
    border-bottom-color: #FFF;
    top: 25px;
    height: 85px;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
    left: 22px;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
    width: 8.2em;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
    margin: -5% 0 0 95%;
    position: absolute;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
    left: auto;
    top: 0;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
    display: block;
    cursor: pointer;
    color: #7C4C25;
    text-decoration: none;
    padding-top: 0.5em;
    padding-right: 0.75em;
    padding-bottom: 0.5em;
    padding-left: 0.75em;
    width: 120px;
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
    color: #F90;
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
    color: #F90;
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu1
    background-repeat: no-repeat;
    background-position: 95% 50%;
    top: 5px;
    padding-left: 60px;
    width: 200px;
    text-align: left;
    ul.MenuBarHorizontal a.MenuBarItemSubmenu2 {
    background-repeat: no-repeat;
    background-position: 95% 50%;
    padding-left: 130px;
    ul.MenuBarHorizontal a.MenuBarItemSubmenu3 {
    background-repeat: no-repeat;
    background-position: 95% 50%;
    margin-left: 120px;
    ul.MenuBarHorizontal a.MenuBarItemSubmenu4 {
    background-repeat: no-repeat;
    background-position: 95% 50%;
    margin-left: 150px;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
    background-image: url(../SpryAssets/SpryMenuBarRight.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    background-color: #EDE8DF;
    width: 213px;
    border-bottom-width: medium;
    border-bottom-style: double;
    border-bottom-color: #FFF;
    margin-right: 15px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: lighter;
    font-size: 14px;
    font-style: normal;
    line-height: normal;
    font-variant: normal;
    text-transform: none;
    text-decoration: none;
    z-index: auto;
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu2 {
    background-image: url(../SpryAssets/SpryMenuBarRight.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    background-color: #EDE8DF;
    width: 204px;
    border-bottom-width: medium;
    border-bottom-style: double;
    border-bottom-color: #FFF;
    margin-left: 17px;
    padding-left: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-style: normal;
    line-height: normal;
    font-weight: lighter;
    font-variant: normal;
    text-transform: none;
    text-decoration: none;
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu3 {
    background-image: url(../SpryAssets/SpryMenuBarRight.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    background-color: #EDE8DF;
    width: 204px;
    border-bottom-width: medium;
    border-bottom-style: double;
    border-bottom-color: #FFF;
    margin-left: 34px;
    padding-left: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-style: normal;
    line-height: normal;
    font-weight: lighter;
    font-variant: normal;
    text-transform: none;
    text-decoration: none;
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu4 {
    background-image: url(../SpryAssets/SpryMenuBarRight.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    background-color: #EDE8DF;
    width: 213px;
    border-bottom-width: medium;
    border-bottom-style: double;
    margin-left: 52px;
    left: 80px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-style: normal;
    line-height: normal;
    font-weight: lighter;
    font-variant: normal;
    text-transform: none;
    text-decoration: none;
    border-bottom-color: #FFF;
    #ul.MenuBarHorizontal ul a.MenuBarItemSubmenu a:hover{
    background-position:center right;
    padding-right:40px;
    color: #F90;
    #ul.MenuBarHorizontal ul a.MenuBarItemSubmenu a.selezionato{
    background-color:#D4CCB3;
    background-position:bottom right;
    padding-right:40px;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
    background-image: url(../SpryAssets/SpryMenuBarDownHover.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    top: 145px;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
    background-image: url(../../SpryAssets/SpryMenuBarRightHover.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
    position: absolute;
    z-index: 1010;
    filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
    ul.MenuBarHorizontal li.MenuBarItemIE
    display: inline;
    f\loat: left;
    background: #FFF;

Maybe you are looking for

  • How to configure Oracle DB in SMP 3.0

    Hi guys, Has anyone worked on configuration of Oracle DB in SMP 3.0 installation. I installed Oracle DB on the same server of SMP. The installation guide mentions to run the particular script using SQLPlus 4. Host name – the host system on which the

  • Problems after force reboot. Hard disk problems

    Yesterday, I ran a c program on my work station. And, the program have some big out puts, files with size 2G,7G. And then the disk was filled. Then some problem happened. When rebooting it shows something like: INIT: cannot execute "/sbin/agetty" INI

  • Download for Acrobat X Pro?

    I need to re-install Acrobat X Pro. I do not have the disk, but do have my registered serial number. But I can not find a download for version X, only XI, which I do not have a serial number for. Anybody know where I can download version X for MAC? -

  • Expoting Versions in Full-Screen Mode

    I have been using Aperture 3 and I'm becoming very pleased with the work flow and it seems to get better every day. It still seems odd though that every time I "Export Version" it goes out of Full-Screen Mode. I don't see any way to change that, but

  • Itunes erases my Ipod Nano songs

    Over the weekend my sister wanted to add this one song to my Ipod and she updated my Ipod Nano and now all my songs are erased. However, I backed up my files and now i have almost all my songs. I notice that everytime I hook up my ipod, I cant edit t