-
Freemarker的问题 第二次 logger为空5
严重: The web application [/zflow] 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.
2012-5-21 9:50:54 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/zflow] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak.
2012-5-21 9:50:54 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/zflow] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
2012-5-21 9:50:54 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/zflow] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@12e39db]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1d86dfc]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2012-5-21 9:50:54 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/zflow] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@12e39db]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1cc8a5]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2012-5-21 9:50:54 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/zflow] created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Transactional resources]) and a value of type [java.util.HashMap] (value [{org.hibernate.impl.SessionFactoryImpl@72f1ca=org.springframework.orm.hibernate3.SessionHolder@1b8f1ba, org.apache.commons.dbcp.BasicDataSource@5a5a3d=org.springframework.jdbc.datasource.ConnectionHolder@105f36d}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2012-5-21 9:50:54 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/zflow] created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Transaction synchronizations]) and a value of type [java.util.LinkedList] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2012-5-21 9:50:54 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/zflow] created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Current transaction name]) and a value of type [java.lang.String] (value [com.bizduo.zflow.service.form.impl.FormService.addTabelConfig]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2012-5-21 9:50:54 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/zflow] created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Current aspect-driven transaction]) and a value of type [org.springframework.transaction.interceptor.TransactionAspectSupport.TransactionInfo] (value [PROPAGATION_REQUIRED,ISOLATION_DEFAULT]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2012-5-21 9:50:54 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/zflow] created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Current AOP method invocation]) and a value of type [org.springframework.aop.framework.ReflectiveMethodInvocation] (value [ReflectiveMethodInvocation: public abstract void com.bizduo.zflow.service.form.IFormService.addTabelConfig(com.bizduo.zflow.domain.form.Form); target is of class [com.bizduo.zflow.service.form.impl.FormService]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2012-5-21 9:50:54 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/zflow] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@12e39db]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1b07bae]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2012-5-21 9:50:54 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/zflow] created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Actual transaction active]) and a value of type [java.lang.Boolean] (value [true]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2012-5-21 9:50:54 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/zflow] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@188024d]) and a value of type [org.apache.struts2.dispatcher.Dispatcher] (value [org.apache.struts2.dispatcher.Dispatcher@4f3f41]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2012-5-21 9:50:54 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/zflow] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@c1d913]) and a value of type [org.springframework.security.context.SecurityContextImpl] (value [org.springframework.security.context.SecurityContextImpl@69ec09e9: Authentication: org.springframework.security.providers.anonymous.AnonymousAuthenticationToken@69ec09e9: Principal: roleAnonymous; Password: [PROTECTED]; Authenticated: true; Details: org.springframework.security.ui.WebAuthenticationDetails@957e: RemoteIpAddress: 127.0.0.1; SessionId: null; Granted Authorities: ROLE_ANONYMOUS]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2012-5-21 9:50:54 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/zflow] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@92a526]) and a value of type [com.opensymphony.xwork2.ActionContext] (value [com.opensymphony.xwork2.ActionContext@1989145]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2012-5-21 9:50:55 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
2012-5-21 9:50:59 net.sf.ehcache.config.ConfigurationFactory parseConfiguration
警告: No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/E:/test/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp16/wtpwebapps/zflow/WEB-INF/lib/ehcache-core-1.7.0.jar!/ehcache-failsafe.xml
2012-5-21 9:51:00 net.sf.ehcache.util.UpdateChecker doCheck
信息: New update(s) found: 2.4.7 [http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.4]
第一次正常,但是有如上的信息,的二次就出错了
java.lang.NullPointerException
at freemarker.log.Log4JLoggerFactory$Log4JLogger.isDebugEnabled(Log4JLoggerFactory.java:121)
at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:248)
at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:235)
at freemarker.template.Configuration.getTemplate(Configuration.java:487)
at freemarker.template.Configuration.getTemplate(Configuration.java:459)
at com.bizduo.zflow.util.builUtil.FreemarkerRender.render(FreemarkerRender.java:62)
at com.bizduo.zflow.util.CForm.createRenderClass(CForm.java:134)
at com.bizduo.zflow.util.CForm.createForm(CForm.java:69)
at com.bizduo.zflow.service.form.impl.FormService.addTabelConfig(FormService.java:113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy7.addTabelConfig(Unknown Source)
at com.bizduo.zflow.action.form.FormAction.createTable(FormAction.java:383)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2012年5月21日 09:57
目前还没有答案
相关推荐
然而,在使用FreeMarker时,我们经常需要判断对象是否为空,以避免因引用空对象而导致的错误。本文将详细介绍如何在FreeMarker中进行这种判断。 在FreeMarker中,我们可以使用条件语句`<#if>`来检查对象是否为空。...
FreeMarker提供了详细的日志输出,通过调整日志级别,你可以查看模板解析、执行的详细信息,这对于查找问题非常有用。 最后,关于标签的性能考虑,应避免在自定义标签中执行耗时操作,因为这会影响模板的渲染速度。...
4. **错误检查和警告**:实时检测Freemarker模板中的语法错误和潜在问题,帮助开发者尽早发现并修复错误。 5. **导航和查找**:支持快速定位模板中的特定元素,如变量、指令等,以及查找和替换功能。 6. **集成...
在Struts2中配置Freemarker,需要添加相应的插件,并指定Action返回的结果类型为"freemarker"。模板文件通常放在`src/main/resources/WEB-INF/freemarker`目录下。 5. **模板配置** 在`struts.xml`或`struts....
在代码示例中,首先实例化了`Configuration`对象,这是使用Freemarker的第一步。通过设置`setClassForTemplateLoading`方法,指定了模板文件的加载位置,通常这些模板文件是以`.ftl`(Freemarker Template Language...
在处理Freemarker模板引擎时,中文乱码问题是一个常见的挑战,尤其是在国际化应用中。Freemarker是一款功能强大的模板引擎,被广泛应用于Web开发中,用于动态生成HTML、XML等文本格式的页面。然而,当涉及到非英文...
FreeMarker中的宏允许我们封装可重用的代码块,这在实现通用分页时显得尤为重要。宏`genPagination`是为分页而创建的核心组件,其参数包括: - `url`:指定的URL,用于构建页面链接。 - `totalPages`:总页数。 - `...
8. **错误处理**:当模板存在错误时,Freemarker会抛出异常,并提供详细的错误信息,帮助开发者快速定位问题。 9. **API和配置**:Java应用程序可以使用Freemarker提供的API来加载、解析和渲染模板。同时,...
为了提高性能,FreeMarker支持预编译模板,将模板转化为Java类,减少运行时解析。另外,还可以使用缓存策略,避免不必要的模板加载和解析。 10. **与其他技术的集成** FreeMarker能轻松地与Spring、Struts、Java...
此外,`<#ftl>` 标签允许开启或关闭调试模式,便于排查问题。 8. **国际化与本地化**:FreeMarker 支持多语言环境,可以通过`<#t>`和`<#lt>`标签进行文本的国际化和本地化处理。 9. **缓存机制**:为了提高性能,...
这个"freemarker-2.3.28.jar"是Freemarker库的一个具体版本,版本号为2.3.28,它是Java的一个可执行的JAR(Java Archive)文件,用于在Eclipse集成开发环境中作为插件使用。 在Freemarker的2.3.28版本中,我们可以...
camel-freemarker-1.6.4.jar, camel-freemarker-2.8.1.jar, com.springsource.freemarker-2.3.15.jar, com.springsource.freemarker-sources-2.3.15.jar, freemarker-1.4.1.jar, freemarker-2-3-18.jar, freemarker-...
`freemarker.jar`是Freemarker库的二进制文件,它是实际运行时需要导入到Java项目的类路径中的,以便使用Freemarker的功能,如创建模板、解析数据模型并生成最终输出。 `source`目录可能包含了Freemarker 2.3.22的...
length`可以检查字符串是否为空。例如: ```html 字符串为空或仅包含空格 字符串不为空 ``` 6. **字符串转换**: FreeMarker提供了`?html`、`?url`等转换器,可以将字符串转义为安全的HTML或URL。例如...
8. **模板调试**:FreeMarker提供了调试工具,帮助开发者定位模板中的错误和问题,提高开发效率。 9. **与Spring框架集成**:在Spring MVC中,FreeMarker作为视图解析器,可以方便地与模型数据结合,生成动态视图。...
"freemarker编辑插件"就是这样一个工具,它可以集成到Eclipse或其他的IDE中,为开发者提供便利。 Eclipse是一款广泛使用的开源Java集成开发环境,它提供了丰富的插件系统来扩展其功能。"freemarker编辑插件"能够...