Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002173 [Resin] minor always 11-14-07 07:33 11-28-07 15:38
Reporter sam View Status public  
Assigned To ferg
Priority high Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.1.4 Product Version 3.1.3
  Product Build
Summary 0002173: database configuration for Sybase in 3.1.3 causes NullPointerException
Description (rep by B Au)

We are using JConnect 5.5:
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.jconnjdbc_5.5/title.htm [^]

The following configuration causes an exception in 3.1.3 but it works in 3.0.23:

<database jndi-name='myPool' max-connections="4">
 <driver type="com.sybase.jdbc2.jdbc.SybDriver">
   <url>jdbc:sybase:Tds:myhost:12345/mydb</url>
   <user>myuser</user>
   <password>mypasswd</password>
 </driver>
</database>

[14:49:34.263] loading driver: com.sybase.jdbc2.jdbc.SybDriver
[14:49:34.335] java.lang.NullPointerException
[14:49:34.335] at com.caucho.config.Config.setAttribute(Config.java:519)
[14:49:34.335] at com.caucho.config.StringAttributeProgram.configure(StringAttributeProgram.java:52)
[14:49:34.335] at
com.caucho.sql.DriverConfig.initDriver(DriverConfig.java:673)
[14:49:34.335] at com.caucho.sql.DBPoolImpl.init(DBPoolImpl.java:916)
[14:49:34.335] at com.caucho.sql.DBPool.init(DBPool.java:633)

As a workaround, <url> can be replaced with:

     <network-protocol>Tds</network-protocol>
     <port-number>12345</port-number>
     <server-name>myhost</server-name>
     <database-name>mydb</database-name>
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0002532)
ferg
11-28-07 15:38

server/4506

The "fix" is just in the error reporting. The driver doesn't appear to have a setURL method, so it's a mistake to have a <url> in the <database>.
 

- Issue History
Date Modified Username Field Change
11-14-07 07:33 sam New Issue
11-28-07 15:38 ferg Note Added: 0002532
11-28-07 15:38 ferg Assigned To  => ferg
11-28-07 15:38 ferg Status new => closed
11-28-07 15:38 ferg Resolution open => fixed
11-28-07 15:38 ferg Fixed in Version  => 3.1.4


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker