class 'Bean.LoginBean' could not be loaded [问题点数:40分,结帖人wangshuai_v7]

Bbs1
本版专家分:0
结帖率 92.86%
Bbs7
本版专家分:12032
Blank
黄花 2012年6月 Java大版内专家分月排行榜第二
2012年5月 Java大版内专家分月排行榜第二
Bbs1
本版专家分:0
Bbs1
本版专家分:0
crystl32.ocx could not be loaded
VB6.0开发的系统,报表是水晶报表,现在是装好的VB6.0,和Crystal Report 10,打开专案时,老提示:rncrystl32.ocx <em>could</em> not be <em>loaded</em>, 我已经通过regsvr32注册crystl32.ocx成功,但问题依然存在,提示此错误后,很多有报表的表单都有log错误提示如:rnLine 108: Class Crystal.CrystalReport of control CRPT was not a <em>loaded</em> control <em>class</em>.rn估计是Crystl32.ocx不能加载的原因,哪位能指导一下,谢谢!
could not be loaded">昏倒!'d:\abc.ocx"' could not be loaded
这是怎么回事啊~~~???
oracle library oci.dll could not be loaded
pd11.5,本地安装oracle10g(64位),这个是什么问题啊,怎么办?rn之前装oracle8i的客户端也报错(数据库不能打开)
Module load completed but symbols could not be loaded for PVRTuneComplete.exe
因为最近在用一个软件,现在想知道这个软件的详细工作细节,于是想到了windbg。但是我在调试的时候出现了下面的错误rn“Module load completed but symbols <em>could</em> not be <em>loaded</em> for PVRTuneComplete.exe”。PVRTuneComplete是一个软件,在网上可以下载到。我没有这个可执行程序的pdb文件。是不是没有pdb文件就不能用windbg来进行调试?如果这样行不通的话有没有什么其他的好的方法呢?我是windbg的新手,可能是自己理解不透,所以想请各位大牛能指点一二,小弟将感激不尽。
Nutch Could not initialize class
description The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletException: Could not initialize <em>class</em> org.apache.jsp.search_jsprn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrnrnroot cause rnrnjava.lang.NoClassDefFoundError: Could not initialize <em>class</em> org.apache.jsp.search_jsprn sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)rn sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)rn java.lang.reflect.Constructor.newInstance(Unknown Source)rn java.lang.Class.newInstance0(Unknown Source)rn java.lang.Class.newInstance(Unknown Source)rn org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:142)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.rnrn今天刚接触JAVA 是开源Nutch 网页可以抓取可以了 就是不能搜索 搜索就提示以上信息
Could not initialize class com.sun.javafx.iio.jpeg.JPEGImageLoader
Exception in thread "JavaFX Application Thread" java.lang.NoClassDefFoundError: Could not initialize <em>class</em> com.sun.javafx.iio.jpeg.JPEGImageLoader怎么解决这个问题
could not find the main class
我开始学java,按照教材写一个hello world程序,程序是一模一样的,肯定没有问题,在eclipse里面都可以正常运行,但是在CMD里面可以编译,运行就报错了,不能贴图啊!!rnrn
could not find main class?
我是JAVA的初学者。遇到个问题我不知道怎么处理rn我建立一个new file。输入如下代码测试:rn<em>class</em> aarnrn public static void main(String args[])rn rn System.out.print("fjdslfjsd");rn rnrnrn运行的时候出现这样的对话框:<em>could</em> not find main <em>class</em>,program will exitrn在message里:rnjava.lang.NoClassDefFoundError: aarnException in thread "main" rnrnrn我是个初学者,我叫一个同学来帮我看,但是还是没有办法解决。rn我自己根本没有办法解决,看不懂很多英文的东西。有哪位高人帮我看看吗?rn不知道是不是一些设置出现了问题,可是我没有碰过什么设置。昨天早上都没有问题,到了下午就出现这样的问题了。谢谢大家帮我看看
总是提示Oracle.jdbc.driver.oracledriver could not be loaded,帮忙呀
我用jbuilder 8 开发一个小程序连接ORACLE 9I数据库,我将oracle驱动利用jbuilder自身的tools 中configure libraries已经能够包含进入jbuilder库中了,并且也通过enterprise setup加入到数据库驱动里面了,调用run命令程序可以正常运行,但是我想在别的计算机上运行,所以就native executable builder来打包,结果执行这个JAR文件是总是提示Oracle.jdbc.driver.oracledriver <em>could</em> not be <em>loaded</em>等错误,我哪里配置有问题呀,
Oracle library OCI.DLL or ORA803.DLL could not be loaded
Oracle library OCI.DLL or ORA803.DLL <em>could</em> not be <em>loaded</em>rn(path 已经配了)
Could not find class 'com.google.ads.AdView'
我在这个网站注册的一个广告联盟http://zhcn.admob.com/.rn然后根据步骤https://developers.google.com/mobile-ads-sdk/docs/android/fundamentals?hl=zh-cn这个网站的步骤,rn一步一步的,可是都完事了之后,到运行模拟器的时候,就报错了,说找不到Could not find <em>class</em> 'com.google.ads.AdView'rn这个类..我把GoogleAdMobAdsSdkAndroid-4.3.1这个Jra包都引导项目里了,可是还不行,rn大家谁能帮帮我.谢谢了..rn下面是我的Java代码.rn[code=Java]rnpackage com.feng.main;rnrnimport android.app.Activity;rnimport android.os.Bundle;rnimport android.widget.LinearLayout;rnrnimport com.google.ads.*;rnrnpublic <em>class</em> TestActivity extends Activity rn private AdView adView;rnrn @Overridern public void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn setContentView(R.layout.main);rn // Create the adViewrn adView = new AdView(this, AdSize.BANNER, "a14f756f69907d7");rnrn // Lookup your LinearLayout assuming it’s been givenrn // the attribute android:id="@+id/mainLayout"rn LinearLayout layout = (LinearLayout) findViewById(R.id.mainLayout);rnrn // Add the adView to itrn layout.addView(adView);rnrn // Initiate a generic request to load it with an adrn adView.loadAd(new AdRequest());rn rnrn @Overridern public void onDestroy() rn if (adView != null) rn adView.destroy();rn rn super.onDestroy();rn rn[/code]rn下面是我的XML代码rn[code=XML]rnrnrnrn rnrn rn rn rn rnrn rn rn rn rn rnrn rn rnrnrn[/code]
Could not find class 'org.ksoap2.serialization.SoapObject'
工程编译没问题,一在模拟器运行就报错!rnrn10-27 01:06:43.059: ERROR/dalvikvm(575): Could not find <em>class</em> 'org.ksoap2.serialization.SoapObject', referenced from method com.realcode.RealCodePhoneNumber$1.onClickrnrn竟然报错说:Could not find <em>class</em> 'org.ksoap2.serialization.SoapObject'rn如果真的找不到这个Class岂不是编译都不会通过?rn难道是没有打包进apk,那又如何打包呢?rnrn我是按照如此按步骤来的:Build path, java build path,选择librariesrn 在右边的按钮中点击“Add Library”rn 选择“User library”,点击“下一步”rn 点击“User librarys”按钮rn 在出现的界面中点击“New..”按钮rn 在弹出的界面中随便起一个名字,点击“确定”rn 点击“Add jars”按钮选择第三方jar包,点击“确定”完成操作。rn
Could not find class
java application中运行无错误,android application时编译无错误 运行时报错如下:rnrnrn05-18 01:12:31.891: E/dalvikvm(238): Could not find <em>class</em> 'org.bouncycastle.openssl.PEMReader', referenced from method com.Sign.CRTrenzhengrnrn先问下怎么修改?或者说它对程序有无影响;
Could not load class org.apache.struts2.jsf.ApplyRequestValuesInterceptor
Could not load <em>class</em> org.apache.struts2.jsf.ApplyRequestValuesInterceptor. Perhaps it exists but certain dependencies are not available? - interceptor - jar:file:/E:/Program%20Files/Tomcat%206.0/webapps/chapt17/WEB-INF/lib/struts2-jsf-plugin-2.0.11.jar!/struts-plugin.xml:38:105rn at com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:206)rn at com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:57)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference(XmlConfigurationProvider.java:905)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStack(XmlConfigurationProvider.java:743)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStacks(XmlConfigurationProvider.java:756)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptors(XmlConfigurationProvider.java:777)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:410)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)rn at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)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:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)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:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: java.lang.NoClassDefFoundError: javax/faces/lifecycle/Lifecyclern at java.lang.Class.getDeclaredMethods0(Native Method)rn at java.lang.Class.privateGetDeclaredMethods(Unknown Source)rn at java.lang.Class.getDeclaredMethods(Unknown Source)rn at java.beans.Introspector$1.run(Unknown Source)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.beans.Introspector.getPublicDeclaredMethods(Unknown Source)rn at java.beans.Introspector.getTargetMethodInfo(Unknown Source)rn at java.beans.Introspector.getBeanInfo(Unknown Source)rn at java.beans.Introspector.getBeanInfo(Unknown Source)rn at java.beans.Introspector.getBeanInfo(Unknown Source)rn at java.beans.Introspector.(Unknown Source)rn at java.beans.Introspector.getBeanInfo(Unknown Source)rn at java.beans.Introspector.getBeanInfo(Unknown Source)rn at java.beans.Introspector.(Unknown Source)rn at java.beans.Introspector.getBeanInfo(Unknown Source)rn at org.springframework.beans.CachedIntrospectionResults.(CachedIntrospectionResults.java:220)rn at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:144)rn at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:252)rn at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptors(BeanWrapperImpl.java:259)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.unsatisfiedNonSimpleProperties(AbstractAutowireCapableBeanFactory.java:1108)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:1023)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:975)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:329)rn at com.opensymphony.xwork2.spring.SpringObjectFactory.autoWireBean(SpringObjectFactory.java:167)rn at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:154)rn at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:128)rn at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:143)rn at com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:184)rn ... 40 morernrn痛苦呀 我已经处理了3天都没法解决百度上有人说缺少log4j.jar包 可是我放进去了还是一样rn我都累死了 这是我做毕业设计的一个简单图书管理系统
Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
NULL 博文链接:https://smartgwt.iteye.com/blog/1252268
Could not find class 'android.util.ArrayMap
Android Studio 采用compileSdkVersion (22)编译。rn在调试时出现如下错误,请哪位大神给指导一下该如何解决rnCould not find <em>class</em> 'android.util.ArrayMap'
Could not find the main class
在Myeclipse 8.5中用外带的tomcat时候,会因为JDK版本的问题出现Could not find the main <em>class</em>,按照上述文档的步骤就可以解决,我亲自体验过
java.lang.NoClassDefFoundError: Could not initialize class
java.lang.Exception: 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 com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:404)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:229)rn at com.tesco.interceptor.ExceptionInterceptor.intercept(ExceptionInterceptor.java:45)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:123)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:167)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:105)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:83)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:207)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:74)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rnrn ……rnrn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:121)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:170)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:123)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.tesco.interceptor.SessionValidateInterceptor.intercept(SessionValidateInterceptor.java:59)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:50)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:504)rn at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn at com.tesco.filter.Log4jNdcFilter.doFilter(Log4jNdcFilter.java:41)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(Unknown Source)rn at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)rn at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)rn at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)rn at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)rn at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)rn Caused by: java.lang.NoClassDefFoundError: Could not initialize <em>class</em> com.tesco.action.ServiceLocator at com.tesco.action.BaseAction.getBean(BaseAction.java:48)rn at com.tesco.action.RegisterAction.regist(RegisterAction.java:136)rn ... 121 more
Could not initialize class com.demo.hibernate.util.HibernateSessionFactory
请教这个错误是怎么回事?rnjava.lang.NoClassDefFoundError: Could not initialize <em>class</em> com.demo.hibernate.util.HibernateSessionFactoryrnrnrnHibernateSessionFactory.java代码:rnpackage com.demo.hibernate.util;rnimport org.hibernate.HibernateException;rnimport org.hibernate.Session;rnimport org.hibernate.cfg.*;rnrnpublic <em>class</em> HibernateSessionFactory rnrn private static String CONFIG_FILE_LOCATION="/hibernate.cfg.xml";rn private static final ThreadLocal threadLocal= new ThreadLocal();rn private static final Configuration cfg = new Configuration();rn private static org.hibernate.SessionFactory sessionFactory;rn rn public static Session currentSession() throws HibernateExceptionrn Session session=(Session)threadLocal.get();rn if(session == null)rn if(sessionFactory == null)rn tryrn cfg.configure(CONFIG_FILE_LOCATION);rn sessionFactory=cfg.buildSessionFactory();rn rn catch(Exception e)rn System.out.println("%%%% Error Creating SessionFactory %%%%");rn e.printStackTrace();rn rn rn session=sessionFactory.openSession();rn threadLocal.set(session);rn rn return session;rn rn rn public static void closeSession() throws HibernateExceptionrn Session session=(Session)threadLocal.get();rn threadLocal.set(null);rn if(session != null)rn session.close();rn rn rnrn
关于“File setupdd.sys could not be loaded”错误
在重装系统时总是出现"File setupdd.sys <em>could</em> not be <em>loaded</em> The error code is 4096 setup cannot continue.Press any key to exit"的错误.请问各位大侠们,这个什么原因?错误代码4096又是什么意思?小弟在此谢谢了!!!
pb连接oracle10提示oci.dll could not be loaded
在64位的服务器上怎么用PB连接ORACLE吗?具体环境是IBM X86 64位Inter服务器,windows 2003 64位操作系统oracle 10.2.0.1 64位,但是在用PB连接oracle的时候总是报OCI.dll不能装载注:是在服务器上连接,不是在客户端,希望能得到高手答复
pb连接oracle10,提示oci.dll could not be loaded
在64位的服务器上怎么用PB连接ORACLE吗?具体环境是IBM X86 64位Inter服务器,windows 2003 64位操作系统oracle 10.2.0.1 64位,但是在用PB连接oracle的时候总是报OCI.dll不能装载注:是在服务器上连接,不是在客户端,希望能得到高手答复
Could not initialize class com.stuman.dao.hibernate.HibernateUtil
type Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletException: Servlet execution threw an exceptionrn com.stuman.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:89)rnrnrnroot cause rnrnjava.lang.NoClassDefFoundError: Could not initialize <em>class</em> com.stuman.dao.hibernate.HibernateUtilrn com.stuman.web.struts.action.LoginAction.execute(LoginAction.java:49)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn com.stuman.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:89)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.rnrn
Could not initialize class org.apache.jasper.el.ELContextImpl
HTTP Status 500 - java.lang.NoClassDefFoundError: Could not initialize <em>class</em> org.apache.jasper.el.ELContextImplrnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage java.lang.NoClassDefFoundError: Could not initialize <em>class</em> org.apache.jasper.el.ELContextImplrnrndescription The server encountered an internal error that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize <em>class</em> org.apache.jasper.el.ELContextImplrn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:728)rnrnrnroot cause rnrnjava.lang.NoClassDefFoundError: Could not initialize <em>class</em> org.apache.jasper.el.ELContextImplrn org.apache.jasper.compiler.Validator$ValidateVisitor.prepareExpression(Validator.java:1568)rn org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:747)rn org.apache.jasper.compiler.Node$ELExpression.accept(Node.java:954)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)rn org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2428)rn org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2434)rn org.apache.jasper.compiler.Node$Root.accept(Node.java:475)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)rn org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1795)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:217)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:373)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:728)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/7.0.39 logs.rnrn怎么解决?
系统蓝屏symbols could not be loaded for topsecpf.sys
n**以下是dmp文件**nnMicrosoft (R) Windows Debugger Version 6.12.0002.633 AMD64nCopyright (c) Microsoft Corporation. All rights reserved.nnnLoading Dump File [C:\Windows\Minidump\042516-38765-01.dmp]nMini Kernel Dump File: Only registers and stack trace are availablennWARNING: Whitespace at start of path elementnSymbol search path is: SRV*C:\mysymbol*http://msdl.microsoft.com/download/symbols; SRV*c:\mysymbol* http://msdl.microsoft.com/download/symbolsnExecutable search path is: nWindows 7 Kernel Version 10586 MP (4 procs) Free x64nProduct: WinNt, suite: TerminalServer SingleUserTSnBuilt by: 10586.212.amd64fre.th2_release_sec.160328-1908nMachine Name:nKernel base = 0xfffff800`5ca06000 PsLoadedModuleList = 0xfffff800`5cce4cd0nDebug session time: Mon Apr 25 14:00:16.636 2016 (UTC + 8:00)nSystem Uptime: 0 days 0:09:38.532nLoading Kernel Symbolsn.nnPress ctrl-c (cdb, kd, ntsd) or ctrl-break (windbg) to abort symbol loads that take too long.nRun !sym noisy before .reload to track down problems loading symbols.nn..............................................................n................................................................n.......................................................nLoading User SymbolsnLoading un<em>loaded</em> module listn........................................n*******************************************************************************n* *n* Bugcheck Analysis *n* *n*******************************************************************************nnUse !analyze -v to get detailed debugging information.nnBugCheck 139, 3, ffffd0020017a280, ffffd0020017a1d8, 0nnUnable to load image \??\C:\WINDOWS\sysWOW64\drivers\topsecpf.sys, Win32 error 0n2n*** WARNING: Unable to verify timestamp for topsecpf.sysn*** ERROR: Module load completed but symbols <em>could</em> not be <em>loaded</em> for topsecpf.sysnProbably caused by : topsecpf.sys ( topsecpf+7370 )nnFollowup: MachineOwnern---------nn3: kd> !analyze -vn*******************************************************************************n* *n* Bugcheck Analysis *n* *n*******************************************************************************nnUnknown bugcheck code (139)nUnknown bugcheck descriptionnArguments:nArg1: 0000000000000003nArg2: ffffd0020017a280nArg3: ffffd0020017a1d8nArg4: 0000000000000000nnDebugging Details:n------------------nnnCUSTOMER_CRASH_COUNT: 1nnDEFAULT_BUCKET_ID: VISTA_DRIVER_FAULTnnBUGCHECK_STR: 0x139nnPROCESS_NAME: SystemnnCURRENT_IRQL: 0nnLAST_CONTROL_TRANSFER: from fffff8005cb532e9 to fffff8005cb48760nnSYMBOL_ON_RAW_STACK: 1nnSTACK_ADDR_RAW_STACK_SYMBOL: ffffd0020017a070nnSTACK_COMMAND: dds FFFFD0020017A070-0x20 ; kbnnSTACK_TEXT: nffffd002`0017a050 00000000nffffd002`0017a054 ffffe001nffffd002`0017a058 c565637bnffffd002`0017a05c fffff801nffffd002`0017a060 3ddb1490nffffd002`0017a064 ffffe001nffffd002`0017a068 c6d57370nffffd002`0017a06c fffff801nffffd002`0017a070 c6d57348nffffd002`0017a074 fffff801nffffd002`0017a078 00000000nffffd002`0017a07c 00000000nffffd002`0017a080 00000000nffffd002`0017a084 00000000nffffd002`0017a088 00000000nffffd002`0017a08c 00000000nffffd002`0017a090 c6d19700nffffd002`0017a094 fffff801nffffd002`0017a098 5cb53610nffffd002`0017a09c fffff800nffffd002`0017a0a0 00000002nffffd002`0017a0a4 00000000nffffd002`0017a0a8 0017a4b0nffffd002`0017a0ac ffffd002nffffd002`0017a0b0 0000ad13nffffd002`0017a0b4 00000000nffffd002`0017a0b8 00000000nffffd002`0017a0bc 00000000nffffd002`0017a0c0 3dfe7b70nffffd002`0017a0c4 ffffe001nffffd002`0017a0c8 c624f303nffffd002`0017a0cc fffff801nnnFOLLOWUP_IP: ntopsecpf+7370nfffff801`c6d57370 90 nopnnSYMBOL_NAME: topsecpf+7370nnFOLLOWUP_NAME: MachineOwnernnMODULE_NAME: topsecpfnnIMAGE_NAME: topsecpf.sysnnDEBUG_FLR_IMAGE_TIMESTAMP: 4d6da0f2nnFAILURE_BUCKET_ID: X64_0x139_topsecpf+7370nnBUCKET_ID: X64_0x139_topsecpf+7370nnFollowup: MachineOwnern---------nn3: kd> !analyze -vn*******************************************************************************n* *n* Bugcheck Analysis *n* *n*******************************************************************************nnUnknown bugcheck code (139)nUnknown bugcheck descriptionnArguments:nArg1: 0000000000000003nArg2: ffffd0020017a280nArg3: ffffd0020017a1d8nArg4: 0000000000000000nnDebugging Details:n------------------nnnCUSTOMER_CRASH_COUNT: 1nnDEFAULT_BUCKET_ID: VISTA_DRIVER_FAULTnnBUGCHECK_STR: 0x139nnPROCESS_NAME: SystemnnCURRENT_IRQL: 0nnLAST_CONTROL_TRANSFER: from fffff8005cb532e9 to fffff8005cb48760nnSYMBOL_ON_RAW_STACK: 1nnSTACK_ADDR_RAW_STACK_SYMBOL: ffffd0020017a070nnSTACK_COMMAND: dds FFFFD0020017A070-0x20 ; kbnnSTACK_TEXT: nffffd002`0017a050 00000000nffffd002`0017a054 ffffe001nffffd002`0017a058 c565637bnffffd002`0017a05c fffff801nffffd002`0017a060 3ddb1490nffffd002`0017a064 ffffe001nffffd002`0017a068 c6d57370nffffd002`0017a06c fffff801nffffd002`0017a070 c6d57348nffffd002`0017a074 fffff801nffffd002`0017a078 00000000nffffd002`0017a07c 00000000nffffd002`0017a080 00000000nffffd002`0017a084 00000000nffffd002`0017a088 00000000nffffd002`0017a08c 00000000nffffd002`0017a090 c6d19700nffffd002`0017a094 fffff801nffffd002`0017a098 5cb53610nffffd002`0017a09c fffff800nffffd002`0017a0a0 00000002nffffd002`0017a0a4 00000000nffffd002`0017a0a8 0017a4b0nffffd002`0017a0ac ffffd002nffffd002`0017a0b0 0000ad13nffffd002`0017a0b4 00000000nffffd002`0017a0b8 00000000nffffd002`0017a0bc 00000000nffffd002`0017a0c0 3dfe7b70nffffd002`0017a0c4 ffffe001nffffd002`0017a0c8 c624f303nffffd002`0017a0cc fffff801nnnFOLLOWUP_IP: ntopsecpf+7370nfffff801`c6d57370 90 nopnnSYMBOL_NAME: topsecpf+7370nnFOLLOWUP_NAME: MachineOwnernnMODULE_NAME: topsecpfnnIMAGE_NAME: topsecpf.sysnnDEBUG_FLR_IMAGE_TIMESTAMP: 4d6da0f2nnFAILURE_BUCKET_ID: X64_0x139_topsecpf+7370nnBUCKET_ID: X64_0x139_topsecpf+7370nnFollowup: MachineOwnern---------nn3: kd> !analyze -vn*******************************************************************************n* *n* Bugcheck Analysis *n* *n*******************************************************************************nnUnknown bugcheck code (139)nUnknown bugcheck descriptionnArguments:nArg1: 0000000000000003nArg2: ffffd0020017a280nArg3: ffffd0020017a1d8nArg4: 0000000000000000nnDebugging Details:n------------------n
could not find the main class :xxx
执行时出现这种提示,我退出又换了个工作空间又运行了一次,正常,很苦恼,求解
java.lang.NoClassDefFoundError: Could not initialize class cn.elvis.utils.JdbcUt
写的jdbc工具类,前期写了测试正确,但发布到tomcat中就报这样的错误。rnjavax.servlet.ServletException: Servlet execution threw an exceptionrnrnrnroot cause rnrnjava.lang.NoClassDefFoundError: Could not initialize <em>class</em> cn.elvis.utils.JdbcUtilsrn cn.elvis.dao.impl.UserDaoImpl.find(UserDaoImpl.java:180)rn cn.elvis.service.impl.BusinessServiceImpl.register(BusinessServiceImpl.java:15)rn cn.elvis.web.controller.RegisterServlet.doGet(RegisterServlet.java:40)rn cn.elvis.web.controller.RegisterServlet.doPost(RegisterServlet.java:77)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:641)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:722)rnrn下面是我的工具类代码rn[code=Java]rnpublic final <em>class</em> JdbcUtils rnrn private static String driver="com.microsoft.sqlserver.jdbc.SQLServerDriver";rn private static String url="jdbc:sqlserver://localhost:1433;DatabaseName=JspWebDb";rn private static String user="sa";rn private static String psw="12345";rn rn private JdbcUtils()rn rn private static JdbcUtils instanse=new JdbcUtils();rn rn public static JdbcUtils getInstanse()rn rn return instanse;rn rn rn staticrn tryrn Class.forName(driver);rn rn catch(ClassNotFoundException e)rn rn throw new ExceptionInInitializerError(e);rn rn rn rn rn public static Connection getConnection() throws SQLExceptionrn rn return DriverManager.getConnection(url,user,psw);rn rn rn rn public static void free(ResultSet rs,Statement st,Connection conn)rn rn if(rs!=null)rn try rn rs.close();rn catch (SQLException e) rn e.printStackTrace();rn rn finallyrn rn if(st!=null)rn try rn st.close();rn catch (SQLException e) rn rn e.printStackTrace();rn rn finallyrn rn if(conn!=null)rn try rn conn.close();rn catch (SQLException e) rn rn e.printStackTrace();rn rn rn rn rn rn rn rn rnrnrnrn[/code]
java.lang.NoClassDefFoundError: Could not initialize class jihe.Test3
public <em>class</em> index extends Action rn rn rn public ActionForward execute(ActionMapping mapping, ActionForm form,rn HttpServletRequest request, HttpServletResponse response) throws Exception rn rn Test3 t=new Test3();rn rn List m= t.findAllUser();rn rn request.setAttribute("sutao", m);rn rn rn //request.removeAttribute(mapping.getAttribute());rn rn return mapping.findForward("ss");rn rnrn就是这个ACTION不知道有没有错?
总是could not find the main class
用AXIS发布SOAP服务,用命令行发布:java org.apache.axis.client.AdminClient deploy.wsddrn为什么总是显示<em>could</em> not find the main <em>class</em> :org.apache.axis.client.AdminClient.Promgram will exit.
java.lang.NoClassDefFoundError: Could not initialize class com.jacob.com.ComThre
本地main测试所有方法都正常,各种转换都可以.rn放tomcat里面跑起来后,一切正常.rn进行word转换时候,出现如下报错rnjdk是1.7的.rnjar包是1.18版本的,jdk/bin先考过dll了rnsystem32里面也考了.rnjava.lang.NoClassDefFoundError: Could not initialize <em>class</em> com.jacob.com.ComThread
could not find the main class,...will exit.
不管写什么代码 都出现这个错误 我汗了 请问是什么原因?rn<em>could</em> not find the main <em>class</em>,...will exit.
Android Studio could not find class
![图片说明](https://img-ask.csdn.net/upload/201608/18/1471505027_514933.png)rn一个CheckBox 多选按钮实现程序,layout预览没有问题,启动APK不能运行。rnrnbuild.gradlern![图片说明](https://img-ask.csdn.net/upload/201608/18/1471511535_934926.png)rnrnlogcat:rnrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find <em>class</em> 'android.os.PersistableBundle', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find <em>class</em> 'android.os.PersistableBundle', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find <em>class</em> 'android.media.session.MediaController', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find <em>class</em> 'android.widget.Toolbar', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find <em>class</em> 'android.app.ActivityManager$TaskDescription', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find <em>class</em> 'android.app.SharedElementCallback', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find <em>class</em> 'android.os.PersistableBundle', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.840 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find <em>class</em> 'android.app.SharedElementCallback', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.840 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find <em>class</em> 'android.app.assist.AssistContent', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.840 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find <em>class</em> 'android.view.SearchEvent', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.840 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find <em>class</em> 'android.os.PersistableBundle', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.900 3020-3020/com.example.administrator.myapplication12 E/AndroidRuntime: FATAL EXCEPTION: mainrn Process: com.example.administrator.myapplication12, PID: 3020rn java.lang.RuntimeException: Unable to start activity ComponentInfocom.example.administrator.myapplication12/com.example.administrator.myapplication12.MainActivity: java.lang.NullPointerExceptionrn at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)rn at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)rn at android.app.ActivityThread.access$800(ActivityThread.java:135)rn at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)rn at android.os.Handler.dispatchMessage(Handler.java:102)rn at android.os.Looper.loop(Looper.java:136)rn at android.app.ActivityThread.main(ActivityThread.java:5017)rn at java.lang.reflect.Method.invokeNative(Native Method)rn at java.lang.reflect.Method.invoke(Method.java:515)rn at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)rn at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)rn at dalvik.system.NativeStart.main(Native Method)rn Caused by: java.lang.NullPointerExceptionrn at com.example.administrator.myapplication12.MainActivity.onCreate(MainActivity.java:39)rn at android.app.Activity.performCreate(Activity.java:5231)rn at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)rn at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)rn at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) rn at android.app.ActivityThread.access$800(ActivityThread.java:135) rn at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) rn at android.os.Handler.dispatchMessage(Handler.java:102) rn at android.os.Looper.loop(Looper.java:136) rn at android.app.ActivityThread.main(ActivityThread.java:5017) rn at java.lang.reflect.Method.invokeNative(Native Method) rn at java.lang.reflect.Method.invoke(Method.java:515) rn at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) rn at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) rn at dalvik.system.NativeStart.main(Native Method) rn
老问题Could not initialize class
引用一个包(我把包放到JRE/LIB/EXT里面,)rnJAVA编译运行都能通过,用SERVLET或JAVABEAN在JSP页面调用的时候总是找不到类rn
java.lang.NoClassDefFoundError: Could not initialize class SQLite.JDBC2x.Databas
rnjava.lang.NoClassDefFoundError: Could not initialize <em>class</em> SQLite.JDBC2x.DatabaseXrnrn这个异常是怎么回事?该如何解决呢?rnrn在线,急等。。。。。。。。。。。。
android Could not find class 'java.awt'
在Android开发过程中遇到类似于报错Could not find <em>class</em> 'java.awt.image.BufferedImage',rn引用java.awt的类在jar文件中,有没有解决办法的?
请教javax.servlet.ServletException: Could not initialize class
在测试SERVLET的时候出现上面的错误,网上看到说是CLASSPATH的问题,我把那个包放到jre/lib/ext文件中,还在CLASSPATH里添加了这个包,还是出现错误,请教!
java.lang.NoClassDefFoundError: Could not initialize class com.library.hibernate
exceptionrnrnjava.lang.reflect.InvocationTargetExceptionrn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:597)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243)rn com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252)rn org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:179)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:130)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)rn org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
Could not find the main class 问题
1、在eclipse中运行没问题rnrn2、在cmd下编译手动编译没问题,运行其他java写的程序没问题,所以我想可能不是<em>class</em>path问题rnrn3、程序里用了多线程和内部类rnrn <em>class</em>清单rn .rn ..rn 908 ChatServer$DisposeMsg.<em>class</em>rn 1,381 ChatServer$RecvMsg.<em>class</em>rn 1,933 ChatServer$SendMsg.<em>class</em>rn 1,953 ChatServer.<em>class</em>rnrnrn 运行的时候报以下错误 rnException in thread "main" java.lang.NoClassDefFoundError: ChatServer (wrong name: server/ChatServer)rn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:621)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)rn at java.net.URLClassLoader.access$000(URLClassLoader.java:56)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:195)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:188)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:307)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:252)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rnCould not find the main <em>class</em>: ChatServer. Program will exit.rnrn
pb7连接oracle9i,提示oci.dll,ora803.dll could not be loaded 什么原因?
怎么解决,多谢
水晶报表10 登陆Oracle错误。The database dll 'crdb_oracle.dll' could not be loaded
我用CR10高级开发版的RAS发布用.net封装的报表。后台数据库用的是Oracle9.2, 连接数据库的参数写在webconfig中,在windows2003 server IIS6.0上没有问题。转移到Windows2000server上报错 The database dll 'crdb_oracle.dll' <em>could</em> not be <em>loaded</em> 。oracle的客户端都已经装好,账号密码我在客户端已经测试过了没有问题,而且用CR10可以刷新出来数据,但是一发布到IIS上就不行了。不知道为什么?rn
高分求助。登陆Oracle错误。The database dll 'crdb_oracle.dll' could not be loaded
我在学习水晶报表的时候遇到了一个非常奇怪的问题,困扰了我2天,在网上查了很多资料也没有解决,特意向你请教一下。rn 我用CR10高级开发版的RAS发布用.net封装的报表。后台数据库用的是Oracle9.2, 连接数据库的参数写在webconfig中,在windows2003 server IIS6.0上没有问题。转移到Windows2000server上报错 The database dll 'crdb_oracle.dll' <em>could</em> not be <em>loaded</em> 。oracle的客户端都已经装好,账号密码我在客户端已经测试过了没有问题,而且用CR10可以刷新出来数据,但是一发布到IIS上就不行了。不知道为什么?
unix程序执行时显示Dependent module libc.a(shr.o) could not be loaded????
程序是在aix unix下编译通过rn执行时显示rnCould not load program ./a.out:rn Dependent module libc.a(shr.o) <em>could</em> not be <em>loaded</em>.rnCould not load module libc.a(shr.o).rnError was: No such file or directoryrnrnunix编程不熟,望各位指点一二rn
ComponentArt:Grid 单击第二页时 报the data could not be loaded
[size=16px][b]ComponentArt:Grid 单击第二页或下一页或排序时 弹出the data <em>could</em> not be <em>loaded</em>一个框 调试发现数据读的都没有问题 执行完绑定就出现了这个错,请问是怎么回事 要怎么解决?? 谢谢。。。。[/b][/size]
Could not find a getter for id in class 的错误!
本人用 eclipse3.2+myeclipse5.1GA+hibernate3.0连接oracle写clob字段:rn数据库中的表(content)中有两个字段:id(int),content(clob),rn生成bean文件时:有两个文件产生了:content.java和contentid.javarn和Content.hbm.xmlrncontent.javarnpackage cn.fusion.beans;rnrn/**rn * Content generated by MyEclipse - Hibernate Toolsrn */rnrnpublic <em>class</em> Content implements java.io.Serializable rn // Fields rnrn private ContentId id;rn // Constructorsrn /** default constructor */rn public Content() rn rn /** full constructor */rn public Content(ContentId id) rn this.id = id;rn rn // Property accessorsrn public ContentId getId() rn return this.id;rn rn public void setId(ContentId id) rn this.id = id;rn rnrnrn-----------------rncontentid.javarnrnpackage cn.fusion.beans;rnrn/**rn * ContentId generated by MyEclipse - Hibernate Toolsrn */rnpublic <em>class</em> ContentId implements java.io.Serializable rn // Fields rn private Long id;rn private String content;rn // Constructorsrnrn /** default constructor */rn public ContentId() rn rn/** minimal constructor */rn public ContentId(Long id) rn this.id = id;rn rn /** full constructor */rn public ContentId(Long id, String content) rn this.id = id;rn this.content = content;rn rn // Property accessorsrnrn public Long getId() rn return this.id;rn rn rn public void setId(Long id) rn this.id = id;rn rnrn public String getContent() rn return this.content;rn public void setContent(String content) rn this.content = content;rn rnrn public boolean equals(Object other) rn if ( (this == other ) ) return true;rn if ( (other == null ) ) return false;rn if ( !(other instanceof ContentId) ) return false;rn ContentId castOther = ( ContentId ) other; rn rn return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )rn && ( (this.getContent()==castOther.getContent()) || ( this.getContent()!=null && castOther.getContent()!=null && this.getContent().equals(castOther.getContent()) ) );rn rn rn public int hashCode() rn int result = 17;rn rn result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );rn result = 37 * result + ( getContent() == null ? 0 : this.getContent().hashCode() );rn return result;rn rnrn--------------------------------rnContent.hbm.xmlrnContent.hbm.xmlrnrnrnrnrn rn rn rn rn rn rn rn rn rn rnrn rn我前几次成表bean文件时都是只有一个java文件的,这次一下生成两个了,觉得有点奇怪,那两个高底怎么使用,用平时的方法到提示Could not find a getter for id in <em>class</em>....请高手帮忙啊:::
could not find main class program will exit问题
<em>could</em> not find main <em>class</em> program will exit问题rn我以前用的是jdk1.5今天刚换成1.4版本的,以前在1.5下大的包就不能运行了,对话框会提示<em>could</em> not find main <em>class</em> program will exit,这是版本问题吧,请问如何解决呢
Hibernate框架中的,could not find the main class 的问题
实体类如下:rncom.mys.modelrn[code=java]package com.mys.model;rn// default packagernrnimport java.util.Date;rnrnrn/**rn * User entity. @author MyEclipse Persistence Toolsrn */rnrnpublic <em>class</em> User implements java.io.Serializable rnrnrn // Fields rnrn private String id;rn private String userName;rn private String userPwd;rn private String sex;rn private Integer age;rn private String jiguan;rn private Date userRegisterTime;rnrnrn // Constructorsrnrn /** default constructor */rn public User() rn rnrn /** minimal constructor */rn public User(String id, String userName, String userPwd, Date userRegisterTime) rn this.id = id;rn this.userName = userName;rn this.userPwd = userPwd;rn this.userRegisterTime = userRegisterTime;rn rn rn /** full constructor */rn public User(String id, String userName, String userPwd, String sex, Integer age, String jiguan, Date userRegisterTime) rn this.id = id;rn this.userName = userName;rn this.userPwd = userPwd;rn this.sex = sex;rn this.age = age;rn this.jiguan = jiguan;rn this.userRegisterTime = userRegisterTime;rn rnrn rn // Property accessorsrnrn public String getId() rn return this.id;rn rn rn public void setId(String id) rn this.id = id;rn rnrn public String getUserName() rn return this.userName;rn rn rn public void setUserName(String userName) rn this.userName = userName;rn rnrn public String getUserPwd() rn return this.userPwd;rn rn rn public void setUserPwd(String userPwd) rn this.userPwd = userPwd;rn rnrn public String getSex() rn return this.sex;rn rn rn public void setSex(String sex) rn this.sex = sex;rn rnrn public Integer getAge() rn return this.age;rn rn rn public void setAge(Integer age) rn this.age = age;rn rnrn public String getJiguan() rn return this.jiguan;rn rn rn public void setJiguan(String jiguan) rn this.jiguan = jiguan;rn rnrn public Date getUserRegisterTime() rn return this.userRegisterTime;rn rn rn public void setUserRegisterTime(Date userRegisterTime) rn this.userRegisterTime = userRegisterTime;rn rnrn[/code]rnrn业务类如下:rncom.mys.utilrn[code=java]package com.mys.util;rn /**rn * 我们必须启动Hibernate,此过程包括创建一个全局的SessoinFactory,并把它储存在应用程序代码容易访问的地方。rn */rnrnimport java.util.List;rnrnimport com.mys.model.*;rnrnimport org.hibernate.Query;rnimport org.hibernate.Session;rnimport org.hibernate.SessionFactory;rnimport org.hibernate.Transaction;rnimport org.hibernate.cfg.Configuration;rnpublic <em>class</em> HibernateUtilrnrn private static final SessionFactory sessionFactory;rnrn static rn try rn // Create the SessionFactory from hibernate.cfg.xmlrn //以前hibernate文档里的: sessionFactory = new Configuration().configure().buildSessionFactory();rn rn Configuration config=new Configuration();rn config.configure();rn config.addClass(User.<em>class</em>);//完整类名?rn sessionFactory=config.buildSessionFactory();rn rn catch (Throwable ex) rn // Make sure you log the exception, as it might be swallowedrn System.err.println("Initial SessionFactory creation failed." + ex);rn throw new ExceptionInInitializerError(ex);rn rn rnrn rn// 查询用户信息rn public void showUsers()rn rn Session session = sessionFactory.openSession();rn Transaction tx=null;rn tryrn tx=session.beginTransaction();rn Query query=session.createQuery("from tb_User as u");rn List list=query.list();//List是util.*类库里的接口rn System.out.println("id"+"用户名"+"用户密码"+"性别"+"年龄"+"籍贯"+"注册时间");rn for(int i=0;irnrnrnrnrn rn rn org.hibernate.dialect.MySQLDialectrn rn rn jdbc:mysql://localhost:3306/db_testrn rn rootrn 425175rn rn com.mysql.jdbc.Driverrn rn rn com.mysql.jdbc.Driverrn rn rnrn rnrn[/code]rnrn映射文件在src目录下User.hbm.xml:rn[code=html]rnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn[/code]rnrn我想用Hibernate实现一个查询数据库里所有数据的功能,映射文件和实体类都是自动生成的,业务类是自己参照着数编写的。rn错误如下:rnlog4j:WARN No appenders <em>could</em> be found for logger (org.hibernate.cfg.Environment).rnlog4j:WARN Please initialize the log4j system properly.rnInitial SessionFactory creation failed.org.hibernate.InvalidMappingException: Could not parse mapping document from resource ./User.hbm.xmlrnjava.lang.ExceptionInInitializerErrorrn at com.mys.util.HibernateUtil.(HibernateUtil.java:32)rnCaused by: org.hibernate.InvalidMappingException: Could not parse mapping document from resource ./User.hbm.xmlrn at org.hibernate.cfg.Configuration.addResource(Configuration.java:569)rn at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1587)rn at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1555)rn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1534)rn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1508)rn at org.hibernate.cfg.Configuration.configure(Configuration.java:1428)rn at org.hibernate.cfg.Configuration.configure(Configuration.java:1414)rn at com.mys.util.HibernateUtil.(HibernateUtil.java:25)rnCaused by: org.hibernate.InvalidMappingException: Could not parse mapping document from input streamrn at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:508)rn at org.hibernate.cfg.Configuration.addResource(Configuration.java:566)rn ... 7 morernCaused by: org.dom4j.DocumentException: http://hibernate.org/dtd/hibernate-mapping-3.0.dtd%20 Nested exception: http://hibernate.org/dtd/hibernate-mapping-3.0.dtd%20rn at org.dom4j.io.SAXReader.read(SAXReader.java:484)rn at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:499)rn ... 8 morernException in thread "main"
怎么解决Could not initialize class org.apache.commons.beanutils.BeanUtils啊
java.lang.NoClassDefFoundError: Could not initialize <em>class</em> org.apache.commons.beanutils.BeanUtilsrn bbs.ahut.servlet.Login.doGet(Login.java:25)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:621)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:722
怎么解决java could not find the main class
程序没错,编译也能通过。但是在cmd运行时就出错。在eclipse和myeclipse下都没问题。我在网上查了一下,有人说是jdk和jvm的版本问题。我的java runtime 是1.6的啊。郁闷
could not find class javax.activation.DataHandler from file activation.jar
环境:JDK1.5,TOMCAT 5.5 ECLIPSE 环境rnrn问题:rnrn在页面 http://localhost:8081/axis/happyaxis.jsp 中来验证axis的安装,出现:rn"Error: <em>could</em> not find <em>class</em> javax.activation.DataHandler from file activation.jarrnAxis will not work."rn在网页 http://java.sun.com/products/javabeans/glasgow/jaf.html中下载activation.jarrn并放在目录 "D:\install\Tomcat 5.5\webapps\axis\WEB-INF\lib".中rn刷新 http://localhost:8081/axis/happyaxis.jsp仍然有上述错误.rn什么原因呢?
could not find main class ,program will exit"">出现"could not find main class ,program will exit"
这是在用JB9.0+WebLogic6.x时出现在的错误!rn请高手指点:这是那里不对头?rn配置还是程序本身有问题?rn但是java代码都编译通过了!rn
小白求解:Could not initialize class util.DBUtil
[img=https://img-bbs.csdn.net/upload/201606/04/1465053000_346919.png][/img][img=https://img-bbs.csdn.net/upload/201606/04/1465053033_274829.png][/img]rn[img=https://img-bbs.csdn.net/upload/201606/04/1465053304_658801.png][/img]rn[color=#FF0000]这是我的 DBUtil类,数据库是MySQL,链接和查数据测试的时候都可以,但是转发JSP就挂了[/color]rnpackage util;rnrnimport java.io.IOException;rnimport java.sql.Connection;rnimport java.sql.DriverManager;rnimport java.sql.SQLException;rnimport java.util.Properties;rnrnimport org.apache.commons.dbcp.BasicDataSource;rnrn/**rn * 该类用来管理连接rn * 数据库连接信息,保存在属性文件中rn * 使用连接池获取连接rn */rnpublic <em>class</em> DBUtil rn rn private static BasicDataSource ds;rn rn static rn try rn //加载属性文件数据rn Properties prop = new Properties();rn prop.loadrn (DBUtil.<em>class</em>.getClassLoader().rn getResourceAsStreamrn ("db.properties"));rn String driver<em>class</em> = prop.getProperty("jdbc.driver<em>class</em>");rn String url = prop.getProperty("jdbc.url");rn String user = prop.getProperty("jdbc.user");rn String password = prop.getProperty("jdbc.password");rn String strMaxActivern = prop.getProperty("dbcp.maxActive");rn String strInitSizern = prop.getProperty("dbcp.initSize");rn //实例化,并初始化连接池rn ds = new BasicDataSource();rn ds.setDriverClassName(driver<em>class</em>);rn ds.setUrl(url);rn ds.setUsername(user);rn ds.setPassword(password); rn ds.setMaxActivern (Integer.parseInt(strMaxActive)); rn ds.setInitialSizern (Integer.parseInt(strInitSize));rn rn catch (IOException e) rn e.printStackTrace();rn throw new RuntimeExceptionrn ("读取属性文件错误",e);rn rn rn rn //2、创建连接rn public static Connection getConnection() rn throws SQLExceptionrn return ds.getConnection();rn rn rn //3、归还连接rn public static void close(Connection conn)rn if(conn!=null)rn try rn conn.close();rn catch (SQLException e) rn e.printStackTrace();rn throw new RuntimeExceptionrn ("归还连接错误!",e);rn rn rn rn rn //测试rn public static void main(String[] args) rn throws SQLException rn Connection conn = getConnection();rn System.out.printlnrn (conn.getClass().getName());rn close(conn);rn rnrnrn
weblogic.jndi.WLInitialContextFactory和Could not find the main class错误
刚开始学习EJB。rn我的配置是:weblogic+jbuliderxrn下面是我在运行应用客户端的时候出现的错误:rnjavax.naming.NoInitialContextException: Cannot instantiate <em>class</em>: weblogic.jndi.WLInitialContextFactory. rnRoot exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactoryrn紧急!!rn我想应该是配置除了问题,但我已经把weblogic.jar放到JAVA_HOME\lib下面了。rnrnrn当我使用JBUILDERX运行的时候,又出现另外的错误:rn1。弹出一个名为‘Java Virtual Machine Launcher’,提示:Could not find the main <em>class</em>.Program will exit.rn2。同时弹出另一个名为‘Builder progress’,提示:rnErrors:0 warnings:1 Files:0rnRunning APPC on session.jarrn
求教 could not find the main class的问题!
我在eclipse中建了一个项目,又添加了一个类!明明有public static void main方法,但是运行时,就是报<em>could</em> not find the main <em>class</em>的错误!请高手指教!
hibernate不能初始化(java.lang.NoClassDefFoundError: Could not initialize class
最近从书上找了一个android工程,在调试服务端的时候出了点问题,会出现一个500错误,不知道是hibernate没配好呢还是mysql设置的有问题。rn关于操作:工程导入之后在myeclipse安装了tomcat插件点start之后就直接把工程给发布了,然后输入了一个客户端的请求url测试了一下,结果就500了。麻烦大家帮忙看一下吧。rnHTTP Status 500 -rnrntype Exception reportrnrnmessagernrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexceptionrnrnjava.lang.reflect.InvocationTargetExceptionrn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:597)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:279)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:163)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:249)rn org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:128)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)rn org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)rnroot causernrnjava.lang.NoClassDefFoundError: Could not initialize <em>class</em> com.aw.dao.HibernateUtilrn com.aw.dao.GoodsDAO.getGoodsByHql(GoodsDAO.java:25)rn com.aw.biz.GoodsBIZ.getGoodsPopList(GoodsBIZ.java:12)rn com.aw.action.GoodsAction.execute(GoodsAction.java:26)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:597)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:279)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:163)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:249)rn org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:128)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptorrn
Could not find a getter for extEmployee_no in class com.wangzhe.pojo.……
rnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrnprivate String employee_no; //员工工号rnprivate String employee_pswd; //员工密码rnprivate String ext_employee_no; //员工工号扩展rnprivate String rights; //员工权限值rn有get/set方法 rnrn求解
Could not find or load main class TestPanels.java
ubuntu下编译的java代码,能编译,但不能执行,java TestPanels之后,出现Could not find or load main <em>class</em> TestPanels.javarnrnrn//代码如下rn/////////////////////////////////////////////////////////////////////////////////////////////////////rn1 import java.awt.*;rn 2 import javax.swing.*;rn 3 rn 4 public <em>class</em> TestPanels extends JFrame rn 5 public TestPanels() rn 6 // Create panel p1 for the buttons and set GridLayourn 7 JPanel p1 = new JPanel();rn 8 p1.setLayout(new GridLayout(4, 3));rn 9 rn 10 // Add buttons to the panel rn 11 for (int i = 1; i 40L, 1171C 1,1 Allrn
Could not find a getter for tblJd in class org.zero.space.entity.TblFwxx
[color=#FF0000]一个项目的登陆功能,以前还可以来着,自打使用Hibernate的hbm.xml之后,就登陆上不去了,就抱这种错误[/color][code=Java]rnrnorg.hibernate.PropertyNotFoundException: Could not find a getter for tblJd in <em>class</em> org.zero.space.entity.TblFwxxrn at org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:282)rn at org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:275)rn at org.hibernate.mapping.Property.getGetter(Property.java:260)rn at org.hibernate.tuple.PojoEntityTuplizer.buildPropertyGetter(PojoEntityTuplizer.java:255)rn at org.hibernate.tuple.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:121)rn at org.hibernate.tuple.PojoEntityTuplizer.(PojoEntityTuplizer.java:55)rn at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64)rn at org.hibernate.tuple.EntityMetamodel.(EntityMetamodel.java:257)rn at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:412)rn at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:108)rn at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)rn at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:216)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)rn at org.zero.space.util.HibernateSessionFactory.(HibernateSessionFactory.java:31)rn at org.zero.space.dao.BaseHibernateDAO.getSession(BaseHibernateDAO.java:128)rn at org.zero.space.dao.BaseHibernateDAO.search(BaseHibernateDAO.java:110)rn at org.zero.space.dao.impl.UsersHibernateDAOImpl.validateLogin(UsersHibernateDAOImpl.java:29)rn at org.zero.space.biz.impl.UserBizImpl.login(UserBizImpl.java:25)rn at org.zero.space.action.LoginAction.execute(LoginAction.java:48)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)rn at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.zero.space.common.EncodingFilter.doFilter(EncodingFilter.java:28)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:619)rn%%%% Error Creating SessionFactory %%%%rnorg.hibernate.MappingException: Could not read mappings from resource: org/zero/space/entity/TblUser.hbm.xmlrn at org.hibernate.cfg.Configuration.addResource(Configuration.java:485)rn at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1465)rn at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1433)rn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1414)rn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1390)rn at org.hibernate.cfg.Configuration.configure(Configuration.java:1310)rn at org.zero.space.util.HibernateSessionFactory.rebuildSessionFactory(HibernateSessionFactory.java:69)rn at org.zero.space.util.HibernateSessionFactory.getSession(HibernateSessionFactory.java:53)rn at org.zero.space.dao.BaseHibernateDAO.getSession(BaseHibernateDAO.java:128)rn at org.zero.space.dao.BaseHibernateDAO.search(BaseHibernateDAO.java:110)rn at org.zero.space.dao.impl.UsersHibernateDAOImpl.validateLogin(UsersHibernateDAOImpl.java:29)rn at org.zero.space.biz.impl.UserBizImpl.login(UserBizImpl.java:25)rn at org.zero.space.action.LoginAction.execute(LoginAction.java:48)[/code]rnrnrnCould not find a getter for tblJd in <em>class</em> org.zero.space.entity.TblFwxxrn 这里TblFwxx类 和 TblJd 是 "多对一"的关系, 他说在TblFwxx 没有tblJd类的get() ,但是在我的TblFwxx类中的确存在tblJd 的get()rnrn[code=Java]public TblJd getJdid() rn return this.jdid;rn rnrn public void setJdid(TblJd jdid) rn this.jdid = jdid;rn [/code]rnrn
could not find the main class: options。 program will exit
启动时弹出<em>could</em> not find the main <em>class</em>: options。 program will exitrn然后是常见的JVM code=1错误。。。JDK正确rnJAVA控制台都有rn1.6的。。rn怎么办?rn谁知道?rn啊啊啊啊
运行jar包弹出 could not find the main class?
在Eclipse里面运行程序正常(只是提示log4j警告),但是导成jar包再运行就会弹出如题的错误,这是什么原因呢?是不是就是因为log4j警告的原因?
Could not find the main class Program will exit 解决方案
起初你或许会认为是一个莫名其妙的错误,因为代码根本一点问题的都没有,可运行期间总是报这个错,比较郁闷。rn出现Could not find the main <em>class</em>.program will exit和java.lang.UnsupportedClassVersionError 错误的原因,是因为我们使用高版本的JDK编译的Java <em>class</em>文件试图在较低版本的JVM上运行,所报的错误。rnrn“Could not find the main <em>class</em>. Program will exit.”rnI just installed the latest available Eclipse version (3.2 milestone 5) and <em>could</em>n’t run my ANT builds anymore. The error I got in the alert box was “Could not find the main <em>class</em>. Program will exit”rnrn根源分析:可能是在打开方式中的javaw版本过低。比如jdk1.5编译的<em>class</em>文件用1.4的javaw打开就会出现这个问题。rnrn[b]解决方法1[/b]:控制面板->文件夹选项->文件类型->JAR下面的按纽rn下面选open , 点右边的,修改javaw路径,如:"C:\Program Files\Java\jdk1.5.0_10\bin\javaw.exe" -jar "%1" "%*"rnrn[b]解决方法2[/b]:还有一种情况是:rnrn变量配的....(多了点...) rnrn就两个就够用了(或者一个...) rnrnJAVA_HOME=D:\jdk1.6 rnPATH=%JAVA_HOME%\bin; rnrn应该ok了 rn还有 你的 bin目录 一定要在 D:\jdk1.6 这个下面 rn如果还有别的目录 那么 把它加上... e.g. D:\jdk1.6\XXXXrnrn[b]解决方法3[/b]:在Eclipse窗口首选项Java编译器JDK一致性编辑器一致性级别,从5.0改到1.4就可以了。rnrn[b]=======我最终是重装了MyEclipse,OK了========[/b][color=#008000][/color]rnrnsun公司的观点rnrnCAUSE rnrnWJView.exe or Javaw.exe cannot find the program it is trying to run. rnrnrnSOLUTION rnrnIf this error occurs during startup, it is mostly likely caused by a spyware or adware program which is missing, corrupt, or partially deleted. rnrnrnRemove Spyware/Adware rnrnUsing your favorite search engine, search for "spyware removal utility" as your search phrase. This search will help you locate many free spyware removal utilities. rnrnNote: The Spyware Removal Utility can help you get rid of this error message partially. Any new spyware can get itself down<em>loaded</em> to your system later. To get rid of this problem completely, try the second option given below. rnrnrnRemove WJView entries from Startup rnrnWjview lets you view Windows based Java applications. You might receive an error message if Wjview attempts to start an application on your system that no longer exists. rnrnYou may need to modify the system configuration settings to completely get rid of the error. To do so, follow these steps: rnClick Start > Run. rnThe Run dialog box appears. rnType msconfig.exe. rnClick OK. rnThe System Configuration Utility dialog box appears. rnSelect the Startup tab. rnDeselect the WJView.exe and/or javaw.exe check boxes that are associated with this problem. rnClick OK. rnYou will be prompted to restart the computer. Restart the system to apply changes.
Spring错误,Could not instantiate bean class
在网页运行的时候出现的错误...为什么不能实例化beann在控制层中已经用annotation配置了的nStruts has detected an unhandled exception: nnMessages: Could not instantiate bean <em>class</em> [cn.insurance.view.action.InsuranceInfoAction]: Constructor threw exception; nested exception is java.lang.StackOverflowError nError creating bean with name 'insuranceInfoAction' defined in file [D:\Program Files\apache-tomcat-6.0.36\webapps\InsuranceRemind\WEB-INF\<em>class</em>es\cn\insurance\view\action\InsuranceInfoAction.<em>class</em>]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean <em>class</em> [cn.insurance.view.action.InsuranceInfoAction]: Constructor threw exception; nested exception is java.lang.StackOverflowError nUnable to instantiate Action, insuranceInfoAction, defined for 'insuranceInfoAction_uploadExcelUI' in namespace '/'Error creating bean with name 'insuranceInfoAction' defined in file [D:\Program Files\apache-tomcat-6.0.36\webapps\InsuranceRemind\WEB-INF\<em>class</em>es\cn\insurance\view\action\InsuranceInfoAction.<em>class</em>]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean <em>class</em> [cn.insurance.view.action.InsuranceInfoAction]: Constructor threw exception; nested exception is java.lang.StackOverflowError n nFile: org/springframework/beans/BeanUtils.java nLine number: 115 nnn--------------------------------------------------------------------------------nnStacktracesnUnable to instantiate Action, insuranceInfoAction, defined for 'insuranceInfoAction_uploadExcelUI' in namespace '/'Error creating bean with name 'insuranceInfoAction' defined in file [D:\Program Files\apache-tomcat-6.0.36\webapps\InsuranceRemind\WEB-INF\<em>class</em>es\cn\insurance\view\action\InsuranceInfoAction.<em>class</em>]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean <em>class</em> [cn.insurance.view.action.InsuranceInfoAction]: Constructor threw exception; nested exception is java.lang.StackOverflowError nn```n n```nStruts.xmlnn /WEB-INF/jsp/dateAction/uploadExcelUI.jspn n n insuranceInfoAction.java --控制层n @Component("insuranceInfoAction")n@Scope("prototype")npublic <em>class</em> InsuranceInfoAction extends ModelDriverBaseActionn n //文件上传--excle后缀.xlsn// public String addExcelData() n// n// n// return "addExcelData";n// n //上传页面-Exclen public String uploadExcelUI() n return "uploadExcelUI";n nnnnn
Could not initialize class magick.ImageInfo 哪里出错了
HTTP Status 500 - r r --------------------------------------------------------------------------------r r type Exception reportr r message r r description The server encountered an internal error () that prevented it from fulfilling this request.r r exception r r org.apache.jasper.JasperException: An exception occurred processing JSP page /Untitled-4.jsp at line 11r r 8: r 9: r 10: r 11: r 12: r 13: r r r Stacktrace:r org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:519)r org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:410)r org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)r org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)r javax.servlet.http.HttpServlet.service(HttpServlet.java:717)r r r root cause r r javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize <em>class</em> magick.ImageInfor org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:865)r org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:794)r org.apache.jsp.Untitled_002d4_jsp._jspService(Untitled_002d4_jsp.java:87)r org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)r javax.servlet.http.HttpServlet.service(HttpServlet.java:717)r org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)r org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)r org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)r javax.servlet.http.HttpServlet.service(HttpServlet.java:717)r r r root cause r r java.lang.NoClassDefFoundError: Could not initialize <em>class</em> magick.ImageInfor sasa.Small.resetsize(Small.java:14)r org.apache.jsp.Untitled_002d4_jsp._jspService(Untitled_002d4_jsp.java:78)r org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)r javax.servlet.http.HttpServlet.service(HttpServlet.java:717)r org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)r org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)r org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)r javax.servlet.http.HttpServlet.service(HttpServlet.java:717)r r r note The full stack trace of the root cause is available in the Apache Tomcat/6.0.30 logs.r r r --------------------------------------------------------------------------------r r Apache Tomcat/6.0.30
could not find the main class,program will exit
在写如下代码后运行时,出现了如图中的警告和控制台上的提示,求解!!!rnrn 首先,编译器的版本和JDK的版本是一致的;rnrn 然后,在MyEclipse中其他Project中的代码都能正常运行,唯独这个程序出现了问题;rnrn 最后,在命令行中却可以完美运行该程序,获得想要的结果,一度让我认为真的是编译器的版本和JDK的版本真的不一致,可在设置中版本确实是一致的,见鬼!折腾一下午了,求解!!!!!!!!!![img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/35.gif][/img]rnrn[img=http://img.my.csdn.net/uploads/201304/15/1366032062_4533.png][/img][img=http://img.my.csdn.net/uploads/201304/15/1366032070_7369.png][/img][img=http://img.my.csdn.net/uploads/201304/15/1366032077_8616.png][/img]
Could not find setter for CJXJHH on class com.pyjhkcxxZhcxObj
程序报了如下错误:检查了以下pyjhkcxxZhcxObj这个类,眼拙,实在没发现什么问题,贴出来,麻烦谁能解决以下额。rnrn[code=text]org.hibernate.PropertyNotFoundException: [u]Could not find setter for CJXJHH on <em>class</em> com.pyjhkcxxZhcxObj[/u][u][/u]rn at org.hibernate.property.ChainedPropertyAccessor.getSetter(ChainedPropertyAccessor.java:68)rn at org.hibernate.transform.AliasToBeanResultTransformer.transformTuple(AliasToBeanResultTransformer.java:87)rn at org.hibernate.hql.HolderInstantiator.instantiate(HolderInstantiator.java:92)rn at org.hibernate.loader.custom.CustomLoader.getResultList(CustomLoader.java:353)rn at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129)rn at org.hibernate.loader.Loader.list(Loader.java:2124)rn at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:312)rn at org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1723)rn at org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:165)rn at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:175)rn at com.baseDao.BaseHibernateDAO.pyjhkcxxZhcx(BaseHibernateDAO.java:246)rn at com.service.impl.JyPyjhkcxxServiceImpl.pyjhkcxxZhcx(JyPyjhkcxxServiceImpl.java:531)rn at com.controls.JyPyjhkcxxController.pyjhkcxxZhcx(JyPyjhkcxxController.java:402)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 flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:418)rn at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)rn at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1400)rn at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:1005)rn at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:103)rn at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)rn at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)rn at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)rn at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:166)rn at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291)rn at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:353)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rn at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879)rn at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:600)rn at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1703)rn at java.lang.Thread.run(Thread.java:619)rn[/code]rnrn类rn[code=java]rnrnpublic <em>class</em> pyjhkcxxZhcxObj rn rn private String cjxjhh="";rnrn ………………rnpublic String getCjxjhh() rn return cjxjhh;rn rn public void setCjxjhh(String cjxjhh) rn this.cjxjhh = cjxjhh;rn rn………………rnrn[/code]
Could not find the main class, 怎么回事儿?
eclipse用的Helios, jdk 1.6, jre 6.rn前提:程序在eclipse下运行一切正常,使用jmf编写的一个简单播放器经过eclipse的export后的jar文件也可以正常运行,但另外一个程序,是swt编写的小应用程序,export后的jar文件运行总是提示Could not find the main <em>class</em>。 用WINRAR打开rnjar文件,查看MANIFEST.MF文件如下(类位于默认包里):rn Manifest-Version: 1.0rn Main-Class: APAnalysern 程序中引用了swt的外部jar, 我在manifest文件中加上rnClass-Path: org.eclipse.swt.win32.win32.x86_3.6.1.v3655c.jarrn 保存后运行还是Could not find the main <em>class</em>.rnAPAnalyse 是包含main函数的类的名字,该程序在eclipse 下运行是没有问题的.rnmanifest.mf 文件里已经声明了main函数入口类,怎么还是找不到呢?rn这是怎么回事啊,整了一天了也没有弄明白,大家帮帮忙吧~
java编程出现Could not find the main class问题!!!
[b][b]本人刚刚接触java,写了一个helloworld程序,在DOS下运行时用javac编译通过,当用java命令运行时出现Could not find the main <em>class</em>,如下:rnD:\JavaTest>javac HelloWord.javarnrnD:\JavaTest>java HelloWordrnException in thread "main" java.lang.NoClassDefFoundError: HelloWordrnCaused by: java.lang.ClassNotFoundException: HelloWordrn at java.net.URLClassLoader$1.run(URLClassLoader.java:202)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:190)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:306)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:247)rnCould not find the main <em>class</em>: HelloWord. Program will exit.rnrn我的环境变量配置为:rnPATH D:\Java\JDK\bin;Java\jre6\binrnCLASSPATH D:\Java\JDK\lib\tools.jar;Java\jre6\lib\rt.jarrn请各位大虾指教,问题到底出现在哪呢?[/b]
Could not find the main class program will exit!
我以前建立的一个程序,可以运行,但我装了j2sdk1.4.2,再重新解压eclipse后运行却出现 <em>could</em>e not find the main <em>class</em> program will exit!的错误!在网上搜了很久都没找到解决的方法!是不是版本兼容的问题?请各位大虾帮帮忙!
Could not find the main class 遇到奇怪的问题!
我用hibernate操作数据库的一个小程序,在eclipse下编译运行都没有问题,但是在命令行下就是无法运行,提示找不到hibernate.cfg.xml文件,但是我明明把该文件放在了<em>class</em>path下,在new Configuration().configure("\hibernate.cfg.xml")这里总是提示找到不到。后来把\去掉,就可以在命令行下运行了。可是我用eclipse的Fetjar 打包后竟然不能运行,提示的却是Could not find the main <em>class</em>! 怎吗可能没有指定main呢?而且改用到的jar都已经打包,也放到<em>class</em>path里面了,java的jdk的lib里也放了所有的jar,但是就是只能在eclipse和命令行里运行,打成包就不行,是什么问题啊?高人能否指点一下?多谢了!!
出现了Could not find the main class的错误
我写了一个关于线程的java程序,出现了Could not find the main <em>class</em>的提示,错误如下java.lang.SecurityException: Prohibited package name: java.jionrn at java.lang.ClassLoader.preDefineClass(Unknown Source)rn at java.lang.ClassLoader.defineClass(Unknown Source)rn at java.security.SecureClassLoader.defineClass(Unknown Source)rn at java.net.URLClassLoader.defineClass(Unknown Source)rn at java.net.URLClassLoader.access$100(Unknown Source)rn at java.net.URLClassLoader$1.run(Unknown Source)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at java.lang.ClassLoader.loadClassInternal(Unknown Source)rnException in thread "main" ;rnrn我的源代码:package java.jion;rnrnrnpublic <em>class</em> Cooking rn public static void main(String argv[])rn Thread mother=new Thread(new MotherThread());rn mother.start();rn rnrnrnrnpackage java.jion;rnrnpublic <em>class</em> MotherThread implements Runnable rn public void run()rn System.out.println("妈妈准备煮饭");rn System.out.println("妈妈发现米酒用完了");rn System.out.println("妈妈叫儿子去买米酒");rn Thread son=new Thread(new SonThread());rn son.start();rn System.out.println("妈妈等待儿子把米酒买回来");rn try rn son.join();rn catch (InterruptedException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn System.out.println("妈妈开始煮饭");rn System.out.println("妈妈煮好饭了");rn rn/* public static void main(String args[])rn MotherThread mother=new MotherThread();rn mother.run();rn rn */rnpackage java.jion;rnrnpublic <em>class</em> SonThread implements Runnable rnrn public void run()rn System.out.println("儿子出去买米酒");rn System.out.println("儿子买东西回来需要五分钟");rn try rn for(int i=0;i);rn rnrn谁能帮我看看 是什么地方的问题
ejb问题:could not find the main class
我用的是borland enterprise server 5.1,按照书上在jbulider X 里配置好参数,然后创建了一个工程,在建立了一个session ejb,编译可以通过,配置运行方式为server,运行后提示java虚拟机:<em>could</em> not find the main <em>class</em>,我实在不知道哪里的错误,请高手一定帮帮忙!
Linux+Weblogic生成二维码Could not initialize class sun.awt.X11GraphicsEnvironment
linux系统下rnweblogic中间件rn通过Action类生成二维码报错,请问如何解决?求高手指教,扣扣475901214,邮箱alan_ren@126.comrn错误代码如下:rn rn
Could not find the main class: Program will exit
rnMyEclipse控制台报错rnrn[code=java]rnjava.lang.NoClassDefFoundError: com/unionpay/tms/server/collection/dao/ACCollectionDaoImplTestrnCaused by: java.lang.ClassNotFoundException: com.unionpay.tms.server.collection.dao.ACCollectionDaoImplTestrn at java.net.URLClassLoader$1.run(URLClassLoader.java:200)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:188)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:303)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:248)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)rn[/code]rn在工程中就新建了个普通的Java类,写了个main函数,运行后一直报错,并弹出Java Virtual Machine Launcher错误,各位大神帮忙看看。
eclipse编译时提示could not find main class
我用的是jdk6.0+eclipse3.2rn原来是正常的,但是前2天重装了系统后,运行以前正常的java代码时,eclipse弹出错误框<em>could</em> not find main <em>class</em>rn控制台显示rn[color=#FF0000]java.lang.UnsupportedClassVersionError: Bad version number in .<em>class</em> filern at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(Unknown Source)rn at java.security.SecureClassLoader.defineClass(Unknown Source)rn at java.net.URLClassLoader.defineClass(Unknown Source)rn at java.net.URLClassLoader.access$100(Unknown Source)rn at java.net.URLClassLoader$1.run(Unknown Source)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at java.lang.ClassLoader.loadClassInternal(Unknown Source)rnException in thread "main" [/color]rnrn请知道的告诉我该怎么解决谢谢rn
高手请进:Could not find the main class: org.tanukisoftware.wrapper.WrapperSimpleApp
STATUS | wrapper | 2011/01/16 11:16:39 | Wrapper Started as ConsolernSTATUS | wrapper | 2011/01/16 11:16:40 | Launching a JVM...rnINFO | jvm 1 | 2011/01/16 11:16:41 | java.lang.NoClassDefFoundError: org/tanukisoftware/wrapper/WrapperSimpleApprnINFO | jvm 1 | 2011/01/16 11:16:41 | Caused by: java.lang.ClassNotFoundException: org.tanukisoftware.wrapper.WrapperSimpleApprnINFO | jvm 1 | 2011/01/16 11:16:41 | at java.net.URLClassLoader$1.run(Unknown Source)rnINFO | jvm 1 | 2011/01/16 11:16:41 | at java.security.AccessController.doPrivileged(Native Method)rnINFO | jvm 1 | 2011/01/16 11:16:41 | at java.net.URLClassLoader.findClass(Unknown Source)rnINFO | jvm 1 | 2011/01/16 11:16:41 | at java.lang.ClassLoader.loadClass(Unknown Source)rnINFO | jvm 1 | 2011/01/16 11:16:41 | at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)rnINFO | jvm 1 | 2011/01/16 11:16:41 | at java.lang.ClassLoader.loadClass(Unknown Source)rnINFO | jvm 1 | 2011/01/16 11:16:41 | Could not find the main <em>class</em>: org.tanukisoftware.wrapper.WrapperSimpleApp. Program will exit.rnINFO | jvm 1 | 2011/01/16 11:16:41 | Exception in thread "main" rnERROR | wrapper | 2011/01/16 11:16:41 | JVM exited while loading the application.rnSTATUS | wrapper | 2011/01/16 11:16:46 | Launching a JVM...rnINFO | jvm 2 | 2011/01/16 11:16:46 | java.lang.NoClassDefFoundError: org/tanukisoftware/wrapper/WrapperSimpleApprnINFO | jvm 2 | 2011/01/16 11:16:46 | Caused by: java.lang.ClassNotFoundException: org.tanukisoftware.wrapper.WrapperSimpleApprnINFO | jvm 2 | 2011/01/16 11:16:46 | at java.net.URLClassLoader$1.run(Unknown Source)rnINFO | jvm 2 | 2011/01/16 11:16:46 | at java.security.AccessController.doPrivileged(Native Method)rnINFO | jvm 2 | 2011/01/16 11:16:46 | at java.net.URLClassLoader.findClass(Unknown Source)rnINFO | jvm 2 | 2011/01/16 11:16:46 | at java.lang.ClassLoader.loadClass(Unknown Source)rnINFO | jvm 2 | 2011/01/16 11:16:46 | at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)rnINFO | jvm 2 | 2011/01/16 11:16:46 | at java.lang.ClassLoader.loadClass(Unknown Source)rnINFO | jvm 2 | 2011/01/16 11:16:47 | Could not find the main <em>class</em>: org.tanukisoftware.wrapper.WrapperSimpleApp. Program will exit.rnINFO | jvm 2 | 2011/01/16 11:16:47 | Exception in thread "main" rnERROR | wrapper | 2011/01/16 11:16:47 | JVM exited while loading the application.rnSTATUS | wrapper | 2011/01/16 11:16:52 | Launching a JVM...rnINFO | jvm 3 | 2011/01/16 11:16:52 | java.lang.NoClassDefFoundError: org/tanukisoftware/wrapper/WrapperSimpleApprnINFO | jvm 3 | 2011/01/16 11:16:52 | Caused by: java.lang.ClassNotFoundException: org.tanukisoftware.wrapper.WrapperSimpleApprnINFO | jvm 3 | 2011/01/16 11:16:52 | at java.net.URLClassLoader$1.run(Unknown Source)rnINFO | jvm 3 | 2011/01/16 11:16:52 | at java.security.AccessController.doPrivileged(Native Method)rnINFO | jvm 3 | 2011/01/16 11:16:52 | at java.net.URLClassLoader.findClass(Unknown Source)rnINFO | jvm 3 | 2011/01/16 11:16:52 | at java.lang.ClassLoader.loadClass(Unknown Source)rnINFO | jvm 3 | 2011/01/16 11:16:52 | at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)rnINFO | jvm 3 | 2011/01/16 11:16:52 | at java.lang.ClassLoader.loadClass(Unknown Source)rnINFO | jvm 3 | 2011/01/16 11:16:52 | Could not find the main <em>class</em>: org.tanukisoftware.wrapper.WrapperSimpleApp. Program will exit.rnINFO | jvm 3 | 2011/01/16 11:16:52 | Exception in thread "main" rnERROR | wrapper | 2011/01/16 11:16:52 | JVM exited while loading the application.rnSTATUS | wrapper | 2011/01/16 11:16:57 | Launching a JVM...rnINFO | jvm 4 | 2011/01/16 11:16:57 | java.lang.NoClassDefFoundError: org/tanukisoftware/wrapper/WrapperSimpleApprnINFO | jvm 4 | 2011/01/16 11:16:57 | Caused by: java.lang.ClassNotFoundException: org.tanukisoftware.wrapper.WrapperSimpleApprnINFO | jvm 4 | 2011/01/16 11:16:57 | at java.net.URLClassLoader$1.run(Unknown Source)rnINFO | jvm 4 | 2011/01/16 11:16:57 | at java.security.AccessController.doPrivileged(Native Method)rnINFO | jvm 4 | 2011/01/16 11:16:57 | at java.net.URLClassLoader.findClass(Unknown Source)rnINFO | jvm 4 | 2011/01/16 11:16:57 | at java.lang.ClassLoader.loadClass(Unknown Source)rnINFO | jvm 4 | 2011/01/16 11:16:57 | at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)rnINFO | jvm 4 | 2011/01/16 11:16:57 | at java.lang.ClassLoader.loadClass(Unknown Source)rnINFO | jvm 4 | 2011/01/16 11:16:58 | Could not find the main <em>class</em>: org.tanukisoftware.wrapper.WrapperSimpleApp. Program will exit.rnINFO | jvm 4 | 2011/01/16 11:16:58 | Exception in thread "main" rnERROR | wrapper | 2011/01/16 11:16:58 | JVM exited while loading the application.rnSTATUS | wrapper | 2011/01/16 11:17:02 | Launching a JVM...rnINFO | jvm 5 | 2011/01/16 11:17:03 | java.lang.NoClassDefFoundError: org/tanukisoftware/wrapper/WrapperSimpleApprnINFO | jvm 5 | 2011/01/16 11:17:03 | Caused by: java.lang.ClassNotFoundException: org.tanukisoftware.wrapper.WrapperSimpleApprnINFO | jvm 5 | 2011/01/16 11:17:03 | at java.net.URLClassLoader$1.run(Unknown Source)rnINFO | jvm 5 | 2011/01/16 11:17:03 | at java.security.AccessController.doPrivileged(Native Method)rnINFO | jvm 5 | 2011/01/16 11:17:03 | at java.net.URLClassLoader.findClass(Unknown Source)rnINFO | jvm 5 | 2011/01/16 11:17:03 | at java.lang.ClassLoader.loadClass(Unknown Source)rnINFO | jvm 5 | 2011/01/16 11:17:03 | at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)rnINFO | jvm 5 | 2011/01/16 11:17:03 | at java.lang.ClassLoader.loadClass(Unknown Source)rnINFO | jvm 5 | 2011/01/16 11:17:03 | Could not find the main <em>class</em>: org.tanukisoftware.wrapper.WrapperSimpleApp. Program will exit.rnINFO | jvm 5 | 2011/01/16 11:17:03 | Exception in thread "main" rnERROR | wrapper | 2011/01/16 11:17:03 | JVM exited while loading the application.rnFATAL | wrapper | 2011/01/16 11:17:03 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.rnFATAL | wrapper | 2011/01/16 11:17:03 | There may be a configuration problem: please check the logs.rnrn是不是我的配ActiveMQ配置有问题呢······rn期待高手出现rn
Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster
Could not find or load main <em>class</em> org.apache.hadoop.mapreduce.v2.app.MRAppMasterrnrnPlease check whether your etc/hadoop/mapred-site.xml contains the below configuration:rnrn yarn.app.mapreduce.am.envrn HADOOP_MAPRED_HOME=$full path of your hadoop distribution directoryrnrnrn mapreduce.map.envrn HADOOP_MAPRED_HOME=$full path of your hadoop distribution directoryrnrnrn mapreduce.reduce.envrn HADOOP_MAPRED_HOME=$full path of your hadoop distribution directoryrnrnrnFor more detailed output, check the application tracking page: http://hdp001:8088/cluster/app/application_1526376633269_0001 Then click on links to logs of each attempt.rn. Failing the application.rnrnmapred-site.xml 不太会配置,希望大家帮忙解答。这个直接写和/etc/profile下的环境变量$HADOOP_HOME不行,直接写绝对路径/root/apps/hadoop3.0.1/也不行rnrnmapred-site.xml rnrn rn mapreduce.framework.namern yarnrn rn rn mapreduce.admin.user.envrn HADOOP_MAPRED_HOME=$HADOOP_HOMErn rn rn yarn.app.mapreduce.am.envrn HADOOP_MAPRED_HOME=$HADOOP_HOMErn rn
javah 出现Class could not be found错误
我按照sun文档上的例子写了一个HelloWorld.java文件,存放在d盘根目录下,并且编译成功,在rnd盘根目录下产生HelloWorld.<em>class</em>文件,然后我在d盘根目录下运行javah -jni HelloWorld,却出现了“Error:Class HelloWorld <em>could</em> not be found”的错误。我实在是不知道什么问题,因为这一切都是按照sun的tutorial文档做的,但是就是没有产生HelloWorld.h,还出现上面的那个错误。rnHelloWorld.java:rn<em>class</em> HelloWorldrnrn public native void displayHelloWorld();rn staticrn rn System.loadLibrary("hello");rn rn rn public static void main(String[] args)rn rn new HelloWorld().displayHelloWorld();rn rnrnrnrnrn我在cmd下运行命令为:rnD:\>javah -jni HelloWorldrnrnrnrn我的jdk为1.4.2rnrnrnrn谁能帮我解决200分都给他!!!!!!!!!
错误提示“Could not find class 'android.graphics.drawable.RippleDrawable”是怎么回事
用的是 android studio。rn之前好好的,整改了一下布局,添加了一些逻辑后,实机测试就突然报错了。rn表现为调试时无法进入程序,手机界面黑色白色背景交替,然后直接自动关闭调试。rn错误提示为:rnCould not find <em>class</em> 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRenderingrnA/libc: Fatal signal 11 (SIGSEGV) at 0xbe8a0e84 (code=2), thread 3052 (y.webscreenshot)rnrn这个到底什么情况。很苦恼,我想知道问题出在哪。
急问 Could not initialize class的错误
运行客户端,出现如下提示:rnorg.apache.axis2.AxisFault: Could not initialize <em>class</em> com.test.RayDataSourcern at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)rn at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)rn at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)rn at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)rn at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)rn at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:548)rn at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)rn at com.raymond.axis2.client.SendClient.upload(SendClient.java:89)rn at com.raymond.axis2.client.SendClient.main(SendClient.java:285)rnException in thread "main" java.lang.NullPointerExceptionrn at com.raymond.axis2.client.SendFaxClient.main(SendFaxClient.java:293)rnrn请问,这个应该怎么解决,谢谢。
android XML页面出现the following class could .......
the following <em>class</em> <em>could</em> not found: corners,shape,solid nn这个要这么解决啊???
Eclipse: could not find the main class program will exit
我用的是Myeclipse6.5 JDK1.5.0_05 我按照网上的办法将window->preferences->java->compiler都改成了5.0 可是还是出现<em>could</em> not find the main <em>class</em> program will exit!rnps:前天这么改的好用了 今天就不行了 其他web程序运行正常 只是在运行java小程序时出现(做练习那样的小程序)
帮帮忙解决Could not initialize class org.apache.commons.beanutils.BeanUtils
我在做一个小论坛,在运行时就报错,其代码如下:rn2011-4-5 11:54:35 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet [Register] in context with path [/bbs] threw exception [Servlet execution threw an exception] with root causernjava.lang.NoClassDefFoundError: Could not initialize <em>class</em> org.apache.commons.beanutils.BeanUtilsrn at bbs.ahut.servlet.Register.doGet(Register.java:24)rn at bbs.ahut.servlet.Register.doPost(Register.java:47)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:383)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:619)rn请高手帮帮了,我是刚学菜鸟一个啊。
Could not initialize class org.apache.axis.client.AxisClient type Exception repo
项目lib里面已经有了axis这个jar包了 为什么还报错??rnrnHTTP Status 500 - javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize <em>class</em> org.apache.axis.client.AxisClientrntype Exception reportrnrnmessage javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize <em>class</em> org.apache.axis.client.AxisClientrnrndescription The server encountered an internal error that prevented it from fulfilling this request.rnrnexceptionrnrnorg.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize <em>class</em> org.apache.axis.client.AxisClientrn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:113)rnroot causernrnjavax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize <em>class</em> org.apache.axis.client.AxisClientrn org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:905)rn org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:834)rn org.apache.jsp.jsp.login_jsp._jspService(login_jsp.java:245)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:113)rnroot causernrnjava.lang.NoClassDefFoundError: Could not initialize <em>class</em> org.apache.axis.client.AxisClientrn org.apache.axis.client.Service.getAxisClient(Service.java:110)rn org.apache.axis.client.Service.(Service.java:119)rn com.css.court.hyqd.sso.SSOServer.getSSOKey(SSOServer.java:24)rn org.apache.jsp.jsp.login_jsp._jspService(login_jsp.java:75)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:113)rnnote The full stack trace of the root cause is available in the Apache Tomcat/8.0.14 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/8.0.14
org.hibernate.PropertyNotFoundException: Could not find a getter for id in class
这是报错的[img=https://img-bbs.csdn.net/upload/201408/12/1407825214_220604.jpg][/img]rnrn[img=https://img-bbs.csdn.net/upload/201408/12/1407825260_870875.jpg][/img]rnrnrn[img=https://img-bbs.csdn.net/upload/201408/12/1407825278_345768.jpg][/img]rnrn[img=https://img-bbs.csdn.net/upload/201408/12/1407825287_256811.jpg][/img]rnrnrn请教大神们,哪有错啊
Could not find the mian class:NewJFrame,project will exit
各位大侠,我用Jsmooth工具把NewJFrame.jar转换成NewJFrame.exe,客户端已经安装了JER,但运行时老是提示:Could not find the main <em>class</em>:NewJFrame, project will exit。应该如何解决?在线等待中....
使用jacob报 Could not initialize class com.jacob.com.ComThread
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize <em>class</em> com.jacob.com.ComThreadrn我在tomcat,system32和jdk中都引入jacob的dll文件了,为什么还报错呢?请大侠指点
导入项目报错Could not initialize class com.mchange.v2.c3p0.ComboPooledDataSource
我又来了。。。rn然后导入的还是那个maven项目rn然后测试用例的时候报错:rnCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ReadDataSource' defined in <em>class</em> path resource [mysql-datasource-bean-test.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize <em>class</em> com.mchange.v2.c3p0.ComboPooledDataSourcern at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1039) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:985) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:934) ~[spring-context-3.2.12.RELEASE.jar:3.2.12.RELEASE]rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) ~[spring-context-3.2.12.RELEASE.jar:3.2.12.RELEASE]rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:120) ~[spring-test-3.2.12.RELEASE.jar:3.2.12.RELEASE]rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60) ~[spring-test-3.2.12.RELEASE.jar:3.2.12.RELEASE]rn at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:102) ~[spring-test-3.2.12.RELEASE.jar:3.2.12.RELEASE]rn at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:246) ~[spring-test-3.2.12.RELEASE.jar:3.2.12.RELEASE]rn at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContextInternal(CacheAwareContextLoaderDelegate.java:69) ~[spring-test-3.2.12.RELEASE.jar:3.2.12.RELEASE]rn at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:95) ~[spring-test-3.2.12.RELEASE.jar:3.2.12.RELEASE]rn ... 25 common frames omittedrnrn网上说Could not initialize <em>class</em> com.mchange.v2.c3p0.ComboPooledDataSource这个错误是因为缺少jar包c3p0-0.9.1.2.jarrn但是我找了一下build path里面的maven dependencies是有这个jar包的rn那么问题来了,应该怎么改错呢~
JMX:The MBean class could not be loaded...救命
我调试Jmx的自带例子总是报错,如下:rnrnjavax.management.ReflectionException: The MBean <em>class</em> <em>could</em> not be <em>loaded</em> by the default loader repositoryrn !!! Could not create the SimpleStandard MBean !!!rn at com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.findClassWithDefaultLoaderRepository(MBeanInstantiatorImpl.java:69)rn at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(DefaultMBeanServerInterceptor.java:278)rn at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(DefaultMBeanServerInterceptor.java:218)rn at com.sun.jmx.mbeanserver.JmxMBeanServer.createMBean(JmxMBeanServer.java:309)rn at basic.Server.createSimpleMBean(Server.java:127)rn at basic.Server.main(Server.java:56)rnCaused by: java.lang.ClassNotFoundException: SimpleStandardrn at com.sun.jmx.mbeanserver.ClassLoaderRepositorySupport.loadClass(ClassLoaderRepositorySupport.java:217)rn at com.sun.jmx.mbeanserver.ClassLoaderRepositorySupport.loadClass(ClassLoaderRepositorySupport.java:140)rnrn好象是运行时<em>class</em>loader的问题...我用的eclipsernrn不知有大哥遇到过类似问题?rn
Could not load TagExtraInfo class org.apache.struts.taglib.html.MessagesTei。急!!!
建一个新的struts时,编译报入下错:rn"test.jsp": Could not load TagExtraInfo <em>class</em> org.apache.struts.taglib.html.MessagesTei: org.apache.struts.taglib.html.MessagesTeirnrn是哪里出了问题,请各位指教
Could not find the main class:. Program will exit.
打包后的jar文件打开提示这个:Could not find the main <em>class</em>: MainFace. Program will exit.rn谁能告诉我为什么?rn<em>class</em> 文件目录是:rnMainFace.<em>class</em>rnPlayJPanel.<em>class</em>rnThreedJPanel.<em>class</em>rnVertex.<em>class</em>rnBezierBoard.<em>class</em>rnDrawPoints.<em>class</em>rnGUI.<em>class</em>rnGUI_board_mouseAdapter.<em>class</em>rnGUI_board_mouseMotionAdapter.<em>class</em>rn
Error: Could not find or load main class HBase_c2java
HBase linux下java操作。rn安装的是JDK1.7.0_65 安装目录rn[code=c]rn[root@wangxin jdk1.7.0_65]# pwdrn/usr/java/jdk1.7.0_65rn[/code]rn环境配置rn[code=c]rn[root@wangxin jdk1.7.0_65]# cat /etc/profilernexport JAVA_HOME=/usr/java/jdk1.7.0_65rnexport JAR_HOME=/usr/java/jdk1.7.0_65/jrernexport CLASSPATH=.:$JAVA_HOME/lib:$JAR_HOME/lib:$CLASSPATHrnexport PATH=$JAVA_HOME/bin:$JAR_HOME/bin:$PATHrnrn[root@wangxin jdk1.7.0_65]# java -versionrnjava version "1.7.0_65"rnJava(TM) SE Runtime Environment (build 1.7.0_65-b17)rnJava HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)rn[/code]rnrnrnHBase 安装的是 hbase-0.98.5-hadoop2-bin.tar.gz 版本rn安装目录是rn[code=c]rn[root@wangxin hbase]# pwdrn/usr/local/hbasern[root@wangxin hbase]# lsrnbin CHANGES.txt conf docs hbase-webapps lib LICENSE.txt logs NOTICE.txt README.txtrn[/code]rn仅修改 conf/hbase-site.xmlrn[code=text]rnrn rn hbase.rootdirrn file:///hbase_log/tmp/hbasern rn rn hbase.zookeeper.property.dataDirrn /hbase_log/tmp/zookeeperrn rn[/code]rn通关脚本启动rn[code=c]rn[root@wangxin /]# start-hbase.sh rnstarting master, logging to /usr/local/hbase/logs/hbase-root-master-wangxin.outrn[root@wangxin /]# hbase shell rn2014-08-27 06:54:52,498 INFO [main] Configuration.deprecation: hadoop.native.lib is deprecated. Instead, use io.native.lib.availablernHBase Shell; enter 'help' for list of supported commands.rnType "exit" to leave the HBase ShellrnVersion 0.98.5-hadoop2, rUnknown, Mon Aug 4 23:58:06 PDT 2014rnrnhbase(main):001:0> rn[/code]rn在这里可以进行一系列操作,说明HBase安装是没有问题的。也可以通过60010端口在浏览器打开。rnrn现在写一段java代码,通过java api去操作HBasern[code=java]rnimport java.io.IOException;rnrnimport org.apache.hadoop.conf.Configuration;rnimport org.apache.hadoop.hbase.HBaseConfiguration;rnimport org.apache.hadoop.hbase.HColumnDescriptor;rnimport org.apache.hadoop.hbase.HTableDescriptor;rnimport org.apache.hadoop.hbase.KeyValue;rnimport org.apache.hadoop.hbase.client.Delete;rnimport org.apache.hadoop.hbase.client.Get;rnimport org.apache.hadoop.hbase.client.HBaseAdmin;rnimport org.apache.hadoop.hbase.client.HTable;rnimport org.apache.hadoop.hbase.client.HTablePool;rnimport org.apache.hadoop.hbase.client.Put;rnimport org.apache.hadoop.hbase.client.Result;rnimport org.apache.hadoop.hbase.client.ResultScanner;rnimport org.apache.hadoop.hbase.client.Scan;rnimport org.apache.hadoop.hbase.util.Bytes;rn rnrnpublic <em>class</em> HBase_c2javarn rn static HBaseConfiguration cfg = null;rn static rn Configuration configuration = new Configuration();rn cfg = new HBaseConfiguration(configuration); rn rnrn rn public static void createTable(String tableName, String columnFaily)throws Exceptionrn HBaseAdmin admin = new HBaseAdmin(cfg);rn if(admin.tableExists(tableName))rn System.out.println(tableName + "It's not existed!");rn System.exit(0);rn rn elsern HTableDescriptor tableDesc = new HTableDescriptor(tableName);rn tableDesc.addFamily(new HColumnDescriptor(columnFaily+":"));rn System.out.println("create table success!");rn rn rn public static void main(String[] args)rn tryrn String tableName = "student";rn HBase_c2java.createTable(tableName, "c1");rn catch(Exception e)rn e.printStackTrace();rn rn rnrn[/code]rn在安装的hbse路径的lib下有很多.jar包rn[code=text]rn[root@wangxin lib]# lsrnactivation-1.1.jar hadoop-mapreduce-client-core-2.2.0.jar javax.servlet-api-3.0.1.jarrnaopalliance-1.0.jar hadoop-mapreduce-client-jobclient-2.2.0.jar jaxb-api-2.2.2.jarrnasm-3.1.jar hadoop-mapreduce-client-shuffle-2.2.0.jar jaxb-impl-2.2.3-1.jarrnavro-1.7.4.jar hadoop-yarn-api-2.2.0.jar jersey-client-1.9.jarrncommons-beanutils-1.7.0.jar hadoop-yarn-client-2.2.0.jar jersey-core-1.8.jarrncommons-beanutils-core-1.8.0.jar hadoop-yarn-common-2.2.0.jar jersey-grizzly2-1.9.jarrncommons-cli-1.2.jar hadoop-yarn-server-common-2.2.0.jar jersey-guice-1.9.jarrncommons-codec-1.7.jar hadoop-yarn-server-nodemanager-2.2.0.jar jersey-json-1.8.jarrncommons-collections-3.2.1.jar hamcrest-core-1.3.jar jersey-server-1.8.jarrncommons-compress-1.4.1.jar hbase-client-0.98.5-hadoop2.jar jersey-test-framework-core-1.9.jarrncommons-configuration-1.6.jar hbase-common-0.98.5-hadoop2.jar jersey-test-framework-grizzly2-1.9.jarrncommons-daemon-1.0.13.jar hbase-common-0.98.5-hadoop2-tests.jar jets3t-0.6.1.jarrncommons-digester-1.8.jar hbase-examples-0.98.5-hadoop2.jar jettison-1.3.1.jarrncommons-el-1.0.jar hbase-hadoop2-compat-0.98.5-hadoop2.jar jetty-6.1.26.jarrncommons-httpclient-3.1.jar hbase-hadoop-compat-0.98.5-hadoop2.jar jetty-sslengine-6.1.26.jarrncommons-io-2.4.jar hbase-it-0.98.5-hadoop2.jar jetty-util-6.1.26.jarrncommons-lang-2.6.jar hbase-it-0.98.5-hadoop2-tests.jar jruby-complete-1.6.8.jarrncommons-logging-1.1.1.jar hbase-prefix-tree-0.98.5-hadoop2.jar jsch-0.1.42.jarrncommons-math-2.1.jar hbase-protocol-0.98.5-hadoop2.jar jsp-2.1-6.1.14.jarrncommons-net-3.1.jar hbase-server-0.98.5-hadoop2.jar jsp-api-2.1-6.1.14.jarrnfindbugs-annotations-1.3.9-1.jar hbase-server-0.98.5-hadoop2-tests.jar jsr305-1.3.9.jarrngmbal-api-only-3.0.0-b023.jar hbase-shell-0.98.5-hadoop2.jar junit-4.11.jarrngrizzly-framework-2.1.2.jar hbase-testing-util-0.98.5-hadoop2.jar libthrift-0.9.0.jarrngrizzly-http-2.1.2.jar hbase-thrift-0.98.5-hadoop2.jar log4j-1.2.17.jarrngrizzly-http-server-2.1.2.jar high-scale-lib-1.1.1.jar management-api-3.0.0-b012.jarrngrizzly-http-servlet-2.1.2.jar htrace-core-2.04.jar metrics-core-2.2.0.jarrngrizzly-rcm-2.1.2.jar httpclient-4.1.3.jar netty-3.6.6.Final.jarrnguava-12.0.1.jar httpcore-4.1.3.jar paranamer-2.3.jarrnguice-3.0.jar jackson-core-asl-1.8.8.jar protobuf-java-2.5.0.jarrnguice-servlet-3.0.jar jackson-jaxrs-1.8.8.jar rubyrnhadoop-annotations-2.2.0.jar jackson-mapper-asl-1.8.8.jar servlet-api-2.5-6.1.14.jarrnhadoop-auth-2.2.0.jar jackson-xc-1.8.8.jar slf4j-api-1.6.4.jarrnhadoop-client-2.2.0.jar jamon-runtime-2.3.1.jar slf4j-log4j12-1.6.4.jarrnhadoop-common-2.2.0.jar jasper-compiler-5.5.23.jar snappy-java-1.0.4.1.jarrnhadoop-hdfs-2.2.0.jar jasper-runtime-5.5.23.jar xmlenc-0.52.jarrnhadoop-mapreduce-client-app-2.2.0.jar javax.inject-1.jar xz-1.0.jarrnhadoop-mapreduce-client-common-2.2.0.jar javax.servlet-3.1.jar zookeeper-3.4.6.jarrn[/code]rnrn使用javac编译rn[code=c]rn[root@wangxin test]# javac -cp /usr/local/hbase/lib/hadoop-common-2.2.0.jar:/usr/local/hbase/lib/hbase-common-0.98.5-hadoop2.jar:/usr/local/hbase/lib/hbase-client-0.98.5-hadoop2.jar HBase_c2java.javarnNote: HBase_c2java.java uses or overrides a deprecated API.rnNote: Recompile with -Xlint:deprecation for details.rn[/code]rn有两个警告。。这个怎么可以处理掉?rn运行rn[code=c]rn[root@wangxin test]# java -cp /usr/local/hbase/lib/hadoop-common-2.2.0.jar:/usr/local/hbase/lib/hbase-common-0.98.5-hadoop2.jar:/usr/local/hbase/lib/hbase-client-0.98.5-hadoop2.jar HBase_c2java rnError: Could not find or load main <em>class</em> HBase_c2javarn[/code]rn这里为什么找不到主类?rn.java 和.<em>class</em>在同一目录下,这个目录下没有其他文件。
Could not find a getter for subjectId in class com.mon.po.Subject
我已经要疯了!!!!!!!!!!!!!!!!!!!!!!!rn[code=text]rn%%%% Error Creating SessionFactory %%%%rnorg.hibernate.PropertyNotFoundException: Could not find a getter for subjectId in <em>class</em> com.mon.po.Subjectrn at org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:306)rn at org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:299)rn at org.hibernate.tuple.PropertyFactory.getGetter(PropertyFactory.java:191)rn at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:67)rn at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:136)rnrn at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:456)rn at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:131)rn at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)rn at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:267)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)rn at com.mon.hibernate.HibernateSessionFactory.(HibernateSessionFactory.java:31)rnrn at com.mon.dao.StudentDaoImpl.findStudentByID(StudentDaoImpl.java:48)rn at com.mon.action.LoginAction.execute(LoginAction.java:42)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:601)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452)rnrn at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:254)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rnrn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:133)rnrn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rnrn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)rnrn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rnrn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:142)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:166)rnrn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rnrn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:190)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:485)rnrn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)rnrn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)rnrn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)rn at java.lang.Thread.run(Thread.java:722)[/code]rnrn[code=java]rnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn[/code]rnrn[code=java]rnpackage com.mon.po;rnrnpublic <em>class</em> Student rn private String studentId;rn private String password;rn private String studentName;rn private int result;rn private String s<em>class</em>;rnrn public String getStudentId() rn return studentId;rn rnrn public void setStudentId(String studentId) rn this.studentId = studentId;rn rnrn public String getPassword() rn return password;rn rnrn public void setPassword(String password) rn this.password = password;rn rnrn public String getStudentName() rn return studentName;rn rnrn public void setStudentName(String studentName) rn this.studentName = studentName;rn rnrn public int getResult() rn return result;rn rnrn public void setResult(int result) rn this.result = result;rn rnrn public String getS<em>class</em>() rn return s<em>class</em>;rn rnrn public void setS<em>class</em>(String s<em>class</em>) rn this.s<em>class</em> = s<em>class</em>;rn rnrnrn[/code]
Android程序员指南[2]下载
Android程序员指南 。入门基础,新手必备! 相关下载链接:[url=//download.csdn.net/download/i888888o/3394528?utm_source=bbsseo]//download.csdn.net/download/i888888o/3394528?utm_source=bbsseo[/url]
HM4.0——hevc测试代码最新版本下载
最新的hevc测试代码,希望能对研究视频编码的同志有所帮助 相关下载链接:[url=//download.csdn.net/download/lth105/3666729?utm_source=bbsseo]//download.csdn.net/download/lth105/3666729?utm_source=bbsseo[/url]
破解路由器下载
BT4破解路由器wep密码格式,希望与各位交流一下,共同进步。 相关下载链接:[url=//download.csdn.net/download/lu_rong_rong_ox/5068800?utm_source=bbsseo]//download.csdn.net/download/lu_rong_rong_ox/5068800?utm_source=bbsseo[/url]
相关热词 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图 c# 验证码图片生成类 c# 再次尝试 连接失败 c#开发编写规范 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数
我们是很有底线的