安卓 cocos2dx 启动失败

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/lvye1221/article/details/54095473

现象

android 下在没网(无wifi,无移动网络)的情况下,启动app时,提示“很抱歉,‘XXXX’已停止运行”!

通过 eclipse 的调试,打印出信息如下:

01-03 21:40:32.095: D/VivoDaemon_SmartMultiWindowService(1769): onChange isFullScreen =1isAllowActiveSpilt = falseSmartMultWindowUtils.isSplitMode(mContext) = false
01-03 21:40:32.295: A/libc(24583): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x14 in tid 24616 (GLThread 903)

Fatal signal 11 (SIGSEGV), 说明 Native 中的代码出错了

探索与方向

原因分析

既然是有网络不出现错误,无网络时出现错误,那么和网络有关系。

既然整个程序运行有问题,那么总之是其中某一段代码引起的,那么缩小范围来定位问题。

注释网络接口

注释相关网络接口,还是跑不起来,不行!

cocos 初始化?

打log?

有同事说,“把这段初始化代码注释掉肯定可以了,然后你再一行行输出log,定位到是哪一行的问题!”

(有时候,真是说得容易,做得难呀!)当注释后,并没有想象中的解决问题


01-05 11:05:25.097: D/cocos2d-x debug info(13308): jack 0 HNLogoSceneManger::init
01-05 11:05:25.427: D/cocos2d-x debug info(13308): jack 1
01-05 11:05:25.427: D/cocos2d-x debug info(13308): jack 2
01-05 11:05:25.427: D/cocos2d-x debug info(13308): jack 2-0
01-05 11:05:25.427: D/cocos2d-x debug info(13308): jack 2-1
01-05 11:05:25.427: D/cocos2d-x debug info(13308): jack SocketHandle - 1
01-05 11:05:25.427: D/cocos2d-x debug info(13308): jack ISocketEngine::create - 1

可依然通过这中打log的蛮力的调试方式,一遍遍地缩小问题范围,“皇天不负有心人”找到是这句代码引起的:

new CSocketEngine();

创建对象失败? 甚至没有进入 CSocketEngine 这个对象中的构造函数中 (到这里,作者又陷入了深深的纠结中…)

eclipse 实时调试c++代码?

既然创建对象失败,那能不能通过 eclipse 来调试 c++ 代码呢?在线调试来获取到崩溃的位置

网上可以找到很多 eclipse 调试 c++ 代码的文章,例如:

使用eclipse调试cocos2d-x C++ 代码(编写+真机调试,放弃VS)
http://blog.csdn.net/tt5267621/article/details/8940768

按照步骤搭建,出现如下错误:

不能找到应用程序ABI

问题描述:

[2017-01-04 11:26:19 - client_test] Unknown Application ABI: 
[2017-01-04 11:26:19 - client_test] 
[2017-01-04 11:26:19 - client_test] Unable to detect application ABI's

编辑 项目文件/cocos_work/proj.android/jni/Application.mk

在文件末尾添加

APP_ABI := armeabi-v7a
APP_PLATFORM := android-15

查看当前手机指令集的方法:

D:\workspace\android-ndk-r11b\ndk-build.cmd  DUMP_APP_ABI
armeabi

下面是网上的一些讨论:

ANE 下 Android-ARM/lib/armeabi (调试模式) 或者 armeabi-v7a(发行模式)


http://bbs.csdn.net/topics/390854534

“不要用cocos2dx 3.0以上的版本。在eclipse下回坑死你。我研究了两周多,才研究透,cocos2dx-2.2.6版本如何调试C++。“


最好用2.2. 6的版本。3.0的版本模版不对
两个错一个版本不一致。修改下AndroidManifest.xml文件的参数android:minSdkVersion=”17”。
不需要增加debug,网上很多人说要增加。
自己理解:其实增加的debug是调试java的,如果要调试原生态C++完全没必要。
另外一个NDK_MODULE_PATH路径没有设好。
需要在Application.mk文件末尾增加
NDK_MODULE_PATH := E:/cocos2d-x-2.2.6;E:/cocos2d-x-2.2.6/cocos2dx/platform/third_party/android/prebuilt

还有问题参考:
cocos2d-x-2.2.6版本的README.md

命令行调试

在网上不断地搜索问题的解决方法过程中,这篇文章提到一种可行方法:

http://stackoverflow.com/questions/24334080/how-to-debug-cocos2d-x-3-native-code-on-android-device

adb logcat | $NDK_ROOT/ndk-stack -sym $PROJECT_PATH/obj/local/armeabi

这条命令,要求在 linux 下执行,所以…

安装 cygwin

网上下载 cygwin 的安装包,并选择镜像路径:

http://mirrors.163.com/cygwin/

配置NDK

你必须重新设置NDK_MODULE_PATH到环境变量中

export NDK_MODULE_PATH=/cygdrive/d/xiaochan/workspace/cocos2d-x-3.10:/cygdrive/d/xiaochan/workspace/cocos2d-x-3.10/cocos:/cygdrive/d/xiaochan/workspace/cocos2d-x-3.10/external

/cygdrive/d/workspace/android-ndk-r11b/ndk-build.cmd  DUMP_APP_ABI

/cygdrive/d/workspace/android-ndk-r11b/ndk-gdb.cmd

/cygdrive/d/workspace/android-ndk-r11b/adb.cmd

/cygdrive/d/xiaochan/android-sdk-windows/platform-tools/

虽然安装了 cygwin,可对 android 的命令配置不熟悉,由于项目进度,不得不暂时放弃!

c++ socoket 的问题

想从类的初始化流程(父类构造函数)中来寻找答案,无果!

问题解决

“能不能在程序入口位置,获取当前网络状态,根据结构来进行相应的处理呢?”

和同事讨论得到这种方法:

    tagNetworkStatus netStatus = 获取网络状态值(根据底层android 和 ios的接口);

    // 启动时判断网络状态
    if (netStatus == Network_None)
    {
        // 创建显示按钮
        auto btnReload = cocos2d::ui::Button::create("public/Button_Close.png");
        btnReload->setPosition(cocos2d::Vec2(m_kUseSize.width / 2, m_kUseSize.height / 2));
        btnReload->setName("btn_exit_reload");
        btnReload->addTouchEventListener(CC_CALLBACK_2(HNLogoSceneManger::clickBtnReload, this));

        this->addChild(btnReload);
    }



// cocos2d 的按钮
// 记得包含: #include "ui/CocosGUI.h"; using namespace cocos2d::ui;
void HNLogoSceneManger::clickBtnReload(cocos2d::Ref* pSender, Widget::TouchEventType event)
{
    checkNetAndGo();
}

void HNLogoSceneManger::checkNetAndGo()
{
    // 获取网路状态值
    tagNetworkStatus netStatus = MissionWeiXin::Instance().checkNetWorkStatus();

    // 启动时判断网络状态
    if (netStatus != Network_None)
    {
        // 移除刷新退出按钮
        this->removeChildByName("btn_exit_reload");

        scheduleOnce(schedule_selector(HNLogoSceneManger::GoGame), 0.2f);
    }
}

如何在网络状态恢复的时候,用户如何处理呢?

小插曲,添加按钮响应即可,当点击按钮时,重新执行判断刷新请求。如上代码所示。

总结

这个问题解决过程历时一天半,其中的辛酸难熬,以及最后的释怀的喜悦,又一次是软件程序员一直尝试的!
刚开始心里还在嘀咕“这个问题有必要解决吗?怎么可能有手机没网的”,同事的思路:“当然后会出现这种情况的,肯定要解决呀!”
必须要解决时,去不断搜索,可心里一直在想着:“这怎么办呀?这怎么办呀?解决不了怎么办呀?”,陷入到这种纠结中实属没有必要。
直到最后,同事的想法,在入口位置做判断,解决了这个问题!

由此可见:

软件,是需要朋友一起讨论的!
软件,是要对自己有信心的!

后来,对于如何显示刷新网络按钮,按钮上放什么文字,依然是需要考虑的地方,这个就留给美工来发挥了,每个人有分工,事情也有轻重!

展开阅读全文

hiveServer2启动失败

12-21

NoViableAltException(26@[])rn at org.apache.hadoop.hive.ql.parse.HiveParser.statement(HiveParser.java:999)rn at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:199)rn at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:166)rn at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:404)rn at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:322)rn at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:975)rn at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:968)rn at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:99)rn at org.apache.hive.service.cli.operation.SQLOperation.run(SQLOperation.java:172)rn at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:231)rn at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:218)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:79)rn at org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:37)rn at org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:64)rn at java.security.AccessController.doPrivileged(Native Method)rn at javax.security.auth.Subject.doAs(Subject.java:415)rn at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1614)rn at org.apache.hadoop.hive.shims.HadoopShimsSecure.doAs(HadoopShimsSecure.java:493)rn at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:60)rn at com.sun.proxy.$Proxy20.executeStatementAsync(Unknown Source)rn at org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:233)rn at org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:344)rn at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1313)rn at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1298)rn at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)rn at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)rn at org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:55)rn at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:206)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnrn启动hiveserver2出现这个错误,请问怎么解决啊,beeline进hive2的时候查看不到创建的数据库只能看到本身自带的default。 论坛

tomcat启动失败

07-03

2012-7-3 23:59:50 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jdk1_6_0_10\bin;F:\tomcat-6.0.29\binrn2012-7-3 23:59:50 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8888rn2012-7-3 23:59:50 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 450 msrn2012-7-3 23:59:50 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2012-7-3 23:59:50 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.29rn2012-7-3 23:59:50 org.apache.catalina.startup.HostConfig deployDescriptorrn信息: Deploying configuration descriptor host-manager.xmlrn2012-7-3 23:59:50 org.apache.catalina.startup.ContextConfig processContextConfigrn严重: Parse error in context.xml for /host-managerrncom.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence.rn at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:674)rn at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:362)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanData(XMLEntityScanner.java:1242)rn at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanComment(XMLScanner.java:756)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanComment(XMLDocumentFragmentScannerImpl.java:1036)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2945)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)rn at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)rn at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1642)rn at org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:793)rn at org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:732)rn at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:1018)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.StandardContext.init(StandardContext.java:5602)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4378)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)rn at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)rn at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)rn at org.apache.catalina.core.StandardService.start(StandardService.java:519)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:581)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn2012-7-3 23:59:50 org.apache.catalina.startup.ContextConfig startrn严重: Marking this application unavailable due to previous error(s)rn2012-7-3 23:59:50 org.apache.catalina.core.StandardContext startrn严重: Error getConfiguredrn2012-7-3 23:59:50 org.apache.catalina.core.StandardContext startrn严重: Context [/host-manager] startup failed due to previous errors 论坛

wince 启动失败

12-25

我的板子是 友善之臂的 2440,打算自己移植一个可用的wince 6.0的BSP,然后就拿了一个tq2440的BSP来移植。rnrn我新建一个空的工程,就是包含很少组件的,编译的nk.bin 在debug版下就14MBrnrneboot之后,下载nk.bin ,debug版本下的启动信息如下:rnrnWindows CE Kernel for ARM (Thumb Enabled) Built on Sep 6 2006 at 19:11:16rnProcessorType=0920 Revision=0rnOEMAddressTable = 80201490rnINFO:OALLogSetZones: dpCurSettings.ulZoneMask: 0xbrn+OEMInitrnDCache: 8 sets, 64 ways, 32 line size, 16384 sizernICache: 8 sets, 64 ways, 32 line size, 16384 sizern+OALArgsInit()rnArguments area has some valuesrn-OALArgsInit()rnInitDisplay:240*320rnNONErnKITL Argument Setting INIT fail.rn-OEMInitrnError Reporting Memory Reserved, dump size = 00020000rnSetting up softlog at 0x83fdc000 for 0x800 entriesrnBooting Windows CE version 6.00 for (ARM)rn&pTOC = 8111ac1c, pTOC = 810c2c74, pTOC->ulRamFree = 8111f000, MemForPT = 00001000rnConfiguring: Primary pages: 11957, Secondary pages: 0, Filesystem pages = 747rnrnBooting kernel with clean memory configuration:rnMemory Sections:rn[0] : start: 81121000, extension: 00006000, length: 02eb5000rnNKStartup done, starting up kernel.rnWindows CE KernelInitrnReserve VM for kernel XIP DLls, first = c0010000, last = c0ab0000rng_pprcNK == 0x81118aa0rnUpdated eptr->e32_vsize to = 00039000rnInitializing Memory Mapped File SupportrnScheduling the first thread.rnDetecting VFP... VFP Not Found!rnLoaderInit: Initialing loaderrnUpdated eptr->e32_vsize to = 00039000rnUpdated eptr->e32_vsize to = 000a2000rnUpdated eptr->e32_vsize to = 0001a000rnHeap Statistics at 0xC0178940rnPGPOOL: Reserved 768 pages for Loader poolrnPGPOOL: Reserved 256 pages for File poolrn+OALIoCtlHalGetDeviceInfo(...)rnOALIoCtlHalGetDeviceInfo():SPI_GETOEMINFOrn-OALIoCtlHalGetDeviceInfo(SPI = SPI_GETOEMINFO, rc = 1)rn+OALIoCtlHalGetDeviceInfo(...)rnOALIoCtlHalGetDeviceInfo():SPI_GETPLATFORMNAMErn-OALIoCtlHalGetDeviceInfo(SPI = SPI_GETPLATFORMNAME, rc = 1)rnOSAXST0: Platform Name = Mini2440rn+OALIoCtlHalGetDeviceInfo(...)rnOALIoCtlHalGetDeviceInfo():SPI_GETPLATFORMVERSIONrn-OALIoCtlHalGetDeviceInfo(SPI = SPI_GETPLATFORMVERSION, rc = 1)rnOSAXST1: >>> Loading Module 'kd.dll' (0x83FBD87C) at address 0xC0010000-0xC0045000 in Process 'NK.EXE' (0x81118AA0)rnKD: Starting kernel debugger software probe (KdStub) - KD API version 22rnOSAXST1: >>> Loading Module 'NK.EXE' (0x81118AA0) at address 0x80200000-0x80239000 in Process 'NK.EXE' (0x81118AA0)rnMessage Queue support initialized, g_hMsgQHeap = d0040750rnOSAXST1: >>> Loading Module 'filesys.dll' (0x83F99648) at address 0xC01B0000-0xC0249000 in Process 'NK.EXE' (0x81118AA0)rnOSAXST1: >>> Loading Module 'k.fpcrt.dll' (0x83F99780) at address 0xC0190000-0xC01A8000 in Process 'NK.EXE' (0x81118AA0)rnOSAXST1: >>> Loading Module 'fsdmgr.dll' (0x83F998C8) at address 0xC0500000-0xC0545000 in Process 'NK.EXE' (0x81118AA0)rnFSDMGR!DllMain: DLL_PROCESS_ATTACHrnCertMod.dll not found, using old OEM Trust ModelrnFileSystem Starting - starting with clean file systemrnFSDMGR!STOREMGR_InitializernFSDMGR!InitializeStoreAPIrnFSDMGR!MountTable_t::RegisterVolumeName: Registered "StoreMgr" at index 2rnFSDMGR!MountTable_t::RegisterVolume: Registered volume at index 2 (Name="StoreMgr", MountFlags=0x1)rnFSDMGR!InitializeROMFileSystem: File System=ROMrnOSAXST1: >>> Loading Module 'romfsd.dll' (0x83F82B70) at address 0xC0250000-0xC0257000 in Process 'NK.EXE' (0x81118AA0)rnFSDMGR!MountTable_t::RegisterVolumeName: Registered "ROM" at index 3rnFSDMGR!MountTable_t::RegisterVolume: Registered volume at index 3 (Name="ROM", MountFlags=0x71)FSVOL: Opening existing volumernFSVOL: Volume heap already initializedrnFSREG: Mounted ROM portion of boot registryrnFSVOL: Creating clean virtual volumernFSVOL: Initializing volume heaprnFSREG: Mounted RAM portion of boot registryrnFS: Creating signal event SYSTEM/DevMgrApiSetReadyrnFS: Creating signal event SYSTEM/PowerManagerReadyrnFS: Creating signal event SYSTEM/GweApiSetReadyrnFS: Creating signal event ReleaseFSDrnFILESYS: Starting boot phase 0.rnFSDMGR!STOREMGR_StartBootPhase BootPhase=0 (PrevBootPhase=-1)rnFSDMGR: File security disabled.rnFSDMGR!AutoLoadFileSystems: CurrentBootPhase=0, LoadFlags=1rnFSDMGR!AutoLoadFileSystem: CurrentBootPhase=0, RootKey=System\StorageManager\AutoLoad, FileSystem_t=ObjectStorernFILESYS: RAM File System FSD_MountDisk registering folder "Object Store"rnFSDMGR!MountTFSDMGR!PNPThread: Using PNPUnloadDelay of 4096rnFSDMGR!PNPThread: PNPThread starting!rnable_t::RegisterVolumeName: Registered "Object Store" at index 4rnFSDMGR!MountTable_t::RegisterVolume: Registered volume at index 4 (Name="Object Store", MountFlags=0x40)rnFSDMGR!AutoLoadFileSystem: CurrentBootPhase=0, RootKey=System\StorageManager\AutoLoad, FileSystem_t=SMFLASHrnFSDMGR!AutoLoadBlockDevice: Auto-loading block driver from "Drivers\BuiltIn\SMFLASH"rnFSDMGR!MountStore: Attaching new storage device "SMFLASH"OSAXST1: >>> Loading Module 'nandflash.dll' (0x83F5ADAC) at address 0xC0950000-0xC0971000 in Process 'NK.EXE' (0x81118AA0)rnERROR!!! Calling SetKModernERROR!!! Calling SetKModern......(我删除了很多)rnERROR!!! Calling SetKModernERROR!!! Calling SetKModernERROR!!! Calling SetKModernFSDMGR!StoreDisk_t::OpenDisk(0xD0045C50) DeviceInfo Class(0x00000001) Flags(0x00000005) Type(0x00000002) Profile(SMFLASH)rnFMD_OEMIoControl: unrecognized IOCTL (0x71c24).rnFSDMGR!DumpRegKey: Dumping registry for key System\StorageManager\Profiles rn AutoMount = 00000001rn AutoPart = 00000000rn AutoFormat = 00000000rn MountFlags = 00000000rn DefaultFileSystem = rn PartitionDriverName = MSPARTrn Folder = Mounted Volumern ActivityEvent = PowerManager/ActivityTimer/SystemActivityrnFSDMGR!DumpRegKey: Dumping registry for key SMFLASH rn DefaultFileSystem = BINFSrn PartitionDriver = mspart.dllrn AutoMount = 00000001rn AutoPart = 00000001rn AutoFormat = 00000001rn Folder = EmbedSkyrn Name = Microsoft Flash Diskrn BootPhase = 00000000rn Flags = 00001000rn MountAsBootable = 00000001rnFSDMGR!StoreDisk_t::GetPartitionDriver: Using the generated partition driver name (mspart)!!!rnFSDMGR!LoadPartitionDriver: Could not find/load partition driver mspart.dllrnFSDMGR!MountStore: Failed mounting store "SMFLASH"; error=2rnFSDMGR!StoreDisk_t::~StoreDisk_t: deleting store (D0045C50)OSAXST1: <<< Unloading Module 'nandflash.dll' (0x83F5ADAC) at address 0xC0950000-0xC0971000 in Process 'NK.EXE' (0x81118AA0)rnFSDMGR!AutoLoadFileSystems: Unable to auto-load HKLM\System\StorageManager\AutoLoad\SMFLASH; error=126FILESYS: Starting boot phase 1.rnFSDMGR!STOREMGR_StartBootPhase BootPhase=1 (PrevBootPhase=0)rnFSDMGR!AutoLoadFileSystems: CurrentBootPhase=1, LoadFlags=1rnFSDMGR!AutoLoadFileSystem: CurrentBootPhase=1, RootKey=System\StorageManager\AutoLoad, FileSystem_t=RelfsdrnOSAXST1: >>> Loading Module 'relfsd.dll' (0x83F5ACC8) at address 0xC04D0000-0xC04DF000 in Process 'NK.EXE' (0x81118AA0)rnFILESYS: Starting device and waiting for boot file system.rnOSAXST1: >>> Loading Module 'device.dll' (0x83F510C0) at address 0xC0430000-0xC0435000 in Process 'NK.EXE' (0x81118AA0)rnOSAXST1: >>> Loading Module 'devmgr.dll' (0x83F51600) at address 0xC0440000-0xC0467000 in Process 'NK.EXE' (0x81118AA0)rnOSAXST1: >>> Loading Module 'k.ceddk.dll' (0x83F51738) at address 0xC0550000-0xC055E000 in Process 'NK.EXE' (0x81118AA0)rnOSAXST1: >>> Loading Module 'pm.dll' (0x83F51870) at address 0xC0490000-0xC04B7000 in Process 'NK.EXE' (0x81118AA0)rn*** DLL_PROCESS_ATTACH - Current Process: 0x42, ID: 0x400002 ***rnFilesys: Loaded device.dllrnFILESYS: Waiting for device manager to signal BootPhase1 completion.rn+InitDeviceFileSystemsrnFSDMGR!MountTable_t::RegisterVolumeName: Registered "$device" at index 5rnFSDMGR!MountTable_t::RegisterVolume: Registered volume at index 5 (Name="$device", MountFlags=0x1)rnFSDMGR!MountTable_t::RegisterVolumeName: Registered "$bus" at index 6rnFSDMGR!MountTable_t::RegisterVolume: Registered volume at index 6 (Name="$bus", MountFlags=0x1)-InitDeviceFileSystems: status is 1rnCeddk!CalibrateStallCounter: EnterrnCeddk!CalibrateStallCounter: Could not find stall counterrnCeddk!BeginCalibration: min(171) max(189)rnCeddk!BeginCalibration: Elapsed is 183rnCeddk!BeginCalibration: Delay is 22rnDEVICE!DevloadInitrnDEVICE!InitDevices: Root Key is Drivers\BuiltIn.rnDEVICE!RegReadActivationValues RegQueryValueEx(Drivers\BuiltIn\Prefix) returned 2rnDEVICE!RegReadActivationValues RegQueryValueEx(Drivers\BuiltIn\BusPrefix) returned 2rnOSAXST1: >>> Loading Module 'busenum.dll' (0x83F2DC6C) at address 0xC0480000-0xC048B000 in Process 'NK.EXE' (0x81118AA0)rnDEVICE!RegReadActivationValues RegQueryValueEx(Drivers\BuiltIn\SMFLASH\BusPrefix) returned 2rnDeviceFolder::LoadDevice(Drivers\BuiltIn\SMFLASH) last 8 TicksFILESYS: Waiting for bootable file system to be mounted.rnWaiting for bootable file system to be mounted.rnWaiting for bootable file system to be mounted.rnWaiting for bootable file system to be mounted.rnrn然后就死在这了,LCD也只有开机logo,我感觉是flash驱动那一块有问题,不知道具体该怎么解决? 论坛

Tomcat启动失败

10-16

rn严重: A child container failed during startrnjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/springmvc]]rn at java.util.concurrent.FutureTask.report(Unknown Source)rn at java.util.concurrent.FutureTask.get(Unknown Source)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:939)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/springmvc]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)rn ... 6 morernCaused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@61593296]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)rn at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4860)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4992)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 6 morernCaused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@2099ad4]rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)rn at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:721)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 9 morernCaused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid LOC header (bad signature)rn at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:113)rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)rn ... 12 morernCaused by: java.util.zip.ZipException: invalid LOC header (bad signature)rn at java.util.zip.ZipFile.read(Native Method)rn at java.util.zip.ZipFile.access$1400(Unknown Source)rn at java.util.zip.ZipFile$ZipFileInputStream.read(Unknown Source)rn at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(Unknown Source)rn at java.util.zip.InflaterInputStream.read(Unknown Source)rn at sun.misc.IOUtils.readFully(Unknown Source)rn at java.util.jar.JarFile.getBytes(Unknown Source)rn at java.util.jar.JarFile.getManifestFromReference(Unknown Source)rn at java.util.jar.JarFile.getManifest(Unknown Source)rn at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:111)rn ... 13 morernrn十月 16, 2017 10:57:11 上午 org.apache.catalina.core.ContainerBase startInternalrn严重: A child container failed during startrnjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]rn at java.util.concurrent.FutureTask.report(Unknown Source)rn at java.util.concurrent.FutureTask.get(Unknown Source)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:939)rn at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:656)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: org.apache.catalina.LifecycleException: A child container failed during startrn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:947)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 6 morernrn十月 16, 2017 10:57:11 上午 org.apache.catalina.startup.Catalina startrn严重: The required Server component failed to start so Tomcat is unable to start.rnorg.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:656)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)rn at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 7 morernCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)rn at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 9 morernCaused by: org.apache.catalina.LifecycleException: A child container failed during startrn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:947)rn at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 11 more 论坛

没有更多推荐了,返回首页