c3p0异常求解

[code="java"]

com.mchange.v2.async.ThreadPoolAsynchronousRunner - com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@16597ba
APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!
com.mchange.v2.async.ThreadPoolAsynchronousRunner -163073277 [Timer-0] WARN com.mchange.v2.async.ThreadPoolAsynchronousRunner

com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@16597ba
APPARENT DEADLOCK!!! Complete Status: [num_managed_threads: 10, num_active: 10;
activeTasks: com.mchange.v2.c3p0.stmt.GooGooStatementCache$1@a1f903 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#4),
com.mchange.v2.c3p0.stmt.GooGooStatementCache$1@1e35936 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#8),
com.mchange.v2.c3p0.stmt.GooGooStatementCache$1@f5e931 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#7),
com.mchange.v2.c3p0.stmt.GooGooStatementCache$1@a0cbf4 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1),
com.mchange.v2.c3p0.stmt.GooGooStatementCache$1@ae1f44 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0),
com.mchange.v2.c3p0.stmt.GooGooStatementCache$1@186daf2 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#6),
com.mchange.v2.c3p0.stmt.GooGooStatementCache$1@906a8d (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2),
com.mchange.v2.c3p0.stmt.GooGooStatementCache$1@1438396 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#3),
com.mchange.v2.c3p0.stmt.GooGooStatementCache$1@173f6bb (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#9),
com.mchange.v2.c3p0.stmt.GooGooStatementCache$1@4b8a67 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#5);
pendingTasks: com.mchange.v2.c3p0.stmt.GooGooStatementCache$1@16b9960, com.mchange.v2.resourcepool.BasicResourcePool$6@1227588,
com.mchange.v2.resourcepool.BasicResourcePool$6@152658a, com.mchange.v2.resourcepool.BasicResourcePool$6@885610,
com.mchange.v2.resourcepool.BasicResourcePool$6@ca3add, com.mchange.v2.resourcepool.BasicResourcePool$6@dea987,
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@4beff3, com.mchange.v2.resourcepool.BasicResourcePool$6@1765f99,
com.mchange.v2.resourcepool.BasicResourcePool$6@7e7001]
[/code]
[code="java"]
WARN com.mchange.v2.async.ThreadPoolAsynchronousRunner - Task com.mchange.v2.c3p0.stmt.GooGooStatementCache$1@f5e931 (in deadlocked PoolThread) failed to complete in maximum time 60000ms. Trying interrupt().
[/code]
中午重启后运行正常,隔天访问就会这样,求解。。。
附上配置
[code="java"]
c3p0.acquireIncrement=3
c3p0.initialPoolSize=3
c3p0.idleConnectionTestPeriod=1800
c3p0.minPoolSize=1
c3p0.maxPoolSize=10
c3p0.maxStatements=100
c3p0.numHelperThreads=10
c3p0.maxIdleTime=600
c3p0.automaticTestTable=C3P0TestTable
[/code]
框架用的是SSI

1个回答

死锁啦。为什么呢。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
c3p0异常
2011-8-20 19:37:54 com.mchange.v2.log.MLog rn信息: MLog clients using java 1.4+ standard logging.rn2011-8-20 19:37:54 com.mchange.v2.c3p0.C3P0Registry bannerrn信息: Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]rn2011-8-20 19:37:54 com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManagerrn信息: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 10, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hge19e8h1s381br1hkrbbd|b02efa, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hge19e8h1s381br1hkrbbd|b02efa, idleConnectionTestPeriod -> 0, initialPoolSize -> 20, jdbcUrl -> jdbc:mysql://192.168.1.225:3306/Bank?useUnicode=true&characterEncoding=utf8, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 3600, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 100, maxStatements -> 100, maxStatementsPerConnection -> 0, minPoolSize -> 20, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> user=******, password=******, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]rn2011-8-20 19:38:14 com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector runrn警告: com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@3b1f38 -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!rn2011-8-20 19:38:14 com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector runrn警告: com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@3b1f38 -- APPARENT DEADLOCK!!! Complete Status: rn Managed Threads: 3rn Active Threads: 3rn Active Tasks: rn com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@140984b (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1)rn com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1ce669e (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0)rn com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1b33a0e (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2)rn Pending Tasks: rn com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1a8773crn com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@12c3327rn com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@d24e3frn com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@10f41e9rn com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@b05acdrn com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1989b5rn com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@a00185rn com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@c3c315rn com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@3c9c31rn com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1328c7arn com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1a4ded3rn com.mchange.v2.c3p0.stmt.GooGooStatementCache$1StmtAcquireTask@121177ernPool thread stack traces:rn Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1,5,main]rn java.lang.Thread.sleep(Native Method)rn com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805)rn com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)rn Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main]rn java.lang.Thread.sleep(Native Method)rn com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805)rn com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)rn Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2,5,main]rn java.lang.Thread.sleep(Native Method)rn com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805)rn com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)rnrnrn2011-8-20 19:38:23 com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask runrn警告: com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1ce669e -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception: rncom.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: "Too many connections"rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:921)rn at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1070)rn at com.mysql.jdbc.Connection.createNewIO(Connection.java:2775)rn at com.mysql.jdbc.Connection.(Connection.java:1555)rn at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)rn at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)rn at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)rn at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)rn at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)rn at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)rn at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)rn at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)rn at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)rn2011-8-20 19:38:23 com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask runrnrn这是什么情况?怎么解决?
C3P0链接异常 Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource
rn信息: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hgeby99nlfp8hu10n0ky8|166c5813, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hgeby99nlfp8hu10n0ky8|166c5813, idleConnectionTestPeriod -> 0, initialPoolSize -> 10, jdbcUrl -> jdbc:mysql://localhost:3306/shangcheng, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 30, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 100, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 10, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> user=******, password=******, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]rn写了一个前台 打开前台网页 启动服务器之后 控制台就报这种信息 这是为什么呢 SQLyog是可以成功链接数据库的 我写的一个后台 也可以连接到数据库
c3p0连接mysql异常
com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from com.mchange.v2.resourcepool.BasicResourcePool@79207381 -- timeout at awaitAvailable() 网上的整体解决...
异常求解?
[size=24px]Struts Problem ReportrnrnStruts has detected an unhandled exception:rnMessages: rnrn1 a different object with the same identifier value was already associated with the session: [cn.com.su.domain.Supplier#s001]rn2 a different object with the same identifier value was already associated with the session: [cn.com.su.domain.Supplier#s001]; nested exception is org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [cn.com.su.domain.Supplier#s001]rnrnFile: org/hibernate/engine/StatefulPersistenceContext.javarnLine number: 637rnStacktracesrnorg.springframework.orm.hibernate3.HibernateSystemException: a different object with the same identifier value was already associated with the session: [cn.com.su.domain.Supplier#s001]; nested exception is org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [cn.com.su.domain.Supplier#s001]rnrn org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:661)rn org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)rn org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)rn org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)rn org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:690)rn cn.com.su.daoimpl.MaterialDaoImpl.addMaterial(MaterialDaoImpl.java:23)rn cn.com.su.serviceimpl.MaterialServiceImpl.addMaterial(MaterialServiceImpl.java:20)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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)rn org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)rn org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)rn $Proxy10.addMaterial(Unknown Source)rn cn.com.su.action.MaterialAction.addMaterial(MaterialAction.java:55)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: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[/size] rnrnrnrn[code=java]rn//添加材料rn public String addMaterial()rn rn Supplier s = (Supplier) ActionContext.getContext().getSession().get("supplier");rn Material material = new Material();rn BeanUtils.copyProperties(getModel(), material);rn Type type = typeService.searchTypeById(getModel().getMaterial_type().getId());rn material.setMaterial_type(type);rn Supplier supplier = supplierService.searchSupplierById(s.getSupplier_id());rn material.setMaterial_supplier(supplier);rn materialService.addMaterial(material);rn success = true;rn return "success";rn rn[/code]rn我知道是不同的对象有相同的标识符导致的错误,但是我不明白为什么会这样,以及解决办法。
c3p0jar包,c3p0jar包,c3p0jar包,c3p0jar包,c3p0jar包,c3p0jar包,c3p0jar包,c3p0jar包,c3p0jar包,c3p0jar包,c3p0jar包,c3p0jar包,c3p0jar包,c3p0jar包,c3p0jar包,c3p0jar包,
完整无损的jar包,需要者可以下来。完整无损的jar包,需要者可以下来。完整无损的jar包,需要者可以下来。完整无损的jar包,需要者可以下来。完整无损的jar包,需要者可以下来。完整无损的jar包,需要者可以下来。完整无损的jar包,需要者可以下来。完整无损的jar包,需要者可以下来。完整无损的jar包,需要者可以下来。完整无损的jar包,需要者可以下来。完整无损的jar包,需要者可以下来。
c3p0数据源链接异常 高人入内
信息: Illegal access: this web application instance has been stopped already. Could not load com/microsoft/util/transliteration.properties. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.rn2009-8-16 17:32:46 org.apache.catalina.loader.WebappClassLoader loadClassrn信息: Illegal access: this web application instance has been stopped already. Could not load java.text.MessageFormat. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.rn2009-08-16 17:32:46 [com.mchange.v2.resourcepool.BasicResourcePool]-[DEBUG] Refurbishing idle resources - Sun Aug 16 17:32:46 CST 2009 [com.mchange.v2.resourcepool.BasicResourcePool@10b7338]rn2009-08-16 17:32:46 [com.mchange.v2.resourcepool.BasicResourcePool]-[DEBUG] trace com.mchange.v2.resourcepool.BasicResourcePool@10b7338 [managed: 5, unused: 5, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@19f99ae)rn2009-08-16 17:32:46 [com.mchange.v2.resourcepool.BasicResourcePool]-[DEBUG] An exception occurred while acquiring a resource.rnjava.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error opening/loading com.microsoft.util.transliteration.properties.rn at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)rn at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)rn at com.microsoft.jdbc.sqlserver.tds.TDSConnection.setNonUnicodeTransliterator(Unknown Source)rn at com.microsoft.jdbc.sqlserver.tds.TDSConnection.setSQLCollation(Unknown Source)rn at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processEnvChange(Unknown Source)rn at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)rn at com.microsoft.jdbc.sqlserver.tds.TDSLoginRequest.processReplyToken(Unknown Source)rn at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)rn at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)rn at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)rn at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)rn at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)rn at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:88)rn at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:109)rn at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1.acquireResource(C3P0PooledConnectionPool.java:89)rn at com.mchange.v2.resourcepool.BasicResourcePool.acquireUntil(BasicResourcePool.java:665)rn at com.mchange.v2.resourcepool.BasicResourcePool.access$500(BasicResourcePool.java:32)rn at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1206)rn at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:368)rnrnspring的xml配置rnrnrn rn rn rn com.microsoft.jdbc.sqlserver.SQLServerDriverrn rn rn jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=dddrn rn rn rn sarn rn rn rn rn rn 5rn rn rn 10rn rn rn 5rn rn rn 15rn rn rn 300rn rn rn 300rn rn rn 30rn rn rn 10rn rn rn 30rn rn rn truern rn rn falsern rn rn rn rn
关于c3p0的配置启动tomcat出现的异常...
javax.naming.NameNotFoundException: Name UserDatabase is not bound in this Contextrn at org.apache.naming.NamingContext.lookup(NamingContext.java:770)rn at org.apache.naming.NamingContext.lookup(NamingContext.java:153)rn at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:253)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1006)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rn2009-10-21 13:50:35 org.apache.catalina.startup.Catalina starrnrnserver.xml的配置是rnrnrncontext.xmlrnrnrnrnweb.xmlrn rn DB Connection rn jdbc/ora11g rn javax.sql.DataSource rn Container rn rnrn我用了以前的默认方式配置是可以运行的。因为需要c3p0配置,所以就改成这样,不知道哪里错了rnrn或者哪里需要进行更改rnrntomcat下lib中的包都在rnc3p0-0.9.1.2.jarrnc3p0-0.9.1.2-jdk1.3.jarrnc3p0-oracle-thin-extras-0.9.1.2.jarrn关于c3p0的三个jar包都在,并且是官网上下的。至于那个Name UserDatabase is not bound in this Context rn我没定义UserDatabase 这个名字,怎么会是找不见呢?rnrn原来的配置有这个名字的rnrnrn
c3p0数据源启动抛异常APPARENT DEADLOCK!!!
项目使用c3p0数据源,将项目重新导入eclipse中,抛出以下异常信息: [code="java"] 警告: com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@6270b -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned ...
spring + c3p0 + mybatis + mysql 数据库连接偶尔异常
rn数据可是在阿里云上的,在本地 和 阿里 部署的项目运行都是正常的, 但是在新浪云上部署后,登录获取用户信息,rn直接报错如下: 纠结了好几天,网上找了好多,都未能解决! rnrn我要说的是项目启动完成,登录就出现这个,也没有8小时。 搞不明白!rnrnrnrnrn[code=java]rnorg.springframework.dao.RecoverableDataAccessException: rn### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failurernrnLast packet sent to the server was 1 ms ago.rn### The error may exist in file [/data1/jetty_work/335/**********/WEB-INF/classes/com/mapper/Account_mapper.xml]rn### The error may involve defaultParameterMaprn### The error occurred while setting parametersrn### SQL: SELECT * FROM account WHERE name = ?rn### Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failurernrnLast packet sent to the server was 1 ms ago.rn; SQL []; Communications link failurernrnLast packet sent to the server was 1 ms ago.; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failurernrnLast packet sent to the server was 1 ms ago.rn at org.springframework.jdbc.support.SQLExceptionSubclassTranslator.doTranslate(SQLExceptionSubclassTranslator.java:98)rn at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)rn at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)rn at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:71)rn at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:365)rn at $Proxy11.selectOne(Unknown Source)rn at org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:160)rn at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:63)rn at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:43)rn at $Proxy13.getAccountInfo(Unknown Source)rn at com.sun.jd.service.AccountService.loginJdAccount(AccountService.java:61)rn at com.sun.jd.web.controller.LoginController.loginJd(LoginController.java:88)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:624)rn at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)rn at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:440)rn at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:428)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)rn at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:838)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)rn at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)rn at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538)rn at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1357)rn at com.sina.sae.facade.SaeFilterChain.doFilter(SaeFilterChain.java:28)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at com.sina.sae.servlet.SaeServletHandler.servletHandlerDoFilter(SaeServletHandler.java:56)rn at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1328)rn at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476)rn at com.sina.sae.servlet.SaeServletHandler.doHandle(SaeServletHandler.java:49)rn at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)rn at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)rn at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)rn at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937)rn at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)rn at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)rn at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871)rn at com.sina.sae.webapp.SaeWebAppContext.doScope(SaeWebAppContext.java:166)rn at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)rn at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:259)rn at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)rn at com.sina.sae.handler.SaeUserInfoHandler.handle(SaeUserInfoHandler.java:109)rn at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)rn at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:305)rn at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)rn at org.eclipse.jetty.server.Server.handle(Server.java:349)rn at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)rn at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1065)rn at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:823)rn at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220)rn at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)rn at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)rn at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)rn at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)rn at java.lang.Thread.run(Thread.java:714)rnCaused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failurernrnLast packet sent to the server was 1 ms ago.rn at sun.reflect.GeneratedConstructorAccessor24.newInstance(Unknown Source)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:532)rn at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)rn at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)rn at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2985)rn at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2871)rn at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3414)rn at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1936)rn at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2060)rn at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2542)rn at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1734)rn at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:995)rn at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.execute(NewProxyPreparedStatement.java:1392)rn at org.apache.ibatis.executor.statement.PreparedStatementHandler.query(PreparedStatementHandler.java:56)rn at org.apache.ibatis.executor.statement.RoutingStatementHandler.query(RoutingStatementHandler.java:70)rn at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:57)rn at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:259)rn at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:132)rn at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:105)rn at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:81)rn at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:104)rn at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:98)rn at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:62)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:624)rn at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:355)rn ... 55 morernCaused by: java.net.SocketException: Connection resetrn at java.net.SocketInputStream.read(SocketInputStream.java:185)rn at com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:113)rn at com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:160)rn at com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:188)rn at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2428)rn at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2882)rn ... 78 morern[/code]
c3p0 jar包 c3p0 jar包
c3p0 jar包c3p0 jar包c3p0 jar包c3p0 jar包c3p0 jar包c3p0 jar包c3p0 jar包c3p0 jar包c3p0 jar包c3p0 jar包c3p0 jar包c3p0 jar包c3p0 jar包c3p0 jar包
c3p0
谁能给段c3p0的配置文件,和java存取数据库的代码rn谢谢rn
[c3p0] 第二篇:使用c3p0
前言 译文是根据c3p0-0.9.5.1版本的官方文档,加上自己的理解,整理翻译而成。能力有限,译文内容如果有误或是理解有偏差,还请大家纠正! 使用c3p0 从用户的角度看,c3p0只是简单的为用户提供符合jdbc标准的DataSource对象。当创建这些DataSource对象的时候,用户可以控制与其相关的各种属性。一旦DataSource创建完成,DataSour
异常求解啊。
[code=XML] rnrn rn rn 微软rn Windowsrn Vistarn 1rn 3720rn rn rn 甲骨文rn Oraclern 10Grn 25rn 358680rn rn rn 赛门铁克rn Norton Antivirusrn 10.0rn 50rn 29600rn rn rn 瑞星rn Risingrn 2006rn 50rn 19400rn rnrnrn[/code]rn我在验证文件的时候,老是警告:不能在该文档实例中定位一个支持schema类型(DTD,W3C Schema)的引用rn求解啊。
java 异常代码求解
/不能正常抛异常抛异常,编译。运行都没事,找不出问题很痛苦,求助大神rnrnpublic class ThrowTest rnrn public static void main(String[] args) rn rn tryrn rn throwChecked(-3);rn rn catch (Exception e)rn rn System.out.println(e.getMessage());rn rn throwRuntime(-3);rn System.out.println();rn rn public static void throwChecked(int a)throws Exception rn rn if(a>0)rn rn throw new Exception("a的值大于0.不符合要求");rn rn rn public static void throwRuntime(int a)rn rn if(a>0)rn rn throw new RuntimeException("a的值大于0.不符合要求");rn rnrnrn
求解异常链
求解java中的异常链是什么,它的好处是什么,在什么情况下要用到,举个例子
Hessian异常求解
根据博文配置rn http://web.iteye.com/blog/513238rnrnrnrnHello worldrnwork=任务rn[a, Name=刘德华, Add=上海, work=任务]rn2012-4-4 16:49:24 com.caucho.hessian.io.SerializerFactory getDeserializerrn警告: Hessian/Burlap: 'com.a.e.User' is an unknown class in sun.misc.Launcher$AppClassLoader@1372a1a:rnjava.lang.ClassNotFoundException: com.a.e.Userrnrnrn不知道为什么会报警告????rnrnHessian版本是 4.0.7
hibernate的一个异常求解
service代码:rn @Transactional rn public void add(Theme transientTheme) throws ThemeExistingException rn System.out.println(themeDao.findByProperty("themeName", transientTheme.getThemeName()).size());rn if(themeDao.findByProperty("themeName", transientTheme.getThemeName()).size() != 0) rn throw new ThemeExistingException("主题名" + transientTheme.getThemeName() + "已存在");rn else rn themeDao.save(transientTheme);rn rn rnrndao代码:rn public void save(Theme transientInstance) rn log.debug("saving Theme instance");rn try rn getHibernateTemplate().save(transientInstance);rn log.debug("save successful");rn catch (RuntimeException re) rn log.error("save failed", re);rn throw re;rn rn rnrnrn我调用service的时候,dao里的代码已经执行,并且成功添加了数据,但确报了一个空指针异常,rnjava.lang.NullPointerExceptionrn at org.apache.struts2.components.template.TemplateEngineManager.getTemplateEngine(TemplateEngineManager.java:102)rn at org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:555)rn at org.apache.struts2.components.UIBean.end(UIBean.java:519)rn at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)rn at org.apache.jsp.jsp.message.message_jsp._jspx_meth_s_005fdebug_005f0(message_jsp.java:122)rn at org.apache.jsp.jsp.message.message_jsp._jspService(message_jsp.java:91)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)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.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:88)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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)rn at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)rn at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)rn at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:367)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:271)rn at com.sc.web.intercptor.TitleIntercptor.intercept(TitleIntercptor.java:27)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.sc.web.intercptor.TimeIntercptor.intercept(TimeIntercptor.java:24)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.sc.web.intercptor.AutoLoginIntercptor.intercept(AutoLoginIntercptor.java:65)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)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:242)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)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:242)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:238)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:238)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:544)rn 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:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)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.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)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:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)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:291)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:619)rnrn
ssh启动时异常!!!!求解
[i]严重: action: nullrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sess' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)VrnCaused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Vrn at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:77)rn at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:173)rn at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)rn at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)rn at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)rn at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69)rn at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117)rn at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)rn at org.hibernate.tuple.entity.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:135)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java:55)rn at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEntityModeToTuplizerMapping.java:56)rn at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:295)rn at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:434)rn at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:109)rn at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)rn at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:226)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:805)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:745)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1202)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:355)rn at org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:296)rn at org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:225)rn at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)rn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1160)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:980)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)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)rn2008-9-27 12:29:24 org.apache.catalina.core.ApplicationContext logrn信息: Marking servlet action as unavailablern2008-9-27 12:29:24 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet /ssh1 threw load() exceptionrnjavax.servlet.UnavailableExceptionrn at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:880)rn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn
求解!!MyEclipse抛出的异常!!
description The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: An exception occurred processing JSP page /denglu.jsp at line 25rnrn22: username=request.getParameter("username");rn23: pwd=request.getParameter("pwd");rn24: Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");rn25: Connection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=liuyanban","sa","123qwe");rn26: Statement stmt=conn.createStatement();rn27: rn28: ResultSet rs=stmt.executeQuery("select * from zhucebiao where username=\'"+username+"\' and password=\'"+pwd+"\'");rnrnrn求解这些异常!!!多谢
hibernate异常 求解
Exception in thread "C3P0PooledConnectionPoolManager-AdminTaskTimer" java.lang.NullPointerExceptionrn at com.mchange.v2.log.log4j.Log4jMLog$Log4jMLogger.isLoggable(Log4jMLog.java:281)rn at com.mchange.v2.resourcepool.BasicResourcePool$CullTask.run(BasicResourcePool.java:2072)rn at java.util.TimerThread.mainLoop(Timer.java:512)rn at java.util.TimerThread.run(Timer.java:462)rn
运行异常 求解
#includern#includern#includern#includern#includernusing namespace std;rnrnstruct Timernrn float time;//读取时间rn float lasttime;//持续时间rn;rnrnstruct Lrcrnrn Time T;rn string lrc_text;rn struct Lrc *next;rn;rnrnfloat Gettime(string s)//获取播放时间rnrn //char *str1,*str2;rn string str3,str4;rnrn int flag1=s.find_first_of('[');rn int flag2=s.find_first_of(']');rn int flag3=s.find_first_of(':');rn str3=s.substr(flag1+1,flag3-flag1-1);rn str4=s.substr(flag3+1,flag2-flag3-1);rnrn //strcpy(str1,str3.c_str());rn //strcpy(str2,str4.c_str());rn rn float t1=atof(str3.c_str())*60000;rn float t2=atof(str4.c_str())*1000;rn return t1+t2;rnrnrnrnstruct Lrc *Creatlrc()//创建歌词链表rnrn Lrc *p=new Lrc;rn Lrc *head=new Lrc;rn int flag=0;rn string str;//获得歌词字符串rn ifstream infile("Linkin Park - in the end.lrc",ios_base::binary);rn int i=0;rn while(getline(infile,str,'\n'))rn rn //cout<T.time=Gettime(s1); //获取播放时间rn p->lrc_text=" ";rn rnrn else//[]后面有歌词 rn rn p->T.time=Gettime(str.substr(index1,index3-index1+1)); rn p->lrc_text=str.substr(index3+1); //获取歌词rn rn // cout<<"ssss";rn rnrn else//有多个[] rn //cout<<"[ti:In the End]";rn string s1,s2,s3; rn if(index2==(len-1)) //后面无歌词rn rn s1=str.substr(index1,index3-index1+1); rn s2=str.substr(index3+1,index2-index3); rn p->T.time=Gettime(s1);rn p->lrc_text="";rn //cout<<"[ti:In the End]";rn p=p->next;rn p->T.time=Gettime(s2);rn cout<<"[ti:In the End]";rn p->lrc_text="";rn rn rn rn elsern rn s3=str.substr(index2+1);rn s1=str.substr(index1,index3-index1+1); rn p->T.time=Gettime(s1);rn p->lrc_text=s3;rn s2=str.substr(index3+1,index2-index3);rn p->next->T.time=Gettime(s2);rn p->next->lrc_text=s3;rn rn rn rnrn if(flag=0)rn rn head=p;flag=1;rn rn p=p->next;rn if(!infile.eof())rn rn p=NULL;rn break;rn rn rn infile.close();rn delete p;rn return head;rnrnrnrnvoid sort(Lrc *head)//排序,计算每段持续时间rnrn Lrc *p=new Lrc;rn Lrc *p1=new Lrc;rn Lrc *p2=new Lrc;rn Lrc *p3=new Lrc;rn //p1=head;rn for(p=head;p!=NULL;p=p->next)rn rn p2=p;//记录最小值节点rn for(p1=p;p1!=NULL;p1=p1->next)rn if(p2->T.time>p1->T.time) p2=p1;rn//交换数据rn p3=p;rn p->T.time=p2->T.time;rn p->lrc_text=p2->lrc_text;rn p2->T.time=p3->T.time;rn p2->lrc_text=p3->lrc_text;rn rnrn //回带rn p=head;rn while(p!=NULL)rn rn if(p->next==NULL)p->T.lasttime=2000;break;rn p->T.lasttime=p->next->T.time-p->T.time;rn p=p->next;rn rn delete p;rn delete p1;rn delete p2;rn delete p3;rnrnrnvoid print(struct Lrc *head)rnrn Lrc *p=new Lrc;rn p=head;rn while(p!=NULL)rn rn cout<lrc_text<next;rn rn delete p;rnrnrnvoid main()rnrnrnrn Lrc *head=new Lrc; rn head=Creatlrc();rn //sort(head);rn print(head);rnrnrnrnrn主要是将歌词提取出来 用到了链表 写得时候就预感会出现n多错误 经过调试编译 链接没问题 运行老是出现问题 搞了一下午 还是不得要领 求大神 指点一二。rn歌词如下(把前边歌词标签之类省了)rn[00:01.04]Linkin Park - In the Endrn[00:06.04]Album:Hybrid Theoryrn[00:11.04]Lrc by 賴潤誠 oicq:85860288 ★rn[00:16.04]rn[00:20.04]It starts with one thing rn[00:22.58]I don't know why rn[00:23.80]It doesn't even matter how hard you try keep that in mind rn[00:27.02]I designed this rhyme rn[00:28.10]To explain in due time rn[00:29.38]All I know rn[00:31.01]Time is a valuable thing rn[00:32.88]Watch it fly by as the pendulum swings rn[00:35.15]Watch it count down to the end of the day rn[00:37.22]The clock ticks life away rn[00:38.78]It's so unreal rn[00:40.31]Didn't look out below rn[00:41.95]Watch the time go right out the window rn[00:44.42]Trying to hold on, but didn't even know rn[00:46.59]Wasted it all just to watch you go rn[00:49.39]I kept everything inside and even though I tried, it all fell apart rn[00:53.43]What it meant to me will eventually be a memory of a time when rn[00:56.35]rn[00:56.89]I tried so hard rn[00:58.94]And got so far rn[01:01.79]But in the end rn[01:03.56]It doesn't even matter rn[01:05.82]I had to fall rn[01:08.06]To lose it all rn[01:10.92]But in the end rn[01:12.74]It doesn't even matter rn[01:14.94]rn[01:16.32]One thing, I don't know why rn[01:18.58]It doesn?t even matter how hard you try, keep that in mind rn[01:21.80]I designed this rhyme, to explain in due time rn[01:24.22]I tried so hard rn[01:26.01]In spite of the way you were mocking me rn[01:28.08]Acting like I was part of your property rn[01:30.16]Remembering all the times you fought with me rn[01:32.35]I'm surprised it got so (far) rn[01:34.85]Things aren't the way they were before rn[01:36.91]You wouldn't even recognize me anymore rn[01:39.19]Not that you knew me back then rn[01:41.57]But it all comes back to me (in the end) rn[01:43.74]You kept everything inside and even though I tried, it all fell apart rn[01:48.21]What it meant to me will eventually be a memory of a time when I rn[01:51.26]rn[02:48.48][01:51.75]I tried so hard rn[02:50.74][01:53.72]And got so far rn[02:53.57][01:56.56]But in the end rn[02:55.32][01:58.37]It doesn't even matter rn[02:57.55][02:00.56]I had to fall rn[02:59.83][02:02.91]To lose it all rn[03:02.66][02:05.68]But in the end rn[03:04.43][02:07.37]It doesn't even matter rn[02:10.86]rn[02:30.23][02:12.07]I put my trust in you rn[02:34.96][02:16.59]Pushed as far as I can go rn[02:39.55][02:21.35]And for all this rn[02:41.82][02:23.54]There's only one thing you should know rn[03:09.82][02:47.63][02:29.39]rn[03:12.82]Lrc by 賴潤誠 oicq:85860288 ★rn
子程序返回异常, 求解
为什么我的子程序在用RET返回的时候rn程序重新运行了?rnrnmain proc farrncall initrnrnlop: call xxxxrnjmp loprnmain endprnrnlop proc near rnretrnlop endprnrn就这部分出问题了, lop返回之后, 他从新运行了initrn程序是small
运行异常,求解。
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>rn<%@ page import="com.zhao.*" %>rnrn<%rntryrnString sql;rnsql = "SELECT count(*) as num FROM XO";rnResultSet rs = DbBean.executeQuery(sql);rn%>rnrnrnrn rn Untitled Documentrnrnrnrnrn rn rn rn rn 表的增删改rn rn rn rn rn 姓名 rn 工资 rn 部门 rn 操作 rn rn<% rn int pagesize=8; rn int pagecount=0; rn int count=0; rn int currentpage=0; rn if (rs.next()) rn count = rs.getInt("num"); rn float f = (float) count / (float) pagesize; rn int pages = (int) (count / pagesize); rn if (f > pages) pages++; rn pagecount = pages ; rn rn if(request.getParameter("page")!=null)//假如接收的页面数不为空 rn currentpage = java.lang.Integer.parseInt(request.getParameter("page"));//就把接收的页面数pagg赋值给gopage rn else//否则 rn currentpage=1;//gopage为1,即显示第一页 rn rn rn //分页查询 rnrn sql = "select * from XO where id between 1 and 160"; rn // System.out.println(sql); rn rs = DbBean.executeQuery(sql); rn while(rs.next()) rn String id=rs.getString("id"); rn String xm2=rs.getString("xm"); rn String gz=rs.getString("gz");rn String bm=rs.getString("bm"); rn %> rn rn <%=xm2 %> rn <%=gz %> rn <%=bm %> rn 修改 rn 删除 rn rn <% rn rs.close(); rn %> rn rn 新增 rn rn rn rn rnrn rnrn rn DbBean.executeQuery(sql) rn rn rn rn rn <%catch(Exception e)rn out.print("");rn rn %>rn rnrnrn rnrnrnrnrn运行结果:rnaq.executeQuery: The url cannot be nullrn
C# 新人 异常求解
[img=https://img-bbs.csdn.net/upload/201512/20/1450604121_722428.png][/img]rn文件管理器,异常求解
异常分析,listenerstart异常 求解。
十一月 28, 2017 10:22:16 下午 org.apache.catalina.core.StandardContext listenerStartrnSEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [spring/applicationContext-db.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: PermGen spacern at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:546)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:872)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4323)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4771)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:785)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:763)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:558)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1124)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1047)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:542)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1390)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:355)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)rn at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:312)rn at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:292)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:998)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:772)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:990)rn at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:275)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)rn at org.apache.catalina.core.StandardService.startInternal(StandardService.java:424)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)rn at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:648)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:576)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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)rnCaused by: java.lang.OutOfMemoryError: PermGen spacernrnrnrnrnrn十一月 28, 2017 10:22:17 下午 org.apache.catalina.core.StandardContext listenerStartrnSEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListenerrnjava.lang.OutOfMemoryError: PermGen spacern at java.lang.ClassLoader.findBootstrapClass(Native Method)rn at java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:1061)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:412)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:410)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:356)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1579)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509)rn at com.sun.faces.config.WebConfiguration.(WebConfiguration.java:63)rn at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:152)rn at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:279)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4323)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4771)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:785)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:763)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:558)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1124)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1047)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:542)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1390)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:355)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)rn at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:312)rn at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:292)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:998)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:772)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:990)rn at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:275)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)rnrnrnSSH出现以下异常。用了maven,pom没错。包没错。
Hibernate登录异常,求解
[code=Java]rnrn @Overridern public User isLogin(String username,String password) rnrn User user=null;rn session.beginTransaction();rn String hql=("from User u where u.username=? and u.password=?"); rn Query query=session.createQuery(hql);rn query.setString(0,username);rn query.setString(1,password);rn if(query.list().size()>0)rn rn user=(User)query.list().get(0);rn rn session.getTransaction().commit();rn return user;rn rn[/code]rnrn[color=#FF0000][b]无论是正确或者错误的用户名和密码都可以正常登录系统。。。。。求解????[/b][/color]
weblogic启动异常,求解
[WARN ][jrockit] CompileThreshold=8000 ignored: Not a valid option for[color=#FF0000] JRockit[/color]rn[WARN ][jrockit] PermSize=48m ignored: Not a valid option for JRockitrn[WARN ][jrockit] MaxPermSize=128m ignored: Not a valid option for JRockitrn<2012-3-31 下午02时13分21秒 CST> rn<2012-3-31 下午02时13分22秒 CST> rn<2012-3-31 下午02时13分23秒 CST> rn<2012-3-31 下午02时13分23秒 CST> rn<2012-3-31 下午02时13分23秒 CST> rn<2012-3-31 下午02时13分24秒 CST> rn<2012-3-31 下午02时13分26秒 CST> rn<2012-3-31 下午02时13分26秒 CST> rn<2012-3-31 下午02时13分26秒 CST> rn<2012-3-31 下午02时13分26秒 CST> rnrnrn
有关异常的问题,求解
[code=java]package cn.test.exception;rn/*rn * 父类rn */rnrnpublic class Pet rn private int age;rn public Pet()rn rn rn rn public Pet(int age)rn rn this.age=age;rn rn public void setAge(int age)throws Exceptionrn rn this.age=age;rn rn public int getAge()rn rn return this.age;rn rnrnrn[/code]rnrn下面是一个子类rn[code=java]rn/*rn * dog类rn */rnpublic class Dog extends Petrn private int age;rn public void setAge(int age)throws Exceptionrn rn if(age==2)rn rn this.age=age;rn elsern rn throw new Exception("只能是2条腿");rn rn rnrnrn[/code]rn下面是测试类rn[code=java]rn/*rn * 测试类rn */rnpublic class Test rn public static void main(String []args)rn rn Pet dog=new Dog();rn try rn dog.setAge(2);rn catch (Exception e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn System.out.println("狗腿数"+dog.getAge());rn rnrnrn[/code]rn这三段代码有什么问题呀,为什么我输出狗的腿数不对?不是2 是0??求解异常不是很清楚
web项目异常求解
java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyablern at org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:263)rn at org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:238)rn at org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:332)rn at org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3731)rn at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4493)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1097)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: java.lang.ClassNotFoundException: org.apache.struts2.util.ObjectFactoryDestroyablern at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn ... 14 morern
hibernate异常求解
[color=#FF0000]异常问题:[/color]rnorg.hibernate.MappingException: invalid configurationrn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1579)rn at org.hibernate.cfg.Configuration.configure(Configuration.java:1520)rn at org.hibernate.cfg.Configuration.configure(Configuration.java:1506)rn at com.baidu.model.Test.main(Test.java:14)rnCaused by: org.xml.sax.SAXParseException: Document root element "hibernate-configuration", must match DOCTYPE root "hibernate-mapping".rn at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)rn at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)rn at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)rn at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)rn at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.rootElementSpecified(XMLDTDValidator.java:1621)rn at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1900)rn at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:764)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3095)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:921)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)rn at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)rn at org.dom4j.io.SAXReader.read(SAXReader.java:465)rn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1576)rn ... 3 morernrnrn[color=#FF0000]hibernate.cfg.xml[/color]rnrnrnrnrnrn rnrn rn com.mysql.jdbc.Driverrn jdbc:mysql://localhost:8080/Welcome2Hibernatern rootrn rootrnrn rn 1rnrn rn org.hibernate.dialect.MySQLDialectrnrn rn thread rnrn rn org.hibernate.cache.NoCacheProviderrnrn rn truern rn rnrn rn creaternrn rn rn rnrnrnrn[color=#FF0000]User.hbm.xml[/color]rnrnrn rnrn rn rn rn rn rn rn rn rn
运行时的异常 求解
运行时的异常:rn[System.InvalidOperationException] = "rnrnAction being performed on this control is being called from the wrong thread. Marshal to the correct thread using Control.Invoke or Control.BeginInvoke to perform this action.rnrn"rn我不了接rnrn能不能详细说说,往宽泛方面展开说说。
求解这个异常怎么回事
String resultStr = response.body().string();n JSONObject jsonObj = new JSONObject(resultStr);n String iconImg = jsonObj.getString("iconImg");n String result = jsonObj.getString("result");nnn运行 就报这个异常 org.json.JSONException: Value 260 of type java.lang.Integer cannot be converted to JSONObject
异常 框架 求解!!!
一个实现类 Class1. 类的某个过程发现异常(也可以自己丢出一个字符串当作异常的信息).这时候要吧异常的信息传递到 调用Class1的类.rnrn用事件.发现弄到后面很不规范rn谢谢!!
求解,axis webservice 异常
完全按照下面教程中的步骤做的:rn1.即时发布 JWS (Java Web Service) Files - InstantrnDeploymentrn即时发布提供了一种非常简单发布方式,发布者只要有Java 源代码(也就是.java 文件),rn然后把其后缀名改成jws ( 也就是 java web service 的缩写) 拷贝到rn%TOMCAT_HOME%\webapps\axis 目录下即完成了所有的发布工作。AXIS 的编译引擎会处rn理接下来的所有事情。下面是一段示例代码:rnjava 代码rnpublic class HelloAXIS rnpublic String Hello(String name)rnreturn "AXIS say hello to " + name;rnrnrn把 HelloAXIS.java 文件改成 HelloAXIS.jws 然后拷贝到rn%TOMCAT_HOME%\webapps\axis 目录下, 启动Tomcat 之后访问rnhttp://localhost:8080/axis/HelloAXIS.jws 如果能看到 Click to see the WSDL 这个超链接就说rn明已经发布成功了,点击进去就可以看到这个Webservice 的WSDL 描述文件。server 端的rn发布已经完成了,接下来就是编写Client 端测试代码了。rnjava 代码rnpackage com.chnic.test;rnimport java.net.URL;rnimport javax.xml.namespace.QName;rnimport org.apache.axis.client.Call;rnimport org.apache.axis.client.Service;rnpublic class Test rnpublic static void main(String[] args) throws ExceptionrnString targetEendPoint = "http://localhost:8080/axis/HelloAXIS.jws";rnService service = new Service();rnCall call = (Call) service.createCall();rncall.setOperationName(new QName(targetEendPoint, "Hello"));rncall.setTargetEndpointAddress(new URL(targetEendPoint));rnString result = (String) call.invoke(new Object[]"Robert");rnSystem.out.println(result);rnrnrn测试代码很简单,如果熟悉java 反射机制的朋友不用两分钟就能看明白。运行后客rn户端控制台出现 AXIS say hello Robert。测试成功。果然很简单吧。不过在这简单背后却是rn以牺牲灵活性为代价的。假如你现在手里只有.class 或者一个jar 包,jws 就不再能满足你的rn需求了,最要命的就是即时发布不支持带包的类,这点AXIS 的用户手册上写的也很明白。rnrn执行Test.jav的时候出现如下异常:rnException in thread "main" AxisFaultrn faultCode: http://schemas.xmlsoap.org/soap/envelope/Server.userExceptionrn faultSubcode: rn faultString: java.net.SocketException: Network is unreachable: connectrn faultActor: rn faultNode: rn faultDetail: rnrnTOMCAT已经启动,url可以通过浏览器访问,可是为什么在执行客户端的时候报出:java.net.SocketException: Network is unreachable: connect呢?rnrngoogle没能解决,baidu也没能解决。
struts2-showcase-2.1.6.war运行异常,求解
环境:rnjava version "1.5.0_04"rnJava(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)rnJava HotSpot(TM) Server VM (build 1.5.0_04-b05, mixed mode)rnrnrnSun Java System Application Server Enterprise Edition 8.1_02 (build b11-fcs) rnrn部署struts2自带工程struts2-showcase-2.1.6.war,部署成功rn但是运行时页面显示rn“HTTP 状态 404 - result 'null' not found”rnrn日志抛出异常:rn[#|2009-08-31T09:44:46.004+0800|INFO|sun-appserver-ee8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|2009-08-31 09:44:45,991 ERROR (com.opensymphony.xwork2.ObjectFactory:27) - Unable to set parameter [location] in result of type [org.apache.struts2.dispatcher.ServletDispatcherResult]rnCaught OgnlException while setting property 'location' on type 'org.apache.struts2.dispatcher.ServletDispatcherResult'. - Class: ognl.OgnlRuntimernFile: OgnlRuntime.javarnMethod: invokeMethodrnLine: 508 - ognl/OgnlRuntime.java:508:-1rn at com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:392)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setProperty(OgnlUtil.java:143)rn at com.opensymphony.xwork2.ognl.OgnlReflectionProvider.setProperty(OgnlReflectionProvider.java:91)rn at com.opensymphony.xwork2.ObjectFactory.buildResult(ObjectFactory.java:221)rn at com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActionInvocation.java:208)rn at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:355)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:265)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:163)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:249)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter.doFilter(StrutsExecuteFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)rn at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)rn at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)rn at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)rn at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter.doFilter(StrutsPrepareFilter.java:65)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)rn at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)rn at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)rn at com.sun.enterprise.web.connector.httpservice.HttpServiceProcessor.process(HttpServiceProcessor.java:226)rn at com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2071)rnCaused by: java.lang.IllegalAccessException: Method [public void or|#]rn
关于异常,求解
问题如下例所示:rnrnclass Arnrn tryrn rn //引发异常的代码rn rn catchrn rn B b = new B();rn rnrnclass Brnrn public B()rn rn //在这里能否访问到A中引发的异常堆栈?rn rnrnrn只是想学学知识,不是要解决什么实际问题,所以:rn1.请避免讨论代码的实际意义(因为本来就没有:) )rn2.请不要建议我修改或者增加Class A的代码rn3.如果您认为可以或者不可以,都请您尽可能详细的解释一下原理。rn4.可以义务帮顶,哈哈rnrn以上,谢谢!
项目异常求解
严重: Exception invoking periodic operation: rnjava.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyablern at org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:263)rn at org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:238)rn at org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:332)rn at org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3731)rn at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4493)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1097)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)rn at java.lang.Thread.run(Thread.java:619)
j2ee异常求解。
2012-4-26 11:42:21 org.apache.catalina.core.ApplicationDispatcher invokern严重: Servlet.service() for servlet jsp threw exceptionrnjava.lang.NoSuchMethodException: Unknown property 'Sid'rn at org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1122)rn at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:686)rn at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715)rn at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:290)rn at plantix.web.components.ext.grid.GridData.toJSONData(GridData.java:137)rn at plantix.web.components.ext.grid.GridData.toJSONString(GridData.java:108)rn at org.apache.jsp.tag.web.ptxext.griddata_tag.doTag(griddata_tag.java:99)rn at org.apache.jsp.WEB_002dINF.pages.bb.aa.listPtx_005fuserData_jsp._jspx_meth_p_005fgriddata_005f0(listPtx_005fuserData_jsp.java:89)rn at org.apache.jsp.WEB_002dINF.pages.bb.aa.listPtx_005fuserData_jsp._jspService(listPtx_005fuserData_jsp.java:62)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)rn at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:154)rn at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)rn at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:361)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:265)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:163)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:249)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)rn at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at plantix.web.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:84)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at plantix.core.context.ThreadContextCleanerFilter.doFilter(ThreadContextCleanerFilter.java:35)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:191)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:293)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)rn at java.lang.Thread.run(Thread.java:619)rnrnrn
ssh 项目 异常 求解
小弟在写一个小项目 遇到了Caused by: java.lang.NumberFormatException: For input string: ""异常,弄了一天还没找到错无的根源,求解 急!!!
bcp Proc异常求解
请教大神.rn我用下面这段执行是成功的,数据可以正常写入rnexec master..xp_cmdshell 'bcp AppStoreAnalysis.dbo.ActionLog in D:\Log\log.txt -f D:\Log\fmt\myLogFormatFiles.Xml -T'rnrn可是改成proc,运行就挂了.rn错误提示:未提供用户名,请使用 -U 提供用户名,或者使用 -T 指定可信连接rnproc:rnALTER PROCEDURE [dbo].[sp_bcp_tb_log]rn @filePath varchar(50),rn @fmtPath varchar(50)rnASrnBEGIN rn declare @temp varchar(400); rn set @temp = 'bcp AppStoreAnalysis.dbo.ActionLog in '+@filePath+' -f '+ @fmtPath +'-T';rn exec master..xp_cmdshell @temp;rnENDrnrnexec sp_bcp_tb_log 'D:\Log\log.txt','D:\Log\fmt\myLogFormatFiles.Xml'rnrn大神帮看下
相关热词 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池 c#5.0 安装程序 c# 分页算法