[jira] [Commented] (DBCP-349) Insert clob or blob with oracle connection crashes software

2013-02-10 Thread Arnaud Brunet (JIRA)

[ 
https://issues.apache.org/jira/browse/DBCP-349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13575635#comment-13575635
 ] 

Arnaud Brunet commented on DBCP-349:


Hi

It's not a bug of Commons Dbcp.

Oracle (in CLOB.createTemporary()) casts the Connection to OracleConnection 
instead to use connection.unwrap method.


 Insert clob or blob with oracle connection crashes software 
 

 Key: DBCP-349
 URL: https://issues.apache.org/jira/browse/DBCP-349
 Project: Commons Dbcp
  Issue Type: Bug
Affects Versions: 1.3
 Environment: windows XP , JDK 1.6, oracle 10g, oracle driver 10.2.0.2
Reporter: alina joshi
Priority: Critical
 Fix For: 1.3.1, 1.4.1


  1 tomcat 6.0.26 has tomcat-dbcp.jar that works completely fine. 
  2 tomcat 6.0.28, tomcat 6.0.29, tomcat 5.0.30, tomcat 5.0.31 has 
 tomcat-dbcp.jar file that doesn't work and throws following error :
 java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.PoolableConnection 
 cannot be cast to oracle.jdbc.OracleConnection
 at oracle.sql.CLOB.createTemporary(CLOB.java:754)
 at oracle.sql.CLOB.createTemporary(CLOB.java:716)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 Would like to know if there was any changes to the commons dbcp package for 
 tomcat version 6.0.29?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DBCP-349) Insert clob or blob with oracle connection crashes software

2013-02-10 Thread Arnaud Brunet (JIRA)

 [ 
https://issues.apache.org/jira/browse/DBCP-349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arnaud Brunet updated DBCP-349:
---

Attachment: DBCP349.zip

Attached is a program to understand the error

 Insert clob or blob with oracle connection crashes software 
 

 Key: DBCP-349
 URL: https://issues.apache.org/jira/browse/DBCP-349
 Project: Commons Dbcp
  Issue Type: Bug
Affects Versions: 1.3
 Environment: windows XP , JDK 1.6, oracle 10g, oracle driver 10.2.0.2
Reporter: alina joshi
Priority: Critical
 Fix For: 1.3.1, 1.4.1

 Attachments: DBCP349.zip


  1 tomcat 6.0.26 has tomcat-dbcp.jar that works completely fine. 
  2 tomcat 6.0.28, tomcat 6.0.29, tomcat 5.0.30, tomcat 5.0.31 has 
 tomcat-dbcp.jar file that doesn't work and throws following error :
 java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.PoolableConnection 
 cannot be cast to oracle.jdbc.OracleConnection
 at oracle.sql.CLOB.createTemporary(CLOB.java:754)
 at oracle.sql.CLOB.createTemporary(CLOB.java:716)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 Would like to know if there was any changes to the commons dbcp package for 
 tomcat version 6.0.29?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (LANG-836) StrSubstitutor does not support StringBuilder or CharSequence

2012-10-26 Thread Arnaud Brunet (JIRA)

 [ 
https://issues.apache.org/jira/browse/LANG-836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arnaud Brunet updated LANG-836:
---

Attachment: mylyn-context.zip

 StrSubstitutor does not support StringBuilder or CharSequence
 -

 Key: LANG-836
 URL: https://issues.apache.org/jira/browse/LANG-836
 Project: Commons Lang
  Issue Type: Bug
Reporter: Sebb
 Attachments: LANG-836.patch, LANG-836-v2.patch, mylyn-context.zip




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (LANG-836) StrSubstitutor does not support StringBuilder or CharSequence

2012-10-26 Thread Arnaud Brunet (JIRA)

[ 
https://issues.apache.org/jira/browse/LANG-836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13484815#comment-13484815
 ] 

Arnaud Brunet commented on LANG-836:


Attached a new patch that doesn't break binary comptability (i hope).

 StrSubstitutor does not support StringBuilder or CharSequence
 -

 Key: LANG-836
 URL: https://issues.apache.org/jira/browse/LANG-836
 Project: Commons Lang
  Issue Type: Bug
Reporter: Sebb
 Attachments: LANG-836.patch, LANG-836-v2.patch, mylyn-context.zip




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (LANG-836) StrSubstitutor does not support StringBuilder or CharSequence

2012-10-26 Thread Arnaud Brunet (JIRA)

 [ 
https://issues.apache.org/jira/browse/LANG-836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arnaud Brunet updated LANG-836:
---

Attachment: LANG-836-v2.patch

 StrSubstitutor does not support StringBuilder or CharSequence
 -

 Key: LANG-836
 URL: https://issues.apache.org/jira/browse/LANG-836
 Project: Commons Lang
  Issue Type: Bug
Reporter: Sebb
 Attachments: LANG-836.patch, LANG-836-v2.patch, mylyn-context.zip




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (LANG-836) StrSubstitutor does not support StringBuilder or CharSequence

2012-10-26 Thread Arnaud Brunet (JIRA)

 [ 
https://issues.apache.org/jira/browse/LANG-836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arnaud Brunet updated LANG-836:
---

Attachment: (was: mylyn-context.zip)

 StrSubstitutor does not support StringBuilder or CharSequence
 -

 Key: LANG-836
 URL: https://issues.apache.org/jira/browse/LANG-836
 Project: Commons Lang
  Issue Type: Bug
Reporter: Sebb
 Attachments: LANG-836.patch, LANG-836-v2.patch




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (LANG-837) ObjectUtils.identityToString does not support StringBuilder or StrBuilder or Appendable

2012-10-23 Thread Arnaud BRUNET (JIRA)

 [ 
https://issues.apache.org/jira/browse/LANG-837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arnaud BRUNET updated LANG-837:
---

Attachment: LANG-837.patch

Adding 3 new methods :
{code}
public static void identityToString(Appendable appendable, Object object) 
throws IOException
public static void identityToString(StrBuilder builder, Object object)
public static void identityToString(StringBuilder builder, Object object)
{code}

 ObjectUtils.identityToString does not support StringBuilder or StrBuilder or 
 Appendable
 ---

 Key: LANG-837
 URL: https://issues.apache.org/jira/browse/LANG-837
 Project: Commons Lang
  Issue Type: Improvement
Reporter: Sebb
 Attachments: LANG-837.patch




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Comment Edited] (LANG-837) ObjectUtils.identityToString does not support StringBuilder or StrBuilder or Appendable

2012-10-23 Thread Arnaud BRUNET (JIRA)

[ 
https://issues.apache.org/jira/browse/LANG-837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13482202#comment-13482202
 ] 

Arnaud BRUNET edited comment on LANG-837 at 10/23/12 8:37 AM:
--

Added 3 new methods :
{code}
public static void identityToString(Appendable appendable, Object object) 
throws IOException
public static void identityToString(StrBuilder builder, Object object)
public static void identityToString(StringBuilder builder, Object object)
{code}

  was (Author: gronono):
Adding 3 new methods :
{code}
public static void identityToString(Appendable appendable, Object object) 
throws IOException
public static void identityToString(StrBuilder builder, Object object)
public static void identityToString(StringBuilder builder, Object object)
{code}
  
 ObjectUtils.identityToString does not support StringBuilder or StrBuilder or 
 Appendable
 ---

 Key: LANG-837
 URL: https://issues.apache.org/jira/browse/LANG-837
 Project: Commons Lang
  Issue Type: Improvement
Reporter: Sebb
 Attachments: LANG-837.patch




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (LANG-836) StrSubstitutor does not support StringBuilder or CharSequence

2012-10-23 Thread Arnaud BRUNET (JIRA)

 [ 
https://issues.apache.org/jira/browse/LANG-836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arnaud BRUNET updated LANG-836:
---

Attachment: LANG-836.patch

Added an implementation : 
- StrBuilder(String) - StrBuilder(CharSequence)
- replace() methods use CharSequence
- added replaceIn(StringBuilder) methods

 StrSubstitutor does not support StringBuilder or CharSequence
 -

 Key: LANG-836
 URL: https://issues.apache.org/jira/browse/LANG-836
 Project: Commons Lang
  Issue Type: Bug
Reporter: Sebb
 Attachments: LANG-836.patch




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira