OBE : TotalComp Expression : NullPointerException

hi
The tutorial "Examining ADF Business Components New Features "
at http://www.oracle.com/technology/obe/obe11jdev/11/adfbc_new_features/adfbc.html
says, in its "Creating Calculated Attributes " section, to enter "(Salary!=null?Salary:0)+(Salary*(CommissionPct!=null?CommissionPct:0)) "
(see also the TotalCompExpression.png screenshot)
At runtime this can result in this exception (e.g. when inserting a new row using the Oracle Business Component Browser)
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
     at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:833)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.NullPointerException
     at org.codehaus.groovy.runtime.dgmimpl.NumberNumberMultiply$LongInteger.call(NumberNumberMultiply.java:285)
     at bc4j.myadfbcapp_model_Emp_TotalComp.gs.run(bc4j.myadfbcapp_model_Emp_TotalComp.gs.groovy:1)
     at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:817)
     ... 55 more
## Detail 0 ##
java.lang.NullPointerException
     at org.codehaus.groovy.runtime.dgmimpl.NumberNumberMultiply$LongInteger.call(NumberNumberMultiply.java:285)
     at bc4j.myadfbcapp_model_Emp_TotalComp.gs.run(bc4j.myadfbcapp_model_Emp_TotalComp.gs.groovy:1)
     at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:817)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
----- Level 1: Detail 0 -----
java.lang.NullPointerException
     at org.codehaus.groovy.runtime.dgmimpl.NumberNumberMultiply$LongInteger.call(NumberNumberMultiply.java:285)
     at bc4j.myadfbcapp_model_Emp_TotalComp.gs.run(bc4j.myadfbcapp_model_Emp_TotalComp.gs.groovy:1)
     at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:817)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)This NullPointerException can be avoided using this expression:
(Salary!=null?Salary:0)+((Salary!=null?Salary:0)*(CommissionPct!=null?CommissionPct:0))
regards
Jan Vervecken

Thanks for your reply Frank.
I'll file a doc bug. ...Maybe you could just ask "pdaux", Re: OBE : ADF Faces in Model project the same tutorial for the question in the forum thread "OBE : ADF Faces in Model project"
at OBE : ADF Faces in Model project
regards
Jan Vervecken

Similar Messages

  • Deployment problem: oracle.jbo.JboException: JBO-26034

    Hi to all.
    I have a strange problem deplying an application. When the first jsp is loaded the follwing excteption is raised :
    oracle.jbo.JboException: JBO-26034: Cannot find Configuration with name :NotInvAM
    With the embedded OC4J server all works fine. This is not the first application i deploy but this is the first time i have a problem. I'm doing somthings wrong in the deployment descriptor ?
    TIA

    OBE : TotalComp Expression : NullPointerException

  • NullPointerException when processing *[*] xpath expression

    I'm trying to pull only elements that have an element as a
    child, using the *[*] xpath expression. When I use MSXML 3.0,
    my results are correct. When I use ORAXSL (NT 9i version
    downloaded from OTN), I get a NullPointerException. Please see
    example below.
    <?xml version="1.0"?>
    <TABLES>
         <TABLE1>
              <TABLE1_ROW1>TEXT1</TABLE1_ROW1>
              <TABLE1_ROW2>TEXT2</TABLE1_ROW2>
         </TABLE1>
         <TABLE2>
              <TABLE2_ROW1>TEXT3</TABLE2_ROW1>
         </TABLE2>
         <TABLE3>
              <TABLE3_ROW1>TEXT4</TABLE3_ROW1>
         </TABLE3>
    </TABLES>
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:output method="text" version="1.0" encoding="UTF-8"
    indent="yes"/>
    <xsl:key name="elements" match="*[*]" use="name()"/>
    <xsl:template match="/">
    <xsl:for-each select="//*[generate-id(.)=generate-id(key
    ('elements',name())[1])]">
    <xsl:for-each select="key('elements',name())">
    <xsl:if test="position()=1">
    <xsl:text>drop table </xsl:text>
    <xsl:value-of select="name()"/>
    <xsl:text>;&#xa;</xsl:text>
    </xsl:if>
    </xsl:for-each>
    </xsl:for-each>
    <xsl:text>&#xa;exit</xsl:text>
    </xsl:template>
    </xsl:stylesheet>
    MSXML 3.0 OUTPUT:
    drop table TABLES;
    drop table TABLE1;
    drop table TABLE2;
    drop table TABLE3;
    exit
    ORAXSL OUTPUT:
    java.lang.NullPointerException
    Error occurred while processing test.xml: null
    If I change the *[*] to just * then the XSLT will process.

    This is a bug. I've filed Bug 2138361 to get this looked into by
    development.
    The workaround is to avoid using keys, moving the *[*] into the
    outer select expression for the for-each:
    <xsl:for-each select="//*[*]">
    instead of:
    <xsl:for-each select="//*[*][generate-id(.) =
                                 generate-id(key('elements',name())
    [1])]">

  • Using a Switch statement for Infix to Prefix Expressions

    I am stuck on the numeric and operator portion of the switch statement...I have the problem also figured out in an if/else if statement and it works fine, but the requirements were for the following algorithm:
    while not end of expression
    switch next token of expression
    case space:
    case left parenthesis:
    skip it
    case numeric:
    push the string onto the stack of operands
    case operator:
    push the operator onto the stack of operators
    case right parenthesis:
    pop two operands from operand stack
    pop one operator from operator stack
    form a string onto operand stack
    push the string onto operand stack
    pop the final result off the operand stack
    I know that typically case/switch statement's can only be done via char and int's. As I said I am stuck and hoping to get some pointers. This is for a homework assignment but I am really hoping for a few pointers. I am using a linked stack class as that was also the requirements. Here is the code that I have:
       import java.io.*;
       import java.util.*;
       import java.lang.*;
    /*--------------------------- PUBLIC CLASS INFIXTOPREFIX --------------------------------------*/
    /*-------------------------- INFIX TO PREFIX EXPRESSIONS --------------------------------------*/
        public class infixToPrefix {
          private static LinkedStack operators = new LinkedStack();
          private static LinkedStack operands = new LinkedStack();
            // Class variable for keyboard input
          private static BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
             // Repeatedly reads in infix expressions and evaluates them
           public static void main(String[] args) throws IOException {
          // variables
             String expression, response = "y";
          // obtain input of infix expression from user
             while (response.charAt(0) == 'y') {
                System.out.println("Enter a parenthesized infix expression.");          // prompt the user
                System.out.println("Example: ( ( 13 + 2 ) * ( 10 + ( 8 / 3 ) ) )");
                System.out.print("Or as: ((13+2)*(10+(8/3))):  ");
                expression = stdin.readLine();     // read input from the user
             // output prefix expression and ask user if they would like to continue          
                System.out.println("The Prefix expression is: " + prefix(expression));     // output expression
                System.out.println("Evaluate another? y or n: ");          // check with user for anymore expressions
                response = stdin.readLine();     // read input from user
                if (response.charAt(0) == 'n') {          // is user chooses n, output the statement
                   System.out.println("Thank you and have a great day!");
                }     // end if statement
             }     // end while statement
          }     // end method main
       /*------------- CONVERSION OF AN INFIX EXPRESSION TO A PREFIX EXPRESSION ------------*/ 
       /*--------------------------- USING A SWITCH STATEMENT ------------------------------*/
           private static String prefix(String expression) {
                // variables
             String symbol, operandA, operandB, operator, stringA, outcome;
               // initialize tokenizer
             StringTokenizer tokenizer = new StringTokenizer(expression, " +-*/() ", true);     
             while (tokenizer.hasMoreTokens()) {
                symbol = tokenizer.nextToken();     // initialize symbol     
                switch (expression) {
                   case ' ':
                      break;     // accounting for spaces
                   case '(':
                      break;     // skipping the left parenthesis
                   case (Character.isDigit(symbol.charAt(0))):      // case numeric
                      operands.push(symbol);                                   // push the string onto the stack of operands
                      break;
                   case (!symbol.equals(" ") && !symbol.equals("(")):     // case operator
                      operators.push(symbol);                                             // push the operator onto the stack of operators
                      break;
                   case ')':
                      operandA = (String)operands.pop();     // pop off first operand
                      operandB = (String)operands.pop();     // pop off second operand
                      operator = (String)operators.pop();     // pop off operator
                      stringA = operator + " " + operandB + " " + operandA;          // form the new string
                      operands.push(stringA);
                      break;
                }     // end switch statement
             }     // end while statement
             outcome = (String)operands.pop();     // pop off the outcome
             return outcome;     // return outcome
          }     // end method prefix
       }     // end class infixToPrefixAny help would be greatly appreciated!

    so, i did what flounder suggested:
             char e = expression.charAt(0);
             while (tokenizer.hasMoreTokens()) {
                symbol = tokenizer.nextToken();     // initialize symbol     
                switch (e) {
                   case ' ':
                      break;     // accounting for spaces
                   case '(':
                      break;     // skipping the left parenthesis
                   case '0':
                   case '1':
                   case '2':
                   case '3':
                   case '4':
                   case '5':
                   case '6':
                   case '7':
                   case '8':
                   case '9':
                      operands.push(symbol);     // push the string onto the stack of operands
                      break;                               // case numeric
                   case '+':
                   case '-':
                   case '*':
                   case '/':
                      operators.push(symbol);     // push the operator onto the stack of operators
                      break;                               // case operator
                   case ')':
                      operandA = (String)operands.pop();     // pop off first operand
                      operandB = (String)operands.pop();     // pop off second operand
                      operator = (String)operators.pop();     // pop off operator
                      stringA = operator + " " + operandB + " " + operandA;          // form the new string
                      operands.push(stringA);
                      break;
                   default:
                }     // end switch statement
             }     // end while statement
             outcome = (String)operands.pop();     // pop off the outcome
             return outcome;     // return outcomeafter this, I am able to compile the code free of errors and I am able to enter the infix expression, however, the moment enter is hit it provides the following errors:
    Exception in thread "main" java.lang.NullPointerException
         at LinkedStack$Node.access$100(LinkedStack.java:11)
         at LinkedStack.pop(LinkedStack.java:44)
         at infixToPrefix.prefix(infixToPrefix.java:119)
         at infixToPrefix.main(infixToPrefix.java:59)
    Any ideas as to why? I am still looking through seeing if I can't figure it out, but any suggestions? Here is the linked stack code:
        public class LinkedStack {
       /*--------------- LINKED LIST NODE ---------------*/
           private class Node {
             private Object data;
             private Node previous;
          }     // end class node
       /*--------------  VARIABLES --------------*/
          private Node top;
      /*-- Push Method: pushes object onto LinkedStack --*/     
           public void push(Object data) {
             Node newTop = new Node();
             newTop.data = data;
             newTop.previous = top;
             top = newTop;
          }     // end function push
       /*--- Pop Method: pop obejct off of LinkedStack ---*/
           public Object pop()      {
             Object data = top.data;
             top = top.previous;
             return data;
          }     // end function pop
       } // end class linked stackEdited by: drmsndrgns on Mar 12, 2008 8:10 AM
    Edited by: drmsndrgns on Mar 12, 2008 8:14 AM
    Edited by: drmsndrgns on Mar 12, 2008 8:26 AM

  • Problem with Datasource for SQL Server Express

    I have set up a development environment to develop some processes for the HCSO client and have a question.  I have a turnkey install on my laptop with MYSQL.  The liveCycle databases are in MYSQL.  I have also installed SQL Server Express on this machine and created a table to query that will control workflow.  I added a datasource configuration in the adobe-ds.xml configuration file.  That configuration is:
    <local-tx-datasource>
                <jndi-name>HCSO</jndi-name>
                <connection-url>jdbc:sqlserver://localhost:1433;DatabaseName=DBName</connection-url>
                <driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
                <user-name>username</user-name>
                <password>password</password>
                <min-pool-size>1</min-pool-size>
                <max-pool-size>30</max-pool-size>
                <blocking-timeout-millis>60000</blocking-timeout-millis>
                <autoReconnect>true</autoReconnect>
                <idle-timeout-minutes>15</idle-timeout-minutes>
                <prepared-statement-cache-size>100</prepared-statement-cache-size>
                <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
                <new-connection-sql>Select id from HCSOUser.eric</new-connection-sql>
                <check-valid-connection-sql>Select id from HCSOUser.eric</check-valid-connection-sql>
                <metadata>
                      <type-mapping>MS SQLSERVER2000</type-mapping>
                </metadata>
          </local-tx-datasource>
    In SQL Server, I created a user and a schema with the same name in a database.  I created a simple table called "eric" with one column called "id".  The user was given the appropriate default schema and given full permissions on the database and table.
    In workbench, I added a JDBC query single row activity.  I have configured the datasource as java:/HCSO and also tried java:HCSO.  I then entered the query as "Select id from HCSOUser.eric" and hit test.  Nothing appears in the results area.  I see the following in the server.log:
    2009-09-24 14:44:26,437 ERROR [org.jboss.ejb.plugins.LogInterceptor] RuntimeException in method: public abstract java.lang.Object com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterLocal.doBMT(com.ad obe.idp.dsc.transaction.TransactionCallback) throws com.adobe.idp.dsc.DSCException:
    java.lang.RuntimeException: A result set was generated for update.
          at com.adobe.idp.dsc.jdbc.JDBCService.testExecute(JDBCService.java:616)
          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:592)
          at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:118)
          at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:140)
          at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
          at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)
          at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterBean.doBMT(EjbTran sactionBMTAdapterBean.java:197)
          at sun.reflect.GeneratedMethodAccessor573.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:592)
          at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
          at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:214)
          at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
          at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor. java:54)
          at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
          at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
          at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:1 58)
          at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
          at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:154)
          at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
          at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
          at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
          at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
          at org.jboss.ejb.Container.invoke(Container.java:873)
          at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
          at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
          at $Proxy270.doBMT(Unknown Source)
          at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:95)
          at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)
          at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
          at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyInterceptor.java:55)
          at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
          at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
          at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
          at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:132)
          at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
          at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
          at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
          at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)
          at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)
          at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke(AbstractMessageReceiv er.java:315)
          at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invokeCall(SoapSdkEndpoint. java:138)
          at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invoke(SoapSdkEndpoint.java :81)
          at sun.reflect.GeneratedMethodAccessor710.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:592)
          at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
          at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
          at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
          at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
          at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
          at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
          at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
          at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
          at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:252)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
          at com.adobe.idp.dsc.provider.impl.soap.axis.InvocationFilter.doFilter(InvocationFilter.java :43)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:202)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:202)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
          at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja va:159)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11P rotocol.java:744)
          at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
          at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
          at java.lang.Thread.run(Thread.java:595)
    Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: A result set was generated for update.
          at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)
          at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(Unknown Source)
          at com.microsoft.sqlserver.jdbc.SQLServerStatement$StatementExecutionRequest.executeStatemen t(Unknown Source)
          at com.microsoft.sqlserver.jdbc.CancelableRequest.execute(Unknown Source)
          at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeRequest(Unknown Source)
          at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeUpdate(Unknown Source)
          at org.jboss.resource.adapter.jdbc.WrappedStatement.executeUpdate(WrappedStatement.java:161)
          at com.adobe.idp.dsc.jdbc.helper.SqlHelper.executeTestUpdate(SqlHelper.java:117)
          at com.adobe.idp.dsc.jdbc.JDBCService.testExecute(JDBCService.java:610)
          ... 82 more

    Thanks fot the tip, but now I got a different message in the "Test" results of "Query Single Row":
    Exception: Could not create connection; - nested throwable: (com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host  has failed. java.net.ConnectException: Connection refused: connect); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host  has failed. java.net.ConnectException: Connection refused: connect))
    My datasource xml is like this:
    <?xml version="1.0" encoding="UTF-8"?>
            <datasources>
            <local-tx-datasource>
            <jndi-name>MSSQL</jndi-name>
            <connection-url>jdbc:sqlserver://localhost:1433;DatabaseName=ADOBE</connection-url>
              <use-java-context>false</use-java-context>
            <driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
            <user-name>sa</user-name>
            <password>adobe</password>
              <min-pool-size>10</min-pool-size>
              <max-pool-size>50</max-pool-size>
              <blocking-timeout-millis>60000</blocking-timeout-millis>
              <idle-timeout-minutes>15</idle-timeout-minutes>
              <prepared-statement-cache-size>100</prepared-statement-cache-size>
              <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
            <check-valid-connection-sql>SELECT 1 FROM sysobjects</check-valid-connection-sql>
            <metadata>
              <type-mapping>MS SQLSERVER2005</type-mapping>
            </metadata>
            </local-tx-datasource>
            </datasources>        
    Where is the problem and how to fix it?
    Thank you.

  • CF 10, Consistent java.lang.NullPointerException at cflogin after 20 minutes

    Fresh install of cf 10, using tested, mature code written for cf 9. Code is in production on cf 9 in several installations. Application is sitting on its home screen, where there are 4 areas that have ajax driven content that is updated every 5 minutes. After 20 minutes one of the alax driven areas generates an error. The error in is application.cfc, OnRequestStart, and is at the line where <cflogin> starts. Almost seems like a timeout, however it it throwing an error as indicate below. Anyone have any ideas how to go about troublshooting/solving this? Wrapping it in cftry and trying to get additional information does not provide any more detail, as a matter of fact the cfcatch info is all blank!
    EXCEPTION
    struct
    Cause
    struct
    Message
    [empty string]
    StackTrace
    java.lang.NullPointerException at  java.util.Hashtable.put(Hashtable.java:542) at  coldfusion.runtime.SecurityScopeTracker.setSecurity(SecurityScopeTracker.java:23  5) at  coldfusion.runtime.SecurityScopeTracker.getSecurity(SecurityScopeTracker.java:1  24) at  coldfusion.tagext.security.AuthenticateTag.doStartTag(AuthenticateTag.java:172)  at  cfApplication2ecfc1223778257$funcONREQUESTSTART._factor14(C:\inetpub\wwwroot\CM  SUAT\Application.cfc:560) at  cfApplication2ecfc1223778257$funcONREQUESTSTART.runFunction(C:\inetpub\wwwroot\  CMSUAT\Application.cfc:500) at  coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at  coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368  ) at  coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)  at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at  coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at  coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:655) at  coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:444) at  coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:414) at  coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:108) at  coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:278)  at  coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:417)  at  coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)  at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)  at coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at  coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at  coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFil  ter.java:28) at  coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at  coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58) at  coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at  coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at  coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at  coldfusion.CfmServlet.service(CfmServlet.java:219) at  coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)  at  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil  terChain.java:305) at  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain  .java:210) at  coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilt  er.java:42) at  coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)  at  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil  terChain.java:243) at  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain  .java:210) at  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:  224) at  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:  169) at  org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.ja  va:472) at  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)  at  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)  at  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)  at  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:11  8) at  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414)  at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:204) at   org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractPr  otocol.java:539) at  org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298  ) at  java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  at  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  at java.lang.Thread.run(Thread.java:722)
    Suppressed
    array [empty]
    TagContext
    array
    1
    struct
    COLUMN
    0
    ID
    CFAUTHENTICATE
    LINE
    560
    RAW_TRACE
    at cfApplication2ecfc1223778257$funcONREQUESTSTART._factor14(C:\inetpub\wwwroot\CM SUAT\Application.cfc:560)
    TEMPLATE
    C:\inetpub\wwwroot\CMSUAT\Application.cfc
    TYPE
    CFML
    2
    struct
    COLUMN
    0
    ID
    CF_APPLICATION
    LINE
    500
    RAW_TRACE
    at cfApplication2ecfc1223778257$funcONREQUESTSTART.runFunction(C:\inetpub\wwwroot\ CMSUAT\Application.cfc:500)
    TEMPLATE
    C:\inetpub\wwwroot\CMSUAT\Application.cfc
    TYPE
    CFML
    Type
    java.lang.NullPointerException
    Detail
    An exception occurred while invoking an event handler method from Application.cfc. The method name is: onRequestStart.
    Message
    Event handler exception.
    RootCause
    struct
    Message
    [empty string]
    StackTrace
    java.lang.NullPointerException at  java.util.Hashtable.put(Hashtable.java:542) at  coldfusion.runtime.SecurityScopeTracker.setSecurity(SecurityScopeTracker.java:2  35) at  coldfusion.runtime.SecurityScopeTracker.getSecurity(SecurityScopeTracker.java:1  24) at  coldfusion.tagext.security.AuthenticateTag.doStartTag(AuthenticateTag.java:172)  at  cfApplication2ecfc1223778257$funcONREQUESTSTART._factor14(C:\inetpub\wwwroot\CM  SUAT\Application.cfc:560) at  cfApplication2ecfc1223778257$funcONREQUESTSTART.runFunction(C:\inetpub\wwwroot\  CMSUAT\Application.cfc:500) at  coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at  coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368  ) at  coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)  at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at  coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at  coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:655) at  coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:444) at  coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:414) at  coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:108) at  coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:278)  at  coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:417)  at  coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)  at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)  at coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at  coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at  coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFil  ter.java:28) at  coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at  coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58) at  coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at  coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at  coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at  coldfusion.CfmServlet.service(CfmServlet.java:219) at  coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)  at  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil  terChain.java:305) at  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain  .java:210) at  coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilt  er.java:42) at  coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)  at  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil  terChain.java:243) at  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain  .java:210) at  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:  224) at  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:  169) at  org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.ja  va:472) at  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)  at  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)  at  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)  at  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:11  8) at  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414)  at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:204) at   org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractPr  otocol.java:539) at  org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298  ) at  java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  at  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  at java.lang.Thread.run(Thread.java:722)
    Suppressed
    array [empty]
    TagContext
    array
    1
    struct
    COLUMN
    0
    ID
    CFAUTHENTICATE
    LINE
    560
    RAW_TRACE
    at cfApplication2ecfc1223778257$funcONREQUESTSTART._factor14(C:\inetpub\wwwroot\CM SUAT\Application.cfc:560)
    TEMPLATE
    C:\inetpub\wwwroot\CMSUAT\Application.cfc
    TYPE
    CFML
    2
    struct
    COLUMN
    0
    ID
    CF_APPLICATION
    LINE
    500
    RAW_TRACE
    at cfApplication2ecfc1223778257$funcONREQUESTSTART.runFunction(C:\inetpub\wwwroot\ CMSUAT\Application.cfc:500)
    TEMPLATE
    C:\inetpub\wwwroot\CMSUAT\Application.cfc
    TYPE
    CFML
    Type
    java.lang.NullPointerException
    StackTrace
    coldfusion.runtime.EventHandlerException: Event handler exception. at  coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:286)  at  coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:417)  at  coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)  at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)  at coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at  coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at  coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFil  ter.java:28) at  coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at  coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58) at  coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at  coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at  coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at  coldfusion.CfmServlet.service(CfmServlet.java:219) at  coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)  at  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil  terChain.java:305) at  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain  .java:210) at  coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilt  er.java:42) at  coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)  at  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil  terChain.java:243) at  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain  .java:210) at  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:  224) at  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:  169) at  org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.ja  va:472) at  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)  at  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)  at  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)  at  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:11  8) at  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414)  at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:204) at   org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractPr  otocol.java:539) at  org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298  ) at  java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  at  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  at java.lang.Thread.run(Thread.java:722) Caused by:  java.lang.NullPointerException at  java.util.Hashtable.put(Hashtable.java:542) at  coldfusion.runtime.SecurityScopeTracker.setSecurity(SecurityScopeTracker.java:2  35) at  coldfusion.runtime.SecurityScopeTracker.getSecurity(SecurityScopeTracker.java:1  24) at  coldfusion.tagext.security.AuthenticateTag.doStartTag(AuthenticateTag.java:172)  at  cfApplication2ecfc1223778257$funcONREQUESTSTART._factor14(C:\inetpub\wwwroot\CM  SUAT\Application.cfc:560) at  cfApplication2ecfc1223778257$funcONREQUESTSTART.runFunction(C:\inetpub\wwwroot\  CMSUAT\Application.cfc:500) at  coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at  coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368  ) at  coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)  at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at  coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at  coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:655) at  coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:444) at  coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:414) at  coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:108) at  coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:278)  ... 33 more
    Suppressed
    array [empty]
    TagContext
    array
    1
    struct
    COLUMN
    0
    ID
    CFAUTHENTICATE
    LINE
    560
    RAW_TRACE
    at cfApplication2ecfc1223778257$funcONREQUESTSTART._factor14(C:\inetpub\wwwroot\CM SUAT\Application.cfc:560)
    TEMPLATE
    C:\inetpub\wwwroot\CMSUAT\Application.cfc
    TYPE
    CFML
    2
    struct
    COLUMN
    0
    ID
    CF_APPLICATION
    LINE
    500
    RAW_TRACE
    at cfApplication2ecfc1223778257$funcONREQUESTSTART.runFunction(C:\inetpub\wwwroot\ CMSUAT\Application.cfc:500)
    TEMPLATE
    C:\inetpub\wwwroot\CMSUAT\Application.cfc
    TYPE
    CFML
    Type
    Expression
    name
    onRequestStart

    One of my customers just started experiencing this as well. I am just getting into trying to resolve the issue.  I will report back here as soon as I have something to report.  In the meantime, has anyone made any progress?
    Below is the exception received:
    09/22/2014 08:25 PM.
    null null
    The error occurred on line 280.
    java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:542) at coldfusion.runtime.SecurityScopeTracker.setSecurity(SecurityScopeTracker.java:235) at coldfusion.runtime.SecurityScopeTracker.getSecurity(SecurityScopeTracker.java:124) at coldfusion.tagext.security.AuthenticateTag.doStartTag(AuthenticateTag.java:172) at cfApplication2ecfc1495732981$funcONREQUESTSTART._factor11(D:\somefolder\Application.cfc:2 80) at cfApplication2ecfc1495732981$funcONREQUESTSTART.runFunction(D:\somefolder\Application.cfc :266) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:655) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:444) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:414) at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:108) at coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:278) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:417) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.CfmServlet.service(CfmServlet.java:219) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 ) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterCha in.java:97) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doNext(FusionReactorR equestHandler.java:472) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doHttpServletRequest( FusionReactorRequestHandler.java:312) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doFusionRequest(Fusio nReactorRequestHandler.java:192) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.handle(FusionReactorR equestHandler.java:507) at com.intergral.fusionreactor.j2ee.filter.FusionReactorCoreFilter.doFilter(FusionReactorCor eFilter.java:36) at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterCha in.java:79) at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.intergral.fusionreactor.agent.filter.FusionReactorStaticFilter.doFilter(FusionReactor StaticFilter.java:53) at com.intergral.fusionreactor.agent.pointcuts.NewFilterChainPointCut$1.invoke(NewFilterChai nPointCut.java:41) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:204) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:539) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722)

  • Java.lang.NullPointerException after setDisabled(false);

    Trying to execute it.setDisabled(false) or it.setReadOnly(false) i get:
    ava.lang.NullPointerException
    ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #1
    The error log writes:
    <RichExceptionHandler> <_logUnhandledException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase 5
    javax.faces.el.EvaluationException: java.lang.NullPointerException
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1545)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:159)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1137)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:361)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.NullPointerException
         at ua.zp.zss.view.backing.Sprppfu.t1_add(Sprppfu.java:163)
         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:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
         ... 43 more
    <RegistrationConfigurator> <handleError> ADF_FACES-60096: Server Exception during PPR, #1
    javax.servlet.ServletException
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:521)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.NullPointerException
         at ua.zp.zss.view.backing.Sprppfu.t1_add(Sprppfu.java:163)
         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:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1545)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:159)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1137)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:361)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
         ... 36 more
    Build JDEVADF_11.1.2.4.0_GENERIC_130421.1600.6436.1
    P.S. it.setDisabled(true) works ok.
    Edited by: user5376911 on 28.05.2013 8:08

    You can create a boolean variable
    boolean inputTextState = false;
    //get setthen according to your logic
    public void selectRowTableMethod(SelectionEvent selectionEvent){
       //your logic
       if(otherVariable.equals("A"){
          inputTextState = true;
       }else{}
          inputTextState = false;
    //depends on your logic
    //then you input rendered or disable value should have an EL( expression language) use the expression builder option
    <af:inputtext id="it1" disabled="#{backingbean.inputTextState}" />So here you give the value of your input using the EL not by working with the component itself
    Well if you use a backingbean it means is request scoped (it builds up again after every refresh or action)
    and your boolean variable will reset and don't keep its v alue
    so you will need a session scoped bean
    look at my thread how I solved here:
    JSFF BackingBean scope

  • Java.lang.NullPointerException trying to migrate from MySQL to OracleXE

    (Originally posted in the SQL Developer forum)
    I'm trying to migrate a small MySQL database (four tables) to OracleXE. When I capture an object (table, schema or entire database), I'm receiving a java.lang.NullPointerException message from the Capture source in the Migration Log window. The migrated object doesn't show up in the Captured Objects window until after I shut down SQL Developer and restart it, then the tables in the migration script don't have any columns defined in them.
    Here's the error from the console:
    java.lang.Exception: java.lang.NullPointerException
    at oracle.dbtools.migration.workbench.core.ui.AbstractMigrationProgressRunnable.start(AbstractMigrationProgressRunnable.java:139)
    at oracle.dbtools.migration.workbench.core.CaptureInitiator.launch(CaptureInitiator.java:57)
    at oracle.dbtools.raptor.controls.sqldialog.ObjectActionController.handleEvent(ObjectActionController.java:127)
    at oracle.ide.controller.IdeAction.performAction(IdeAction.java:551)
    at oracle.ide.controller.IdeAction$2.run(IdeAction.java:804)
    at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:823)
    at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:521)
    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:5501)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
    at java.awt.Component.processEvent(Component.java:5266)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3968)
    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:1778)
    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)Caused by: java.lang.NullPointerException
    at oracle.dbtools.migration.workbench.plugin.MySQLCapturer.captureColumnDetails(MySQLCapturer.java:473)
    at oracle.dbtools.migration.workbench.plugin.MySQLCapturer.captureObjects(MySQLCapturer.java:145)
    at oracle.dbtools.migration.capture.CaptureWorker.capturePerTable(CaptureWorker.java:568)
    at oracle.dbtools.migration.capture.CaptureWorker.captureType(CaptureWorker.java:331)
    at oracle.dbtools.migration.capture.CaptureWorker.runCapture(CaptureWorker.java:282)
    at oracle.dbtools.migration.workbench.core.ui.CaptureRunner.doWork(CaptureRunner.java:63)
    at oracle.dbtools.migration.workbench.core.ui.AbstractMigrationProgressRunnable.run(AbstractMigrationProgressRunnable.java:159)
    at oracle.dbtools.migration.workbench.core.ui.MigrationProgressBar.run(MigrationProgressBar.java:532)
    at java.lang.Thread.run(Thread.java:595)
    My environment is:
    Windows Xp sp2
    SQL Developer (ver. 1.1.2.25.78)
    J2SE Development Kit 5.0 Update 11
    mysql-connector-java-5.0.5
    Oracle Database 10g Express Edition Release 10.2.0.1.0
    The MySQL database is version 4.1.2 running on a remote Mandriva Linux 2006 server.
    Are there any specific version requirements for the components involved?
    Thanks.

    Hi,
    There's a known bug in the code that captures 4.1 MySQL databases (specifically). The fix has been applied, and will be available in our next release.
    for a temporary workaround, you can put your data into a MySQL 4.0 or 5.0 database.
    Regards,
    Dermot.

  • Javax.servlet.jsp.JspException: java.lang.NullPointerException

    hi,
    I try to view my presentation in jsp page.I use oracle jdeveloper 9.2.0.4 and bibeans 9.2.0.4 and once 1 month ago I did this taks (I view a presentation from bibdemo in jsp file)
    now I try to view my own presentation in jsp but I recieve error message in my own schema and bibdemo schema!!
    when I use windows xp I recieve following error :
    500 Internal Server Error
    javax.servlet.jsp.JspException: BIB-10310 An unknown exception occurred.
    BIB-10101 Handler failed to handle UserObject.
    BIB-14067 Persistable object threw exception during lookup on method setXMLAsString; component class oracle.dss.dataSource.client.QueryClient; exception oracle.dss.util.persistence.BIPersistenceException.
    BIB-9509 Oracle OLAP did not create cursor.
    oracle.olapi.data.source.UnmatchedInputsException
    BIB-9509 Oracle OLAP did not create cursor.
    oracle.olapi.data.source.UnmatchedInputsException
    oracle.olapi.data.source.UnmatchedInputsException
         at oracle.dss.addins.jspTags.PresentationTag.doStartTag(PresentationTag.java:194)
         at test.jspService(test.jsp:6)
         [test.jsp]
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    and when I use windows NT I recieve following error :
    500 Internal Server Error
    javax.servlet.jsp.JspException: java.lang.NullPointerException
         at oracle.dss.addins.jspTags.RenderTag.doEndTag(RenderTag.java:212)
         at kafa_report__7._jspService(kafa_report_7.jsp:18)
         [kafa_report_7.jsp]
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    I
    what the problem is ????????
    thanks in advance,

    hi,
    here the result :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <BICheckConfig version="1.0.2.0">
    <Check key="JDEV_ORACLE_HOME" value="d:\jdev904" />
    <Check key="JAVA_HOME" value="C:\j2sdk1.4.2_01" />
    <Check key="JDeveloper version" value="9.0.4.0.1419" />
    <Check key="BI Beans release description" value="BI Beans 9.0.4 Production Release" />
    <Check key="BI Beans component number" value="9.0.4.23.0" />
    <Check key="BI Beans internal version" value="2.7.5.32" />
    <Check key="host" value="200.20.20.11" />
    <Check key="port" value="1521" />
    <Check key="sid" value="ora10g" />
    <Check key="user" value="dw_targetschema" />
    <Check key="Connecting to the database" value="Successful" />
    <Check key="JDBC driver version" value="9.2.0.4.0" />
    <Check key="JDBC JAR file location" value="D:\jdev904\jdev\lib\patches" />
    <Check key="Database version" value="10.1.0.2.0" />
    <Check key="OLAP Catalog version" value="10.1.0.2.0" />
    <Check key="OLAP AW Engine version" value="10.1.0.2.0" />
    <Check key="OLAP API Server version" value="10.1.0.2.0" />
    <Check key="BI Beans Catalog version" value="N/A; not installed in dw_targetschema" />
    <Check key="OLAP API JAR file version" value="9.2" />
    <Check key="OLAP API JAR file location" value="d:\jdev904\jdev\lib\ext" />
    <Check key="OLAP API Metadata Load" value="Successful" />
    <Check key="Number of metadata folders" value="2" />
    <Check key="Number of metadata measures" value="1" />
    <Check key="Number of metadata dimensions" value="3" />
    - <Check key="OLAP API Metadata">
    - <![CDATA[
    ==============================================================================
    Type      Name (S=Schema, C=Cube, M=Measure, D=Dimension)         Status   
    ========= ======================================================= ============
    Folder... ROOT
    Folder...   KAFA_COLLECTION
    Folder...   KAFA_COLLECTION2
    Measure..      SALARY                                             Unsuccessful
                   S=DW_TARGETSCHEMA, C=EMPLOYEMENT_CUBE, M=SALARY
                   Connection lost. Reconnect                         Successful
    Dimension      DEP_DIM                                            Successful
                   S=DW_TARGETSCHEMA, D=DEP_DIM
    Dimension      EMP_DIM                                            Successful
                   S=DW_TARGETSCHEMA, D=EMP_DIM
    Dimension      JOB_DIM                                            Successful
                   S=DW_TARGETSCHEMA, D=JOB_DIM
      ]]>
    </Check>
    - <Check key="StackTrace">
    - <![CDATA[
    ============================================================================
    Queries on the following measures or dimensions failed
    (S=Schema, C=Cube, M=Measure, D=Dimension)
    "SALARY" measure query with S=DW_TARGETSCHEMA, C=EMPLOYEMENT_CUBE, M=SALARY
    ============================================================================
    Exception stacktrace for "SALARY" measure query with S=DW_TARGETSCHEMA, C=EMPLOYEMENT_CUBE, M=SALARY
    ============================================================================
    1) BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
    2) BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
    1) BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
    ============================================================================
    oracle.dss.dataSource.common.QueryRuntimeException: BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
    java.lang.CloneNotSupportedException: BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
         at oracle.dss.dataSource.common.Query.addQueryListener(Query.java:480)
         at BICheckConfig.runDefaultMeasureQuery(BICheckConfig.java:480)
         at BICheckConfig.printFolder(BICheckConfig.java:405)
         at BICheckConfig.printFolder(BICheckConfig.java:464)
         at BICheckConfig.checkConnection(BICheckConfig.java:350)
         at BICheckConfig.main(BICheckConfig.java:1348)
    2) BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
    ============================================================================
    java.lang.CloneNotSupportedException: BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
         at oracle.dss.dataSource.common.CubeCursor.clone(CubeCursor.java:387)
         at oracle.dss.dataSource.common.Query.addNewCubeCursorCopy(Query.java:2366)
         at oracle.dss.dataSource.common.Query.addQueryListener(Query.java:477)
         at BICheckConfig.runDefaultMeasureQuery(BICheckConfig.java:480)
         at BICheckConfig.printFolder(BICheckConfig.java:405)
         at BICheckConfig.printFolder(BICheckConfig.java:464)
         at BICheckConfig.checkConnection(BICheckConfig.java:350)
         at BICheckConfig.main(BICheckConfig.java:1348)
      ]]>
    </Check>
    </BICheckConfig>
    when I was transfering the collection from warehouse builder to database I recieve some error messages.
    but when I try to connect to database from bibeans every thing was ok so I thougth maybe it is because of that.
    and that about bibdemo why it doesn't work???
    it works before and I check it with bi_checkconfig
    thanks ,
    shima

  • Why Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException?

    Hello,
    In my netbeans generated swing code I get the following stacktrace:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
         at javax.swing.text.PlainView.updateMetrics(PlainView.java:188)
         at javax.swing.text.PlainView.lineToRect(PlainView.java:589)
         at javax.swing.text.PlainView.modelToView(PlainView.java:327)
         at javax.swing.text.FieldView.modelToView(FieldView.java:248)
         at javax.swing.plaf.basic.BasicTextUI$RootView.modelToView(BasicTextUI.java:1498)
         at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1036)
         at javax.swing.text.DefaultCaret.repaintNewCaret(DefaultCaret.java:1291)
         at javax.swing.text.DefaultCaret$1.run(DefaultCaret.java:1270)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)The code is @ http://code.google.com/p/memorizeasy/source/browse/trunk/MemorizEasy/src/com/mysimpatico/memorizeasy/engine/executables/Input.java

    So the problem is given by these two lines, of the Swing-X library:
    AutoCompleteDecorator.decorate(expField, exps, false);
    AutoCompleteDecorator.decorate(defField, exps, false);
    However, the functionality intended from them is given. The problem now seems to do with expField.setText() and expField.selectAll(). I've inline initialized expField, and now it works.
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    * Input1.java
    * Created on Feb 21, 2010, 11:56:00 AM
    import java.util.ArrayList;
    import javax.swing.*;
    import org.jdesktop.swingx.autocomplete.AutoCompleteDecorator;
    public class Input1 extends javax.swing.JFrame {
         private static final long serialVersionUID = 2819528413930929081L;
         private static final ArrayList<String> exps = new ArrayList<String>();//Database.getAllExps();
         private static final Input1 instance  = new Input1();
         /* private void defFieldFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_defFieldFocusGained
                 defField.selectAll();
         }//GEN-LAST:event_defFieldFocusGained
             private void expFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_expFieldActionPerformed
                final String exp = expField.getText();
               /* if (defField.isVisible() && exp != null && exps.contains(exp)){
                    status.setText("to change the spelling select Spelling from the Edit Menu.");
                else if (!defField.isVisible()){ //in spelling mode
                    Database.editExpression(exSpell, exp);
                    status.setText("spelling for " + exSpell + " changed to " + exp);
                    defField.setVisible(true);
                    spellingMenuItem.setEnabled(false);
             }//GEN-LAST:event_expFieldActionPerformed
         private void initComponents() {
              contentPanel = new javax.swing.JPanel();
              expField = new javax.swing.JTextField();
               expField.setText("expression");
                    /*  expField.addActionListener(new java.awt.event.ActionListener() {
                          public void actionPerformed(java.awt.event.ActionEvent evt) {
                              expFieldActionPerformed(evt);
                      expField.addFocusListener(new java.awt.event.FocusAdapter() {
                          public void focusGained(java.awt.event.FocusEvent evt) {
                              expFieldFocusGained(evt);
                      defField.setText("definition");
                      defField.addActionListener(new java.awt.event.ActionListener() {
                          public void actionPerformed(java.awt.event.ActionEvent evt) {
                              defFieldActionPerformed(evt);
                      defField.addFocusListener(new java.awt.event.FocusAdapter() {
                          public void focusGained(java.awt.event.FocusEvent evt) {
                              defFieldFocusGained(evt);
              setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
              contentPanel.add(expField);
              expField.setVisible(true);
              this.setContentPane(contentPanel);
              pack();
         }// </editor-fold>
         /** Creates new form Input1 */
         private Input1() {
              initComponents();
              AutoCompleteDecorator.decorate(expField, exps, false);
         private void expFieldFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_expFieldFocusGained
                 expField.selectAll();
          * @param args the command line arguments
         public static void main(String args[]) {
              java.awt.EventQueue.invokeLater(new Runnable() {
                   public void run() {
                        instance.setVisible(true);
         // Variables declaration - do not modify
         private javax.swing.JPanel contentPanel;
         private javax.swing.JTextField expField;
         // End of variables declaration
    }Edited by: simpatico_gabriele on Mar 11, 2010 8:09 PM

  • How to Connect Oracle Database 10g Express Edition ?

    From example
    http://www.oracle.com/technology/obe/hol08/dotnet/getstarted-c/getstarted_c_otn.htm
    using Oracle.DataAccess.Client; // ODP.NET Oracle managed provider
    using Oracle.DataAccess.Types;
    string oradb = "Data Source=ORCL;User Id=hr;Password=hr;";
    OracleConnection conn = new OracleConnection(oradb); // C#
    conn.Open(); <== Connect Error
    Error Message "ORA-12154: TNS:could not resolve the connect identifier specified"
    I used
    Visual Studio 2005
    Oracle Database 10g Express Edition
    setup "Oracle Developer Tools for Visual Studio .NET with ODAC 10.2.0.2.21"
    Best Regards,
    Edited by: user1949694 on 8 ก.ย. 2552, 9:20 น.

    I search "tnsnames.ora" in my computer. I found 3 file
    1. C:\oraclexe\app\product\10.2.0\server\hs\admin\tnsnames.ora
    2. C:\oraclexe\app\product\10.2.0\server\NETWORK\ADMIN\tnsnames
    3. C"\oraclexe\app/product\10.2.0\server\NETWORK\ADMIN\SAMPLE\tnsnames
    How to entry in your tnsnames.ora file File1, File2, File3
    How to called "ORCL"?
    Please Help Me Step by Step
    Thank You.
    : )

  • Oracle Database Express Edition 2 Day Plus Java Developer Guide??

    I posted in the JDeveloper forum, as well as sending email via your feedback link found on the tutorial but I am a little disappointed by this:
    The Oracle® Database Express Edition 2 Day Plus Java Developer Guide has some errors in it.
    in Windows, I simply chose, start
    -> programs -> Oracle Database Express Edition -> Go To Database Home Page -> click documentation from the link -> and run the Oracle® Database Express Edition 2 Day Plus Java Developer Guide tutorial.
    the problem is there are mistake(s) in the tutorial, for example: section 4-19 is this:
    "The complete code for the method should now be as follows:
    public boolean authenticateUser(String userid, String password,
    HttpSession session) throws SQLException { "
    it needs to be this:
    public boolean authenticateUser(String jdbcURL, String userid, String password,
    HttpSession session) throws SQLException {
    Also:
    there is no mention that :
    the port and SID must also be passed in the
    ds.setURL(jdbcUrl) found in the authenticateUser() method, or an exception is thrown. This differs from value of the jdbcUrl string found in the getDBConnection() , which makes it hard to figure out
    The tutorial is great even if it doesn't work out of the box, but I am disappointed that errata or completed code for this project is not available, especially when you explicitely point to it via the steps mentioned above.
    Thanks,
    Patrick

    The tutorial seems to be using the old JDeveloper 10.1.2.
    If you are aiming to learn JDeveloper then just use the tutorials linked from the JDeveloper home page.
    http://www.oracle.com/technology/obe/obe1013jdev/index.htm

  • Regular Expressions (Pattern/Matcher) --- Help

    Hi,
    I have an regex i.e. Pattern.compile("([0-9])D([0-9])'?(?:([0-9]+)\")?([NSEW])").{code}
    It has to exactly match the input e.g *45D15'34"N*
    I need to retrieve the values based on grouping.
    Group1 = 45 (degree value)
    Group2 = 15 (minutes value)
    Group3 = 34 (seconds value) ----> this is a non-capturing group
    Group4 = N (directions)
    The regex works fine for most of longitude/latitude value but I get a StackOverFlow for some. There is a known bug on this http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5050507
    According to the bug report, they have said that are many different regex that can trigger the stack overflow....even though the length of my input is not as long as the one posted on the bug report.
    I was wondering if anyone could suggest a different way of writing the regex above to avoid the stack over flow.
    Thank you in advance                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    I missed the '+' in my original regex Pattern.compile("([0-9]+)D([0-9]+)'?(?:([0-9]+)\")?([NSEW])"){code}.
    I have also tried {code} Pattern.compile("(\\d+)D(\\d+)'?(?:(\\d+)\")?([NSEW])");And, the other 2 expressions as suggested by you.
    The problem happens when Durham Lat=”35D52’N” Lon=”78D47’W value is selected from a Jtree(the values are parsed from a xml file to the tree - the xml file has a bout 800 longitude/latitude elements for different cities in the US). It does not happen for other values and If I increment the degree or min by, then the expression works. I am not sure how else i could re-write this exp.
    Below is the snippet of the xml file:
    <State name="NORTH CAROLINA">
                <City name="Asheville AP"     Lat="35D26'N"     Lon="82D32'W"/>
                <City name="Charlotte AP"     Lat="35D13'N"     Lon="80D56'W"/>
                <City name="Durham"     Lat="35D52'N"     Lon="78D47'W"/>
                <City name="Elizabeth City AP"     Lat="36D16'N"     Lon="76D11'W"/>
                <City name="Fayetteville, Pope AFB" Lat="35D10'N"     Lon="79D01'W"/>
                <City name="Goldsboro,Seymour-Johnson"     Lat="35D20'N"     Lon="77D58'W"/>
                <City name="Greensboro AP (S)"     Lat="36D05'N"     Lon="79D57'W"/>
                <City name="Greenville"     Lat="35D37'N"     Lon="77D25'W"/>
                <City name="Henderson"     Lat="36D22'N"     Lon="78D25'W"/>
                <City name="Hickory"     Lat="35D45'N"     Lon="81D23'W"/>
                <City name="Jacksonville"     Lat="34D50'N"     Lon="77D37'W"/>
                <City name="Lumberton"     Lat="34D37'N"     Lon="79D04'W"/>
                <City name="New Bern AP"     Lat="35D05'N"     Lon="77D03'W"/>
                <City name="Raleigh/Durham AP (S)"     Lat="35D52'N"     Lon="78D47'W"/>
                <City name="Rocky Mount"     Lat="35D58'N"     Lon="77D48'W"/>
                <City name="Wilmington AP"     Lat="34D16'N"     Lon="77D55'W"/>
                <City name="Winston-Salem AP"     Lat="36D08'N"     Lon="80D13'W"/>
            </State>
    public final class GeoLine {
        /* Enum for the possible directions of longitude and latitude*/
        public enum Direction {
            N, S, E, W;
            public boolean isLongitude() {
                return (this == E || this == W);
            public boolean isLatitude() {
                return (this == N || this == S);
            public Direction getCanonicalDirection() {
                if (this == S) {
                    return Direction.N;
                } else if (this == W) {
                    return Direction.E;
                } else {
                    return this;
        private final int degree;
        private final int minute;
        private final int second;
        private final Direction dir;
        /* Recognizes longitude and latitude values that has degrees, minutes and seconds i.e. "45D15'34"N
        * or "45D1534"N. The single-quotes for the minutes is optional. And, for the moment we do not support seconds
        * validation although ilog library returns the longitude/latitude with second when NEs and Sub-networks are
        * dragged and dropped on the map.*/
    private static final Pattern PATTERN = Pattern.compile("([0-9]+)D([0-9]+)'?(?:([0-9]+)\")?([NSEW])");
        public GeoLine(int degree, int minute, Direction dir) {
            this(degree, minute, 0, dir);
        public GeoLine(int degree, int minute, int second, Direction dir) {
            Log.logInfo(getClass().getSimpleName(), "PAU degree: " + degree + " minute: " + minute + " second: " + second + " direction: " +  dir);
            verifyLongitudeLatitude(degree, dir);
            verifyMinute(degree, minute, dir);   
            this.degree = degree;
            this.minute = minute;
            this.second = second;
            if (this.degree == 0 && this.minute == 0 && this.second == 0) {
                this.dir = dir.getCanonicalDirection();
            } else {
                this.dir = dir;
        public Direction getDirection() {
            return dir;
        public int getMinute() {
            return minute;
        public int getDegree() {
            return degree;
        public int getSecond() {
            return second;
        public static GeoLine parseLine(String location) {
            * Matcher class will throw java.lang.NullPointerException if a null location
            *  is passed, null location validation is not needed.
            Matcher m = PATTERN.matcher(location);
            if(m.matches()) {
                int deg;
                int min;
                int second;
                Direction direction;
                deg = Integer.parseInt(m.group(1));
                min = Integer.parseInt(m.group(2));
                if (m.group(3) == null) {
                    second = 0;
                } else {
                    second = Integer.parseInt(m.group(3));
                direction = Direction.valueOf(m.group(4));
                return new GeoLine(deg, min, second, direction);
            } else {
                throw new IllegalArgumentException("Invalid location value. Expected format XXDXX'XX\"[NSEW] " + location);
        private void verifyMinute(int deg, int min, Direction direction) {
            /* This validation is to make sure that minute does not exceed 0 if maximum value for latitude == 90
            * or longitude == 180 is specified */
            int maxDeg = direction.isLatitude() ? 90 : 180;
            if(min < 0 || min > 59) {
               throw new NumberFormatException("Minutes is out of range. Value should be less than 60: " + min);
            if (deg == maxDeg && min > 0) {
                throw new NumberFormatException("Degree value " + deg + "D" + direction + " cannot have minute exceeding 0: " + min);
        private void verifyLongitudeLatitude(int valDeg, Direction valDir) {
               int max = valDir.isLatitude() ? 90 : 180;
               if(valDeg < 0 || valDeg > max) {
                    throw new NumberFormatException("Degree " + valDeg + valDir + " is invalid");
        public final boolean isLongitude() {
            return dir.isLongitude();
        public final boolean isLatitude() {
            return dir.isLatitude();
        @Override
        public final String toString(){
            if(minute < 10){
                return degree + "D0" + minute + dir;
            } else {
                return degree + "D" + minute + dir;
        @Override
        public boolean equals(Object obj) {
            if (obj instanceof GeoLine) {
                GeoLine other = (GeoLine) obj;          
                    return (this.degree == other.degree && this.minute == other.minute && this.second == other.second && this.dir == other.dir);
            return false;
        @Override
        public int hashCode() {
            int result = 17;
            result = result * 37 + degree;
            result = result * 37 + minute;
            result = result * 37 + second;
            result = result * 37 + dir.hashCode();
            return result;
    }Thank you again.

  • Upgrade Failed, WL Express 6.1 to 8.1

    Last nite, we finally upgraded our WL servers to 8.1 from 6.1 (Express). This lasted about 4 hours, and then the connection pool started throwing a massive amount of errors. (so much so, that we had to roll back @ 6 am this morning).
    Configuration: WL express 8.1 sp3, DB2 7.2 fp 10,using the COM.ibm.db2.jdbc.DB2XADataSource XA driver.
    1. is this a supported configuration?
    2. There were a few different errors that were noted:
    a)com.scholarone.persistence.PersistenceException: Error during save: COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/LINUX] SQL0913N Unsuccessful execution caused by deadlock or timeout. Reason code "68". SQLSTATE=57033
         at com.scholarone.persistence.StoredProcedurePersistence.save...(rest of meaningless stack) These were happening @ about 1 or 2 a minute.
    about 30 minutes later, these started showing up:
    b)com.scholarone.persistence.PersistenceException: Error during save: java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: Transaction rolled back: Transaction timed out after 84 seconds Xid=BEA1-4A81FA38DB6F85A97DD2(190522938),Status=Active,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=84,seconds left=60,activeThread=Thread[ExecuteThread: '22' for queue: 'weblogic.kernel.Default',5,Thread Group for Queue: 'weblogic.kernel.Default'],XAServerResourceInfo[mc-prod-db2pool]=(ServerResourceInfo[mc-prod-db2pool]=(state=started,assigned=none),xar=mc-prod-db2pool,re-Registered = false),SCInfo[scholarone+mc-prod-mcv3-wl01]=(state=active),local properties=({weblogic.jdbc.jta.mc-prod-db2pool=weblogic.jdbc.wrapper.TxInfo@b5bc5a2}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=mc-prod-mcv3-wl01+10.10.40.70:7051+scholarone+t3+, XAResources={},NonXAResources={})],CoordinatorURL=mc-prod-mcv3-wl01+10.10.40.70:7051+scholarone+t3+)
         at weblogic.jdbc.jta.DataSource.enlist(Lweblogic.transaction.Transaction;)V(Optimized Method)
         at weblogic.jdbc.wrapper.JTAConnection.checkConnection()Ljava.sql.Connection;(Optimized Method)
         at weblogic.jdbc.wrapper.Statement.checkStatement()V(Statement.java:234)
         at weblogic.jdbc.wrapper.Statement.preInvocationHandler(Ljava.lang.String;[Ljava.lang.Object;)V(Statement.java:83)
         at weblogic.jdbc.wrapper.CallableStatement_COM_ibm_db2_jdbc_app_DB2CallableStatement.getObject(I)Ljava.lang.Object;(Unknown Source)
         at com.scholarone.persistence.StoredProcedurePersistence.save(Lcom.scholarone.valueobject.ValueObject;Ljava.lang.String;)V(StoredProcedurePersistence.java:564)
         at.....
    c)com.scholarone.persistence.PersistenceException: java.sql.SQLException: Internal error: Cannot obtain XAConnection weblogic.common.resourcepool.ResourceDeadException: COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver] CLI0106E Connection is closed. SQLSTATE=08003
         at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throw_SQLException(LCOM.ibm.db2.jdbc.app.DB2Connection;)V(SQLExceptionGenerator.java:186)
         at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.check_return_code(LCOM.ibm.db2.jdbc.app.DB2Connection;I)V(SQLExceptionGenerator.java:438)
         at COM.ibm.db2.jdbc.app.DB2Connection.getTransactionIsolation()I(DB2Connection.java:1194)
         at weblogic.jdbc.wrapper.XAConnection.getTransactionIsolation()I(XAConnection.java:838)
         at weblogic.jdbc.common.internal.XAConnectionEnvFactory.refreshResource(Lweblogic.common.resourcepool.PooledResource;Z)V(XAConnectionEnvFactory.java:143)
         at weblogic.jdbc.common.internal.XAConnectionEnvFactory.refreshResource(Lweblogic.common.resourcepool.PooledResource;)V(XAConnectionEnvFactory.java:113)
         at weblogic.common.resourcepool.ResourcePoolImpl.refreshResource(Lweblogic.common.resourcepool.PooledResource;)V(ResourcePoolImpl.java:1533)
         at weblogic.common.resourcepool.ResourcePoolImpl.checkResource(Lweblogic.common.resourcepool.PooledResource;I)V(ResourcePoolImpl.java:1512)
         at weblogic.common.resourcepool.ResourcePoolImpl.checkAndReturnResource(Lweblogic.common.resourcepool.PooledResourceWrapper;I)Lweblogic.common.resourcepool.PooledResource;(ResourcePoolImpl.java:1402)
         at weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ILweblogic.common.resourcepool.PooledResourceInfo;Z)Lweblogic.common.resourcepool.PooledResource;(ResourcePoolImpl.java:295)
         at weblogic.jdbc.common.internal.ConnectionPool.reserve(Lweblogic.security.acl.internal.AuthenticatedSubject;IZ)Lweblogic.jdbc.common.internal.ConnectionEnv;(ConnectionPool.java:451)
         at weblogic.jdbc.common.internal.ConnectionPool.reserve(Lweblogic.security.acl.internal.AuthenticatedSubject;I)Lweblogic.jdbc.common.internal.ConnectionEnv;(ConnectionPool.java:359)
         at weblogic.jdbc.common.internal.ConnectionPoolManager.reserve(Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.lang.String;Ljava.lang.String;I)Lweblogic.jdbc.common.internal.ConnectionEnv;(ConnectionPoolManager.java:80)
         at weblogic.jdbc.jta.DataSource.getXAConnectionFromPool(Lweblogic.transaction.Transaction;)Lweblogic.jdbc.wrapper.XAConnection;(DataSource.java:1425)
         at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(Lweblogic.jdbc.wrapper.XAConnection;Lweblogic.jdbc.wrapper.JTAConnection;Z)Lweblogic.jdbc.wrapper.XAConnection;(Optimized Method)
         at weblogic.jdbc.jta.DataSource.getConnection()Ljava.sql.Connection;(DataSource.java:396)
         at weblogic.jdbc.jta.DataSource.connect(Ljava.lang.String;Ljava.util.Properties;)Ljava.sql.Connection;(DataSource.java:354)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection()Ljava.sql.Connection;(RmiDataSource.java:305)
         at com.scholarone.persistence.SQLPersistence.openConnection()Ljava.sql.Connection;(SQLPersistence.java:325)
         at ........
    d)com.scholarone.common.BaseController - Error in DocumentController.submitDocument (Owner unassigned)
    java.lang.NullPointerException     at weblogic.jdbc.wrapper.JTAConnection.checkConnection()Ljava.sql.Connection;(Optimized Method)     at weblogic.jdbc.wrapper.Connection.clearPreparedStatement(Ljava.lang.String;)Z(Connection.java:166)     at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate()I(PreparedStatement.java:117)     at com.scholarone.persistence.StoredProcedurePersistence.save(Lcom.scholarone.valueobject.ValueObject;Ljava.lang.String;)V(StoredProcedurePersistence.java:555)     at com.scholarone.valueobject.ValueObject.save(Ljava.lang.Integer;Ljava.lang.String;Lcom.scholarone.persistence.GenericPersistenceStrategy;)V(ValueObject.java:336)     at com.scholarone.valueobject.ValueObject.save(Ljava.lang.Integer;Lcom.scholarone.persistence.GenericPersistenceStrategy;)V(ValueObject.java:276)     at ......
    e)com.scholarone.persistence.PersistenceException: java.sql.SQLException: Internal error: Cannot obtain XAConnection weblogic.common.resourcepool.ResourceDeadException: 0:[IBM][CLI Driver] SQL30090N Operation invalid for application execution environment. Reason code = "06". SQLSTATE=25000
         at com.scholarone.persistence.StoredProcedurePersistence.loadObject(Lcom.scholarone.valueobject.ValueObjectConfiguration;Ljava.util.Vector;Ljava.lang.String;)Lcom.scholarone.valueobject.ValueObject;(StoredProcedurePersistence.java:167)     at com.scholarone.valueobject.ValueObjectFactory.findObjectByCriteria(Ljava.lang.String;Ljava.util.Vector;Ljava.lang.String;Ljava.lang.String;)Lcom.scholarone.valueobject.ValueObject;(ValueObjectFactory.java:241)     at ......
    These exceptions continued through the nite, until we finally decided to roll back to WL 6.1
    The settings on the connection pool for 8.1 were:
    Remove Infected Connections Enabled(on) (which we have since determined that we will turn off)
    Test Reserved Connections(on)
    Allow Shrinking (on)
    Keep XA Connection Till Transaction Complete(on)
    initial: 10
    max: 70
    incriment: 5
    the rest are the defaults.
    -There were no code changes associated with this release.
    -There is no history of this happening with the codebase and WL 6.1.
    any suggestions, ideas, shots in the dark would be much appreciated.
    Greg Mowery
    [email protected]

    Hi. You should probably open an official support case to
    get this all managed and shepherded to success, but among
    the exceptions, it shows IBM jdbc connections dieing...
    Joe
    Greg Mowery wrote:
    Last nite, we finally upgraded our WL servers to 8.1 from 6.1 (Express). This lasted about 4 hours, and then the connection pool started throwing a massive amount of errors. (so much so, that we had to roll back @ 6 am this morning).
    Configuration: WL express 8.1 sp3, DB2 7.2 fp 10,using the COM.ibm.db2.jdbc.DB2XADataSource XA driver.
    1. is this a supported configuration?
    2. There were a few different errors that were noted:
    a)com.scholarone.persistence.PersistenceException: Error during save: COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/LINUX] SQL0913N Unsuccessful execution caused by deadlock or timeout. Reason code "68". SQLSTATE=57033
         at com.scholarone.persistence.StoredProcedurePersistence.save...(rest of meaningless stack) These were happening @ about 1 or 2 a minute.
    about 30 minutes later, these started showing up:
    b)com.scholarone.persistence.PersistenceException: Error during save: java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: Transaction rolled back: Transaction timed out after 84 seconds Xid=BEA1-4A81FA38DB6F85A97DD2(190522938),Status=Active,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=84,seconds left=60,activeThread=Thread[ExecuteThread: '22' for queue: 'weblogic.kernel.Default',5,Thread Group for Queue: 'weblogic.kernel.Default'],XAServerResourceInfo[mc-prod-db2pool]=(ServerResourceInfo[mc-prod-db2pool]=(state=started,assigned=none),xar=mc-prod-db2pool,re-Registered = false),SCInfo[scholarone+mc-prod-mcv3-wl01]=(state=active),local properties=({weblogic.jdbc.jta.mc-prod-db2pool=weblogic.jdbc.wrapper.TxInfo@b5bc5a2}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=mc-prod-mcv3-wl01+10.10.40.70:7051+scholarone+t3+, XAResources={},NonXAResources={})],CoordinatorURL=mc-prod-mcv3-wl01+10.10.40.70:7051+scholarone+t3+)
         at weblogic.jdbc.jta.DataSource.enlist(Lweblogic.transaction.Transaction;)V(Optimized Method)
         at weblogic.jdbc.wrapper.JTAConnection.checkConnection()Ljava.sql.Connection;(Optimized Method)
         at weblogic.jdbc.wrapper.Statement.checkStatement()V(Statement.java:234)
         at weblogic.jdbc.wrapper.Statement.preInvocationHandler(Ljava.lang.String;[Ljava.lang.Object;)V(Statement.java:83)
         at weblogic.jdbc.wrapper.CallableStatement_COM_ibm_db2_jdbc_app_DB2CallableStatement.getObject(I)Ljava.lang.Object;(Unknown Source)
         at com.scholarone.persistence.StoredProcedurePersistence.save(Lcom.scholarone.valueobject.ValueObject;Ljava.lang.String;)V(StoredProcedurePersistence.java:564)
         at.....
    c)com.scholarone.persistence.PersistenceException: java.sql.SQLException: Internal error: Cannot obtain XAConnection weblogic.common.resourcepool.ResourceDeadException: COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver] CLI0106E Connection is closed. SQLSTATE=08003
         at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throw_SQLException(LCOM.ibm.db2.jdbc.app.DB2Connection;)V(SQLExceptionGenerator.java:186)
         at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.check_return_code(LCOM.ibm.db2.jdbc.app.DB2Connection;I)V(SQLExceptionGenerator.java:438)
         at COM.ibm.db2.jdbc.app.DB2Connection.getTransactionIsolation()I(DB2Connection.java:1194)
         at weblogic.jdbc.wrapper.XAConnection.getTransactionIsolation()I(XAConnection.java:838)
         at weblogic.jdbc.common.internal.XAConnectionEnvFactory.refreshResource(Lweblogic.common.resourcepool.PooledResource;Z)V(XAConnectionEnvFactory.java:143)
         at weblogic.jdbc.common.internal.XAConnectionEnvFactory.refreshResource(Lweblogic.common.resourcepool.PooledResource;)V(XAConnectionEnvFactory.java:113)
         at weblogic.common.resourcepool.ResourcePoolImpl.refreshResource(Lweblogic.common.resourcepool.PooledResource;)V(ResourcePoolImpl.java:1533)
         at weblogic.common.resourcepool.ResourcePoolImpl.checkResource(Lweblogic.common.resourcepool.PooledResource;I)V(ResourcePoolImpl.java:1512)
         at weblogic.common.resourcepool.ResourcePoolImpl.checkAndReturnResource(Lweblogic.common.resourcepool.PooledResourceWrapper;I)Lweblogic.common.resourcepool.PooledResource;(ResourcePoolImpl.java:1402)
         at weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ILweblogic.common.resourcepool.PooledResourceInfo;Z)Lweblogic.common.resourcepool.PooledResource;(ResourcePoolImpl.java:295)
         at weblogic.jdbc.common.internal.ConnectionPool.reserve(Lweblogic.security.acl.internal.AuthenticatedSubject;IZ)Lweblogic.jdbc.common.internal.ConnectionEnv;(ConnectionPool.java:451)
         at weblogic.jdbc.common.internal.ConnectionPool.reserve(Lweblogic.security.acl.internal.AuthenticatedSubject;I)Lweblogic.jdbc.common.internal.ConnectionEnv;(ConnectionPool.java:359)
         at weblogic.jdbc.common.internal.ConnectionPoolManager.reserve(Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.lang.String;Ljava.lang.String;I)Lweblogic.jdbc.common.internal.ConnectionEnv;(ConnectionPoolManager.java:80)
         at weblogic.jdbc.jta.DataSource.getXAConnectionFromPool(Lweblogic.transaction.Transaction;)Lweblogic.jdbc.wrapper.XAConnection;(DataSource.java:1425)
         at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(Lweblogic.jdbc.wrapper.XAConnection;Lweblogic.jdbc.wrapper.JTAConnection;Z)Lweblogic.jdbc.wrapper.XAConnection;(Optimized Method)
         at weblogic.jdbc.jta.DataSource.getConnection()Ljava.sql.Connection;(DataSource.java:396)
         at weblogic.jdbc.jta.DataSource.connect(Ljava.lang.String;Ljava.util.Properties;)Ljava.sql.Connection;(DataSource.java:354)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection()Ljava.sql.Connection;(RmiDataSource.java:305)
         at com.scholarone.persistence.SQLPersistence.openConnection()Ljava.sql.Connection;(SQLPersistence.java:325)
         at ........
    d)com.scholarone.common.BaseController - Error in DocumentController.submitDocument (Owner unassigned)
    java.lang.NullPointerException     at weblogic.jdbc.wrapper.JTAConnection.checkConnection()Ljava.sql.Connection;(Optimized Method)     at weblogic.jdbc.wrapper.Connection.clearPreparedStatement(Ljava.lang.String;)Z(Connection.java:166)     at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate()I(PreparedStatement.java:117)     at com.scholarone.persistence.StoredProcedurePersistence.save(Lcom.scholarone.valueobject.ValueObject;Ljava.lang.String;)V(StoredProcedurePersistence.java:555)     at com.scholarone.valueobject.ValueObject.save(Ljava.lang.Integer;Ljava.lang.String;Lcom.scholarone.persistence.GenericPersistenceStrategy;)V(ValueObject.java:336)     at com.scholarone.valueobject.ValueObject.save(Ljava.lang.Integer;Lcom.scholarone.persistence.GenericPersistenceStrategy;)V(ValueObject.java:276)     at ......
    e)com.scholarone.persistence.PersistenceException: java.sql.SQLException: Internal error: Cannot obtain XAConnection weblogic.common.resourcepool.ResourceDeadException: 0:[IBM][CLI Driver] SQL30090N Operation invalid for application execution environment. Reason code = "06". SQLSTATE=25000
         at com.scholarone.persistence.StoredProcedurePersistence.loadObject(Lcom.scholarone.valueobject.ValueObjectConfiguration;Ljava.util.Vector;Ljava.lang.String;)Lcom.scholarone.valueobject.ValueObject;(StoredProcedurePersistence.java:167)     at com.scholarone.valueobject.ValueObjectFactory.findObjectByCriteria(Ljava.lang.String;Ljava.util.Vector;Ljava.lang.String;Ljava.lang.String;)Lcom.scholarone.valueobject.ValueObject;(ValueObjectFactory.java:241)     at ......
    These exceptions continued through the nite, until we finally decided to roll back to WL 6.1
    The settings on the connection pool for 8.1 were:
    Remove Infected Connections Enabled(on) (which we have since determined that we will turn off)
    Test Reserved Connections(on)
    Allow Shrinking (on)
    Keep XA Connection Till Transaction Complete(on)
    initial: 10
    max: 70
    incriment: 5
    the rest are the defaults.
    -There were no code changes associated with this release.
    -There is no history of this happening with the codebase and WL 6.1.
    any suggestions, ideas, shots in the dark would be much appreciated.
    Greg Mowery
    [email protected]

  • Importing components to Application Express

    When trying to import a component export into Application Express with same app Id and workspace I have problems when I get to the report layouts and report queries.
    I get this for some, not all of the report layouts:
    Component Export: REPORT LAYOUT 30423319886223781
    ...report layouts
    WWV_FLOW_API.ERR_REPORT_LAYOUT_CREATE ORA-00001: unique constraint
    (APEX_030200.WWV_FLOW_REPORT_LAYOUTS_IDX2) violated
    but the import continues until it gets to the report queries, I get through 5 and then this:
    Component Export: SHARED QUERY 25478002913036435
    ...shared queries
    declare
    ERROR at line 1:
    ORA-00001: unique constraint (APEX_030200.WWV_FLOW_STORED_QUERIES_UK1) violated
    ORA-06512: at "APEX_030200.WWV_FLOW_API", line 6261
    ORA-06512: at line 32
    then it stops and quits...
    Why am I getting this on only certain report layouts and queries??

    Hi,
    I think you are posting to wrong forum. Virtualization Discussion Forum is here.
    Oracle VM Server for x86
    Anyway,
    There is by default obe workspace. User and password for that workspace is obe
    If you need login to APEX administration, then use apxchpwd.sql from oracle user home folder to reset INTERNAL workspace ADMIN user password.
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

Maybe you are looking for

  • How can i connect my macbook air to a HD TV ?

    I want to connect my mac to my TV but there's no cable to connect from a thunderbolt port to a HDMI.    please help

  • ITunes 7 column header bug

    Here's a screenshot: http://img175.imageshack.us/img175/2452/picture1fs5.png Has anyone else noticed this problem?

  • How to call Custom screen in standard transaction on same session

    Hi , I am getting this Problem.   After one of the screen in standard Transaction (CV01N) I need to call one custom screen. for this I created one program type M with screen. in Stan. transaction I am calling like Call transaction 'XXXX'(for above M

  • Help! I missed the code

    Sorry to have to ask this but I am a newbie and have to "attend" a job interview on Skype this afternoon for the first time. I just received a 15 second phone call giving an automated Skype message about a code for the call I am expecting at 3 o'cloc

  • Inspection for second operation

    hi all i have maintain inspection orgin 03 & 04 for sfg material in material master also in routing i have assign control key having inspection check box on for the 03 line item (0010,0020,0030). my first operation shows perfect inspection lot after