<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

    主站蜘蛛池模板: 精品免费国产一区二区三区| 久久久久久精品免费看SSS| 免费无码又爽又刺激毛片| 亚洲福利视频一区二区三区| 男人的天堂网免费网站| 亚洲av日韩综合一区在线观看| 97人妻精品全国免费视频| 亚洲综合色自拍一区| 国色精品va在线观看免费视频 | 丁香花免费高清视频完整版| 亚洲精品视频在线播放| 在线观看www日本免费网站| 亚洲系列国产精品制服丝袜第| 亚洲一级毛片免费观看| 亚洲成人福利在线观看| 最新中文字幕免费视频| 性色av极品无码专区亚洲| 无码国产亚洲日韩国精品视频一区二区三区 | 国产高清免费视频| 亚洲综合一区二区精品久久| 黄色网址免费大全| 亚洲精品av无码喷奶水糖心| 成年美女黄网站18禁免费| 亚洲久热无码av中文字幕| 在线a亚洲v天堂网2018| 美女视频黄a视频全免费网站色| 国产偷窥女洗浴在线观看亚洲| 99re8这里有精品热视频免费| 久久青青草原亚洲AV无码麻豆| 99精品免费观看| 伊人久久亚洲综合影院首页| www.亚洲色图| 免费一区二区三区| 亚洲中文无码卡通动漫野外| 亚洲国产精品自产在线播放| 免费无码又爽又刺激一高潮| 亚洲伊人久久大香线蕉AV| 中文字幕一精品亚洲无线一区| 国产成人yy免费视频| 日韩在线观看视频免费| 久久精品国产亚洲AV麻豆网站 |