java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When creating a new asset, the fields for accumulated depreciation and period depreciation amounts are defaulted to (null) in CM_AST_PAYMENT_T. This causes issues with the assetDepreciationBatchJob as it is expecting a number to use for the depreciation calculation. The following stack trace occurs in the depr log: 4] u:/d: INFO org.kuali.kfs.module.cam.document.dataaccess.impl.DepreciableAssetsDaoOjb :: DEPRECIATION BATCH - Getting assets payment row count, depreciation base amount, accumulated depreciation amount, and every months depreciation amount. 2013-04-30 10:41:08,208 [scheduler_Worker-4] u:/d: ERROR org.kuali.kfs.module.cam.batch.service.impl.AssetDepreciationServiceImpl :: Error occurred 2013-04-30 10:41:08,208 [scheduler_Worker-4] u:/d: ERROR org.kuali.kfs.module.cam.batch.service.impl.AssetDepreciationServiceImpl :: DEPRECIATION BATCH - ************************************************************************** 2013-04-30 10:41:08,209 [scheduler_Worker-4] u:/d: ERROR org.kuali.kfs.module.cam.batch.service.impl.AssetDepreciationServiceImpl :: DEPRECIATION BATCH - AN ERROR HAS OCCURRED! - ERROR: Cannot format given Object as a Number java.lang.IllegalArgumentException: Cannot format given Object as a Number at java.text.DecimalFormat.format(DecimalFormat.java:486) at java.text.Format.format(Format.java:140) at org.kuali.kfs.module.cam.document.dataaccess.impl.DepreciableAssetsDaoOjb.generateStatistics(DepreciableAssetsDaoOjb.java:161) at org.kuali.kfs.module.cam.batch.service.impl.AssetDepreciationServiceImpl.runDepreciation(AssetDepreciationServiceImpl.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy496.runDepreciation(Unknown Source) at org.kuali.kfs.module.cam.batch.AssetDepreciationStep.execute(AssetDepreciationStep.java:35) at org.kuali.kfs.sys.batch.Job.runStep(Job.java:175) at org.kuali.kfs.sys.batch.Job.execute(Job.java:121) at org.quartz.core.JobRunShell.run(JobRunShell.java:216) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) I did a SQL update to replace the (null)s with zeros and the batch job succeeded and posted correctly. To keep consistency in this table, these fields should default to zero rather than (null)
    via by Kris Keithly,
  • When creating a new asset, the fields for accumulated depreciation and period depreciation amounts are defaulted to (null) in CM_AST_PAYMENT_T. This causes issues with the assetDepreciationBatchJob as it is expecting a number to use for the depreciation calculation. The following stack trace occurs in the depr log: 4] u:/d: INFO org.kuali.kfs.module.cam.document.dataaccess.impl.DepreciableAssetsDaoOjb :: DEPRECIATION BATCH - Getting assets payment row count, depreciation base amount, accumulated depreciation amount, and every months depreciation amount. 2013-04-30 10:41:08,208 [scheduler_Worker-4] u:/d: ERROR org.kuali.kfs.module.cam.batch.service.impl.AssetDepreciationServiceImpl :: Error occurred 2013-04-30 10:41:08,208 [scheduler_Worker-4] u:/d: ERROR org.kuali.kfs.module.cam.batch.service.impl.AssetDepreciationServiceImpl :: DEPRECIATION BATCH - ************************************************************************** 2013-04-30 10:41:08,209 [scheduler_Worker-4] u:/d: ERROR org.kuali.kfs.module.cam.batch.service.impl.AssetDepreciationServiceImpl :: DEPRECIATION BATCH - AN ERROR HAS OCCURRED! - ERROR: Cannot format given Object as a Number java.lang.IllegalArgumentException: Cannot format given Object as a Number at java.text.DecimalFormat.format(DecimalFormat.java:486) at java.text.Format.format(Format.java:140) at org.kuali.kfs.module.cam.document.dataaccess.impl.DepreciableAssetsDaoOjb.generateStatistics(DepreciableAssetsDaoOjb.java:161) at org.kuali.kfs.module.cam.batch.service.impl.AssetDepreciationServiceImpl.runDepreciation(AssetDepreciationServiceImpl.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy496.runDepreciation(Unknown Source) at org.kuali.kfs.module.cam.batch.AssetDepreciationStep.execute(AssetDepreciationStep.java:35) at org.kuali.kfs.sys.batch.Job.runStep(Job.java:175) at org.kuali.kfs.sys.batch.Job.execute(Job.java:121) at org.quartz.core.JobRunShell.run(JobRunShell.java:216) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) I did a SQL update to replace the (null)s with zeros and the batch job succeeded and posted correctly. To keep consistency in this table, these fields should default to zero rather than (null)
    via by Kris Keithly,
  • When creating a new asset, the fields for accumulated depreciation and period depreciation amounts are defaulted to (null) in CM_AST_PAYMENT_T. This causes issues with the assetDepreciationBatchJob as it is expecting a number to use for the depreciation calculation. The following stack trace occurs in the depr log: 4] u:/d: INFO org.kuali.kfs.module.cam.document.dataaccess.impl.DepreciableAssetsDaoOjb :: DEPRECIATION BATCH - Getting assets payment row count, depreciation base amount, accumulated depreciation amount, and every months depreciation amount. 2013-04-30 10:41:08,208 [scheduler_Worker-4] u:/d: ERROR org.kuali.kfs.module.cam.batch.service.impl.AssetDepreciationServiceImpl :: Error occurred 2013-04-30 10:41:08,208 [scheduler_Worker-4] u:/d: ERROR org.kuali.kfs.module.cam.batch.service.impl.AssetDepreciationServiceImpl :: DEPRECIATION BATCH - ************************************************************************** 2013-04-30 10:41:08,209 [scheduler_Worker-4] u:/d: ERROR org.kuali.kfs.module.cam.batch.service.impl.AssetDepreciationServiceImpl :: DEPRECIATION BATCH - AN ERROR HAS OCCURRED! - ERROR: Cannot format given Object as a Number java.lang.IllegalArgumentException: Cannot format given Object as a Number at java.text.DecimalFormat.format(DecimalFormat.java:486) at java.text.Format.format(Format.java:140) at org.kuali.kfs.module.cam.document.dataaccess.impl.DepreciableAssetsDaoOjb.generateStatistics(DepreciableAssetsDaoOjb.java:161) at org.kuali.kfs.module.cam.batch.service.impl.AssetDepreciationServiceImpl.runDepreciation(AssetDepreciationServiceImpl.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy496.runDepreciation(Unknown Source) at org.kuali.kfs.module.cam.batch.AssetDepreciationStep.execute(AssetDepreciationStep.java:35) at org.kuali.kfs.sys.batch.Job.runStep(Job.java:175) at org.kuali.kfs.sys.batch.Job.execute(Job.java:121) at org.quartz.core.JobRunShell.run(JobRunShell.java:216) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) I did a SQL update to replace the (null)s with zeros and the batch job succeeded and posted correctly. To keep consistency in this table, these fields should default to zero rather than (null)
    via by Kris Keithly,
  • GitHub comment 869#275456653
    via GitHub by RigoFlores
    ,
  • Illegal Argument Exception
    via Stack Overflow by user2954611
    ,
  • How to format string in java with Formatter
    via Stack Overflow by Scorpion
    ,
  • Cannot format given Object as a Number ComboBox
    via Stack Overflow by Seng
    ,
  • Formatting Given Object as Number
    via Stack Overflow by Mecroth
    ,
    • java.lang.IllegalArgumentException: Cannot format given Object as a Number at java.text.DecimalFormat.format(DecimalFormat.java:486) at java.text.Format.format(Format.java:140) at org.kuali.kfs.module.cam.document.dataaccess.impl.DepreciableAssetsDaoOjb.generateStatistics(DepreciableAssetsDaoOjb.java:161) at org.kuali.kfs.module.cam.batch.service.impl.AssetDepreciationServiceImpl.runDepreciation(AssetDepreciationServiceImpl.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy496.runDepreciation(Unknown Source) at org.kuali.kfs.module.cam.batch.AssetDepreciationStep.execute(AssetDepreciationStep.java:35) at org.kuali.kfs.sys.batch.Job.runStep(Job.java:175) at org.kuali.kfs.sys.batch.Job.execute(Job.java:121) at org.quartz.core.JobRunShell.run(JobRunShell.java:216) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)

    Users with the same issue

    Unknown visitor1 times, last one,
    marcbouvierdav
    3 times, last one,
    johnxfly
    5 times, last one,
    Christopher
    1 times, last one,
    Unknown visitor1 times, last one,
    16 more bugmates