java.lang.NoSuchMethodException: $Proxy

今天遇到這麼一個異常,原來是對action進行了代理,這個是在spring的設定檔中的。所以,修改掉就正常了。 如何修改呢?1. 加入代理的話,那麼action 中就要有如下方法。   <property name="transactionAttributes">            <props>                <prop key="find*">PROPAGATION_REQUIRED,readOnly</prop>     

java入門培訓網的推薦書籍

一、入門 《Java 2從入門到精通》- 推薦 《Thinking in Java》- 強烈推薦* O’reilly的Java編程基礎系列 - 參考* 二、進階 《Java Cook Book》- 非常推薦* (包含了Java編程的Tips,適合當做手冊來查閱) 《O’reilly-Java IO》- 推薦* (包含Java IO編程的各個方面) 《O’reilly-Database Programming with JDBC》- 推薦* (JDBC編程) 《O’reilly-Java

125條常見的java面試筆試題大匯總[轉載]

1.抽象:  抽象就是忽略一個主題中與當前目標無關的那些方面,以便更充分地注意與當前目標有關的方面。抽象並不打算瞭解全部問題,而只是選擇其中的一部分,暫時不用部分細節。抽象包括兩個方面,一是過程抽象,二是資料抽象。

SOAPUI Exception:ERROR:java.net.ConnectException: Connection timed out: connect Solution

Issue:When you test a free Web Service using SoapUI, you might be always got following exception. Wed Mar 24 14:09:07 CST 2010:ERROR:java.net.ConnectException: Connection timed out: connectReason:Please make sure your network setting is correct,

Java Exception: java.io.InvalidClassException solution

Issue:When you deploy your EJB application to Weblogic Server and running client to test, you may got following exception. Please note red fonts.d:/Oracle/Middleware/jdk160_11/bin/javaw.exe -client -classpath

Java 文法: abstract interface和interface的區別

 interface 本身就是abstract的,只不過沒有明確的規定出來,說一定要把abstract這個關鍵字寫上。 所以abstract interface 就是interface,兩者根本沒有區別。 在《java in a nutshell》裡, “All methods of an interface are implicitly abstract, even if the abstract modifier is omitted. ” 在《thinking in java》裡, “

Siebel Java Data Bean: Query muti-record

Following code is used for retrive all the record of Business Component from DataBase.package com.muti.records ;import com.siebel.data.*;import com.siebel.data.SiebelException;public class DataBeanDemo { private SiebelDataBean m_dataBean = null;

Java: Keywords Combination Summary

Hi guys,Following is a summary about the combination of Java keywords. Hope it will be useful for all Java guys.For any question, please contact yexianyi@hotmail.comThanks,Xianyi.YeJava Keywords Combination

JVM如何理解Java泛型類

  JVM如何理解Java泛型類view plaincopy to clipboardprint?//泛型代碼     public class Pair<T>   {       private T first = null;       private T second = null;       public Pair(T fir, T sec) {           this.first = fir;           this.second = sec;       }

用Java產生全域序列UUID

用Java產生全域序列UUIDUUID(Universally Unique Identifier)通用唯一識別碼,是指在一台機器上產生的數字,它保證對在同一時空中的所有機器都是唯一的。按照開放軟體基金會(OSF)制定的標準計算,用到了乙太網路卡地址、納秒級時間、晶片ID碼和許多可能的數字。由以下幾部分的組合:當前日期和時間(UUID的第一個部分與時間有關,如果你在產生一個UUID之後,過幾秒又產生一個UUID,則第一個部分不同,其餘相同),時鐘序列,全域唯一的IEEE機器識別號(如果有網卡,從

How to: How to disable Java Security Warning “The application requires an earlier version of J

How to disable Java Security Warning "The application requires an earlier version of Java."1) Close all browsers2) Open the Java Control panel (Start->Control Panel->Java).3) Open the Advanced tab.4) Expand the Java Plug-in tree option.5)

Java中的參數傳遞方式到底是引用傳遞還是值傳遞?

Java中的參數傳遞方式到底是引用傳遞還是值傳遞? 事實上,Java中方法參數傳遞的是原來對象引用的copy(副本)。如果你在方法中改變這個copy中的內容,因為這個copy也是指向原對象,所以改變會生效。給你帶來好像Java中存在地址傳遞一樣。而實際上當你對這個對象的引用進行操作,例如object = new SomeObject();這樣的操作是無效的,因為你改變的是這個copy(副本),原來的引用還是指向原來的對象,並沒有發生變化。下面舉個例子來進一步說明吧。 package

Java Compile Error: The code of method is exceeding the 65535 bytes limit

Issue:When you compile your java class, you may got following error. The code of method is exceeding the 65535 bytes limit Reason:According Java specification, one Java method size must be less than 65535 Bytes (64k). In most cases you encounter

Java Exception: java.lang.NoSuchFieldError

Issue:When you access static constant in your program, especially in Web app, you may found that some of static field cannot be access. You will get java.lang.NoSuchFieldError exception. Reason:This exception is usually happened when you build your

Identify Java code consuming high CPU in Linux

Identify Java code consuming high CPU in Linux (linking JVM thread and Linux PID)February 9, 2011 | By rameshj@zohocorp.com | In Applications ManagerWe can easily identify a problematic java code which leads to high CPU utilization in Linux. Let me

Java Dynamic Proxy: How to know what exception cause java.lang.reflect.InvocationTargetException?

Issue:When we use Java Dynamic Proxy, method.invoke() is a necessary step to call the real method we want. But once this method triggers an exception during execution, the final exception printed out is always

Java學習的30個目標

1.你需要精通物件導向分析與設計(OOA/OOD)、涉及模式(GOF,J2EEDP)以及綜合模式。你應該十分瞭解UML,尤其是class,object,interaction以及statediagrams。 2.你需要學習JAVA語言的基礎知識以及它的核心類庫(collections,serialization,streams, networking, multithreading,reflection,event,handling,NIO,localization,以及其他)。

java程式打包

網路上許多文章介紹程式打包的方法看了許久沒有感覺到真正的意義於是自己動手打了一會單獨一個class檔案比較容易只要在MANIFEST.MF檔案中編輯:Manifest-Version: 1.0Ant-Version: Apache Ant 1.6.5Created-By: 1.6.0-b105 (Sun Microsystems Inc.)Main-Class:

J2EE項目危機【翻譯】 -避免這10項J2EE危機來確保你的企業JAVA項目成功

 在我作為開發人員、進階開發人員、架構師的經曆中,我遇到過好的、差的甚至是醜陋的企業級JAVA項目。當我問自己,是什麼使一個項目成功而使另外的失敗,我發現很難得到一個完美的答案,就好像很難用成功來定義所有的軟體項目。J2EE項目也不例外。因此,項目被分為不同層級的成功或失敗。在這篇文章裡,我主要想為您——讀者朋友——揭示影響企業級JAVA項目的最大的10項危險。一些危險只是簡單的延遲項目進度,一些卻是錯誤的徵兆,而還有一些使項目徹底沒有成功的希望。儘管如此,如果具有良好的準備,征程開始前相關的知

JAVA解析嵌套的JSON字串.

這裡的JSON串,是以飯否的Public Time Line上面的JSON格式的字串為例子的.http://api.fanfou.com/statuses/public_timeline.json飯否現在還是使用HTTP Basic驗證. 如果你不清楚,通過飯否的api登入並擷取資料的方法, 可以參見本人的http://blog.csdn.net/w59879213/archive/2011/01/14/6140523.aspx這篇文章,以飯否的API為例子, 講述了如何進行HTTP

總頁數: 4058 1 .... 534 535 536 537 538 .... 4058 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.