BigDecimal, GenericValue Errors

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

BigDecimal, GenericValue Errors

Daniel Kunkel
Hi

Thanks Adrian for that link...

With a recent svn trunk version, I'm getting bigdecimal and generic
value errors.

Is this something in the works?

Thanks

Daniel


errors like:

2009-01-05 14:52:49,939 (TP-Processor3) [
Log.java:110:INFO ]
[CommonPermissionServices.xml#genericBasePermissionCheck]
 Checking for primary permission ACCOUNTING_UPDATE

2009-01-05 14:52:49,951 (TP-Processor3) [
GenericEntity.java:413:WARN ]
---- exception report
----------------------------------------------------------
=-=-=-=-=-=-=-=-= Database type warning GenericEntity.set
=-=-=-=-=-=-=-=-=
In entity field [GlAccountHistory.postedDebits] set the value passed in
[java.math.BigDecimal]
is not compatible with the Java type of the field [Double]

Exception: java.lang.Exception
Message: Location of database type warning
---- stack trace
---------------------------------------------------------------
java.lang.Exception: Location of database type warning
org.ofbiz.entity.GenericEntity.set(GenericEntity.java:413)
org.ofbiz.entity.GenericEntity.put(GenericEntity.java:1326)
org.ofbiz.entity.GenericEntity.put(GenericEntity.java:68)
org.ofbiz.base.util.string.UelUtil
$BasicVariableMapper.setVariable(UelUtil.java:136)
org.ofbiz.base.util.string.UelUtil
$ExtendedCompositeResolver.setValue(UelUtil.java:198)
de.odysseus.el.tree.impl.ast.AstIdentifier.setValue(AstIdentifier.java:81)
de.odysseus.el.tree.impl.ast.AstEval.setValue(AstEval.java:78)
de.odysseus.el.TreeValueExpression.setValue(TreeValueExpression.java:145)
org.ofbiz.base.util.string.UelUtil.setValue(UelUtil.java:87)
org.ofbiz.base.util.collections.FlexibleMapAccessor.put(FlexibleMapAccessor.java:162)
...


and Generic Value Errors:

2009-01-05 14:52:49,982 (TP-Processor3) [
Log.java:110:INFO ]
[CommonPermissionServices.xml#genericBasePermissionCheck]
Checking for primary permission ACCOUNTING_UPDATE

2009-01-05 14:52:49,993 (TP-Processor3) [
SimpleMethod.java:926:ERROR]
---- runtime exception report
--------------------------------------------------
Error in simple-method operation [<store-value/>]:
java.lang.ClassCastException:
java.lang.Double cannot be cast to org.ofbiz.entity.GenericValue
Exception: java.lang.ClassCastException
Message: java.lang.Double cannot be cast to
org.ofbiz.entity.GenericValue
---- stack trace
---------------------------------------------------------------
java.lang.ClassCastException: java.lang.Double cannot be cast to
org.ofbiz.entity.GenericValue
org.ofbiz.minilang.method.entityops.StoreValue.exec(StoreValue.java:58)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:119)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:119)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:134)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)




Reply | Threaded
Open this post in threaded view
|

Re: BigDecimal, GenericValue Errors

Adrian Crum
Those are warnings, not errors. If you do a search of the mailing list,
you'll find a discussion of why they appear.

-Adrian

Daniel Kunkel wrote:

> Hi
>
> Thanks Adrian for that link...
>
> With a recent svn trunk version, I'm getting bigdecimal and generic
> value errors.
>
> Is this something in the works?
>
> Thanks
>
> Daniel
>
>
> errors like:
>
> 2009-01-05 14:52:49,939 (TP-Processor3) [
> Log.java:110:INFO ]
> [CommonPermissionServices.xml#genericBasePermissionCheck]
>  Checking for primary permission ACCOUNTING_UPDATE
>
> 2009-01-05 14:52:49,951 (TP-Processor3) [
> GenericEntity.java:413:WARN ]
> ---- exception report
> ----------------------------------------------------------
> =-=-=-=-=-=-=-=-= Database type warning GenericEntity.set
> =-=-=-=-=-=-=-=-=
> In entity field [GlAccountHistory.postedDebits] set the value passed in
> [java.math.BigDecimal]
> is not compatible with the Java type of the field [Double]
>
> Exception: java.lang.Exception
> Message: Location of database type warning
> ---- stack trace
> ---------------------------------------------------------------
> java.lang.Exception: Location of database type warning
> org.ofbiz.entity.GenericEntity.set(GenericEntity.java:413)
> org.ofbiz.entity.GenericEntity.put(GenericEntity.java:1326)
> org.ofbiz.entity.GenericEntity.put(GenericEntity.java:68)
> org.ofbiz.base.util.string.UelUtil
> $BasicVariableMapper.setVariable(UelUtil.java:136)
> org.ofbiz.base.util.string.UelUtil
> $ExtendedCompositeResolver.setValue(UelUtil.java:198)
> de.odysseus.el.tree.impl.ast.AstIdentifier.setValue(AstIdentifier.java:81)
> de.odysseus.el.tree.impl.ast.AstEval.setValue(AstEval.java:78)
> de.odysseus.el.TreeValueExpression.setValue(TreeValueExpression.java:145)
> org.ofbiz.base.util.string.UelUtil.setValue(UelUtil.java:87)
> org.ofbiz.base.util.collections.FlexibleMapAccessor.put(FlexibleMapAccessor.java:162)
> ...
>
>
> and Generic Value Errors:
>
> 2009-01-05 14:52:49,982 (TP-Processor3) [
> Log.java:110:INFO ]
> [CommonPermissionServices.xml#genericBasePermissionCheck]
> Checking for primary permission ACCOUNTING_UPDATE
>
> 2009-01-05 14:52:49,993 (TP-Processor3) [
> SimpleMethod.java:926:ERROR]
> ---- runtime exception report
> --------------------------------------------------
> Error in simple-method operation [<store-value/>]:
> java.lang.ClassCastException:
> java.lang.Double cannot be cast to org.ofbiz.entity.GenericValue
> Exception: java.lang.ClassCastException
> Message: java.lang.Double cannot be cast to
> org.ofbiz.entity.GenericValue
> ---- stack trace
> ---------------------------------------------------------------
> java.lang.ClassCastException: java.lang.Double cannot be cast to
> org.ofbiz.entity.GenericValue
> org.ofbiz.minilang.method.entityops.StoreValue.exec(StoreValue.java:58)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:119)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:119)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:134)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
>
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: BigDecimal, GenericValue Errors

Stephen Rufle-2
I think it is being work on. I also had similar issues
http://svn.apache.org/repos/asf/ofbiz/branches/typecheckcleanup200810

Adrian Crum wrote:

> Those are warnings, not errors. If you do a search of the mailing
> list, you'll find a discussion of why they appear.
>
> -Adrian
>
> Daniel Kunkel wrote:
>> Hi
>>
>> Thanks Adrian for that link...
>>
>> With a recent svn trunk version, I'm getting bigdecimal and generic
>> value errors.
>>
>> Is this something in the works?
>>
>> Thanks
>>
>> Daniel
>>
>>
>> errors like:
>>
>> 2009-01-05 14:52:49,939 (TP-Processor3) [
>> Log.java:110:INFO ]
>> [CommonPermissionServices.xml#genericBasePermissionCheck]  Checking
>> for primary permission ACCOUNTING_UPDATE
>>
>> 2009-01-05 14:52:49,951 (TP-Processor3) [
>> GenericEntity.java:413:WARN ]
>> ---- exception report
>> ----------------------------------------------------------
>> =-=-=-=-=-=-=-=-= Database type warning GenericEntity.set
>> =-=-=-=-=-=-=-=-= In entity field [GlAccountHistory.postedDebits] set
>> the value passed in
>> [java.math.BigDecimal] is not compatible with the Java type of the
>> field [Double]
>>
>> Exception: java.lang.Exception
>> Message: Location of database type warning
>> ---- stack trace
>> ---------------------------------------------------------------
>> java.lang.Exception: Location of database type warning
>> org.ofbiz.entity.GenericEntity.set(GenericEntity.java:413)
>> org.ofbiz.entity.GenericEntity.put(GenericEntity.java:1326)
>> org.ofbiz.entity.GenericEntity.put(GenericEntity.java:68)
>> org.ofbiz.base.util.string.UelUtil
>> $BasicVariableMapper.setVariable(UelUtil.java:136)
>> org.ofbiz.base.util.string.UelUtil
>> $ExtendedCompositeResolver.setValue(UelUtil.java:198)
>> de.odysseus.el.tree.impl.ast.AstIdentifier.setValue(AstIdentifier.java:81)
>>
>> de.odysseus.el.tree.impl.ast.AstEval.setValue(AstEval.java:78)
>> de.odysseus.el.TreeValueExpression.setValue(TreeValueExpression.java:145)
>>
>> org.ofbiz.base.util.string.UelUtil.setValue(UelUtil.java:87)
>> org.ofbiz.base.util.collections.FlexibleMapAccessor.put(FlexibleMapAccessor.java:162)
>>
>> ...
>>
>>
>> and Generic Value Errors:
>>
>> 2009-01-05 14:52:49,982 (TP-Processor3) [
>> Log.java:110:INFO ]
>> [CommonPermissionServices.xml#genericBasePermissionCheck] Checking
>> for primary permission ACCOUNTING_UPDATE
>>
>> 2009-01-05 14:52:49,993 (TP-Processor3) [
>> SimpleMethod.java:926:ERROR]
>> ---- runtime exception report
>> --------------------------------------------------
>> Error in simple-method operation [<store-value/>]:
>> java.lang.ClassCastException: java.lang.Double cannot be cast to
>> org.ofbiz.entity.GenericValue
>> Exception: java.lang.ClassCastException
>> Message: java.lang.Double cannot be cast to
>> org.ofbiz.entity.GenericValue
>> ---- stack trace
>> ---------------------------------------------------------------
>> java.lang.ClassCastException: java.lang.Double cannot be cast to
>> org.ofbiz.entity.GenericValue
>> org.ofbiz.minilang.method.entityops.StoreValue.exec(StoreValue.java:58)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
>> org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:119)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
>> org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:119)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:134)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
>>
>>
>>
>>
>>
>
>

--
Stephen P Rufle
[hidden email]
H1:480-626-8022
H2:480-802-7173
Yahoo IM: stephen_rufle
AOL IM: stephen1rufle

Reply | Threaded
Open this post in threaded view
|

Re: BigDecimal, GenericValue Errors

Adrian Crum
In reply to this post by Daniel Kunkel
That's an error. I need more information to track it down: SVN rev, URL
that caused the error, etc.

-Adrian

Daniel Kunkel wrote:

> 2009-01-05 14:52:49,982 (TP-Processor3) [
> Log.java:110:INFO ]
> [CommonPermissionServices.xml#genericBasePermissionCheck]
> Checking for primary permission ACCOUNTING_UPDATE
>
> 2009-01-05 14:52:49,993 (TP-Processor3) [
> SimpleMethod.java:926:ERROR]
> ---- runtime exception report
> --------------------------------------------------
> Error in simple-method operation [<store-value/>]:
> java.lang.ClassCastException:
> java.lang.Double cannot be cast to org.ofbiz.entity.GenericValue
> Exception: java.lang.ClassCastException
> Message: java.lang.Double cannot be cast to
> org.ofbiz.entity.GenericValue
> ---- stack trace
> ---------------------------------------------------------------
> java.lang.ClassCastException: java.lang.Double cannot be cast to
> org.ofbiz.entity.GenericValue
> org.ofbiz.minilang.method.entityops.StoreValue.exec(StoreValue.java:58)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:119)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:119)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:134)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)

Reply | Threaded
Open this post in threaded view
|

Re: BigDecimal, GenericValue Errors

Daniel Riquelme
I believe this error has been fixed in rev. r731612.
You may read about it here:
http://www.nabble.com/error-in-postAcctgTrans-td21284314.html


On Mon, Jan 5, 2009 at 9:07 PM, Adrian Crum <[hidden email]> wrote:

> That's an error. I need more information to track it down: SVN rev, URL
> that caused the error, etc.
>
> -Adrian
>
>
> Daniel Kunkel wrote:
>
>> 2009-01-05 14:52:49,982 (TP-Processor3) [
>> Log.java:110:INFO ]
>> [CommonPermissionServices.xml#genericBasePermissionCheck] Checking for
>> primary permission ACCOUNTING_UPDATE
>>
>> 2009-01-05 14:52:49,993 (TP-Processor3) [
>> SimpleMethod.java:926:ERROR]
>> ---- runtime exception report
>> --------------------------------------------------
>> Error in simple-method operation [<store-value/>]:
>> java.lang.ClassCastException: java.lang.Double cannot be cast to
>> org.ofbiz.entity.GenericValue
>> Exception: java.lang.ClassCastException
>> Message: java.lang.Double cannot be cast to
>> org.ofbiz.entity.GenericValue
>> ---- stack trace
>> ---------------------------------------------------------------
>> java.lang.ClassCastException: java.lang.Double cannot be cast to
>> org.ofbiz.entity.GenericValue
>> org.ofbiz.minilang.method.entityops.StoreValue.exec(StoreValue.java:58)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
>> org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:119)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
>> org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:119)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:134)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: BigDecimal, GenericValue Errors

Daniel Kunkel
Thanks Daniel

I was at: 731219.

Daniel


On Mon, 2009-01-05 at 23:09 -0300, Daniel Riquelme wrote:

> I believe this error has been fixed in rev. r731612.
> You may read about it here:
> http://www.nabble.com/error-in-postAcctgTrans-td21284314.html
>
>
> On Mon, Jan 5, 2009 at 9:07 PM, Adrian Crum <[hidden email]> wrote:
>
> > That's an error. I need more information to track it down: SVN rev, URL
> > that caused the error, etc.
> >
> > -Adrian
> >
> >
> > Daniel Kunkel wrote:
> >
> >> 2009-01-05 14:52:49,982 (TP-Processor3) [
> >> Log.java:110:INFO ]
> >> [CommonPermissionServices.xml#genericBasePermissionCheck] Checking for
> >> primary permission ACCOUNTING_UPDATE
> >>
> >> 2009-01-05 14:52:49,993 (TP-Processor3) [
> >> SimpleMethod.java:926:ERROR]
> >> ---- runtime exception report
> >> --------------------------------------------------
> >> Error in simple-method operation [<store-value/>]:
> >> java.lang.ClassCastException: java.lang.Double cannot be cast to
> >> org.ofbiz.entity.GenericValue
> >> Exception: java.lang.ClassCastException
> >> Message: java.lang.Double cannot be cast to
> >> org.ofbiz.entity.GenericValue
> >> ---- stack trace
> >> ---------------------------------------------------------------
> >> java.lang.ClassCastException: java.lang.Double cannot be cast to
> >> org.ofbiz.entity.GenericValue
> >> org.ofbiz.minilang.method.entityops.StoreValue.exec(StoreValue.java:58)
> >> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> >> org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:119)
> >> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> >> org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:119)
> >> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> >> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:134)
> >> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> >>
> >
> >