Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004385 [Resin] block always 02-09-11 22:52 03-03-11 14:17
Reporter jkriesten View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.16 Product Version 4.0.15
  Product Build
Summary 0004385: #text' is an unknown attribute of 'com.mysql.jdbc.Driver'
Description Resin Professional 4.0.15 (built Tue, 08 Feb 2011 10:18:48 PST)
Copyright(c) 1998-2010 Caucho Technology. All rights reserved.
  xxx.license -- 1 Resin server Company
  xxx.license -- 1 Resin server Company

Starting Resin Professional on Thu, 10 Feb 2011 07:46:00 +0100 (CET)

[07:46:02.237] {main} Proxy Cache disk-size=1024M memory-size=64M
/usr/local/www/resin/conf/hosts/www.myhost.info:2: com.caucho.sql.DBPool.init(): com.caucho.sql.SQLExceptionWrapper: com.caucho.
config.ConfigException: '#text' is an unknown attribute of 'com.mysql.jdbc.Driver'

1:
2: <database>
3: <jndi-name>jdbc/myDatabase</jndi-name>
4: <driver type="com.mysql.jdbc.Driver">
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0005048)
ferg
02-11-11 11:20

What does the rest of the <database>/<driver> configuration look like?

That error would be normal if the <driver> contained some text instead of tags.
 
(0005053)
jkriesten
02-11-11 21:05

There is nothing special:

<database>
  <jndi-name>jdbc/myDatabase</jndi-name>
  <driver type="com.mysql.jdbc.Driver">
    <url>jdbc:mysql://db.myDomain.de:3306/myDatabase</url> [^]
    <user>user</user>
    <password>passwd</password>
  </driver>
  <prepared-statement-cache-size>10</prepared-statement-cache-size>
  <max-connections>2</max-connections>
  <max-idle-time>60s</max-idle-time>
</database>

It works fine with 4.0.12 - can't say, if it would give an error with 4.0.14 already.
 
(0005056)
ferg
02-14-11 14:12

I'm improving the error message for 4.0.16 to help track this down, but can't reproduce the problem.

You might try removing all the whitespace inside the <driver> tag as a test.
 
(0005069)
jkriesten
02-18-11 01:46

I get the same error with Resin Professional 4.0.s110216.

Removing all whitespace within the <driver> tag solves the problem. But that should be possible, right?
 
(0005071)
ferg
02-18-11 11:31

Can you turn on "finer" or "finest" logging to get the stack trace of that message, so I can update it?

The issue might be non-whitespace characters that display as whitespace. Resin only treats ' ', '\t', '\r', and '\n' as whitespace. Anything else isn't whitespace, for example &nbsp; isn't a whitespace character even though an editor might display it as whitespace.
 
(0005111)
ferg
03-03-11 14:16

ioc/2384

The fix is primarily better error messaging, since whitespace is getting properly handled in my tests. If this issue persists in 4.0.16, please resubmit with the new error messages.
 

- Issue History
Date Modified Username Field Change
02-09-11 22:52 jkriesten New Issue
02-11-11 11:20 ferg Note Added: 0005048
02-11-11 21:05 jkriesten Note Added: 0005053
02-14-11 14:12 ferg Note Added: 0005056
02-18-11 01:46 jkriesten Note Added: 0005069
02-18-11 11:31 ferg Note Added: 0005071
03-03-11 14:16 ferg Note Added: 0005111
03-03-11 14:16 ferg Assigned To  => ferg
03-03-11 14:16 ferg Status new => assigned
03-03-11 14:16 ferg Resolution open => fixed
03-03-11 14:16 ferg Fixed in Version  => 4.0.16
03-03-11 14:17 ferg Status assigned => closed


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