1. 程式人生 > >錯誤:java.lang.IllegalArgumentException: attempt to create create event with null entity

錯誤:java.lang.IllegalArgumentException: attempt to create create event with null entity

java.lang.IllegalArgumentException: attempt to create create event with null entity
	org.hibernate.event.spi.PersistEvent.<init>(PersistEvent.java:44)
	org.hibernate.event.spi.PersistEvent.<init>(PersistEvent.java:37)
	org.hibernate.internal.SessionImpl.persist(SessionImpl.java:826)
	org.hibernate.internal.SessionImpl.persist(SessionImpl.java:830)
	org.springframework.orm.hibernate4.HibernateTemplate$20.doInHibernate(HibernateTemplate.java:737)
	org.springframework.orm.hibernate4.HibernateTemplate.doExecute(HibernateTemplate.java:340)
	org.springframework.orm.hibernate4.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:308)
	org.springframework.orm.hibernate4.HibernateTemplate.persist(HibernateTemplate.java:733)
	com.sise.dao.impl.CustomerDaoImpl.addCustomer(CustomerDaoImpl.java:32)
	com.sise.service.impl.CustomerServiceImpl.addCustomer(CustomerServiceImpl.java:30)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
	org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98)
	org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:262)
	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
	$Proxy10.addCustomer(Unknown Source)
	com.sise.action.CustomerAction.add(CustomerAction.java:67)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)
	com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)
	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252)
	org.apache.struts2.interceptor.DeprecationInterceptor.intercept(DeprecationInterceptor.java:41)
	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
	org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
	com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)
	com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
	com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
	org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
	com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
	com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
	com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
	com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
	com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
	com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
	com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
	org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
	org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
	org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)
	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
	com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
	com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
	com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
	com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
	com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
	com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:139)
	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
	org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
	com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
	com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
	org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
	org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:562)
	org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
	org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.

2.問題分析

attempt to create create event with null entity的大概意思是建立空值,即某個地方的傳參出現錯誤。

3.方法

相關推薦

錯誤java.lang.IllegalArgumentException: attempt to create create event with null entity

java.lang.IllegalArgumentException: attempt to create create event with null entity org.hibernate.event.spi.PersistEvent.<init>(PersistEvent.java:4

java.lang.IllegalArgumentException: attempt to create saveOrUpdate event with null entity異常的易被忽略的原因

最近在開發Spring+Hibernate+Struts整合開發的時候遇到幾次這個異常,故記之。 除了網上說的: jsp頁面中各個控制元件的name屬性與Action中模型驅動物件的名字不一致原因之外,還有一個不起眼的原因,不過不注意也可能發生。 我就發生了兩次。就是在Ac

用idea+maven編譯打包spark project core錯誤java.lang.RuntimeException: Unable to load a Suite class

ide exception 5-0 sco anon time arp create run Discovery starting. *** RUN ABORTED *** java.lang.RuntimeException: Unable to load a Su

HTTP錯誤java.lang.IllegalArgumentException: Illegal character in scheme at index 0: ?http://xxxxxx

getname 技術分享 isp open closed ring 修改 bsp color 讀取T卡文件裏的域名,HTTP請求出現如下錯誤 java.lang.IllegalArgumentException: Illegal character in scheme a

記錄錯誤java.lang.RuntimeException: Unable to start activity ComponentInfo

android  activity打不開,具體錯誤如下: 01-02 00:02:25.495 E/AndroidRuntime(  984): FATAL EXCEPTION: main01-02 00:02:25.495 E/AndroidRuntime(  98

spring boot 配置https 報這個錯誤java.lang.IllegalArgumentException: Private key must be accompanied by certificate chain

  找了接近半天的時間,原來是那麼小的問題    server.ssl.key-store=test.jksserver.ssl.key-store-password=123456server.ssl.key-store-type=PKCS12server.ssl.key-a

Android異常java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.len

Android studio 異常:java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object refere

另人抓狂的錯誤java.lang.IllegalArgumentException: No property find found for type class

使用Spring data jpa時,建立自己的interface,並實現它,分別命名為: interface:ModuleDaoCustom implement:ModuleDaoCustomImpl 然後建立ModuleDao extends PagingAndSort

Android NDK 執行錯誤java.lang.UnsatisfiedLinkError: Couldn't load XXX indLibrary returned null

load hello-jni from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.hellojni-1.apk"],nativeLibraryDirectories=[/data/app-

attempt to create delete event with null entity

system nag -c 16px ren host java lang eat SSH框架刪除單條數據不會報錯,一條以上數據回報: java.lang.IllegalArgumentException: attempt to create delete event wi

attempt to create saveOrUpdate event with null entity 問題解決

at org.hibernate.event.SaveOrUpdateEvent.<init>(SaveOrUpdateEvent.java:63)at org.hibernate.event.SaveOrUpdateEvent.<init>(SaveOrUpdateEvent.jav

IDEA 啟動報錯java.lang.IllegalStateException: failed to create a child event loop 問題解決

遇到的問題 昨天電腦自動更新了,今天死活啟動不了專案,看到idea的提示是: idea日誌如下 根據提示說 檢視idea的啟動日誌: 2018-11-20 17:35:42,010 [ 46737] INFO - plication.impl.Applicat

JVM 系列二java.lang.OutOfMemoryError: unable to create new native thread

問題描述 Java程式執行過程中丟擲java.lang.OutOfMemoryError: unable to create new native thread,如下所示: java.lang.OutOfMemoryError: unable to create new

Android Studio中的控制元件初始化疑問build沒問題,但執行模擬器時出現問題。錯誤程式碼java.lang.RuntimeException: Unable to instant

在使用Android Studio,啟動模擬器時,出現如下錯誤:Logcat中的資訊如下:java.lang.RuntimeException:Unable to instantiate activityComponentInfo{com.example.dcyyw.appl

異常java.lang.IllegalArgumentException: Control character in cookie value or attribute.

在服務器 jquery roc pro class leg val style mon 後臺提示: 嚴重: Error processing requestjava.lang.IllegalArgumentException: Control character in co

openfire 部署後報錯 java.lang.IllegalArgumentException: interface xx is not visible from class loader

exceptio color 本地 java creat 根據 ret 打印 exception 該異常是創建代理時加載接口的類加載器與創建時傳入的不一致。 在本地eclipse做openfire二次開發,本地運行沒錯,部署到服務器上後報異常:      java.lang

記錄一個mybatis編寫xml遇到的錯誤java.lang.unsupportedOperationException

查找 ava mybatis dset ring 執行 ont 編寫 res 寫完xml裏的sql在執行xml中的sql時報錯,經過排查找到問題出在方法中的resultType這個屬性的類型上 如圖所示:只需要將sortedSet改為set集合裏所存儲的對象的類型即可。

用eclipse部署tomcat時出現異常java.lang.IllegalArgumentException

prope valid 路徑 存在 exist ali eclips tom tex 用eclipse部署tomcat時出現異常:java.lang.IllegalArgumentException: Invalid ‘log4jConfigLocation‘ parame

Android Studio遇到的錯誤java.lang.NullPointerException及解決方法

使用Android Studio,執行Textview.settext時遇到的誤:java.lang.NullPointerException,空指標異常,如下: Caused by: java.lang.NullPointerException

java.lang.IllegalArgumentException: Failed to find configured root that contains .....

參考文章:FileProvider 的使用 今天寫到相機拍照,報出如下異常: java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/Androi