JFinal

登录 注册

jfinal3.4升级到3.5出错

17:56:40.982 logback [MLog-Init-Reporter] INFO  com.mchange.v2.log.MLog - MLog clients using slf4j logging.

17:56:41.057 logback [localhost-startStop-1] INFO  com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.5.1 [built 16-June-2015 00:06:36 -0700; debug? true; trace: 10]

17:56:41.196 logback [localhost-startStop-1] INFO  c.m.v.c.i.AbstractPoolBackedDataSource - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 2, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, dataSourceName -> 1hge15w9ypx0l3j1xkmyiv|72f4e39b, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, extensions -> {}, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceSynchronousCheckins -> false, forceUseNamedDriverClass -> false, identityToken -> 1hge15w9ypx0l3j1xkmyiv|72f4e39b, idleConnectionTestPeriod -> 0, initialPoolSize -> 10, jdbcUrl -> jdbc:mysql://localhost:3306/tianmaosystem?characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 20, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 100, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 10, numHelperThreads -> 3, preferredTestQuery -> null, privilegeSpawnedThreads -> false, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]


2018-10-10 17:56:41

[WARN]-[Thread: localhost-startStop-1]-[com.jfinal.core.paragetter.ParaProcessorBuilder.createParaGetter()]: you should add compiler flag -parameters to support parameter auto binding


2018-10-10 17:56:41

[WARN]-[Thread: localhost-startStop-1]-[com.jfinal.core.paragetter.ParaProcessorBuilder.createParaGetter()]: you should add compiler flag -parameters to support parameter auto binding


Exception: The action "com.cn.wt.core.controller.UserController.index()" can not be mapped, actionKey "/user" is already in use.


十月 10, 2018 5:56:41 下午 org.apache.catalina.core.StandardContext filterStart

严重: Exception starting filter jfinal

java.lang.RuntimeException: The action "com.cn.wt.core.controller.UserController.index()" can not be mapped, actionKey "/user" is already in use.

at com.jfinal.core.ActionMapping.buildActionMapping(ActionMapping.java:107)

at com.jfinal.core.JFinal.initActionMapping(JFinal.java:103)

at com.jfinal.core.JFinal.init(JFinal.java:64)

at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:62)

at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)

at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)

at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)

at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4908)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5602)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)

at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)


十月 10, 2018 5:56:41 下午 org.apache.catalina.core.StandardContext startInternal

严重: One or more Filters failed to start. Full details will be found in the appropriate container log file

十月 10, 2018 5:56:41 下午 org.apache.catalina.core.StandardContext startInternal

严重: Context [/TianmaoSystem] startup failed due to previous errors

十月 10, 2018 5:56:41 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc

严重: The web application [/TianmaoSystem] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

十月 10, 2018 5:56:41 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads

严重: The web application [/TianmaoSystem] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1hge15w9ypx0l3j1xkmyiv|72f4e39b]-AdminTaskTimer] but has failed to stop it. This is very likely to create a memory leak.

十月 10, 2018 5:56:41 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads

严重: The web application [/TianmaoSystem] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1hge15w9ypx0l3j1xkmyiv|72f4e39b]-HelperThread-#0] but has failed to stop it. This is very likely to create a memory leak.

十月 10, 2018 5:56:41 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads

严重: The web application [/TianmaoSystem] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1hge15w9ypx0l3j1xkmyiv|72f4e39b]-HelperThread-#1] but has failed to stop it. This is very likely to create a memory leak.

十月 10, 2018 5:56:41 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads

严重: The web application [/TianmaoSystem] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1hge15w9ypx0l3j1xkmyiv|72f4e39b]-HelperThread-#2] but has failed to stop it. This is very likely to create a memory leak.

十月 10, 2018 5:56:41 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads

严重: The web application [/TianmaoSystem] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.

十月 10, 2018 5:56:41 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\apache-tomcat-7.0.69\webapps\TianmaoSystem has finished in 4,501 ms

十月 10, 2018 5:56:41 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\apache-tomcat-7.0.69\webapps\upload

十月 10, 2018 5:56:41 下午 org.apache.catalina.startup.TldConfig execute

信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

十月 10, 2018 5:56:41 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\apache-tomcat-7.0.69\webapps\upload has finished in 83 ms

十月 10, 2018 5:56:41 下午 org.apache.coyote.AbstractProtocol start

信息: Starting ProtocolHandler ["http-apr-8080"]

十月 10, 2018 5:56:41 下午 org.apache.coyote.AbstractProtocol start

信息: Starting ProtocolHandler ["ajp-apr-8009"]

十月 10, 2018 5:56:41 下午 org.apache.catalina.startup.Catalina start

信息: Server startup in 5638 ms

十月 10, 2018 5:57:01 下午 org.apache.catalina.loader.WebappClassLoaderBase loadClass

信息: Illegal access: this web application instance has been stopped already.  Could not load ch.qos.logback.core.status.WarnStatus.  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.

java.lang.IllegalStateException

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1743)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)

at ch.qos.logback.classic.LoggerContext.noAppenderDefinedWarning(LoggerContext.java:186)

at ch.qos.logback.classic.Logger.callAppenders(Logger.java:264)

at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:421)

at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:383)

at ch.qos.logback.classic.Logger.debug(Logger.java:482)

at com.mchange.v2.log.slf4j.Slf4jMLog$Slf4jMLogger$DebugLogger.log(Slf4jMLog.java:195)

at com.mchange.v2.log.slf4j.Slf4jMLog$Slf4jMLogger.log(Slf4jMLog.java:238)

at com.mchange.v2.resourcepool.BasicResourcePool$CullTask.run(BasicResourcePool.java:2147)

at java.util.TimerThread.mainLoop(Timer.java:555)

at java.util.TimerThread.run(Timer.java:505)


评论

  • 10-10 18:13
    问一下大家,我自己定义了一个baseController,其余的都集成自他,我在这个基类中加入@NotAction 居然没问题了。
  • 10-10 18:13
    public abstract class BaseController extends Controller {
    LogController controller=new LogController();
    /**
    * 列表加载
    */
    @NotAction
    public abstract void index()throws Exception;
    /**
    * 分页方法
    */
    @NotAction
    public abstract void getPages()throws Exception;
    /**
    * 新增/编辑进入页面方法
    */
    @NotAction
    public abstract void edit()throws Exception;
  • 10-10 18:14
    波哥方便的时候或者大家谁知道,帮我解答一下,这样处理不会埋着什么隐患吧
  • 10-11 10:53
    @黑猫惊涨 由于 jfinal 3.5 支持了 action 带参功能,也就是说以前你在 BaseControlelr 中的那些带参的方法在 jfinal 3.4 的时候不是 action ,但到了 3.5 变成了 action

    所以可能会出现 actionKey 冲突,因为多出来了一些 BaseController 中的 actionkey,这个正是 @NotAction 的应用场景,加上 @NotAction 极其正确的做法
  • 10-11 16:49
    @JFinal 感谢波哥
  • 发送