<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Chan Chen Coding...

    Java Exception FAQ Collection (On Going)

    1. NoClassDefFoundErr
    TOMCAT REQ: /verify.gsp?novisitor=true&noses=true Sun Mar 11 20:20:23 PDT 2012 <RequestID: sdc-avo1-e9_2107008000_83300096>
    - Servlet.service() for servlet jsp threw exception
    java.lang.NoClassDefFoundError: Could not initialize 
    class com.wm.weblib.marketplace.catalog.data.ItemDataCache
            at com.wm.weblib.gs.GracefulShutdownFilter.doFilter(GracefulShutdownFilter.java:
    94)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
    215)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
    188)
            at org.apache.tomcat.filters.WMTimerFilter.doFilter(WMTimerFilter.java:
    224)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
    215)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
    188)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
    213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
    172)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
    127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
    117)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
    108)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
    174)
            at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:
    200)
            at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:
    291)
            at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:
    775)
            at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
    704)
            at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:
    897)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:
    689)
            at java.lang.Thread.run(Thread.java:
    619)

    Solution:

    NoClassDefFound error is a nebulous error and is often hiding a more serious issue. It is not the same as ClassNotFoundException (which is thrown when the class is just plain not there).

    NoClassDefFound may indicate the class is not there, as the javadocs indicate, but it is typically thrown when, after the classloader has loaded the bytes for the class and calls "defineClass" on them.

    The first place to look when you get a NoClassDefFoundError is in the static bits of your class i.e. any initilisation that takes place during the defining of the class. If this fails it will throw a NoClassDefFoundError - it's supposed to throw an ExceptionInInitializer error and indicate the details of the problem but in my experience, these are rare. It will only do the ExceptionInInitializer error the first time it tries to define the class, after that it will just throw NoClassDefFound.

    I would thus suggest looking at the code in that HibernateTransactionInterceptor line and seeing what it is requiring. It seems that it is unable to define the class SpringFactory. So maybe check the initilisation code in that class, that might help. If you can debug it, stop it at the last line above (17) and debug into so you can try find the exact line that is causing the exception. Also check higher up in the log, if you very lucky there might be an ExceptionInInitialiser error.


    After investigated CatalogCache source code we find this issue caused by generated NameSpace ITEM_PRICING unsuccessfully.
    Source code: ITEM_PRICING 
    = Namespace.getNamespace(CacheUtil.itemPricingName); 
    Line number: 
    50.
    We had adding 
    try catch block to tracking this issue find the root cause.
    Tracking code:
    try{
                    
    if(null==ITEM_PRICING){
                                    _logger.info(
    "ITEM_PRICING equals null!");
                    }
                    dynamicItemPricing 
    = new SpilloverStrandCache(ITEM_PRICING, ITEM_PRICING.getName(), cacheDir, INV_EXTRA_LARGE_CACHE, new MemoryBasedSpilloverEnforcer(0.755010 * 1000));
            }
    catch(Exception e){
                    _logger.info(
    "================================="+e.toString());
            }
    Please see error msg:
    [com.wm.weblib.catalog.CatalogCache
    /<init><MsgText: ITEM_PRICING equals null!> <ThreadID: 50> <SessionID: 000000007d0042683fd3bdd2090c44563fe663864aec98e8> <RequestID: lweng-linux_8443864064_23844608>
    [WEB.AVOCADO.INFO.
    30000][Mon 2012/03/12 03:39:15:413 EDT][com.wm.weblib.catalog.CatalogCache/<init><MsgText: =================================java.lang.NullPointerException> <ThreadID: 50> <SessionID: 000000007d0042683fd3bdd2090c44563fe663864aec98e8> <RequestID: lweng-linux_8443864064_23844608>

     



    -----------------------------------------------------
    Silence, the way to avoid many problems;
    Smile, the way to solve many problems;

    posted on 2012-03-13 09:36 Chan Chen 閱讀(180) 評論(0)  編輯  收藏 所屬分類: Scala / Java

    主站蜘蛛池模板: 99久9在线|免费| 国产成人 亚洲欧洲| 91在线视频免费观看| 免费观看一级毛片| 亚洲色偷偷综合亚洲AV伊人蜜桃 | 亚洲美女激情视频| 99re在线视频免费观看| 亚洲色图视频在线观看| 1a级毛片免费观看| 亚洲另类古典武侠| 97无码免费人妻超级碰碰夜夜| 亚洲首页国产精品丝袜| 香蕉高清免费永久在线视频| 美女视频免费看一区二区| 亚洲精品456播放| 国产精品永久免费| 亚洲AV综合色区无码一区| 8x8×在线永久免费视频| 中文字幕无码亚洲欧洲日韩| 国产女高清在线看免费观看 | 色欲aⅴ亚洲情无码AV| 亚洲色图综合在线| 国产精品免费一区二区三区四区| 亚洲av福利无码无一区二区| 免费看男女下面日出水来| 国产偷国产偷亚洲清高APP| 精品国产亚洲一区二区在线观看| 成全视频高清免费观看电视剧| 久久av无码专区亚洲av桃花岛| 国产日本一线在线观看免费| 亚洲精品无码久久| 中文字幕日韩亚洲| 114一级毛片免费| 免费福利资源站在线视频| 噜噜噜亚洲色成人网站∨| 精品国产免费一区二区| 国产无遮挡又黄又爽免费网站| 亚洲国产成人资源在线软件 | 久久久久久久综合日本亚洲| 国产妇乱子伦视频免费| 成人免费网站视频www|