JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Object Relational Mapping » Hibernate  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
作者 緊急-[hibernate遇上RMI問題]
吉峰蒸餃





發文: 2
積分: 0
於 2016-07-20 10:34 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
各位高手大大好 不好意思想請問一下
環境:j我有兩個專案 分別為web 和 ap ,
我有三個table 分別為A B C,關聯是1(A)對多(B)然後 1(B)對多(C)

AP專案:B的hbm.xml C的hbm.xml 設定好 many to one 之後 WEB專案的 JSP 可串起三起表RUN

那現在在 B的hbm.xml 再加上one to many 時 再AP專案 B的DAO 跑main 資料可以show出來 ,
也在B的VO(bean)設定 如下
1
2
3
4
5
6
7
8
9
10
   private Set<RssRecv> RssRecv = new HashSet<RssRecv>();
 
  public Set getRssRecv() {
        return this.RssRecv;
    }
 
    public void setRssRecv(Set RssRecv) {
        this.RssRecv = RssRecv;
    }
 


可是在 AP專案的jsp 卻出下面錯誤訊息 我找好久問題一直無法show出來 請問各位大大是什麼問題嗎?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
20-Jul-2016 17:49:05.006 SEVERE [http-nio-8087-exec-65] com.opensymphony.xwork2.util.logging.commons.CommonsLogger.error Exception occurred during processing request: Could not access remote service [rmi://localhost:1099/adminRssSourceRMI]; nested exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is: 
  java.lang.ClassNotFoundException: org.hibernate.collection.internal.PersistentSet (no security manager: RMI class loader disabled)
 org.springframework.remoting.RemoteAccessException: Could not access remote service [rmi://localhost:1099/adminRssSourceRMI]; nested exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is: 
  java.lang.ClassNotFoundException: org.hibernate.collection.internal.PersistentSet (no security manager: RMI class loader disabled)
at org.springframework.remoting.rmi.RmiClientInterceptorUtils.convertRmiAccessException(RmiClientInterceptorUtils.java:153)
  at org.springframework.remoting.rmi.RmiClientInterceptor.doInvoke(RmiClientInterceptor.java:348)
  at org.springframework.remoting.rmi.RmiClientInterceptor.invoke(RmiClientInterceptor.java:260)
  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  at com.sun.proxy.$Proxy277.queryList(Unknown Source)
  at gov.moea.investTaiwan.action.AdminRssSourceAction.toMtnList(AdminRssSourceAction.java:83)
  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:483)
  at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:871)
  at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1294)
  at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
  at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:117)
  at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:108)
  at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1370)


吉峰蒸餃 edited on 2016-07-20 12:46
reply to postreply to post
» JWorld@TW »  Object Relational Mapping » Hibernate

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8