[ 
https://issues.apache.org/jira/browse/TRAFODION-2338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15635839#comment-15635839
 ] 

ASF GitHub Bot commented on TRAFODION-2338:
-------------------------------------------

GitHub user kevinxu021 opened a pull request:

    https://github.com/apache/incubator-trafodion/pull/818

    [TRAFODION-2338]Try to close connection while got exception

    Even this is a packing issue, it should not take up so many connection.
    While got this error, Trafci will retry to setup a new session and  doesn't 
close existing connection.
    The fix is to close previous connection in case that it take up more 
connections.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/kevinxu021/incubator-trafodion trafci-boot-err

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-trafodion/pull/818.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #818
    
----
commit e91c656c4ab7a3919f6f960a452fe70e694ad38b
Author: Kevin Xu <[email protected]>
Date:   2016-11-04T09:42:50Z

    Try to close connection while got exception

----


> Trafci will take up many connections while loading lookAndFeel property file 
> failed
> -----------------------------------------------------------------------------------
>
>                 Key: TRAFODION-2338
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-2338
>             Project: Apache Trafodion
>          Issue Type: Bug
>          Components: client-ci
>            Reporter: Kevin Xu
>            Assignee: Kevin Xu
>
> Error Message should be:
> java.lang.NullPointerException
>         at java.util.Properties$LineReader.readLine(Unknown Source)
>         at java.util.Properties.load0(Unknown Source)
>         at java.util.Properties.load(Unknown Source)
>         at org.trafodion.ci.LFProperties.loadProperties(LFProperties.java:125)
>         at 
> org.trafodion.ci.LFProperties.loadLookAndFeelProps(LFProperties.java:118)
>         at 
> org.trafodion.ci.SessionInterface.createSession(SessionInterface.java:185)
>         at 
> org.trafodion.ci.SessionInterface.createSession(SessionInterface.java:147)
>         at org.trafodion.ci.UserInterface.main(UserInterface.java:276)
> Caught a SQL exception. Error code = -1, msg=The message id: 
> as_connect_message_error With parameters: server handle not available
> org.trafodion.jdbc.t4.TrafT4Exception: The message id: 
> as_connect_message_errorWith parameters: server handle not available
>         at 
> org.trafodion.jdbc.t4.TrafT4Messages.createSQLException(TrafT4Messages.java:304)
>         at 
> org.trafodion.jdbc.t4.TrafT4Messages.createSQLException(TrafT4Messages.java:243)
>         at 
> org.trafodion.jdbc.t4.InterfaceConnection.connect(InterfaceConnection.java:879)
>         at 
> org.trafodion.jdbc.t4.InterfaceConnection.<init>(InterfaceConnection.java:176)
>         at 
> org.trafodion.jdbc.t4.TrafT4Connection.makeConnection(TrafT4Connection.java:1611)
>         at 
> org.trafodion.jdbc.t4.TrafT4Connection.<init>(TrafT4Connection.java:1564)
>         at 
> org.trafodion.jdbc.t4.TrafT4DataSource.getConnection(TrafT4DataSource.java:132)
>         at 
> org.trafodion.jdbc.t4.TrafT4DataSource.getConnection(TrafT4DataSource.java:176)
>         at org.trafodion.jdbc.t4.T4Driver.connect(T4Driver.java:186)
>         at java.sql.DriverManager.getConnection(Unknown Source)
>         at java.sql.DriverManager.getConnection(Unknown Source)
>         at 
> org.trafodion.ci.SessionInterface.getConnection(SessionInterface.java:1168)
>         at 
> org.trafodion.ci.SessionInterface.createSession(SessionInterface.java:170)
>         at 
> org.trafodion.ci.SessionInterface.createSession(SessionInterface.java:147)
>         at org.trafodion.ci.UserInterface.main(UserInterface.java:276)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to