Java EE 5 @ Worldwide state?

Hi,
It is really great to have this forum here and great to have a certified and fully compliant with the latest Java EE 5 standard implementation at SAP.
I wonder does anyone know if there is another vendor that has achieved this major success so far (October 2006).
Or SAP has proven to be technology leader again?
Best regards

Hello,
As far as we know, Glassfish and TmaxSoft are the other two providers of Java EE 5.
Here is a link from the SUN's official compatibility page:
SUN's EE5 compatibility page - http://java.sun.com/javaee/overview/compatibility.jsp
Greetings,
Bobby

Similar Messages

  • JDBC Sender Adapter : java.sql.SQLException: Cursor state not valid.

    Hello all,
    We have configured JDBC Sender Adapter which fetches around 10K records with poll interval 1hr  from DB2 System .
    It was working fine,suddenly it started throwing an exception in Adapter Monitoring :
    Error during conversion of query result to XML: java.sql.SQLException: Cursor state not valid.
    It is not fetching any records.
    Without changing any configurations when we tried to fetch to around 1000 records it's working fine.
    For 10K records same exception persists
    What could be the reason ?How to resolve this issue?
    regards
    GangaPrasad

    Hello Christophe ,
    Trace in VA :::
    Date : 05/09/2008
    Time : 11:45:57:750
    Message : Unexpected error converting database resultset to XML, reason: java.sql.SQLException: Cursor state not valid.
         at java.lang.Throwable.<init>(Throwable.java:194)
         at java.lang.Exception.<init>(Exception.java:41)
         at java.sql.SQLException.<init>(SQLException.java:40)
         at com.ibm.as400.access.JDError.throwSQLException(JDError.java:389)
         at com.ibm.as400.access.JDError.throwSQLException(JDError.java:366)
         at com.ibm.as400.access.AS400JDBCResultSet.getValue(AS400JDBCResultSet.java:3580)
         at com.ibm.as400.access.AS400JDBCResultSet.getString(AS400JDBCResultSet.java:3223)
         at sun.reflect.GeneratedMethodAccessor459222074.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:309)
         at com.sap.aii.adapter.jdbc.sql.jdbctrace.TraceInvocationHandler.invoke(TraceInvocationHandler.java:45)
         at com.sap.aii.adapter.jdbc.sql.jdbctrace.$Proxy254.getString(Unknown Source)
         at com.sap.aii.adapter.jdbc.JDBC2XI.convert2XML(JDBC2XI.java:954)
         at com.sap.aii.adapter.jdbc.JDBC2XI.invoke(JDBC2XI.java:492)
         at com.sap.aii.af.service.scheduler.JobBroker$Worker.run(JobBroker.java:475)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:99)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:119)
    Severity : Error
    Category : /Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/JDBC
    Location : com.sap.aii.adapter.jdbc.JDBC2XI.convert2XML(ResultSet, ResultSetMetaData)
    Application :
    Thread : XI JDBC2XI[JDBC_SND_DB2_VehicleReceiving/DB2PRD00/]_170
    Datasource : 12428950:/usr/sap/PXI/DVEBMGS01/j2ee/cluster/server0/log/applications/com.sap.xi/xi.log
    Message ID : 00145E742794005E0014980B000000BE00044CC763766C4F
    Source Name : /Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/JDBC
    Argument Objs : java.sql.SQLException: Cursor state not valid.
         at java.lang.Throwable.<init>(Throwable.java:194)
         at java.lang.Exception.<init>(Exception.java:41)
         at java.sql.SQLException.<init>(SQLException.java:40)
         at com.ibm.as400.access.JDError.throwSQLException(JDError.java:389)
         at com.ibm.as400.access.JDError.throwSQLException(JDError.java:366)
         at com.ibm.as400.access.AS400JDBCResultSet.getValue(AS400JDBCResultSet.java:3580)
         at com.ibm.as400.access.AS400JDBCResultSet.getString(AS400JDBCResultSet.java:3223)
         at sun.reflect.GeneratedMethodAccessor459222074.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:309)
         at com.sap.aii.adapter.jdbc.sql.jdbctrace.TraceInvocationHandler.invoke(TraceInvocationHandler.java:45)
         at com.sap.aii.adapter.jdbc.sql.jdbctrace.$Proxy254.getString(Unknown Source)
         at com.sap.aii.adapter.jdbc.JDBC2XI.convert2XML(JDBC2XI.java:954)
         at com.sap.aii.adapter.jdbc.JDBC2XI.invoke(JDBC2XI.java:492)
         at com.sap.aii.af.service.scheduler.JobBroker$Worker.run(JobBroker.java:475)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:99)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:119)
    Arguments : java.sql.SQLException: Cursor state not valid.
         at java.lang.Throwable.<init>(Throwable.java:194)
         at java.lang.Exception.<init>(Exception.java:41)
         at java.sql.SQLException.<init>(SQLException.java:40)
         at com.ibm.as400.access.JDError.throwSQLException(JDError.java:389)
         at com.ibm.as400.access.JDError.throwSQLException(JDError.java:366)
         at com.ibm.as400.access.AS400JDBCResultSet.getValue(AS400JDBCResultSet.java:3580)
         at com.ibm.as400.access.AS400JDBCResultSet.getString(AS400JDBCResultSet.java:3223)
         at sun.reflect.GeneratedMethodAccessor459222074.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:309)
         at com.sap.aii.adapter.jdbc.sql.jdbctrace.TraceInvocationHandler.invoke(TraceInvocationHandler.java:45)
         at com.sap.aii.adapter.jdbc.sql.jdbctrace.$Proxy254.getString(Unknown Source)
         at com.sap.aii.adapter.jdbc.JDBC2XI.convert2XML(JDBC2XI.java:954)
         at com.sap.aii.adapter.jdbc.JDBC2XI.invoke(JDBC2XI.java:492)
         at com.sap.aii.af.service.scheduler.JobBroker$Worker.run(JobBroker.java:475)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:99)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:119)
    Dsr Component :
    Dsr Transaction : d1f629d01d9b11dd984200145e742794
    Dsr User :
    Indent : 0
    Level : 0
    Message Code :
    Message Type : 1
    Relatives : com.sap.aii.adapter.jdbc.JDBC2XI
    Resource Bundlename :
    Session : 0
    Source : /Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/JDBC
    ThreadObject : XI JDBC2XI[JDBC_SND_DB2_VehicleReceiving/DB2PRD00/]_170
    Transaction : SAP J2EE Engine JTA Transaction : [0ffffffbdffffffa6ffffff960086]
    User : J2EE_GUEST
    Regards
    Ganga Prasad

  • Using java function in select statement

    Hi,
    I am trying to use java function in select statement.
    public class ClassA{
         private static String MyConst = "foo";
         public static String functionA(){
              return MyConst;
    in my query I have:
    select
         ClassA.functionA() AS id,
         groupId AS newID,
    from
         myChannel[now]
    ClassA is part of the application (no need to import).
    I get and error of Invalid Expression on ClassA.functionA().
    I also tried to declare the function in the processor element:
    <wlevs:processor id="proc">
         <wlevs:function function-name="A" exec-methode="functionA">
              <bean class="mtPackage.ClassA"/>
         </wlevs:function>
    <wlevs:processor>
    but then I get a different error in the processor XML file:  "An InvocationTargetException was encoutered while attemting to register the user defind function A. The message was null"
    What am I missing here?

    Hi,
    From the above description, you have tried two manners to call method functionA() in the user defined  class ClassA. One uses java cartridge manner directly and the other try to use user defined function manner.
    For the java cartridge manner, the following CQL query should work if the ClassA is really included in the OEP app. I have done similar test before, it works.
    select
         ClassA.functionA() AS id,
         groupId AS newID,
    from
         myChannel[now]
    For user defined function manner, I think two things you need to change:
    1. Need to declare the function in the EPN assembly file(under META-INF/spring/), not component configuration file(under META-INF/wlevs/). The following is an example:
    <wlevs:processor id="proc">
         <wlevs:function function-name="A" exec-methode="functionA">
              <bean class="mtPackage.ClassA"/>
         </wlevs:function>
    </wlevs:processor>
    2. Call the user defined function in the CQL query in the component configuration file under processor. For example:
    select A() from myChannel
    Regards,
    XiYing

  • Java.lang.Exception: discarding statement JPanel0.add(JTextField0)

    This message appears when I try to save a Panel with all subcomponents.
    My programm saves JLabel in the resulting Xml-file but neither JTextField nor JComboBox, etc.
    I've checked my classes, and all subcomponents of my Spanel are JavaBeans.
    (Spanel extends JPanel and has a no-args constructor as well).
    So is it a JDK bug?
    Hope somebody can help me.
    This is my program :
    public static void serializeContainer(Container spanel,String fileName) throws IOException {
    FileOutputStream fos = new FileOutputStream(fileName);
    XMLEncoder encoder = new XMLEncoder(fos);
    encoder.setExceptionListener(new ExceptionListener() {
    public void exceptionThrown(Exception exception) {
    exception.printStackTrace();
    encoder.writeObject(spanel);
    encoder.close();
    And this is the printStackTrace :
    java.lang.Exception: discarding statement JPanel0.add(JTextField0);
         at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:333)
         at java.beans.DefaultPersistenceDelegate.invokeStatement(DefaultPersistenceDelegate.java:242)
         at java.beans.java_awt_Container_PersistenceDelegate.initialize(MetaData.java:378)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.javax_swing_JComponent_PersistenceDelegate.initialize(MetaData.java:565)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:351)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:100)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeObject1(Encoder.java:192)
         at java.beans.Encoder.cloneStatement(Encoder.java:205)
         at java.beans.Encoder.writeStatement(Encoder.java:236)
         at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:320)
         at java.beans.DefaultPersistenceDelegate.invokeStatement(DefaultPersistenceDelegate.java:242)
         at java.beans.java_awt_Container_PersistenceDelegate.initialize(MetaData.java:378)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.javax_swing_JComponent_PersistenceDelegate.initialize(MetaData.java:565)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:351)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:100)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeObject1(Encoder.java:192)
         at java.beans.Encoder.cloneStatement(Encoder.java:205)
         at java.beans.Encoder.writeStatement(Encoder.java:236)
         at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:320)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:253)
         at coneco.workflow.painter.util.ObjectUtils.serializeContainer(ObjectUtils.java:91)
         at coneco.workflow.painter.SerializeListener.actionPerformed(SerializeListener.java:90)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1092)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:932)
         at java.awt.Component.processMouseEvent(Component.java:5021)
         at java.awt.Component.processEvent(Component.java:4818)
         at java.awt.Container.processEvent(Container.java:1380)
         at java.awt.Component.dispatchEventImpl(Component.java:3526)
         at java.awt.Container.dispatchEventImpl(Container.java:1437)
         at java.awt.Component.dispatchEvent(Component.java:3367)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
         at java.awt.Container.dispatchEventImpl(Container.java:1423)
         at java.awt.Window.dispatchEventImpl(Window.java:1566)
         at java.awt.Component.dispatchEvent(Component.java:3367)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)

    This message appears when I try to save a Panel with all subcomponents.
    My programm saves JLabel in the resulting Xml-file but neither JTextField nor JComboBox, etc.
    I've checked my classes, and all subcomponents of my Spanel are JavaBeans.
    (Spanel extends JPanel and has a no-args constructor as well).
    So is it a JDK bug?
    Hope somebody can help me.
    This is my program :
    public static void serializeContainer(Container spanel,String fileName) throws IOException {
    FileOutputStream fos = new FileOutputStream(fileName);
    XMLEncoder encoder = new XMLEncoder(fos);
    encoder.setExceptionListener(new ExceptionListener() {
    public void exceptionThrown(Exception exception) {
    exception.printStackTrace();
    encoder.writeObject(spanel);
    encoder.close();
    And this is the printStackTrace :
    java.lang.Exception: discarding statement JPanel0.add(JTextField0);
         at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:333)
         at java.beans.DefaultPersistenceDelegate.invokeStatement(DefaultPersistenceDelegate.java:242)
         at java.beans.java_awt_Container_PersistenceDelegate.initialize(MetaData.java:378)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.javax_swing_JComponent_PersistenceDelegate.initialize(MetaData.java:565)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:351)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:100)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeObject1(Encoder.java:192)
         at java.beans.Encoder.cloneStatement(Encoder.java:205)
         at java.beans.Encoder.writeStatement(Encoder.java:236)
         at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:320)
         at java.beans.DefaultPersistenceDelegate.invokeStatement(DefaultPersistenceDelegate.java:242)
         at java.beans.java_awt_Container_PersistenceDelegate.initialize(MetaData.java:378)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.javax_swing_JComponent_PersistenceDelegate.initialize(MetaData.java:565)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:351)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:100)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeObject1(Encoder.java:192)
         at java.beans.Encoder.cloneStatement(Encoder.java:205)
         at java.beans.Encoder.writeStatement(Encoder.java:236)
         at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:320)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:253)
         at coneco.workflow.painter.util.ObjectUtils.serializeContainer(ObjectUtils.java:91)
         at coneco.workflow.painter.SerializeListener.actionPerformed(SerializeListener.java:90)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1092)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:932)
         at java.awt.Component.processMouseEvent(Component.java:5021)
         at java.awt.Component.processEvent(Component.java:4818)
         at java.awt.Container.processEvent(Container.java:1380)
         at java.awt.Component.dispatchEventImpl(Component.java:3526)
         at java.awt.Container.dispatchEventImpl(Container.java:1437)
         at java.awt.Component.dispatchEvent(Component.java:3367)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
         at java.awt.Container.dispatchEventImpl(Container.java:1423)
         at java.awt.Window.dispatchEventImpl(Window.java:1566)
         at java.awt.Component.dispatchEvent(Component.java:3367)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)

  • Java.sql.SQLException: Closed Statement

    I'm having a problem with my Java code trying to access an Oracle 10g database through the JDBC driver using the Oracle XML Publisher.
    We generate a number of different reports, but one report consistently fails with the error: java.sql.SQLException: Closed Statement
    It only happens in the production environment, which has significantly more data than the test and development environments.
    One interesting (!) observation is that the error occurs after 10 minutes to the second (almost). Which leads me to think it is a timeout related problem, but am aware that this could be a red herring.
    And finally, the code is being run within a job sheduled using the Quartz Scheduler v1.6.5.
    Any help would be appreciated.
    Many Thanks
    Lawrence
    Here is the stack trace:
    java.sql.SQLException: Closed Statement: getMetaData
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.OracleResultSetImpl.getMetaData(OracleResultSetImpl.java:128)
    at com.mchange.v2.c3p0.impl.NewProxyResultSet.getMetaData(NewProxyResultSet.java:47)
    at oracle.apps.xdo.dataengine.XMLPGEN.processSQLDataSource(Unknown Source)
    at oracle.apps.xdo.dataengine.XMLPGEN.writeData(Unknown Source)
    at oracle.apps.xdo.dataengine.XMLPGEN.writeGroup(Unknown Source)
    at oracle.apps.xdo.dataengine.XMLPGEN.writeGroup(Unknown Source)
    at oracle.apps.xdo.dataengine.XMLPGEN.processSQLDataSource(Unknown Source)
    at oracle.apps.xdo.dataengine.XMLPGEN.writeData(Unknown Source)
    at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(Unknown Source)
    at oracle.apps.xdo.dataengine.XMLPGEN.processData(Unknown Source)
    at oracle.apps.xdo.dataengine.XMLPGEN.processXML(Unknown Source)
    at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(Unknown Source)
    at oracle.apps.xdo.dataengine.DataProcessor.processDataStructre(Unknown Source)
    at oracle.apps.xdo.dataengine.DataProcessor.processData(Unknown Source)
    at com.tmobile.sett.file.invoice.InvoiceFileFactory.generateXML(InvoiceFileFactory.java:157)
    at com.tmobile.sett.file.invoice.InvoiceFileFactory.generateStatements(InvoiceFileFactory.java:365)
    at com.tmobile.sett.file.invoice.InvoiceFileFactory.generateInvoices(InvoiceFileFactory.java:457)
    at com.tmobile.sett.file.invoice.StatementGeneratorJob.execute(StatementGeneratorJob.java:34)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
    Here is the code:
    private void generateXML(String xmlTemplate, String xmlFilename, Hashtable parameters) {
    DataProcessor dataProcessor = new DataProcessor();
    log.debug("generateXML: xmlTemplate {}, xmlFilename {}", xmlTemplate, xmlFilename);
    try {
    // Set Data Template to be executed
    dataProcessor.setDataTemplate(xmlTemplate);
    // Obtain a new Connection from the Pool
    Connection conn = HibernateUtil.getConnection();
    if (conn == null)
    log.debug("conn is null after getCall");
    if (conn.isClosed())
    log.debug("conn is closed after getCall");
    // Set the Connection for the dataProcessor
    dataProcessor.setConnection(conn);
    if (conn.isClosed())
    log.debug("conn is closed after setConnection");
    dataProcessor.setParameters(parameters);
    if (conn.isClosed())
    log.debug("conn is closed after setParameters");
    // Specify the output directory and file for the data file
    dataProcessor.setOutput(xmlFilename);
    if (conn.isClosed())
    log.debug("conn is closed after setOutput");
    // Process the data template
    dataProcessor.processData();
    if (conn.isClosed())
    log.debug("conn is closed after processData");
    // Return the connection to the pool
    conn.close();
    } catch (Exception e) {
    System.err.println("Error generating XML with the following parameters:");
    System.err.println("xmlTemplate=" + xmlTemplate);
    System.err.println("xmlFilename=" + xmlFilename);
    System.err.println("Here's the stack trace");
    e.printStackTrace();
    System.exit(1);
    }

    I have made some progress in understanding the problem...
    Basically, your comment about threads made me look at the code from a threads perspective. There are only three objects used, log4j, oracleXML Publisher and hibernate. Discounting log4j, the Oracle object is created, opened and closed within the procedure, so I concluded that hibernate was the most likely cause of the problem (i know, theres an element of educated guesswork in this).
    Anyway, I found the hibernate timeouts (all around 300 seconds) and increased them to 3000 seconds... and lo and behold the reports are generated successfully, although some of them take over 20 minutes each.
    So, this is a performance problem with the SQL itself:
    SELECT service
    , reply
    , ROUND(SUM(DECODE(op, 3, 0, count))* :uplift,0) x_events
    , ROUND(SUM(DECODE(op, 3, count, 0))* :uplift,0) y_events
    FROM aggregate
    WHERE ref_time >= :period_start
    AND ref_time < :period_end
    AND feed = 13
    AND agreement = :agreement
    AND line = 1
    GROUP BY service, reply
    ORDER BY 1,2
    The SQL in question is querying data for a specific month from a monthly partitioned table that contains about 11 million records a month. We currently have 99 partitions.
    Executing the sql in Toad / Sql developer / sqlplus takes around 20 seconds...so why 20 minutes?
    Looking in the session browser, I can see that the 20 minute query is looking through all 99 partitions where the 20 second query is only looking at 1 partition for the month in question.
    I'm not sure if this is heading off topic for the forum thread, but the question now is...
    Why is Oracle using a clearly innefficient execution plan when we are using a query with bound variables and how do we get it to use a more efficient execution plan?

  • Java If/Then/Else Statement

    Hello,
    Just wondering if it is possible to call one java file from within another.
    I'm thining wiht an if.then/else statement similar to
    If x==true
    then run file1.java
    else run file2.java
    any examples of this, or if it is even possible would be appreciated.

    This is something like what I would do.
    public class FileRunner {
        public static void main(String [] args) {
            if ( args[0].equals("file1") {
                File1 file1 = new File1();
                file1.init() //method you define in File1 that runs everything that would've been in the File1's main method
            } else if (args[0].equals("file2") {
                File2 file2 = new File2();
                file2.init() //method you define in file2 that runs everything that would've been in the File2's main method
            } else {
                System.err.println("Invalid argument");
                System.exit(1);
    java.exe FileRunner.class file1
    java.exe FileRunner.class file2The other method is to start a new jvm from within java, but that gives you less control than this imo.

  • How to pass Array of Java objects to Callable statement

    Hi ,
    I need to know how can I pass an array of objects to PL/SQL stored procedure using callable statement.
    So I am having and array list of some object say xyz which has two attributes string and double type.
    Now I need to pass this to a PL/SQL Procedure as IN parameter.
    Now I have gone through some documentation for the same and found that we can use ArrayDescriptor tp create array (java.sql.ARRAY).
    And we will use a record type from SQL to map this to our array of java objects.
    So my question is how this mapping of java object's two attribute will be done to the TYPE in SQL? can we also pass this array as a package Table?
    Please help
    Thanks

    I seem to remember that that is in one of Oracle's online sample programs.
    http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html

  • How can i change my JAVA card life cycle state to OP_READY?

    I found the below script in this link and run it via `GPShell` on my java card and now I can't run `gpj -list` in `GPJ`!
    My questions:
    1- What is this code for? changing Card Domain Manager status from OP_READY to Secured?
    2- Why I can't find anywhere `80F0800708A000000003000000` And `80F0800F08A000000003000000` APDUs that used in script?! I searched `GP Specification 2.2` and `ISO 7814-4` for an APDU with `F0` in `CLA` section! But I found nothing!
    3- Is the operation of the below script reversible by another script?
    The Script :
        mode_211
        enable_trace
        establish_context
        card_connect
        select -AID A0000000
        open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f -kek_key
        404142434445464748494a4b4c4d4e4f
        send_apdu -sc 1 -APDU 80F0800708A000000003000000
        send_apdu -sc 1 -APDU 80F0800F08A000000003000000
        card_disconnect
        release_context
    And this is it's output in Console :
        C:\Users\ghasemi\Desktop\GPShell-1.4.4>gpshell lcchange.txt
        mode_211
        enable_trace
        establish_context
        card_connect
        select -AID a00000
        Command --> 00A4040003A00000
        Wrapped command --> 00A4040003A00000
        Response <-- 6F108408A000000003000000A5049F6501FF9000
        open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4
        f -enc_key 404142434445464748494a4b4c4d4e4f -kek_key 404142434445464748494a4b4c4
        d4e4f
        Command --> 80CA006600
        Wrapped command --> 80CA006600
        Response <-- 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864
        886FC6B03640B06092A864886FC6B040215650B06092B8510864864020103660C060A2B060104012
        A026E01029000
        Command --> 805000000823CE2F4C2B6C689B00
        Wrapped command --> 805000000823CE2F4C2B6C689B00
        Response <-- 0000116001007F8B0AF9020201D1C94E4F787D75DD54805A7488BCF79000
        Command --> 84820100100BCCFE8818D2DFC6E5B48EA4B6892457
        Wrapped command --> 84820100100BCCFE8818D2DFC6E5B48EA4B6892457
        Response <-- 9000
        send_apdu -sc 1 -APDU 80F0800708A000000003000000
        Command --> 80F0800708A000000003000000
        Wrapped command --> 84F0800710A0000000030000007AA29B3A708E6E75
        Response <-- 9000
        send_APDU() returns 0x80209000 (9000: Success. No error.)
        send_apdu -sc 1 -APDU 80F0800F08A000000003000000
        Command --> 80F0800F08A000000003000000
        Wrapped command --> 84F0800F10A0000000030000004FCFC15FD7EBDE9A
        Response <-- 9000
        send_APDU() returns 0x80209000 (9000: Success. No error.)
        card_disconnect
        release_context
    Thankyou.

    Hi,
    Ad.1
    Yes, this script is dedicated to change ISD state from OP_READY to SECURED (cards compatible with GP 2.1.1 specs).
    Ad.2
    The script commands are constructed basing on GP 2.1.1 specs. As far as I know, the definition of SET STATUS command in GP 2.2 is the same as in GP 2.1.1 specs.
    Ad. 3
    The change of state from SECURED to OP_READY is irreversible. Sorry.
    Regards

  • Unable to add java files with package statement

    Hi all,
    I have the following problem. I add to my project(JBuilder8) a set of java files that
    they have in their headers the statement...
    package jp.gr.java_conf.tame.swing.table;except one with statement...
    package jp.gr.java_conf.tame.swing.colorchooser;If i try to compile the project i get the following message many times for
    each file...
    "AttributiveCellRenderer.java": Error #: 901 : package
    jp.gr.java_conf.tame.swing.table stated in source
    C:\Development\JBProjects\cellspan\AttributiveCellRenderer.java does not
    match directory . at line 4, column 36What i have to do to embed correctly the java files?
    Thank you for advance, kostas.

    Sounds like your source file is in the wrong directory. The directory the file's in has to match the package.

  • Does Java support mutliple sql statements in one call?

    statment.executeUpdate("DROP DATABASE IF EXISTS diy55;CREATE DATABASE IF NOT EXISTS diy55 DEFAULT CHARACTER SET utf8;GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX,USAGE on diy55.* TO 'diy55'@'localhost' identified by 'diy55';FLUSH PRIVILEGES;");Java seemes doesn't support multiple sql statements in one call, just like PHP mysql_query(), is it?

    Then just extend the java.sql.Statement to your own Statement class and write logic which splits the given query at the right places and executes them one by one.
    That the mysql_query() already has it built-in wouldn't say that it isn't possible in Java. Comparing with PHP is a bit pointless, it is a completely different language.

  • Java Application in ERROR State not stopable - how to remove?

    Hi,
    I have created a Java Application and published to the HCP Trial. After successful testing I stopped and uninstalled the App and the respective assets (e.g. database Schema) Nevertheless this process was interrupted by the shutdown of the landscape for maintenance 2 days ago. Now the App is visible again in the Cockpit with state "Application Error" - when I try to stop it nothing is happening. If I want to go to the details screen of that application it also does not come up and still shows the table of all the applications.
    As you can only have one started Java Application in the Trial - I am really keen on getting to know how to stop that application to be able to go on with other tests.
    Any Guides - or any possibility to stop/delete the application?
    Thanks in advance,
    Arne

    Hi, here are the screenshots of settings and error:
    (If I change the application name here without changing any other settings I am able to successfully create a new application on the server)

  • Java applet detecting system states

    I am currently working on a chat room applet to keep all of our emplyees connected during the day for user support and general communication; however, we have been having an issue with people not going idle lately. The solution we have settled on is trying to detect if the user's computer has been locked (a much more habitual thing to do) from the java applet that they access the system from (all of our users are accessing the applet from a windows machine). I cannot for the life of me figure out how to do this. Is this even possible in an applet or would it have to be an actual application?
    thanks in advance for the help!

    It's probably possible if you sign the applet code, but it's messy. You need to use JNI to access the system status which requires that an appropriate DLL is in place on the client machine. A signed applet can install one.
    But you quickly get to the point where it might make more sense to use a stand-alone program, which you could place on a shared directory.

  • How can i change my JAVA card life cycle state to secured?

    when I install a applet ,the Card Manager state is OP_READY
    I want to lock the card .now I need to go to the secured status .but what GP command should I send  to transfer the state from OP_READY to secured .

    Thank you for your reply,but you say I must insure that the applet is personalized. I also have anther question for your help.
    when  I already install the applet as follows:
    Card Manager AID   :  A000000003000000
    Card Manager state :  OP_READY
        Application:  SELECTABLE (---L--P-) A0000000000101
        Load File  :      LOADED (--------) A0000000035350   (Security Domain)
         Module    :                        A000000003535041
        Load File  :      LOADED (--------) A000000000   
         Module    :                        A0000000000101
    in order to  personalize,I select the applet  (send 00a4040007A0000000000101) ,then  send personalize commends. now the applet is personalized.
    the next is to change the card manage to SECURED.
    But after  I send   00A4040008A00000000300000000 to select the Card Manager AID,the SET STATUS commend (/send 80f0800708A000000003000000) return "6985"
    where is wrong?
    If I don't select the Card Manager AID, the SET STATUS commend is also wrong because the applet AID  is selected just now.
    cm>  send 00A4040008A00000000300000000
    => 00 A4 04 00 08 A0 00 00 00 03 00 00 00 00          ..............
    (700998 nsec)
    <= 6F 65 84 08 A0 00 00 00 03 00 00 00 A5 59 9F 65    oe...........Y.e
        01 FF 9F 6E 06 47 91 81 07 31 00 73 4A 06 07 2A    ...n.G...1.sJ..*
        86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86 FC 6B    .H..k.`...*.H..k
        02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64    ....c...*.H..k.d
        0B 06 09 2A 86 48 86 FC 6B 04 02 15 65 0B 06 09    ...*.H..k...e...
        2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01    +...Hd...f...+..
        04 01 2A 02 6E 01 02 90 00                         ..*.n....
    Status: No Error
    cm>  /send 80f0800708A000000003000000
    => 80 F0 80 07 08 A0 00 00 00 03 00 00 00             .............
    (696032 nsec)
    <= 69 85          
    thanks.

  • Java hibernate on sql statement

    Hi,
    Does anyone know how to execute a plain sql statement using hibernate? In otherwords, I would like to pass in a sql string, and use a hibernate command ( api ) to execute that sql string.
    Thanks a lot.
    cc

    I would like to query all the record form a view, say, allRecord. Here is my mapping file:
    <?xml version="1.0"?>
    <!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
    <hibernate-mapping >
    <sql-query name="mySqlQuery">
    <return alias="yr" class="com.org.forms.AllRecordForm"/>
    SELECT *
    FROM AllRecord
    </sql-query></hibernate-mapping>
    Where AllRecordForm is the form for the view AllRecord in the database. Can you tell me where I did wrong? I got Unknown entity: com.org.forms.AllRecordForm error.
    thanks again.

  • I just installed firefox as a broser. everytime I click on any website a pop up window named "java script application" and states "exc in ev handl:type error: oSAPLg. o root. log is not a function"

    I just installed firefox as a broser. everytime I click a website the following pop up window opens. "exc in ev handl: type error: oSAPLg.o root. log is not a function. How do I correct this.

    Please see solution in http://kb.mozillazine.org/Problematic_extensions
    for "McAfee Site Advisor".
    (Windows): For best results you should uninstall '''McAfee Site Advisor''' from Control Panel > add/change programs (Programs and Features). Reboot the system. Then Reinstall from http://www.siteadvisor.com/ and reboot the system. When installing refuse other suggested (crapware) applications.
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

Maybe you are looking for

  • By-passing Airport to print through Ethernet

    I loaded Snow Leopard yesterday and could not find my HP Color LaserJet 5500dn, which is connected via Ethernet. Then I discovered it wouldn't recognized or communicate with it while I had Airport on. After turning Airport off, low and behold it reco

  • Visual Web JSF and Java Script problem

    Hi i am using Visual Web JSF for development in my project. AJAX to update data from server when users enters data in one text box its an chat application. i am getting data from server but unable to update my <webuijsf:textarea> component with the n

  • Can i use mini dvd in mac book pro?

    It's the first time I need use a miniDVD on my system (mac Book Pro 11), but I don't sure if should insert it into DVD, please could someone help me? Thanks in advance.

  • I have a problem and need help

    Hi everyone, I am a flash noob and I have a problem I hope you can help me with. I have a interactive haunted house im working on (www.chuckies.webs.com) and I have a script (actionscript 2) that works with the mouse. it scrolls the screen left and r

  • SD card reader is not working in my MBP early 2011. Is there any solution?

    SD card reader is not working in my MBP early 2011. Is there any solution?