Thanks Mike,

My main concern was whether you still had the intention of supporting 1.4, which it's clear you still do.  I will just wait for the next version with the fix.

Francis

Michael Kay wrote:
This is a known bug: see

http://sourceforge.net/tracker/index.php?func=detail&aid=1707376&group_id=29
872&atid=397617

Although in your case it's happening on an addition rather than a division,
I'm pretty sure it's the same bug.

If you don't want to rebuild using the patched source, try to locate where
the relevant addition is taking place, and do an explicit cast of the
operands to xs:decimal. Or if it involves variables or parameters (quite
likely as the trace shows that the type isn't known at compile time), try
adding "as='xs:decimal'" to the relevant variable declaration.

You should be able to locate where the failure occurs by running with the -T
option and seeing where it is when it fails.

Michael Kay
http://www.saxonica.com/
 

  
-----Original Message-----
From: saxon-help-bounces@lists.sourceforge.net 
[mailto:saxon-help-bounces@lists.sourceforge.net] On Behalf 
Of Francis Upton
Sent: 10 June 2007 18:29
To: Saxon-Help Mailing List
Subject: [saxon] support for JRE 1.4.2 in Saxon 8.9

I'm running JRE 1.4.2 with 8.9.0.1 and I encounter an error 
where Saxon is using the "long" constructor for BigDecimal, 
which is not available until JRE 5.

The Saxonica website says that Saxon is supported on JRE 1.4. 
 Am I missing something?

Below is the stack trace.

Thanks,

Francis

java.lang.NoSuchMethodError: java.math.BigDecimal.<init>(J)V
    at 
net.sf.saxon.value.Int64Value.getDecimalValue(Int64Value.java:311)
    at
net.sf.saxon.expr.Calculator$DecimalPlusDecimal.compute(Calcul
ator.java:599)
    at 
net.sf.saxon.expr.Calculator$AnyPlusAny.compute(Calculator.java:303)
    at
net.sf.saxon.expr.ArithmeticExpression.evaluateItem(Arithmetic
Expression.java:237)
    at 
net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:361)
    at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:229)
    at 
net.sf.saxon.expr.LetExpression.evaluateItem(LetExpression.java:240)
    at 
net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:361)
    at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:229)
    at net.sf.saxon.expr.LetExpression.process(LetExpression.java:260)
    at 
net.sf.saxon.instruct.UserFunction.process(UserFunction.java:284)
    at 
net.sf.saxon.expr.UserFunctionCall.process(UserFunctionCall.java:349)
    at
net.sf.saxon.expr.IfExpression.processLeavingTail(IfExpression
.java:293)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:365)
    at net.sf.saxon.instruct.Instruction.process(Instruction.java:91)
    at net.sf.saxon.expr.IfExpression.process(IfExpression.java:270)
    at net.sf.saxon.expr.ForExpression.process(ForExpression.java:522)
    at 
net.sf.saxon.instruct.UserFunction.process(UserFunction.java:284)
    at 
net.sf.saxon.expr.UserFunctionCall.process(UserFunctionCall.java:349)
    at
net.sf.saxon.expr.IfExpression.processLeavingTail(IfExpression
.java:293)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:365)
    at net.sf.saxon.instruct.Instruction.process(Instruction.java:91)
    at net.sf.saxon.expr.ForExpression.process(ForExpression.java:522)
    at 
net.sf.saxon.instruct.UserFunction.process(UserFunction.java:284)
    at 
net.sf.saxon.expr.UserFunctionCall.process(UserFunctionCall.java:349)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:367)
    at net.sf.saxon.instruct.Instruction.process(Instruction.java:91)
    at 
net.sf.saxon.query.XQueryExpression.run(XQueryExpression.java:346)
    at
com.oaklandsw.transform.runtime.xquery.SaxonAdaptorImpl.run(Sa
xonAdaptorImpl.java:257)
    at
com.oaklandsw.transform.runtime.StandardMapRuntimeImpl.runQuer
y(StandardMapRuntimeImpl.java:439)
    at
com.oaklandsw.transform.runtime.StandardMapRuntimeImpl.runSubc
lass(StandardMapRuntimeImpl.java:383)
    at
com.oaklandsw.transform.runtime.MapRuntimeImpl$2.run(MapRuntim
eImpl.java:412)
    at
com.oaklandsw.transform.runtime.RuntimeEngineImpl.runSansEdito
r(RuntimeEngineImpl.java:388)
    at
com.oaklandsw.transform.runtime.MapRuntimeImpl.run(MapRuntimeI
mpl.java:405)
    at
com.oaklandsw.transform.runtime.MapRuntimeImpl.run(MapRuntimeI
mpl.java:362)
    at
com.oaklandsw.transform.TransformTestBase.executeMap(Transform
TestBase.java:3160)
    at
com.oaklandsw.transform.TransformTestBase.executeMapFile(Trans
formTestBase.java:3099)
    at
com.oaklandsw.transform.TransformTestBase.executeAndCheckMap(T
ransformTestBase.java:3214)
    at
com.oaklandsw.transform.TransformTestBase.executeAndCheckMap(T
ransformTestBase.java:3200)
    at
com.oaklandsw.transform.TransformTestBase.checkPassthrough(Tra
nsformTestBase.java:3194)
    at
com.oaklandsw.transform.QrsImportTest.testQrsEdi8564030X12HlNo
E(QrsImportTest.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
orImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
odAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReferen
ce.run(JUnit3TestReference.java:128)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestEx
ecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTest
s(RemoteTestRunner.java:460)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTest
s(RemoteTestRunner.java:673)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(Rem
oteTestRunner.java:386)
    at
org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.
main(RemotePluginTestRunner.java:58)
    at
org.eclipse.pde.internal.junit.runtime.UITestApplication$1.run
(UITestApplication.java:105)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchron
izer.java:123)
    at 
org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3157)
    at 
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2859)
    at 
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
    at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbe
nch.java:422)
    at 
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at 
com.oaklandsw.transform.editor.Editor.runEditor(Editor.java:2417)
    at 
com.oaklandsw.transform.editor.Standalone.run(Standalone.java:105)
    at
org.eclipse.pde.internal.junit.runtime.UITestApplication.run(U
ITestApplication.java:45)
    at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Plat
formActivator.java:78)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.r
unApplication(EclipseAppLauncher.java:92)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.s
tart(EclipseAppLauncher.java:68)
    at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseSta
rter.java:400)
    at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseSta
rter.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
orImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
odAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)



--------------------------------------------------------------
-----------
This SF.net email is sponsored by DB2 Express Download DB2 
Express C - the FREE version of DB2 express and take control 
of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
saxon-help mailing list
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help
    


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
saxon-help mailing list
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help