有一个问题请问怎么解决:Could not initialize class org.apache.http.conn.ssl.SSLConnectionSoc [问题点数:50分]

Bbs1
本版专家分:0
结帖率 0%
Bbs5
本版专家分:4911
Bbs1
本版专家分:10
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:32
Bbs1
本版专家分:0
Bbs1
本版专家分:55
Bbs1
本版专家分:0
tomcat运行出错,请问这个问题怎么解决
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler process 严重: null java.lang.NoClassDefFoundError: Could not <em>initialize</em> <em>class</em> org.apache.tomcat.util.buf.ByteChunk at org.apache.tomcat.ut
[053] 微信公众平台开发教程第23篇-SAE不支持XStream框架的解决方案
<em>问题</em>描述 最近几天,突然有不少网友反应,柳峰博客中的微信公众平台开发代码在SAE上运行会报错。以前也有一些初学者质疑过我博客中的代码是否能正常运行,最后都被我一一证明是由于他们的不理解和粗心导致,但这一次短短几天就有很多人反应同样的<em>问题</em>,这就引起了我的足够重视。对于这种“同样的代码以前可以正常运行,现在却不能运行”的<em>问题</em>,我猜测可能是程序运行环境发生了某种变化,应该是SAE近期做了什么更新导致的。
linux+tomcat+jdk环境下图片验证码无法显示
一、 由于实际所需,在原先系统基础上需要再配置一台服务器作为业务系统,系统环境是linux+tomcat,根据原先的配置情况,将linux系统、tomcat、JDK等环境都安装配置完成,然后把应用程序部署到了tomcat中,但启动后却发现图片验证码无法显示。检查了所有配置和原服务器都是一样的,在catalina.sh中也设置 JAVA_OPTS='-Djava.awt.headless=
Jacob组件无法初始化问题
我用的是Jacob-1.9.jar,操作系统是32位,运行打开本地Excel文件时报错, java.lang.NoClassDefFoundError: Could not <em>initialize</em> <em>class</em> com.jacob.com.ComThread 经排查,是因为未将jacob.dll拷贝至%JAVA_HOME%\jre\bin目录所致。 另外,C:\Windows\System32目
.SSLConnectionSocketFactory运行找不到
-
Java Code Examples for org.apache.http.conn.ssl.AllowAllHostnameVerifier
Example 1 Project: janbanery   File: AndroidCompatibleRestClient.java View source code 6 votes public DefaultHttpClient getClient() { DefaultHttpClient ret;
http与https创建CloseableHttpClient
import java.io.IOException; import java.io.InterruptedIOException; import java.net.URL; import java.net.UnknownHostException; import java.security.cert.CertificateException; import java.security.cert...
Maven依赖冲突之httpclient.jar包冲突异常分析
pom中指定httpclient-4.4.jar,但实际打包后加载的是httpclient-4.3.6.jar,后来发现是pom中配置的打包插件maven-assembly-plugin版本过低导致的。
NoSuchMethodError: org.apache.http.conn.ssl.SSLConnectionSocketFactory(httpclient版本过低)
最近在用阿里云的对象存储 OSS功能时遇到了这么<em>一个</em>错误,其实只要是运用较低版本的 httpclient jar包时都有可能会碰到类似的错误(之前在用互亿无线的短信接口时就遇到过差不多的错误);目前的<em>解决</em>方式就是换成较高版本的jar包,网上有<em>一个</em><em>解决</em>方案是就是修改pom httpclient配置,并且声明最好是4.5.2及以上的版本; &amp;lt;dependency&amp;gt; &amp;lt;grou...
工作中遇到的问题解决办法8(could not initialize a collection的问题
07年6月8日(1)<em>could</em> not <em>initialize</em> a collection的<em>问题</em>已经<em>解决</em>这几天很郁闷,一直在为这个<em>问题</em>苦恼~代码也看过了,配置文件也都没有错.在百度GOOGLE上泡了几天,虽然也有出现同样的<em>问题</em>,在<em>问题</em>的最后都没有回复的答案,最后都是些已经沉得不能再沉的死帖啦!今天幸而把该<em>问题</em><em>解决</em>,目的在于希望以后碰到这类<em>问题</em>的朋友能尽快的找到<em>问题</em>的答案,不至于再像我这般苦恼而
造成java.lang.NoClassDefFoundError错误的原因及解决办法
1、项目依赖的jar包未全部导入; 如:java.lang.NoClassDefFoundError: Could not <em>initialize</em> <em>class</em> com.esms.common.util.XmlUtil,当你去查这个类的时候发现这个类是存在,之所以抱着个错是 因为在这个类里面的方法引用了其他jar包中的类的方法,而这个被引用的这个jar包刚好缺失,所以抛出这个错。 <em>解决</em>办法:一层
gentoo下 JAVA生成图片的问题 以及JFreeChart的图片问题
===============================gentoo(linux)系统下图片<em>问题</em> 验证码图片<em>问题</em>或者是说采用以下方案生成图片的<em>问题</em> {code} // 创建内存图象并获得其图形上下文 final BufferedImage image = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_RGB); ...
Kafka维护问题总结
原文地址:https://my.oschina.net/u/1169607/blog/353730 1 Kafka操作日志的清理方法 Kafka0.8版本长时间运行过程中,在kafka_2.8.0-0.8.0/logs目录下产生了大量的kafka-request.log.*和server.log.*文件,其中*代表日期和时间,比如kafka-request.log.2014-12-08
hbase常见问题解决方案(二)
hbase常见<em>问题</em>总结二 之前介绍了工作中遇到的一些比较基础的<em>问题</em>,下面介绍一些看起来没有那么简单的<em>问题</em> 1. 类找不见的<em>问题</em>!(自己写的类找不见的<em>问题</em>!) 出现该<em>问题</em>的情形: hbase和hadoop的hdfs,mapreduce整合使用的时候: 18/04/16 18:25:06 INFO mapreduce.JobSubmitter: Cleaning up the stag...
Could not initialize class util.HibernateUtil ,servlet用hibernate报错
Could not <em>initialize</em> <em>class</em> HibernateUtil Could not <em>initialize</em> <em>class</em> org.hibernate.cfg.Configuration 出现Could not <em>initialize</em> <em>class</em> HibernateUtil
小白求解:Could not initialize class util.DBUtil
这是我的 DBUtil类,数据库是MySQL,链接和查数据测试的时候都可以,但是转发JSP就挂了 package util; import java.io.IOException; import j
java.lang.NoClassDefFoundError: Could not initialize class com.demo.jdbc.utils.MyJdbcUtils
jdbc编写工具类的过程中测试失败, 出现如下错误:   原因:初始化的过程中执行静态代码块的过程中出现错误, 也就是说, 加载配置文件错误: 没有加载到指定路径的配置文件.   我的MyJdbcUtils和db.properties在同<em>一个</em>目录下而读取配置文件时,代码为 InputStream in = MyJdbcUtils.<em>class</em>.getClassLoader().getR
关于在java6中使用XFire时碰到的一个问题Could not initialize Service
在<em>一个</em>采用了XFire作为WebService框架Web项目中,添加由JDK1.6 wsimport命令生成的<em>一个</em>WebService客户端调用,在客户端调用时出现了如下<em>问题</em> log4j:WARN No appenders <em>could</em> be found for logger (org.codehaus.xfire.jaxws.Provider). log4j:WARN Please i
zeppelin使用中的问题汇总
1、使用zeppelin 0.6.2的spark interpreter报错报错:java.lang.NoClassDefFoundError: Could not <em>initialize</em> <em>class</em> org.apache.spark.rdd.RDDOperationScope$ Interpreter output:com.fasterxml.jackson.databind.JsonMapping
使用JDBC出现NoClassDefFoundError异常的解决方法
今天在学习JDBC的过程中,运行<em>一个</em>JDBC的Java时报错,错误如下: Exception in thread "main" java.lang.NoClassDefFoundError: Could not <em>initialize</em> <em>class</em> me.gacl.utils.JdbcUtils at me.gacl.demo.Test.main(Test.java:30) 查了一下,这个异
视频截图-javacv
获取视频截图--javacv之前在相关文章评论过,有人问我当中遇到的<em>问题</em>,所以写出来maven依赖&amp;lt;dependency&amp;gt; &amp;lt;groupId&amp;gt;org.bytedeco&amp;lt;/groupId&amp;gt; &amp;lt;artifactId&amp;gt;javacv&amp;lt;/artifactId&amp;gt; &amp;lt;version&amp;gt;0.8&amp;lt;/versio...
SpringBoot报错(七)日常报错jar包冲突
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerAdapter' defined in org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration: Bean instantiation via factory method failed;
kafka集群/单节点部署
kafka集群/单节点部署
怎么解决Could not initialize class org.apache.commons.beanutils.BeanUtils啊
java.lang.NoClassDefFoundError: Could not <em>initialize</em> <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
Jetty 类加载问题处理
本文涉及到的知识点 1.Java虚拟机的类加载机制 2.JavaServiceProvider 加载机制 3.Java 类的初始化过程 4.Jetty 服务器的配置方式
怎么解决java.lang.NoClassDefFoundError错误 ,以及类的加载机制
目录前言NoClassDefFoundError错误发生的原因NoClassDefFoundError和ClassNotFoundException区别<em>怎么</em><em>解决</em>NoClassDefFoundError错误NoClassDefFoundError<em>解决</em>示例 转自http://blog.csdn.net/jamesjxin/article/details/46606307回到顶部前言在日常Java开发中...
Hbase连接异常,JAR包冲突解决攻略
Hbase连接异常(JAR包冲突),<em>问题</em>分析和<em>解决</em>攻略
redis 在spring boot工程中的应用(三) 问题发现与解决 :反序列化 报错
<em>问题</em>1:序列化和反序列话<em>问题</em> org.hibernate.LazyInitializationException: failed to lazily <em>initialize</em> a collection, <em>could</em> not <em>initialize</em> proxy - no Session 出现该<em>问题</em>的原因是在spring boot中使用jpa,大量使用@ManyToMany,@ManyToOne,@
sikuli 相关遇见过的问题汇总
1、安装后无法使用     需要jdk,安装后配置环境变量未jdk下的
费洪荒之力解决部署Java项目遇到的Hibernate奇葩状
庖丁解码 2017-02-04 11:30 用Java开发了一套基×管理系统,开发技术使用的是SpringMVC ,Hibernate。部署环境是Tomcat8 ,项目在本地跑的好好的。部署思路是很简单的。直接把项目拷贝到服务器,指向一下Tomcat配置文件即可。 本来应该是很顺利很简单的事情。可是修改完配置,跑起来一看。惊呼! 其实无论部署过多少次系统,多么熟练,在跑起来之前的
powerdesigner连接数据库的问题
1.JVM不能初始化 :要求安装32位的JDK,把path指向32的安装目录 2.Non SQL Error : Could not load <em>class</em> oracle.jdbc.OracleDriver:把odbc14.jar包放到powerdesigner安装目录,后加入<em>class</em>path 3.Non SQL Error : Could not load <em>class</em> com.mysql.j
P6SPY使用问题解决
 <em>问题</em>1.:我在mysql+tomcat中可以配置好,<em>怎么</em>在oracle+weblogic中配置不成功呢??? <em>解决</em>方法:下面我介绍一下p6spy在weblogic上安装的步骤:  (1)http://www.p6spy.com/download.html,下载zip包  (2)解压出p6spy.jar spy.properties两个文件  (3)将p6spy.jar 和spy.prop
hadoop+hive使用中遇到的问题汇总
<em>问题</em>排查方式  一般的错误,查看错误输出,按照关键字google 异常错误(如namenode、datanode莫名其妙挂了):查看Hadoop($HADOOP_HOME/logs)或hive日志 hadoop错误  1.datanode无法正常启动  添加datanode后,datanode无法正常启动,进程一会莫名其妙挂掉,查看namenode日志显示如下:
storm、hbase、kafka整合过程中遇到的log4j冲突问题
文章来源:http://itindex.net/detail/55255-storm-hbase-kafka 标签: storm hbase kafka | 发表时间:2016-02-24 04:22 | 作者:ynp 出处:http://www.iteye.com storm、hbase、kafka整合过程中遇到的log4j冲突<em>问题</em> ---》报错 S
springboot中使用jackson容易引起的报错
  <em>问题</em>: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat...
延迟加载单例模式(IoDH)引发的NoClassDefFoundError
一、<em>问题</em>背景 最近题主发布在公司的SDK遇到了<em>一个</em>Bug。有关单例模式的,什么<em>问题</em>呢? 我们先回想下,单例模式<em>怎么</em>写。(https://www.jianshu.com/p/f71fabb46233) 简而言之: - 私有的构造方法 - 提供<em>一个</em>静态可以获取实例对象的方法 其分类可大致分为: - 非延迟加载(饿汉) - 延迟加载(懒汉等) <em>问题</em>: 题主使用的是:initializ...
Could not initialize class com.demo.hibernate.util.HibernateSessionFactory
请教这个错误是<em>怎么</em>回事?rnjava.lang.NoClassDefFoundError: Could not <em>initialize</em> <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
Could not initialize class org.apache.jasper.el.ELContextImpl
HTTP Status 500 - java.lang.NoClassDefFoundError: Could not <em>initialize</em> <em>class</em> org.apache.jasper.el.ELContextImplrnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage java.lang.NoClassDefFoundError: Could not <em>initialize</em> <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 <em>initialize</em> <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 <em>initialize</em> <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<em>怎么</em><em>解决</em>?
Could not initialize class com.sun.javafx.iio.jpeg.JPEGImageLoader
Exception in thread "JavaFX Application Thread" java.lang.NoClassDefFoundError: Could not <em>initialize</em> <em>class</em> com.sun.javafx.iio.jpeg.JPEGImageLoader<em>怎么</em><em>解决</em>这个<em>问题</em>
Sqoop1.99.6安装遇到的问题
HADOOP2.7.1+Sqoop1.99.6+hbase-1.2.0+hive-2.0.0 遇到这个<em>问题</em>,困了三天!!! 结果是版本不兼容的<em>问题</em>。真特么够了。 下载地址 http://apache.mirrors.pair.com/db/derby/db-derby-10.11.1.1/db-derby-10.11.1.1-bin.tar.gz 我的$SQOOP_HOME是配置的/
集成spring的hibernate懒加载
<em>解决</em>org.hibernate.LazyInitializationException: <em>could</em> not <em>initialize</em> proxy - no Session...
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 <em>initialize</em> <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
linux上实现视频截图
使用javacpp技术,在32位linux系统上实现视频截图功能,注意so文件放在liberary_path里面
JDCP连接池异常修复记录
JDBC连接池异常修复 在使用单元测试JDBC连接池的时候,出现了如下bug,做个记录. 完整异常如下: java.lang.NoClassDefFoundError: Could not <em>initialize</em> <em>class</em> com.pythonniu.utils.DBCPutils at com.pythonniu.utils.testDBCP.test(testD...
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 <em>initialize</em> <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 <em>initialize</em> <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 网页可以抓取可以了 就是不能搜索 搜索就提示以上信息
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 <em>initialize</em> <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
引用<em>一个</em>包(我把包放到JRE/LIB/EXT里面,)rnJAVA编译运行都能通过,用SERVLET或JAVABEAN在JSP页面调用的时候总是找不到类rn
请大家帮忙看看poi读取excel表,为什么.xls可以,.xlsx不行?还报错
import java.io.File; import java.io.FileInputStream; import java.util.ArrayList; import java.util.List; import org.apache.commons.io.FileUtils; import org.apache.poi.hssf.usermodel.HSSFWorkbo
记一次sapjco 运行时错误排查
记一次sapjco 运行时错误排查记一次sapjco 运行时错误排查 定位<em>问题</em> 确认<em>问题</em> <em>解决</em>方案 小记 Caused by: java.lang.ExceptionInInitializerError: JCO.<em>class</em>Initialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC' JCO.nati
fastjson序列化hibernate代理和延迟加载对象出现no session异常的解决办法
fastjson序列化hibernate代理和延迟加载对象出现org.hibernate.LazyInitializationException: failed to lazily <em>initialize</em> a collection of role: com.eecn.warehouse.api.model.Tags.childTags, <em>could</em> not <em>initialize</em> proxy - no
NoClassDefFoundError错误发生的原因
NoClassDefFoundError错误的发生,是因为Java虚拟机在编译时能找到合适的类,而在运行时不能找到合适的类导致的错误。例如在运行时我们想调用某个类的方法或者访问这个类的静态成员的时候,发现这个类不可用,此时Java虚拟机就会抛出NoClassDefFoundError错误。与ClassNotFoundException的不同在于,这个错误发生只在运行时需要加载对应的类不成功,而不是...
Kylin高级主题-Query引擎依赖的Calcite框架
       Calcite(https://calcite.apache.org/)是Apache的<em>一个</em>孵化器项目,它是<em>一个</em>构建JDBC或者ODBC访问数据库的框架,通过自定义一些adapter通过sql访问任意类型的数据,回想起我们之前使用SQL的场景只有使用访问关系数据库如MYSQL、ORACLE等,通过hive查询HDFS上的数据,但是如果我们希望通过SQL接口访问内存中的某个数据结构(首...
Quadro P4000显卡 win7系统安装3dmax2018无法正常打开
Quadro P4000显卡 在win7系统安装3dmax2018无法正常打开,3DS MAX Could Not Initialize The Graphic Device 然后更换图形显示设备 唯一<em>一个</em>不报3DS MAX无法初始化也无法正常启动 第<em>一个</em>是默认的。它是Nitrous Direct3D。它对我不起作用。其他三个选项是Nitrous Software,Legacy Di...
mPush实战笔记6常见问题
https://github.com/mpusher 1.访问http://alloc\_ip:9999 ,输出的IP地址不正确 <em>问题</em>: 1)服务器存在多个网卡(包括虚拟网卡)。 2)服务器部署在公网地址后,对外提供服务。 <em>解决</em>方法: 在mpush.conf配置文件中,增加如下配置项 mp.net.public-host-mapping { &quot;源IP&quot;:&quot;目标IP&quot; ...
解决多线程下使用懒加载时,可能会出现的could not initialize proxy - no Session问题
这里使用的框架是spring、jpa和hibernate的整合,针对<em>一个</em>请求中扩大session的范围可参考这个做法,在web.xml配置文件加入,主要要在核心过滤器前面,这里加的过滤器是openEntityManagerInViewFilter,因为使用的是spring jpa的session会话: &amp;lt;!-- <em>解决</em>懒加载 no session(会话无效)<em>问题</em> --&amp;gt; &amp;lt;...
JCO连接SAP时tomcat报错
jco连接SAP时,请务必将文件:sapjcorfc.dll,librfc32放到 C:\WINDOWS\system32\下边。 否则报错如下: xception in thread &quot;main&quot; java.lang.ExceptionInInitializerError: JCO.<em>class</em>Initialize():[color=red] Could not load middlewar...
axis2解决 org.apache.axis2.util.JavaUtils.callStackToString问题
axis2<em>解决</em> org.apache.axis2.util.JavaUtils.callStackToString<em>问题</em>
Struts2 已经添加struts2-json-plugin但是仍然找不到json包的解决方法
最近使用了2.3.x 版本的struts2。。。 使用json的时候,包一直都找不到。  而在struts2-json-plugin-2.3.3 包中是有json-default这个包的。。但是就是找不到 没办法了那只能够是我自己定义<em>一个</em>了 struts2-json.xml文件了。。  <!DOCTYPE struts PUBLIC "-//Apache Software Fo
CXF2.3.3兼容性问题
使用CXF2.3.3调用别人的webservice,启动tomcat后报错信息如下: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could n
weblogic部署应用时因class文件版本不正确的解决办法
本次出差到北京,完成公司的<em>一个</em>信贷项目,由于这个项目是以前的老项目,JDK的版本是1.4,所以不得不用weblogic8.1作为应用服务器进行部署调试了,但当我从svn服务器上拿下源码,编译运行时报了如下错误:The WebLogic Server did not start up properly.java.io.InvalidClassException: javax.management
帮帮忙解决Could not initialize class org.apache.commons.beanutils.BeanUtils
我在做<em>一个</em>小论坛,在运行时就报错,其代码如下: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 <em>initialize</em> <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请高手帮帮了,我是刚学菜鸟<em>一个</em>啊。
关于从外部程序启动tomcat失败问题
今天从ant尝试去启动tomcat,发现tomcat能够启动启动成功,但是必要的包却没有加载成功,把所有相关系统环境变量配置了也没有用,贴上报错信息: SEVERE: Error manager.start() org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.s
解决 使用了maven的项目中,进行Junit测试时的 java.lang.NoClassDefFoundError
这是因为java编译后的<em>class</em>文件没有指定正确而引起的。 <em>解决</em>办法:   1、右键当前项目,选择Properties;   2、进入Java Build Path;   3、进入Source;   4、查看报错的类存在于哪<em>一个</em>根目录下;   5、查看目录下的Output folder;   6、不使用默认的选项,从新手动指定target下的文件目录;
tess4j_linux_x86_64
tess4j_linux_x86_64 tesseract在服务器部署时(linux)需要的.so文件 net.sourceforge.tess4j tess4j 3.0.0 com.sun.jna jna
Java之TankWar(单机版)历程
额,写完了,在总结的时候,成功收尾了整个项目,舒了一口气。 这大概是我独自写过的最大的软件了吧,看着<em>一个</em>游戏从无到有还是蛮自豪的,也在这近十天了磨砺了一下自己。 总共有30个版本........ 0.1版:产生<em>一个</em>游戏窗口。  0.2版:添加窗口关闭的事件处理 ,不允许改变游戏窗口大小 。 0.3版:画出代表坦克的实心圆 。 0.4版:让坦克移动,使用双缓冲消除闪烁。 0
彻底解决SSH架构中的Hibernate懒加载问题
在客户端使用AJAX框架,服务端采用Struts2+Spring+Hibernate的架构中,
短信猫 rxtx smslib出错
一、Error 0x5 at ..\src\termios.c(892): 拒绝访问             原因:                   1.串口被占用                   2.串口不存在
ffmpeg编译问题总结
1、安装SDL库,不安装将没有ffplay; 2、如果安装的是SDL2.0最新版本,建议重新编译安装SDL1.x版本(我测试的时候使用SDL2未生成ffplay,此项我再验证); 听群里的高手说,SDL2.0与1.x的版本对比,变动很大,很多接口有调整,强制使用的话要修改源码。 3、确定不是1和2的<em>问题</em>后,在ffmpeg目录下执行./configure ******之后查看Makefile中
jce异常
Caused by: java.lang.SecurityException: Can not <em>initialize</em> cryptographic mechanism at javax.crypto.JceSecurity.(JceSecurity.java:93) ... 33 more Caused by: java.lang.SecurityException: Cannot locate p...
请教javax.servlet.ServletException: Could not initialize class
在测试SERVLET的时候出现上面的错误,网上看到说是CLASSPATH的<em>问题</em>,我把那个包放到jre/lib/ext文件中,还在CLASSPATH里添加了这个包,还是出现错误,请教!
解决Quartz定时器中查询懒加载数据no session的问题
相信大家在web开发过程中一定遇到过一种情况,Class班级类一对多关联<em>一个</em>Student学生类,所以为了性能考虑,配置<em>一个</em>lazy-init=true,然后在前台页面需要访问懒加载数据时需要额外配置<em>一个</em>OpenSessionInViewFilter,但是可能并不知道这个过滤器到底做了什么,遇到Quartz定时中访问懒加载<em>问题</em>配置这个filter可没有用了,下面来讨论下,<em>怎么</em><em>解决</em>这个<em>问题</em>。实验之前先
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不知道有没有错?
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)
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 <em>initialize</em> <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]
webservice客户端报错小结,如有问题继续补充
报错一:
因SAP升级引起SAP通过jco访问java服务端问题
因SAP升级,而影响SAP访问java端的JCoServer,这这两周都在搞这些了。走了不少弯路,也收获很多,希望给有类似需求的朋友有所帮助。 Sap系统: 用SM59调整TCP/IP 下的SAP 到MBS的链接,SAP的编码由NON-UNICODE改成UNICODE后,SAP主动访问java访问有<em>问题</em>,连接不通。 java系统jco server端之前用的jco2.15,结果连接有<em>问题</em>。
Jeecms项目遇到问题
(1)修改菜单,让栏目出现更多的菜单项目,或者更换菜单背景,只需要修改layout.css /* nav ----------------------------------------*/ #menu{background:url(../img/dhlGB.gif) repeat-x;  height:40px; width:980px;} #topmenu{display:inline
java.lang.NoClassDefFoundError: Could not initialize class SQLite.JDBC2x.Databas
rnjava.lang.NoClassDefFoundError: Could not <em>initialize</em> <em>class</em> SQLite.JDBC2x.DatabaseXrnrn这个异常是<em>怎么</em>回事?该如何<em>解决</em>呢?rnrn在线,急等。。。。。。。。。。。。
使用Hibernate.initialize解决no session的延迟加载问题
出现no session or session was closed这样的异常不多解释了,网上已经一大堆。  但还是提不推荐把延迟加载特性去掉,而是必要时自己采取办法得到想要的对象。这样做更加灵活和效率高。虽然是避免不了一些代码量。  之前采取的方案是在session未关闭之前,把其他表对象查询出来并且clone。不过现在无意中发现其实hibernate其实已经提供初始化的方法了,而未必自己去
swt-gdip-win32-4763.dll下载
org.eclipse.swt.SWTException: Unable to load graphics library [GDI+ is required] (java.lang.NoClassDefFoundError: Could not <em>initialize</em> <em>class</em> org.eclipse.swt.internal.gdip.GdiplusStartupInput)替换文件
Sqoop常见错误及解决方式
1.java.lang.RuntimeException: Could not load db driver <em>class</em>: com.mysql.jdbc.Driver 17/09/05 09:12:30 ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.RuntimeException: Could not load db dri
LazyInitializationException 懒加载异常的四种解决方案
简介:org.hibernate.LazyInitializationException: <em>could</em> not <em>initialize</em> proxy - no Session (懒加载异常在默认情况下,hibernate为懒加载),这意味着在读取数据的时候,Session已经关闭。 <em>解决</em>方案(四种): 第一种:在get属性方法上添加@JSON(Serialize=false)注解,
Android 解决因Android版本太低,导致Could not find class 错误的解决办法
近期项目在测试过程中,在Android 5.0版本的测试中(以前APP测试未出现),GreenDao 出现 Could not find <em>class</em> 'org.greenrobot.greendao.database.StandardDatabase'  错误查阅资料后发现是Android 的4.4分包机制导致,也就是说当你的DEX文件方法超过65536后应用就已经饱满了。所以就会出现以上错误。解
布署web工程到sap netweaver application server java所遇问题解决方案
布署web工程到sap netweaver application server java 异常:1JCO.<em>class</em>Initialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC' JCO.nativeInit(): Could not <em>initialize</em> dynamic link library sapjcorfc [sapjcorfc (Not found in java.library.path
weblogic解决Jar包冲突
把weblogic 文件修改成如下: xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee htt
Android Studio 低版本Gradle升级到高版本时常见问题
今天拿到<em>一个</em>用低版本Gradle的编译的Android工程,gradle对版本的向下兼容做的不太好,因此在高版本Gradle的电脑上会出很多<em>问题</em>。 1. Error:The project is using an unsupported version of the Android Gradle plug-in (0.12.2). The recommended version is 1.0.0
阿了嗝欢的小白日记——No session异常的发生原因和解决方案
No Session异常是一种经典的异常!为什么这么说呢,我个人认为因为这个小小的异常虽然很好<em>解决</em>,但光<em>解决</em>不是目的,了解其产生原因和<em>解决</em><em>问题</em>的原理才是根本。原因涉及的知识点很基础,却容易被我们忽视,需得我们注意!
Eclipse开发基于maven的android项目时报错
Eclipse开发基于maven的android项目时报错每次保存文件时都会出现如下错误Could not <em>initialize</em> <em>class</em> com.android.ide.eclipse.adt.internal.lint.EclipseLintIssueRegistry百度和google都没人关心这个<em>问题</em>,自己摸索了下,找到了<em>解决</em>方案。 preferences –> lint error
关于eclipse中adt插件不能启动的问题解决办法
配置了android sdk和adt插件以后,点击eclipse 上的新建android工程的小图标,未能弹出新建android工程向导,而是报错:!MESSAGE Unhandled event loop exception !STACK 0 java.lang.NullPointerException     at com.android.ide.eclipse.adt.internal.wizards.newproject.NewPro
文章热词 双目视觉问题 特征点问题 相机标定问题 神经网络过拟合解决方式 最优化问题
相关热词 c#数组问题及解决 怎么用遗传算法解决最大问题c++ c++调试有异常怎么解决 c#解决访问并发问题 区块链解决 人工智能解决夜班
我们是很有底线的