[jira] Assigned: (TORQUE-97) Exception NoSuchMethodError when using IDBroker with Java 1.4

2007-07-01 Thread Thomas Vandahl (JIRA)

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

Thomas Vandahl reassigned TORQUE-97:


Assignee: Thomas Vandahl

 Exception NoSuchMethodError when using IDBroker with Java 1.4
 -

 Key: TORQUE-97
 URL: https://issues.apache.org/jira/browse/TORQUE-97
 Project: Torque
  Issue Type: Bug
  Components: Runtime
Affects Versions: 3.3-RC2
 Environment: Java 1.4
Reporter: Markus Müller
Assignee: Thomas Vandahl

 I got the exception 
 java.lang.NoSuchMethodError: java.math.BigDecimal.init(I)V
 at org.apache.torque.oid.IDBroker.getQuantity(IDBroker.java:747)
 when using Torque Runtime 3.3-RC2 with JDK 1.4.
 Java 1.5 defines additional BigDecimal constructors, one of them takes an int 
 parameter. 
 Java 1.4 has only a BigDecimal constructor with a double parameter.
 I presume that the Torque library was compiled with Java 1.5 causing the 
 problem above.
 Probably the problem of line 747 may be solved with a cast as the following:
 quantity = new BigDecimal((double) 1);
 Line 775 of IDBroker.java may be fixed the same way:
 quantity = new BigDecimal((double) 10);
 Thanks,
 Markus

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[jira] Resolved: (TORQUE-97) Exception NoSuchMethodError when using IDBroker with Java 1.4

2007-07-01 Thread Thomas Vandahl (JIRA)

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

Thomas Vandahl resolved TORQUE-97.
--

   Resolution: Fixed
Fix Version/s: 3.3-RC3

Fixed in SVN.

 Exception NoSuchMethodError when using IDBroker with Java 1.4
 -

 Key: TORQUE-97
 URL: https://issues.apache.org/jira/browse/TORQUE-97
 Project: Torque
  Issue Type: Bug
  Components: Runtime
Affects Versions: 3.3-RC2
 Environment: Java 1.4
Reporter: Markus Müller
Assignee: Thomas Vandahl
 Fix For: 3.3-RC3


 I got the exception 
 java.lang.NoSuchMethodError: java.math.BigDecimal.init(I)V
 at org.apache.torque.oid.IDBroker.getQuantity(IDBroker.java:747)
 when using Torque Runtime 3.3-RC2 with JDK 1.4.
 Java 1.5 defines additional BigDecimal constructors, one of them takes an int 
 parameter. 
 Java 1.4 has only a BigDecimal constructor with a double parameter.
 I presume that the Torque library was compiled with Java 1.5 causing the 
 problem above.
 Probably the problem of line 747 may be solved with a cast as the following:
 quantity = new BigDecimal((double) 1);
 Line 775 of IDBroker.java may be fixed the same way:
 quantity = new BigDecimal((double) 10);
 Thanks,
 Markus

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r552333 - /db/torque/runtime/trunk/src/java/org/apache/torque/oid/IDBroker.java

2007-07-01 Thread tv
Author: tv
Date: Sun Jul  1 09:24:19 2007
New Revision: 552333

URL: http://svn.apache.org/viewvc?view=revrev=552333
Log:
Change BigDecimal constructors to use double. This should make the compile
with JDK 1.5 work with Java 1.4 and before. Fixes TORQUE-97

Modified:
db/torque/runtime/trunk/src/java/org/apache/torque/oid/IDBroker.java

Modified: db/torque/runtime/trunk/src/java/org/apache/torque/oid/IDBroker.java
URL: 
http://svn.apache.org/viewvc/db/torque/runtime/trunk/src/java/org/apache/torque/oid/IDBroker.java?view=diffrev=552333r1=552332r2=552333
==
--- db/torque/runtime/trunk/src/java/org/apache/torque/oid/IDBroker.java 
(original)
+++ db/torque/runtime/trunk/src/java/org/apache/torque/oid/IDBroker.java Sun 
Jul  1 09:24:19 2007
@@ -744,7 +744,7 @@
 // If prefetch is turned off we simply return 1
 if (!configuration.getBoolean(DB_IDBROKER_PREFETCH, true))
 {
-quantity = new BigDecimal(1);
+quantity = new BigDecimal((double)1);
 }
 // Initialize quantity, if necessary.
 else if (quantityStore.containsKey(tableName))
@@ -772,7 +772,7 @@
 }
 catch (Exception e)
 {
-quantity = new BigDecimal(10);
+quantity = new BigDecimal((double)10);
 }
 finally
 {



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r552334 - in /db/torque: runtime/trunk/ runtime/trunk/src/java/org/apache/torque/manager/ site/trunk/xdocs/

2007-07-01 Thread tv
Author: tv
Date: Sun Jul  1 09:26:41 2007
New Revision: 552334

URL: http://svn.apache.org/viewvc?view=revrev=552334
Log:
Upgraded JCS dependency to 1.3 and fixed related deprecation issues.

Modified:
db/torque/runtime/trunk/pom.xml
db/torque/runtime/trunk/project.xml

db/torque/runtime/trunk/src/java/org/apache/torque/manager/AbstractBaseManager.java

db/torque/runtime/trunk/src/java/org/apache/torque/manager/MethodResultCache.java
db/torque/site/trunk/xdocs/changes.xml

Modified: db/torque/runtime/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/db/torque/runtime/trunk/pom.xml?view=diffrev=552334r1=552333r2=552334
==
--- db/torque/runtime/trunk/pom.xml (original)
+++ db/torque/runtime/trunk/pom.xml Sun Jul  1 09:26:41 2007
@@ -99,9 +99,9 @@
 /dependency
 
 dependency
-  groupIdjcs/groupId
+  groupIdorg.apache.jcs/groupId
   artifactIdjcs/artifactId
-  version20030822.182132/version
+  version1.3/version
 /dependency
 
 !--dependency

Modified: db/torque/runtime/trunk/project.xml
URL: 
http://svn.apache.org/viewvc/db/torque/runtime/trunk/project.xml?view=diffrev=552334r1=552333r2=552334
==
--- db/torque/runtime/trunk/project.xml (original)
+++ db/torque/runtime/trunk/project.xml Sun Jul  1 09:26:41 2007
@@ -17,213 +17,206 @@
  specific language governing permissions and limitations
  under the License.
 --
-
 project
-  extendcommon/project.xml/extend
-  pomVersion3/pomVersion
-  idtorque/id
-  nameTorque/name
-
-  descriptionTorque is a persistence layer./description
-  shortDescriptionPersistence Layer/shortDescription
-  urlhttp://db.apache.org/torque/releases/torque-3.3/runtime//url
-  
siteDirectory/www/db.apache.org/torque/releases/torque-3.3/runtime//siteDirectory
-
-  repository
-
connectionscm:svn:http://svn.apache.org/repos/asf/db/torque/runtime/trunk/connection
-
developerConnectionscm:svn:https://svn.apache.org/repos/asf/db/torque/runtime/trunk/developerConnection
-urlhttp://svn.apache.org/viewvc/url
-  /repository
-
-  dependencies
-dependency
-  groupIdavalon-framework/groupId
-  artifactIdavalon-framework-api/artifactId
-  version4.3/version
-  urlhttp://avalon.apache.org//url
-  properties
-dist.bundletrue/dist.bundle
-  /properties
-/dependency
-
-dependency
-groupIdavalon-logkit/groupId
-artifactIdavalon-logkit/artifactId
-version2.1/version
-typejar/type
-properties
-  dist.bundletrue/dist.bundle
-/properties
-/dependency
-
-dependency
-  groupIdcommons-beanutils/groupId
-  artifactIdcommons-beanutils-core/artifactId
-  version1.7.0/version
-  urlhttp://jakarta.apache.org/commons/beanutils//url
-  properties
-dist.bundletrue/dist.bundle
-  /properties
-/dependency
-
-dependency
-  groupIdcommons-collections/groupId
-  artifactIdcommons-collections/artifactId
-  version3.2/version
-  urlhttp://jakarta.apache.org/commons/collections//url
-  properties
-dist.bundletrue/dist.bundle
-  /properties
-/dependency
-
-dependency
-  groupIdcommons-configuration/groupId
-  artifactIdcommons-configuration/artifactId
-  version1.4/version
-  urlhttp://jakarta.apache.org/commons/configuration//url
-  properties
-dist.bundletrue/dist.bundle
-  /properties
-/dependency
-
-dependency
-  groupIdcommons-dbcp/groupId
-  artifactIdcommons-dbcp/artifactId
-  version1.2.2/version
-  urlhttp://jakarta.apache.org/commons/dbcp//url
-  properties
-dist.bundletrue/dist.bundle
-  /properties
-/dependency
-
-dependency
-  groupIdcommons-lang/groupId
-  artifactIdcommons-lang/artifactId
-  version2.3/version
-  urlhttp://jakarta.apache.org/commons/lang//url
-  properties
-dist.bundletrue/dist.bundle
-  /properties
-/dependency
-
-dependency
-  groupIdcommons-logging/groupId
-  artifactIdcommons-logging/artifactId
-  version1.1/version
-  urlhttp://jakarta.apache.org/commons/logging//url
-  properties
-dist.bundletrue/dist.bundle
-  /properties
-/dependency
-
-dependency
-  groupIdcommons-pool/groupId
-  artifactIdcommons-pool/artifactId
-  version1.3/version
-  urlhttp://jakarta.apache.org/commons/pool//url
-  properties
-dist.bundletrue/dist.bundle
-  /properties
-/dependency
-
-dependency
-  groupIdjcs/groupId
-  artifactIdjcs/artifactId
-  version20030822.182132/version
-  urlhttp://jakarta.apache.org/jcs//url
-  properties
-dist.bundletrue/dist.bundle
-  /properties
-/dependency
-
-dependency
-  groupIdjdbc/groupId
-  artifactIdjdbc/artifactId
-  version2.0/version