USE OF VARRAY and RECORD object vis-a-vis java.sql package

Hi Geeks,
I want to pass an array of java objects to a stored procedure and I will use them for table insertion or updation.
Say I have a table TASK at DataBase end while the same TASK object is there at JAVA end.
I want to pass an array of Task objects via my stored proc
Please guide me how shall I use java.sql.Array and java.sql.SQLDataType etc etc. any mechanism in store!..
Regards,
Pratap
London

Thanks for you help
I created the package and I get this error this time:
javax.servlet.ServletException: bean test not found within scope
     org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:822)
     org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:755)
     org.apache.jsp.login_jsp._jspService(login_jsp.java:68)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:268)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:277)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:223)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

Similar Messages

  • I am using iphone 4 and planning to visit india for few months. can i buy local sim card from india and use in my iphone? i have alrady unlock my iphone.

    I am using iphone 4 and planning to visit india for few months. can i buy local sim card from india and use in my iphone? i have alrady unlock my iphone.

    Of course

  • What is varray and how to declare in the pl/sql program

    what is varray and how to declare in the pl/sql program

    1b5595eb-fcfc-48cc-90d2-43ba913ea79f wrote:
    what is varray and how to declare in the pl/sql program
    when all else fails Read The Fine Manual
    Oracle Database Search Results: varray

  • What easy to use (MS or third party) tool can I use to create and host a webservice API on a SQL server database

    I'm looking for a (MS or third party) tool with which I can create, publish and host webservice API's on a custom SQL database. For example a API which presents all customers, or validates a user login.
    I prefer a tool that can be used without .NET programming skills, just using database scripts and queries.
    Could somebody suggest a tool for this?
    Many thank,
    Slowytech

    Use Visual Studio (Microsoft Visual Studio Express 2013 for Web ) and the WebAPI framework.  You can easily create REST endpoints for your data.  You can even
    use ODATA to enable RESTful queries over your data.
    See
    http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Use of Ref and Persistent Objects

    Hi,
    I am using OTT and I have created a sub class for the OTT generated class
    i.e.,
    class A:public PObject//OTT generated
    class B:public A//created by me
    for Class B I need to write a static function queryKey() which will return a pointer to persistent object of class B,
    i.e.,
    B* B::queryKey(Number c,Number d);
    I have implemented it something like this...
    B* B::queryKey(      OCCI_STD_NAMESPACE::string c,
                        oracle::occi::Number d,
                        oracle::occi::Number e)
         Statement *stmt=NULL;
         ResultSet *rset=NULL;
         CCPDKey *handle=0;
         try
              string query="SELECT REF(a) FROM ";
              query=query+tableName+ (" a WHERE C=:1 AND D=:2 AND E=:3 ");
              stmt=conn->createStatement(query);
              stmt->setString(1,c);
              stmt->setNumber(2,d);
              stmt->setNumber(3,e);
              rset=stmt->executeQuery();
              if(rset->next())
                   Ref < B > r1(rset->getRef(1));
                   handle=r1.ptr();
         catch(...)
              stmt->closeResultSet (rset);
         conn->terminateStatement (stmt);
              throw;
         stmt->closeResultSet (rset);
    conn->terminateStatement (stmt);
         return handle;
    Is this the correct way of doing it,
    Will the persistent object pointed by handle get destroyed as the scope of Ref i.e.,r1 ends..?
    If so, what is the correct way of doing it..?
    I need this method to return a B*.
    If the way I have used is correct,Do I need to delete the variable handle once I am done using it..?I saw in "Using OCCI: Best Practices" that the persistent object should not be deleted unless you are doing rollback.
    I am new to OCCI and i am confused
    Please help
    Ajey

    In the function B::queryKey(), the Ref<B> variable will go out of scope at the end of the if {} statement and the Ref will be unpinned. So, the "handle" object pointer variable will be pointing to an object that could be freed anytime by the garbage collector.
    Can you change your design to return a Ref<B> from B::queryKey()? If you want to return the object pointer directly then you will have to manage pining/unpining of the object. With Refs, the pining/unpining is transparently managed by OCCI and with the "->" operator you can write code which is the same as with the object pointer.
    Thanks,
    Shankar

  • Network stream using 64-bit and 32-bit VIs on same computer

    I have a project where I'm forced to use a VI written in 32-bit LV2012 (because I need mathscript, which isn't supported in 64-bit) to communicate via network streams with a VI written in 64-bit LV2012 (they only version I can use an externally written 64-bit toolkit for my camera communication) on the same PC.
    I need a network stream target to run on the 32-bit VI, and a host to run on 64-bit VI.
    It kept not working, and finally I checked using the example host.vi and target.vi, and discovered if I open both in either 32-bit or 64-bit, they work, but if I open one in 32-bit and the other in 64-bit it won't connect, giving error -314100 (specified endpoint doesn't exist).
    So question: is there any inherent reason this happens, since both 64-bit and 32-bit should support Network Streams? My first obvious alternative would be rewriting the mathscript code in native LV so i can all be on 64-bit VI's, but it's quite big (based on old, proven Matlab script) and that would be a significant effort I don't have time for now.
    The reason I'm using net streams is that I also get data from 2x other networked PC's at the same time. Is there an alternative to network streams that can communicate data over a network in real(ish)-time?
    Cheers
    Dan

    I just tested this and was able to get it to work.  Were you running both reader and writer applications on the same computer?  If so, I suspect you might be running into context naming issues with multiple application instances running on the same computer.  See this link for more info how to specify a context in the URL.  I suspect you might find it easier to create your own test VI for this rather than modify the shipping examples.

  • How to maintain previous and record count in audit table in SQL Server 2008 r2?

    Hi Experts ,
     Situation :
    in our database we are having few of stored procedures which will drop and recreates the tables and it is scheduled on weekly basis. when this job will run all the stored procedures will drop all the tables and recreate. Now we need to create one table which
    will maintain history of the records.
    my table structure is listed below
    TableName CurrentReocrdCount CurrentExecutionDate PreviousReordCount PreviousExurtiondate
    TEST         1000                   2014-03-30            NULL        NULL
    Test         1500                   2014-04-10            1000      2014-03-30
    Test         2000                   2014-04-11            1500      2014-04-10 
    How do i achive this . 
    franklinsentil

    You need to create audit tables for these. The table will be populated by COUNT value inside stored procedure. Each time it clears the main table and fills new data and also logs count details to audit tables. You can use COUNT(*)  to get count value
    and GETDATE function to get current execution value.
    So proc will look like
    CREATE PROC procname
    @param....
    AS
    --step to drop existing table
    IF OBJECT_ID('tablename') IS NOT NULL
    DROP TABLE <table name>
    --step to fill new table
    SELECT ...
    INTO TableName
    FROM
    --Audit table fill step
    INSERT AuditTable (TableName,CurrentRecordCount,CurrentExecdate,PrevRecordCount,PrevExecDate)
    SELECT TOP 1 'TableName',(SELECT COUNT(*) FROM tableName),GETDATE(),CurrentRecordCount,CurrentExecDate
    FROM AuditTable
    ORDER BY CurrentExecDate DESC
    UNION ALL
    SELECT 'TableName',(SELECT COUNT(*) FROM tableName),NULL,NULL
    WHERE NOT EXISTS (SELECT 1 FROM AuditTable)
    GO
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • No Connection window and no object browser - also getting java exceptions

    Ok, something's whacked - SQL Developer was working just fine on my Win XP sp2 system until I rebooted. Now, when I run SQL Developer there is no Connections window. When I do select View->Connections it does nothing.
    The only way I can connect is File->New then select Database Connection. Once there I can see the list of the database connections I was using so I select one and log in no problem.
    However, once connected all I get is the SQL Worksheet - there is no Object Browser!
    Also, in the Tools->Preferences if I select Code Editor or Database Connections or Debugger etc etc (not everything mind you) I get an error dialog. Pressing 'Details' gives me this...
    java.lang.NullPointerException
         at oracle.jdevimpl.runner.debug.DebugWindowSettingsPanel.onExit(DebugWindowSettingsPanel.java:223)
         at oracle.ide.panels.MDDPanel.exitTraversable(MDDPanel.java:977)
         at oracle.ide.panels.MDDPanel.mav$exitTraversable(MDDPanel.java)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1272)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1216)
         at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1210)
         at javax.swing.Timer.fireActionPerformed(Timer.java:271)
         at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
         at java.awt.Dialog$1.run(Dialog.java:515)
         at java.awt.Dialog.show(Dialog.java:536)
         at java.awt.Component.show(Component.java:1300)
         at java.awt.Component.setVisible(Component.java:1253)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
         at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:276)
         at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:597)
         at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:391)
         at oracle.ide.cmd.IdeSettingsCommand.doit(IdeSettingsCommand.java:47)
         at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:268)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:552)
         at oracle.ide.controller.IdeAction$1.run(IdeAction.java:785)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:804)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:499)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Like I said, this ran before just fine before my reboot.
    I've tried rebooting again and that didn't solve anything.
    I've tried reinstalling it and that didn't solve anything.
    I'm running out of ideas as to what might be wrong - anyone ?

    Hmmm... ok... I downloaded it again and reinstalled and now it works - ah... ok...
    I did do one thing different however - I removed the old directory rather than just unzipping over top of it like I did last time (but I did ask it to overwrite).
    The only thing I can think of is a corrupted configuration file or something.
    Whatever, it works now - sorry to have trouble anyone.

  • WDP calling EJB and passing objects of classes from Java project

    Hi.
    We have <b>Java</b> project which contains some classes common for all projects (like xxx.Version).
    We have <b>EJB</b> project which defines EJB interface using these common classes (like getVersion(String,int): xxx.Version and getCurrency(String,xxx.Version,int):xxx.Currency ).
    We have <b>Web Dynpro</b> project which calls EJB:
    1. Lookup is successful
    2. call to getVersion is successful
    3. call to getCurrency fails with <b>NoSuchMethodException</b>:
    xxx.XXXObjectImpl0.getCurrency(java.lang.String, xxx.Version, int)
         at java.lang.Class.getMethod(Class.java:986)
         at com.sap.engine.services.rmi_p4.reflect.LocalInvocationHandler.invokeInternal(LocalInvocationHandler.java:51)
         at com.sap.engine.services.rmi_p4.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:53)
         at $Proxy346.getCurrency(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187)
         at $Proxy347.getCurrency(Unknown Source)
         at xxx.XXX.getCurrencyWrapper(XXXXX.java:24)
    How can I set dependencies to get this running?
    Thanks to all
           Volker

    Hi,
    Is it available in the interface you are using..
    If the answer is yes.. you might have probably forgotten to deploy the EJBs ear file after making the changes..
    Rebuild it.. and deploy the EJB s ear file again..
    It will solve the problem.. If that also does not work,it might be a problem with the cache.. restart the server..
    It should work now !
    Regards
    Bharathwaj

  • ARRAY and records at multiple level ? please help

    Hi experts!!
    I am struck up with a problem. If u can please help me.
    I need a structure of this type.
    create type GRADE as object(
    grade varchar2(30)
    / -- works fine , creates
    create type GRADE_ARRAY as VARRAY(10) of GRADE;
    / -- works fine and creates
    create type SPECIES as object
    Species_number number,
    array_of_grade GRADE_ARRAY
    / works fine
    create type SPECIES_ARRAY as VARRAY(20) of SPECIES;
    -- error comes here.. Can not have multiple level..type error
    and so can not go ahead. In fect I wanted to use next level also. like this.
    The next command remains my dream only then because I could not create the SPECIES ARRAY it self..
    create type TIMBER as object
    timber_mark varchar2(6),
    no_species number,
    array_of_species(20) SPECIES_ARRAY
    the problem is for multiple level ARRAY AND RECORD/object combination..
    I tried with OBJECT AND VARRAY it does only for one level.. not even two level.
    my Mail ID:
    [email protected]
    Thanks and Regards..
    Virendra chauhan

    I think multi-level collections was first implemented in 9.2. You failed to mention what version of the DB you are using.

  • Generate a series of waveforms and record the data in a file

    System:
    Win7
    Labview 8.5 or 10 (can choose)
    PXI-1033 rack with:
    PXI-5421 AWG
    PXI-4071 DMM
    PXI-6542 Digital IO
    PXI-4110 DCPower
    PXI-5124 Digitizer
    I am working on a summer project to create a functional test system for four different types of PCBs. I will use a test rig as an interface to these PCBs, where each type will be identified by its position. Please see attached UML as to how I want the program to run.
    I want a user settings box pop up when the application is started, where the operator must enter his name and choose which type of board. Further, after entering these details, I want the application to start testing according to which type of board is in the system and which type the operator indicates (the user prompt for card details is just a precaution).
    I am trying to figure out what sort of architecture I should use for the LV part of it. So far I've managed to run the AWG and digitizer as two seperate VIs, but I've read a little bit about using the Producer/Consumer architecture, and want to know if this is a good idea? And which parts should be where? The AWG will input data to the PCB, which will be recorded by the digitizer and then testet using a mathscript and recorded to file.
    So I figure I have to use some sort of event and sequence structure. For example, I want to output two sinusoidal signals with different frequencies after each other and check the voltage amplitude of the scoped output signal and record this.
    If someone could point me in a direction of how to start, I would be very happy. After looking through some of the topics here, I have seen that it is often suggested to use the producer/consumer architecture, so before I do a lot of work which I might have to re-do I want to ask for help will post my solutions as I go.
    Attachments:
    uml.png ‏63 KB

    The LabVIEW large applications community should be able to give you all the info you need.  Check it out here.  Let us know if you need more info.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Mutable and Immuatable Objects...Pl. Explain

    I would like to know what exactly are these mutable and immutable objects with respect to Java and how do they differ.

    Immutable objects are the one in which the same reference can't be assigned again and again if you perform any operation on it,in the other way it creates new reference whenever a method is called on that object.,example for that is the String object.
    Mutable objects are one in which the reference is not modified for any method on that object.For example StringBuffer object.,the same reference is used always.
    The basic difference is the reference you manipulate on.Immutable not possible to manipulate the same reference,Mutable possible to manipulate with the same reference.
    Hope this helps.
    Regards,
    Hari

  • How to use Oracle Varray types in WLS 5.1

    The connection pool is created using the Oracle thin driver. The connection so obtained when passed to the ArrayDescriptor throws a
    ClassCastException at ArrayDescriptor.createDescriptor(connection con.
    While deployment,deployer throws an exception saying unresolved reference to oracle/sql/Datum, either include the class files for the same or remove the reference using the file.
    Would u kindly help me with this as urgently as possible.
    Thanking in anticipation.
    Kavita

    Thanks Sree.
    Is there something so called as the back-door approach to it.
    I read in the articles of Struct Objects and Connection that:
    If connection is obtained via:
    weblogic.jdbc.jts.connection jtsConn = getConnection();
    OracleConnection oracleConn = jtsConn.conn;
    And this should ideally work in WLS5.1,
    but still i wonder how did they obtain the connection.
    It would be obligatory if someone could help me with it.
    Thanks,
    Kavita
    "Sree Bodapati" <[email protected]> wrote:
    Hi Kavita,
    This is not possible to do this via a connection from the pool. Oracle
    implements non standard methods which require OracleConnection object
    instead of standard java.sql.Connection object which the pool returns.
    You
    have to use a direct connection using the thin driver.
    sree
    "Kavita Rajdeo" <[email protected]> wrote in message
    news:3c6fc1f5$[email protected]..
    The connection pool is created using the Oracle thin driver. The connection
    so obtained when passed to the ArrayDescriptor throws a
    ClassCastException at ArrayDescriptor.createDescriptor(connection con.
    While deployment,deployer throws an exception saying unresolved reference
    to
    oracle/sql/Datum, either include the class files for the same or remove
    the
    reference using the file.
    Would u kindly help me with this as urgently as possible.
    Thanking in anticipation.
    Kavita

  • How to access the currentPage and currentNode Objects in a Sling Servlet

    I have a requirement to write a Sling Servlet instead of regular CQ5 JSP
    In a standard CQ5 JSP it's easy to use the currentPage and currentNode objects, as they are automatically added by the default includes
    <%@include file="/libs/foundation/global.jsp"%>
    <h2>currentPage</h2>
    Title: <%= currentPage.getTitle() %><br />
    Name: <%= currentPage.getName() %><br />
    Path: <%= currentPage.getPath() %><br />
    Depth: <%= currentPage.getDepth() %><br />
    <h2>currentNode</h2>
    Title: <%= currentNode.getProperty("jcr:title").getString() %><br />
    Name: <%= currentNode.getName() %><br />
    Path: <%= currentNode.getPath() %><br />
    Depth: <%= currentNode.getDepth() %><br />   
    </div>
    I would like to know how to do this in a sling servlet, and be able to use the currentNode and currentPage objects.
    Does anyone have any code samples they would like to share??
    Thanks
    Tyrone

    currentPage - request.getResource().adaptTo(Page.class)
    currentNode - request.getResource().adaptTo(Node.class)

  • APO roles and auth objects

    Hello all,
    Can someone tell me the most common used Tcodes, roles and auth objects in SAP APO - DP and APO-SNP security
    thanks

    I was going to type them out but luckily for me found this link to the DP & SNP auth objects - the info there is as detailed as anything else I have seen
    http://help.sap.com/saphelp_scm50/helpdata/en/21/f6253b90e48743e10000000a11402f/content.htm
    There is a list of useful APO transactions here
    http://help.sap.com/bp_scmv241/documentation/SCM_AIO_BP_Function_List.xls
    I can't help with the standard roles as I build my own.

Maybe you are looking for

  • Populating our log message along with standard sap log in ck11n.

    Hi all, I have developed a user exit which is used in costing of material using ck11n. Here i have to show our custom log message along with the standard log shown by standard sap system after costing run is complete. I got one FM-- CM_F_MESSAGE  whi

  • Connection still exists after close

    Hello My connection to the database don't disconnect. I have a servlet, in the doGet it will connect to the database(FoxPro). Then I execute a select command. Until here all works fine. Then I close the statement and the resultset, afterwards I close

  • Error while creating new application

    hi, I have installed and configured EPM 11.1.1.2 successfully.I am getting the following error when I login in workspace 1.ErrorInvalid or could not find module configuration. 2.ErrorRequired application module hfm.appcontainer is not configured. Ple

  • Error message when I try to download new iTunes as follows iPhoto 7.1.5 is already installed and was not purchased from the Mac App Store

    I am trying to download new version of iTunes from App store having purchased it on my laptop.  When I try to download on my iMac I get the following message: Error message when I try to download new iTunes as follows:  iPhoto 7.1.5 is already instal

  • Font sizes

    Some of the font sizes are incredibly small and difficult to read. A setting to allow users to customise this would be handy.