CREATE OBJECT obj and EXCEPTIONS problem

Hi experts,
I have a problem with my program.
CREATE OBJECT obj
  EXPORTING
    ls_record_local = ls_record
  EXCEPTIONS
    error = 1.
When there is no exception everything is fine, but when the sy-subrc = 1, there is no possibility to trigger any other method like
CALL METHOD obj->get_data.
System says that obj is initial and it goes to dump.
Any idea how to prevent this dump How can I have the reference to my object after exception has been throwed ?

CREATE OBJECT command creates an instance of the class. If there is a problem in instantiating the class an EXCEPTION is raised & the class doesn't get instantiated.
In this case you can't use the instance attributes / methods of the class.
Try something like this:
CREATE OBJECT obj
  EXPORTING
    ls_record_local = ls_record
  EXCEPTIONS
    error = 1.
IF sy-subrc NE 0.
  MESSAGE 'Error Instantiating the class' TYPE 'E'.
ENDIF.
CALL METHOD obj->method.
Hope i'm clear.
BR,
Suhas
Edited by: Suhas Saha on Oct 21, 2010 3:40 PM

Similar Messages

  • Creating Fault Handling and Exception in Oracle BPEL

    I am following BPELtutorial-Orderbooking.pdf and have successfully reached chapter 6 i.e. Creating Fault Handling and Exception in Oracle BPEL. Everything went fine except this one... i.e. after implementing the Fault Handling and Exception in Oracle BPEL when I execute my process and enter CustId that begins with 0.... the invokeCR generates error message as follows as expected:
    <NegativeCredit xmlns="http://services.otn.com">
    <part name="payload">
    <error xmlns="http://services.otn.com">Bankruptcy Report</error>
    </part>
    </NegativeCredit>
    However, the execution proceeds ahead instead of terminating. The tutorial states that the BPEL process should terminate as the SSN is invalid, can anyone please tell me whats going wrong.. ?

    Well not exactly.... but when click on the 'Audit' sheet under BPEL Console for this instance, I can see the following:
    invokeCR (faulted)
    [2006/03/20 10:35:07] "{http://services.otn.com}NegativeCredit" has been thrown. less
    <NegativeCredit xmlns="http://services.otn.com">
    <part name="payload">
    <error xmlns="http://services.otn.com">Bankruptcy Report</error>
    </part>
    </NegativeCredit>
    The above is exactly what the tutorial states will be the output, so I presumed that the exception must have fired !

  • JButton and exception problem

    Hi all,
    I created a JButton, named open _DB, and add an ActionListener to this. I want that when I click the button the methods in the loop executed (see below for code). However, I always get exceptions. How can I catch these exceptions?
    If I use a try-catch loop I got the error:
    ModelClipTest.java:559: ';' expected
    public void actionPerformed(ActionEvent e)
    ModelClipTest.java:559: missing method body, or declare abstract
    public void actionPerformed(ActionEvent e)
    How can I solve this problem. Can anybody help me?
    Thanks
    Murat
    //CODE
    open_DB.addActionListener
    (new ActionListener()
    public void actionPerformed(ActionEvent e)
    try
    ifcdemo = new IFC_Demo();
    ifcdemo.execute();
    IFC_RelFillsElement_Query.query_fill(ifcdemo);
    IFC_RelVoidsElement_Query.query_void_ids(ifcdemo);
    IFC_BuildingStorey_Query.query_buildingstorey(ifcdemo);
    } //CLOSE TRY
    catch(Exception ex)
    System.out.println("Exception caught");
    System.out.println(":-(");
    } //CLOSE CATCH
    );

    yes, sorry. However, I still get these exceptions for the methods inside.
    What should I do to get rid of these exceptions?
    Thanks.
    ModelClipTest.java:579: unreported exception java.lang.Throwable; must be caught or declared to be thrown
                                  IFC_RelFillsElement_Query.query_fill(ifcdemo);
    ModelClipTest.java:580: unreported exception java.lang.Throwable; must be caught or declared to be thrown
                                  IFC_RelVoidsElement_Query.query_void_ids(ifcdemo);
    ModelClipTest.java:582: unreported exception java.lang.Throwable; must be caught or declared to be thrown
                                  IFC_BuildingStorey_Query.query_buildingstorey(ifcdemo);

  • Creating objects/shapes and printing to a swing??

    Hey, if anyone has a few example files that draws a rectangle, oval, square, and a circle then they can be animated by being moved around the screen. I have a swing that has a file, with the option to create these shapes. If anyone can help please, thanks. I am also trying to call the draw method from the rectangle class that i have created. here is what i have in my main file where the swing is created.
    private void rectangleMenuItemActionPerformed (java.awt.event.ActionEvent evt) {
    //I don't know how i would call this, so when the
    //rectangle menu item is clicked it draws a rectangle to
    //the screen. If anyone could help i would really
    //appreciate it i also still need examples of the shapes,
    //thanks again!!!!!
    mdawg

    Hi,
    You can use draw methods on Graphics Class. like
    (guessing myPanel is your canvas)
    private void rectangleMenuItemActionPerformed (java.awt.event.ActionEvent evt) {
    Graphics g = myPanel.getGraphics();
    g.drawRect(x, y, width, height);
    But the problem with this approach is if myPanel is repainted(when resized etc.) it will clear the panel.
    The best way is to extend JPanel and overrice paint method. Example:
    public void paint(Graphics g)
    if(rectangle)
    g.drawRect(...);
    else if(circle)
    g.drawCircle(..);
    set those flags(rectangle, circle,...) on your menu actions.
    Hope this helps

  • Creating Object Sender and Receiver

    Good morning,
    I am creating my first scenario B1iSN trying to integrate SQL Server DB B1 and I have a couple of questions:
    And design a BizPackage and BizStep, but I can not understand why option adds the Sender and Receiver Object.
    I appreciate any help.
    Andrew

    Hi Andrew,
    Sender and Receiver Object is to define which objects you are going to include in the package. Without this, you will not be able to integrate two systems.
    Have you checked through this: B1iSN: Tips, tricks and important topics ?
    Thanks,
    Gordon

  • ICal / Exchange / iOS-Cal sync creates multiple events and multiple problem

    Hi,
    I got an iPod Touch for Xmas, so I've rejigged all my iCal calendars to sync via the Enterprise Exchange server at my works. I have three calendars, one for my work appointments, one for my personal appointments and one for other appointments and events.
    I expected to get some weirdness from previous iCal experience, but I've found an odd set of behaviours.
    Some all-day events become midnight to midnight events on the iPod only.
    Some events became duplicated.
    Many of these duplicated events do not appear on the iPod, only in Exchange and iCal on OSX.
    If I change an event on iOS4 Cal.app, say the free/busy information or a deletion, the event changes as expected on Exchange (as seen via Outlook Web Access etc).
    If I change an event on iCal on OSX, the event duplicates itself on Exchange, but not on the iPod.
    If I delete a duplicate event (in any exchange synced calendar) on iCal on OSX, the event reappears a few minutes later or on refreshing. If I delete a duplicate event Cal.app on iOS, it stays deleted.
    Has anyone else experienced this kind of thing? I've seen some notes about duplications via MobileMe, but I don't have that feature. Is there a different method of referring to Exchange events used in iCal on OSX and Cal.app on iOS?
    Also, when I moved my third calendar to Exchange, it made all the events "Show as Busy". Does anyone know a way of programmatically (e.g. Applescript) setting all those to "Free"? I can't seem to find an event property that matches the value given in "Show As..." when you view the event.

    Jeeze, I'm try to sort this out as well. Some iCal Events (but not all), are duplicating within iCal on the MAC. The Mobileme Calendar and the iPhone Calendar seem okay (no Dups).
    Could this be a simple matter of turning off (unchecking), the calendar boxes for the Calendars "ON MY MAC" and also minimizing that Directory Tree and leaving on and expanded the [email protected] Directory Tree with Calendar Boxes checked ?
    Done that way, MobileMe and the iPhone are being updated.
    Having said that, the obvious conclusion is that any New Event entered into a Calendar within the "ON MY MAC" directory tree is not going to be synced with MobileMe nor the iPhone and is a waste of time.
    Furthermore, Any New Event entered into a calendar on the iPhone will be synced with its coressponding Calendar in MOBILME, and it's Directory tree in iCal on the MAC - But Not the "ON MY MAC" Directory tree - That never gets synced. Am I right or am I going crazy.

  • "OIP-04796 Unable to create object instance"

    I am using OO4O, version 3 for Oracle 8.1.7 on Windows with Visual Basic version 6.
    I am getting the intermittent errors "OIP-04796 Unable to create object instance" and also "Method createDynaset of _IOraDatabase failed" - I think both are related to one another and from the documentation for OO4O, "OIP-04796" relates to the client side object cache of the OraDatabase class. Reasoning that the client side object cache was too small I attempted to increase the relevant properties of the OraDatabase object using the following: -
    MyOraDatabaseObj.CacheOptimalSize = 400
    However, at run-time, this property of the OraDatabase object does not get set accordingly in the VB IDE and after several attempts I can't seem to set it. I have also tried setting the CacheMaximumSize property but to no avail.
    Can anybody indicate to me where I am going wrong and either with the setting of the above properties or with the error message in general if I am not on the right track with the cache properties. I don't suspect that it is my code because the problem "seems" to be intermittent.
    Any and all help would be greatly appreciated. If more info is required then just ask as this is pressing problem.
    TYIA
    Mark Grimshaw

    I am pretty sure the patches are available here. If you didn't explicitly install one then you have whatever the base release was.
    If they are not available here (I almost never look here first for a patch) they are certainly available in the MetaLink file library for OO4O.

  • Unable to create Instance with Object Editor and Attachment Pattern

    Hi Experts,
    I created a simple entity service with some attributes and a document reference.
    I also configured an object editor pattern and assigned a attachment pattern. The created object editor works as long as I don't attach a file. But if I attach a file and want to save it I get an error message "cannot create"
    In the default log.trc I have some entries
    Cannot read associated instance with MOF ID 105D8E0C4F02D45AFFD5B9D6A09EFB7A of MOF Layer 2 for (6DC24B80F6004CDBF4FA6C560AEDD33C,<null>)
    and
    refPackageM1(com.sap.ip.bi.sdk.dac.olap.query) failed RepositoryDBMemory. Using generic one.
    I configured the j2ee engine according the tutorial "Integrating KM with CAF UI Patterns"
    So what is wrong?
    Best regards Manuel

    Hi,
    From the stacktrace I assume that the following happens (please correct me, if I'm wrong):
    <b>*</b> Some time based event mechanism sends an event to your custom event handler code. That code is execute in some system context.
    <b>*</b> Your handler uses the RF API to create a collection. All this is perfectly OK. Here my assumptions end, the next steps are solid facts.
    <b>*</b> Within the RF all property filters are informed that a resource is about to be created. One of the filters is trying to obtain a lock from a system provided Locking Service.
    <b>*</b> That service refuses to grant the lock, telling that system users are not allowed to do so.
    Most proably you cannot do anything to solve this problem by yourself. When I ran into the same Exception once, I could avoid to have my code run in a system thread. Well you might try to do the same.
    Otherwise please open a customer message and complain about the restiction in the locking behaviour.
    Best regards,
    Michael

  • Getting an Exception Unable to create Object

    I have the following methos I am getting the unable to create the file exception
    I believe the problem is when is trying to read the object I try the following
    record.setMessage(input.readObject().toString());
              ///  record = (Message)input.readObject();1) convert the object to a string
    record.setMessage(input.readObject().toString()); 2) I also try this
    record = (Message)input.readObject()Notice that I put the put the file into the cryptpText area and then I get into a String
    cipherTextString = record.toString();
             //put string in JTextArea
              cipherTextArea.setLineWrap(true);
              cipherTextArea.setText(cipherTextString); Here is the setMessage Method in the Message class
    set
    public void setMessage(String eMessage)
         myMessage = eMessage;
    public void performStartTask()
            //choose the file to open
            int returnVal;
            String inputFileName = "";
            //open a JFileChoose
            JFileChooser chooser = new JFileChooser(new File (
                    "C:\\Java_code\\java_files"));
            chooser.setDialogTitle("Please select an encoded file");
            returnVal = chooser.showOpenDialog(null);
            if(returnVal == JFileChooser.APPROVE_OPTION)
                inputFileName = chooser.getSelectedFile().getName();
            //Open the file
            ObjectInputStream input  = null;
            //exception handlig here
            try
                input = new ObjectInputStream( new FileInputStream("C:\\Java_code\\java_files\\" + inputFileName));
              catch (IOException e)
                  System.err.println("error opening the file");
              //read from the file
            record = null;
            record = new Message();
            try
               record.setMessage(input.readObject().toString());
              ///  record = (Message)input.readObject();
             catch(EOFException eofe)          
                 return;
             catch(ClassNotFoundException cnfe)
                      System.err.println("Unable to create Object");
             catch(IOException ioe)
                 System.err.println("Error reading from file ");
             } // end try catch
           System.out.println("Just read in" + record + "." + record.getShift());
             //put the file into the cryptpText area
             //first - get into a string
             cipherTextString = record.toString();
             //put string in JTextArea
              cipherTextArea.setLineWrap(true);
              cipherTextArea.setText(cipherTextString);
             closeFile(input);
              startBoolean = true;
        } // End of performedStartMethod 

    Ok I added this piece of code, hope is right
    catch (Exception e) {
              StackTraceElement[] stack = e.getStackTrace();
                String exception = "";
               for (StackTraceElement s : stack) {
            exception = exception + s.toString() + "\n\t\t";
        System.out.println(exception); anf it shows that the error is here
    record.setMessage(input.readObject().toString());
    java.net.URLClassLoader$1.run(URLClassLoader.java:366)
              java.net.URLClassLoader$1.run(URLClassLoader.java:355)
              java.security.AccessController.doPrivileged(Native Method)
              java.net.URLClassLoader.findClass(URLClassLoader.java:354)
              java.lang.ClassLoader.loadClass(ClassLoader.java:423)
              sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
              java.lang.ClassLoader.loadClass(ClassLoader.java:356)
              java.lang.Class.forName0(Native Method)
              java.lang.Class.forName(Class.java:264)
              java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:622)
              java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1593)
              java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1514)
              java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)
              java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
              java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
              lab01recheverri.Lab01recheverri.performStartTask(Lab01recheverri.java:172)
              lab01recheverri.Lab01recheverri.actionPerformed(Lab01recheverri.java:103)
              javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
              javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
              javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
              javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
              javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
              java.awt.Component.processMouseEvent(Component.java:6505)
              javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
              java.awt.Component.processEvent(Component.java:6270)
              java.awt.Container.processEvent(Container.java:2229)
              java.awt.Component.dispatchEventImpl(Component.java:4861)
              java.awt.Container.dispatchEventImpl(Container.java:2287)
              java.awt.Component.dispatchEvent(Component.java:4687)
              java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
              java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
              java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
              java.awt.Container.dispatchEventImpl(Container.java:2273)
              java.awt.Window.dispatchEventImpl(Window.java:2719)
              java.awt.Component.dispatchEvent(Component.java:4687)
              java.awt.EventQueue.dispatchEventImpl(EventQueue.java:703)
              java.awt.EventQueue.access$000(EventQueue.java:102)
              java.awt.EventQueue$3.run(EventQueue.java:662)
              java.awt.EventQueue$3.run(EventQueue.java:660)
              java.security.AccessController.doPrivileged(Native Method)
              java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
              java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
              java.awt.EventQueue$4.run(EventQueue.java:676)
              java.awt.EventQueue$4.run(EventQueue.java:674)
              java.security.AccessController.doPrivileged(Native Method)
              java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
              java.awt.EventQueue.dispatchEvent(EventQueue.java:673)
              java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
              java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
              java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
              java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
              java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
              java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
    Just read innull.0

  • MS Access 2010 and TFS problem when I try to "create form team foundaition"

    I am using MS Access 2010 and trying to use TFS for source control.
    I installed MSSCCI for 2010 and the "Access Developer Extensions"
    I am able to create a project in TFS and check in and check out access objects.
    My only problem is when I click on "Create from Team Foundation" it asks me to specify the server and when I click OK it gives me the following error message:
    "Cannot create a new Microsoft Access database from this source code control project. It contains neither a Data and Misc. objects file nor a database name file."
    I have tried different ways and could not get it to work.
    Thanks for your help

    Did you figure out a solution for this!>?
    I am having the same issue.  I can issue a GET and bring down all the objects (including the very files that it says it can't find) - then when "creating from team foundation" I get the same problem.
    https://social.msdn.microsoft.com/Forums/en-US/704a18d7-6687-49c2-8830-a24aa794303e/tfs-2013-with-access-20072010-cant-create-a-local-tfs-copy?forum=tfsgeneral

  • Problem with creating Connection pool and JNDI, driver is not detected

    Hi,
    I have an issue with creating Connection Pool and JNDI.
    I'm using:
    - JDK 1.6
    - OS: Linux(ubuntu 8.10)
    - Netbeans IDE 6.5.1
    - Java EE 5.0
    - Apache Tomcat 6.0.18 Its lib directory contains all necessary jar files for Oracle database driver
    - Oracle 11g Enterprise
    My problem is that the Oracle database driver is not detected when I want to create a pool (it works pretty well and is detected without any problem when I create ordinary connection by DriverManager)
    Therefore after running:
    InitialContext ic = new InitialContext();
    Context context = (Context)ic.lookup("java:comp/env");
    DataSource dataSource = (DataSource)context.lookup("jdbc/oracle11g");
    Connection connection = dataSource.getConnection();and right after dataSource.getConnection() I have the following exception:
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.OracleDriver'
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1136)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
    at servlets.Servlet1.doPost(Servlet1.java:47)
    at servlets.Servlet1.doGet(Servlet1.java:29)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1130)
    ... 17 more
    My application context file (context.xml) is:
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/WebApplication3">
      <Resource auth="Container"
                      driverClassName="oracle.jdbc.OracleDriver"
                      maxActive="8"
                      maxIdle="4"
                      name="jdbc/oracle11g"
                      username="scott"
                      password="tiger"
                      type="javax.sql.DataSource"
                      url="jdbc:oracle:thin:@localhost:1521:database01" />
    </Context>and my web.xml is:
        <resource-ref>
            <description>Oracle Datasource example</description>
            <res-ref-name>jdbc/oracle11g</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
        </resource-ref>
    ...I found similar threads in different forums including sun, such as
    http://forums.sun.com/thread.jspa?threadID=567630&start=0&tstart=0
    http://forums.sun.com/thread.jspa?threadID=639243&tstart=0
    http://forums.sun.com/thread.jspa?threadID=5312178&tstart=0
    , but no solution.
    As many suggest, I also tried to put context directly in the server.xml (instead of my application context) and referencing it by <ResourceLink /> inside my application context but it didn't work and instead it gave me the following message:
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '   ' for connect URL 'null'
    Has anyone succeeded in creating a connection pool with JNDI by using Tomcat 6 or higher ? If yes, could kindly explain about the applied method.
    Regards,

    Hello again,
    Finally I managed to run my application also with Tomcat 6.0.18. There was only two lines that had to be modified
    in the context.xml file (the context of my application project and not server's)
    Instead of writing
    <Context antiJARLocking="true" path="/WebApplication2">
        type="javax.sql.DataSource"
        factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
    </Context>we had to write:
    <Context antiJARLocking="true" path="/WebApplication2">
        type="oracle.jdbc.pool.OracleDataSource"
        factory="oracle.jdbc.pool.OracleDataSourceFactory"
    </Context>- No modification was needed to be done at server level (niether server.xml nor server context.xml)
    - I just added the ojdbc6.jar in $CATALINA_HOME/lib (I didn't even need to add it in WEB-INF/lib of my project)
    - The servlet used to do the test was the same that I presented in my precedent post.
    For those who have encountered my problem and are interested in the format of the web.xml and context.xml
    with Tomcat 6.0, you can find them below:
    Oracle server: Oracle 11g Enterprise
    Tomcat server version: 6.0.18
    Oracle driver: ojdbc.jar
    IDE: Netbeans 6.5.1
    The context.xml file of the web application
    <?xml version="1.0" encoding="UTF-8"?>
    <Context antiJARLocking="true" path="/WebApplication2">
        <Resource name="jdbc/oracle11g"
                  type="oracle.jdbc.pool.OracleDataSource"
                  factory="oracle.jdbc.pool.OracleDataSourceFactory"
                  url="jdbc:oracle:thin:@localhost:1521:database01"
                  driverClassName="oracle.jdbc.OracleDriver"
                  userName="scott"
                  password="tiger"
                  auth="Container"
                  maxActive="100"
                  maxIdle="30"
                  maxWait="10000"
                  logAbandoned="true"
                  removeAbandoned="true"
                  removeAbandonedTimeout="60" />
    </Context>The web.xml of my web application
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <resource-ref>
            <description>Oracle Database 11g DataSource</description>
            <res-type>oracle.jdbc.pool.OracleDataSource</res-type>
            <res-auth>Container</res-auth>
            <res-ref-name>jdbc/oracle11g</res-ref-name>
        </resource-ref>
        <servlet>
            <servlet-name>Servlet1</servlet-name>
            <servlet-class>servlets.Servlet1</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>Servlet1</servlet-name>
            <url-pattern>/Servlet1</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
            <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>
    </web-app>Ok, now I'm happy as the original problem is completely solved
    Regards

  • How can I create Object Tag which supports Sun and MS JVM both.

    Hi,
    I have created object tag as shown below
    <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    name = "TestApplet" height="0" width="0" >
    <param name="code" value="com.apps.TestApplet.class" />
    <param name="codebase" value="codes" />
    <param name="archive" value="TestApplet.jar" />
    </object>
    The above tag is working fine with the below JVM combinations in Windows XP.
    1) Only Sun JVM
    2) Only MS JVM
    3) Sun JVM & MS JVM
    But these conditions are not working with Windows 2000.
    How we can create object tag which will support for these two opertating systems?

    I am not able to understand the problem. From my understanding, you have an applet which you are trying to display in a browser using <object> tag. If that is the correct then all it matters is the browser and the JRE�
    For example the below code when put in a JSP or a HTML, will use JRE 1.6.0_01 that is available on the client machine. If that is not available on the client machine then it will try and download automatically in IE.
    This below code is for IE� if you are using Mozilla Firefox then you need to change the �classid� attribute to �java: com.foo.bar.ui.MyClass�
    <OBJECT ID="Gantt" classid = "clsid:CAFEEFAC-0016-0000-0001-ABCDEFFEDCBA"
                  codebase = "http://java.sun.com/update/1.6.0/jinstall-6u1-windows-i586.cab"
                  WIDTH = "980" HEIGHT = "495" ALIGN = "baseline">
                   <PARAM NAME="cache_option" VALUE="Plugin">
                  <PARAM NAME ="CODE" VALUE = "com.foo.bar.ui.MyClass" >
                  <PARAM NAME="MAYSCRIPT" VALUE="true">
                  <PARAM NAME ="cache_archive" VALUE = "Myjar.jar /" >
                  <PARAM NAME = "type" VALUE = "application/x-java-applet;jpi-version=1.6.0">
                  <PARAM NAME = "scriptable" VALUE = "false">
                  <strong>
                     This browser does not have a Java 1.6.0_01 Plug-in.
                     <br />
                     <a href="http://java.sun.com/update/1.6.0/jinstall-6u1-windows-i586.cab">
                       Get the latest Java Plug-in here.
                     </a>
              </strong>
            </OBJECT>

  • Database Development and Creating Objects in the Enterprise

    Hello Everyone,
    I have found myself filling the role of DB Developer for a DataMart project in a large enterprise. We are looking at replicating and consolidating multiple schemas in near real-time into an ODS for Reporting and Data Integration purposes. I did a POC locally in DEV to create Materialized Views for this purpose. It seems to work fine, I've got them on Fast Refresh, added a unique identifier etc.
    The DBA stated I was granted the Priv to create the MVIEWS bc our vendor requires more PRIVS than is normally allowed for other apps in the Enterprise and it was only done on our server. Now I requested to try the same thing, however on the remote ODS DB over DBLinks. He stated creating objects on the ODS is a 'bad idea' and not allowed without engaging the broader DB group, even for DEv purposes. He also stated that MOST enterprises don't allow creating objects, and only allow DML. Problem is, once we engage that group it could add significant time and money to the project. Which seems silly as I just want to see if it's a feasible option.
    Any thoughts on this? Can anyone share experiences regarding what is and is not allowed at the DB level strictly for DEV purposes and not on PROD?
    Thanks,
    PRAJNA

    Thanks for the input jgarry. It does seem they are treating DEV like PROD in this case. Which has the potential to hamper innovation and new ways of doing things, especially in an aging IT environment where we might be stuck in our ways of doing things. It also sounds a bit general and not necessarily the case that 'most companies also don't allow this sort of thing'. I haven't worked in enough shops to say one way or the other however.
    Yes, creating a local DBLink would be an option, but I wanted to test this method running across two physical servers ideally. Worth a try though.

  • Exception '1250' is not defined for method 'CREATE' object type 'MESSAGE'

    Dear experts,
    I set up the document distribution (SWU3, backgroundjob SMTP, activated the workflows, flagged the linkages, etc). Now, I have still a error:
    Exception '1250' is not defined for method 'CREATE' object type 'MESSAGE'
    Does anyone know what the cause of exception 1250 could be?
    Thanks in advance and kind regards,
    Samuel

    hi,
    SAP ITS is SAP Internet Transaction Server which provides connection between SAP ERP system and html client.
    Check with bassis, i think TCP/IP or work station application not configured yet. i guess?
    Benakaraja
    ??P

  • Problems using creating Objects after Updating to 3.0.1

    Hi folks,
    the update from 2.0.1 or so to 3.0.1 in the 10g XE had brought up more new aspects and changes than expected...
    The - hopefully- last problem I encounter now is that I cannot create objects anymore in the SQL Workshop.
    If I try to create a new table in the end the error message reads
    ORA-01031: Insufficent privileges
    The same for a test sequence... I didn't change anything to my existent schema users, they are assigend the "ressource" role, so it should work fine. If I connect to the DB via an development tool like sqlplus the table is created - as expected.
    In the apex user administration I found no section for setting additional privileges...
    Can anyone help me to establish the privileges to my old users/schemes so that the SQL Workshop is working again? Even with a new administrator account in a new workspace on an old schema the workshop can't create a table.
    Thanks alot.
    Ragnus

    thanks, I solved by myself.
    Here comes what it had been:
    After upgrading all apps had been in workspaces named to the corresponding old schema user.
    I wanted to consolidate the apps into one big workspace so they can share some components like authorization schema and so on.
    I additionally assigned the schemes to the new workspace so there had been 2 workspace assignements for each schema. This had been a temporary consolidation situation until all apps had been exported from the old workspaces into the new one.
    But development during this double assigned state seems to be not possible in the SQL Workshop.
    After deleting an old workspace I can now create objects again in the now single workspace assigned schema.
    Ragnus

Maybe you are looking for