<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

    主站蜘蛛池模板: 日韩免费高清播放器| 日韩版码免费福利视频| 久久精品国产亚洲AV麻豆网站| 国产精彩免费视频| 美女被免费网站在线视频免费 | 亚洲精品无码成人AAA片| 免费一级毛片无毒不卡| 亚洲一区二区三区在线观看网站| 亚洲国产一区二区视频网站| 四虎影视在线影院在线观看免费视频| 亚洲av色香蕉一区二区三区| 中文字幕日韩亚洲| 一二三四免费观看在线视频中文版| 日韩毛片一区视频免费| 亚洲人成7777影视在线观看| 亚洲综合最新无码专区| 在线观看H网址免费入口| 国产精品永久免费视频| 狠狠色香婷婷久久亚洲精品| 亚洲精品卡2卡3卡4卡5卡区| 成人一a毛片免费视频| 国产精品网站在线观看免费传媒| 国产亚洲Av综合人人澡精品| 亚洲精品国产第1页| 最新国产AV无码专区亚洲| 成人免费午夜在线观看| 国产一精品一AV一免费| 免费视频成人国产精品网站 | 免费视频成人手机在线观看网址| 亚洲av无码专区首页| 亚洲欧洲免费视频| 国产亚洲情侣一区二区无码AV| 破了亲妺妺的处免费视频国产 | 国产无遮挡无码视频免费软件| 在线亚洲精品视频| 久久国产亚洲精品| 亚洲免费视频网址| 久久久久久亚洲AV无码专区| 亚洲精品国偷自产在线| 亚洲中文字幕日产乱码高清app| 亚洲国产V高清在线观看|