org.codehaus.jettison.json.JSONObject类型的Null值怎么判断的问题,JSONObject$Null

org.codehaus.jettison.json.JSONObject类型的Null值怎么判断的问题,JSONObject$Null

说明

原报文

{
    "M_SECURITY_LEVEL": 1,
    "IS_DELETED": null,
    "HCO_STATUS": null,
    "BUSINESS_STATUS": "正常"
}

被JSONObject修改后的报文

{
	"M_SECURITY_LEVEL": 1,
    "IS_DELETED": {
        "@class": "org.codehaus.jettison.json.JSONObject$Null",
        "@id": 1,
        "explicitNull": true
    },
    "HCO_STATUS": 1,
    "BUSINESS_STATUS": "正常",
}

通过JSONObject转换后的json,对于null值,并不是真正的null值,而是JSONObject类型的null值。在进行数值转换时就会发生异常,所以要还原成真正的null值。
org.codehaus.jettison.json.JSONObject类型的Null值怎么判断的问题,JSONObject$Null_第1张图片

解决代码

通过判断是否为JSONObject.EXPLICIT_NULL,然后重新赋值

Object value = json.get(key);
if (value == JSONObject.EXPLICIT_NULL) {
	System.out.println(value);
}

报错信息

Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: Property ‘explicitNull’ has no getter method in class ‘class org.codehaus.jettison.json.JSONObject$Null’

java.lang.reflect.InvocationTargetException: null
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.primeton.workflow.api.proxy.EngineTxAction.operatorImplement(EngineTxAction.java:561)
	at com.primeton.workflow.api.proxy.EngineTxAction.doOperator(EngineTxAction.java:412)
	at com.primeton.workflow.api.proxy.EngineTxAction.execute(EngineTxAction.java:399)
	at com.primeton.workflow.engine.scheduler.enginelog.EngineLogExecutor.executeAction(EngineLogExecutor.java:162)
	at com.primeton.workflow.api.proxy.EngineInvocationHandlerImpl.invoke(EngineInvocationHandlerImpl.java:156)
	at com.primeton.workflow.api.proxy.EngineInterceptor.invoke(EngineInterceptor.java:266)
	at com.sun.proxy.$Proxy160.setRelativeData(Unknown Source)
	at com.eos.workflow.api.impl.WFRelativeDataManager.setRelativeData(WFRelativeDataManager.java:221)
	at com.primeton.workflow.api2.WFRelativeDataApiLocalJvmImpl.setRelativeData(WFRelativeDataApiLocalJvmImpl.java:85)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.primeton.workflow.api2.registry.WFApiMethodRegistry$WFApiMethod.invoke(WFApiMethodRegistry.java:226)
	at com.primeton.workflow.springboot.api2.WFApiMethodHandler.doHandle(WFApiMethodHandler.java:160)
	at com.primeton.workflow.springboot.api2.WFApiMethodHandler.handle(WFApiMethodHandler.java:151)
	at com.primeton.workflow.springboot.api2.WFApiMethodHandler.doFilterInternal(WFApiMethodHandler.java:88)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at com.primeton.eos.springboot.autoconfig.EOS8SpringBootConfiguration$2.doFilter(EOS8SpringBootConfiguration.java:230)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at com.primeton.eos.dap.sdk.accesscontrol.SDKAccessControlFilter.doFilterInternal(SDKAccessControlFilter.java:132)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at com.primeton.eos.dap.sdk.actuate.filter.SDKActuatorAuthFilter.doFilterInternal(SDKActuatorAuthFilter.java:39)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at com.primeton.eos.springboot.autoconfig.EOS8SpringBootManagementConfiguration$EOS8EndpointCrossOriginFilter.doFilterInternal(EOS8SpringBootManagementConfiguration.java:66)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at com.primeton.eos.dap.sdk.actuate.filter.SDKActuatorMaskFilter.doFilterInternal(SDKActuatorMaskFilter.java:42)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at com.primeton.eos.dap.sdk.logging.filter.SDKLoggingFilter.doFilterInternal(SDKLoggingFilter.java:108)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:50)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at brave.servlet.TracingFilter.doFilter(TracingFilter.java:82)
	at org.springframework.cloud.sleuth.instrument.web.LazyTracingFilter.doFilter(TraceWebServletAutoConfiguration.java:145)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:114)
	at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:104)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at com.primeton.appserver.container.core.StandardWrapperValve.invoke(StandardWrapperValve.java:186)
	at com.primeton.appserver.container.core.StandardContextValve.invoke(StandardContextValve.java:80)
	at com.primeton.appserver.container.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474)
	at com.primeton.appserver.container.core.StandardHostValve.invoke(StandardHostValve.java:122)
	at com.primeton.appserver.container.valves.ErrorReportValve.invoke(ErrorReportValve.java:72)
	at com.primeton.appserver.container.core.StandardEngineValve.invoke(StandardEngineValve.java:58)
	at com.primeton.appserver.container.connector.CoyoteAdapter.service(CoyoteAdapter.java:326)
	at com.primeton.appserver.coyote.http11.Http11Processor.service(Http11Processor.java:393)
	at com.primeton.appserver.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:51)
	at com.primeton.appserver.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:838)
	at com.primeton.appserver.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1570)
	at com.primeton.appserver.util.net.SocketProcessorBase.run(SocketProcessorBase.java:34)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at com.primeton.appserver.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:46)
	at java.lang.Thread.run(Thread.java:748)
Caused by: com.primeton.workflow.model.variable.exception.WFVariableSerializerException: ErrCode: 21000000
Message: NULL
	at com.primeton.workflow.model.variable.WFPojoVariableType.serialize(WFPojoVariableType.java:165)
	at com.primeton.workflow.model.variable.WFPojoVariableType.deepCopy(WFPojoVariableType.java:188)
	at com.primeton.workflow.engine.scheduler.engproc.RelativeDataManagerImpl.setRelativeData(RelativeDataManagerImpl.java:243)
	... 91 common frames omitted
Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: Property 'explicitNull' has no getter method in class 'class org.codehaus.jettison.json.JSONObject$Null'
	at com.primeton.data.serialize.impl.JavaBeanSerializationHandler.doInMarshal(JavaBeanSerializationHandler.java:105)
	at com.primeton.ext.data.serialize.AbstractSerializationHandler.marshal(AbstractSerializationHandler.java:77)
	at com.primeton.ext.data.serialize.marshal.Marshaller.marshal(Marshaller.java:65)
	at com.primeton.ext.data.serialize.marshal.Marshaller.marshal(Marshaller.java:69)
	at com.primeton.ext.data.serialize.marshal.Marshaller.marshal(Marshaller.java:69)
	at com.primeton.ext.data.serialize.marshal.Marshaller.marshal(Marshaller.java:51)
	at com.eos.data.serialize.XMLSerializer.marshallToString(XMLSerializer.java:199)
	at com.eos.data.serialize.XMLSerializer.marshallToString(XMLSerializer.java:182)
	at com.primeton.workflow.model.variable.WFPojoVariableType.serialize(WFPojoVariableType.java:163)
	... 93 common frames omitted
Caused by: java.lang.NoSuchMethodException: Property 'explicitNull' has no getter method in class 'class org.codehaus.jettison.json.JSONObject$Null'
	at org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1275)
	at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:809)
	at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:885)
	at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:464)
	at com.primeton.data.serialize.impl.JavaBeanSerializationHandler.doInMarshal(JavaBeanSerializationHandler.java:90)
	... 101 common frames omitted

2022-12-29 09:49:49.485 ERROR [DZ_SYS,BPS-SERVER,default,dzsditest:BPS-SERVER:48084,a751370b10eb66c6,79b9aecce639891b,a751370b10eb66c6,] 22954 --- [http-nio-48084-exec-4] c.p.w.s.api2.WFApiMethodHandler          : UserInfo: 1:租户管理员, RemoteIP: 172.16.4.75, DataSourceInfo: [init=10, min=10, max=50, idle=10, busy=0, unclosedOrphaned=0], Thread: Thread[http-nio-48084-exec-4,5,main], CPU: 0%, SystemMemory: 95% [total:15884MB, free:662MB, used:15221MB], JvmMemory: 38% [max:3531MB, total:363MB, free:223MB, used:139MB]
Handle wf api method [path: '/opr/relative-data/set-relative-data', method: 'public abstract void com.primeton.workflow.api2.IWFRelativeDataApi.setRelativeData(long,java.lang.String,java.lang.Object) throws com.primeton.workflow.api2.exception.WFApiException'] has error: com.primeton.workflow.api2.exception.WFApiException(ErrCode: 21010004
Message: Execute operation error , method name [setRelativeData])

com.primeton.workflow.api2.exception.WFApiException: ErrCode: 21010004
Message: Execute operation error , method name [setRelativeData]
	at com.primeton.workflow.api2.util.WFOldClientUtils.wrapException(WFOldClientUtils.java:59)
	at com.primeton.workflow.api2.WFRelativeDataApiLocalJvmImpl.setRelativeData(WFRelativeDataApiLocalJvmImpl.java:87)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.primeton.workflow.api2.registry.WFApiMethodRegistry$WFApiMethod.invoke(WFApiMethodRegistry.java:226)
	at com.primeton.workflow.springboot.api2.WFApiMethodHandler.doHandle(WFApiMethodHandler.java:160)
	at com.primeton.workflow.springboot.api2.WFApiMethodHandler.handle(WFApiMethodHandler.java:151)
	at com.primeton.workflow.springboot.api2.WFApiMethodHandler.doFilterInternal(WFApiMethodHandler.java:88)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at com.primeton.eos.springboot.autoconfig.EOS8SpringBootConfiguration$2.doFilter(EOS8SpringBootConfiguration.java:230)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at com.primeton.eos.dap.sdk.accesscontrol.SDKAccessControlFilter.doFilterInternal(SDKAccessControlFilter.java:132)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at com.primeton.eos.dap.sdk.actuate.filter.SDKActuatorAuthFilter.doFilterInternal(SDKActuatorAuthFilter.java:39)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at com.primeton.eos.springboot.autoconfig.EOS8SpringBootManagementConfiguration$EOS8EndpointCrossOriginFilter.doFilterInternal(EOS8SpringBootManagementConfiguration.java:66)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at com.primeton.eos.dap.sdk.actuate.filter.SDKActuatorMaskFilter.doFilterInternal(SDKActuatorMaskFilter.java:42)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at com.primeton.eos.dap.sdk.logging.filter.SDKLoggingFilter.doFilterInternal(SDKLoggingFilter.java:108)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:50)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at brave.servlet.TracingFilter.doFilter(TracingFilter.java:82)
	at org.springframework.cloud.sleuth.instrument.web.LazyTracingFilter.doFilter(TraceWebServletAutoConfiguration.java:145)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:114)
	at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:104)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
	at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
	at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
	at com.primeton.appserver.container.core.StandardWrapperValve.invoke(StandardWrapperValve.java:186)
	at com.primeton.appserver.container.core.StandardContextValve.invoke(StandardContextValve.java:80)
	at com.primeton.appserver.container.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474)
	at com.primeton.appserver.container.core.StandardHostValve.invoke(StandardHostValve.java:122)
	at com.primeton.appserver.container.valves.ErrorReportValve.invoke(ErrorReportValve.java:72)
	at com.primeton.appserver.container.core.StandardEngineValve.invoke(StandardEngineValve.java:58)
	at com.primeton.appserver.container.connector.CoyoteAdapter.service(CoyoteAdapter.java:326)
	at com.primeton.appserver.coyote.http11.Http11Processor.service(Http11Processor.java:393)
	at com.primeton.appserver.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:51)
	at com.primeton.appserver.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:838)
	at com.primeton.appserver.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1570)
	at com.primeton.appserver.util.net.SocketProcessorBase.run(SocketProcessorBase.java:34)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at com.primeton.appserver.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:46)
	at java.lang.Thread.run(Thread.java:748)
Caused by: com.primeton.workflow.api.WFServiceException: ErrCode: 21010004
Message: Execute operation error , method name [setRelativeData]
	at com.eos.workflow.api.impl.WFRelativeDataManager.setRelativeData(WFRelativeDataManager.java:224)
	at com.primeton.workflow.api2.WFRelativeDataApiLocalJvmImpl.setRelativeData(WFRelativeDataApiLocalJvmImpl.java:85)
	... 78 common frames omitted
Caused by: java.lang.reflect.UndeclaredThrowableException: null
	at com.sun.proxy.$Proxy160.setRelativeData(Unknown Source)
	at com.eos.workflow.api.impl.WFRelativeDataManager.setRelativeData(WFRelativeDataManager.java:221)
	... 79 common frames omitted
Caused by: com.primeton.workflow.api.WFServiceException: ErrCode: 21000000
Message: (ErrCode: 21000000
Message: NULL)
	at com.primeton.workflow.api.proxy.EngineTxAction.doOperator(EngineTxAction.java:438)
	at com.primeton.workflow.api.proxy.EngineTxAction.execute(EngineTxAction.java:399)
	at com.primeton.workflow.engine.scheduler.enginelog.EngineLogExecutor.executeAction(EngineLogExecutor.java:162)
	at com.primeton.workflow.api.proxy.EngineInvocationHandlerImpl.invoke(EngineInvocationHandlerImpl.java:156)
	at com.primeton.workflow.api.proxy.EngineInterceptor.invoke(EngineInterceptor.java:266)
	... 81 common frames omitted
Caused by: com.primeton.workflow.model.variable.exception.WFVariableSerializerException: ErrCode: 21000000
Message: NULL
	at com.primeton.workflow.model.variable.WFPojoVariableType.serialize(WFPojoVariableType.java:165)
	at com.primeton.workflow.model.variable.WFPojoVariableType.deepCopy(WFPojoVariableType.java:188)
	at com.primeton.workflow.engine.scheduler.engproc.RelativeDataManagerImpl.setRelativeData(RelativeDataManagerImpl.java:243)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.primeton.workflow.api.proxy.EngineTxAction.operatorImplement(EngineTxAction.java:561)
	at com.primeton.workflow.api.proxy.EngineTxAction.doOperator(EngineTxAction.java:412)
	... 85 common frames omitted
Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: Property 'explicitNull' has no getter method in class 'class org.codehaus.jettison.json.JSONObject$Null'
	at com.primeton.data.serialize.impl.JavaBeanSerializationHandler.doInMarshal(JavaBeanSerializationHandler.java:105)
	at com.primeton.ext.data.serialize.AbstractSerializationHandler.marshal(AbstractSerializationHandler.java:77)
	at com.primeton.ext.data.serialize.marshal.Marshaller.marshal(Marshaller.java:65)
	at com.primeton.ext.data.serialize.marshal.Marshaller.marshal(Marshaller.java:69)
	at com.primeton.ext.data.serialize.marshal.Marshaller.marshal(Marshaller.java:69)
	at com.primeton.ext.data.serialize.marshal.Marshaller.marshal(Marshaller.java:51)
	at com.eos.data.serialize.XMLSerializer.marshallToString(XMLSerializer.java:199)
	at com.eos.data.serialize.XMLSerializer.marshallToString(XMLSerializer.java:182)
	at com.primeton.workflow.model.variable.WFPojoVariableType.serialize(WFPojoVariableType.java:163)
	... 93 common frames omitted
Caused by: java.lang.NoSuchMethodException: Property 'explicitNull' has no getter method in class 'class org.codehaus.jettison.json.JSONObject$Null'
	at org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1275)
	at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:809)
	at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:885)
	at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:464)
	at com.primeton.data.serialize.impl.JavaBeanSerializationHandler.doInMarshal(JavaBeanSerializationHandler.java:90)
	... 101 common frames omitted

你可能感兴趣的:(bug笔记,java,JSON,json,java,spring)