google-code-export / nutz

Automatically exported from code.google.com/p/nutz
Apache License 2.0
1 stars 1 forks source link

文件上传,服务启动报错! #232

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
2010-06-17 09:59:30,640 [main] INFO  org.nutz.mvc.NutServlet - Nutz.Mvc[nsms] is
 initializing ...
2010-06-17 09:59:31,015 [main] INFO  org.nutz.filepool.NutFilePool - Init file-p
ool by: ../tmp_upload [10]
2010-06-17 09:59:31,015 [main] WARN  org.nutz.mvc.invoker.ActionInvokerImpl - Fa
il to born 'org.nutz.mvc.upload.UploadAdaptor'
 by args: [
  @(../tmp_upload)
  @(8192)
  @(UTF-8)
  @(10)] becasue:
Fail to born 'org.nutz.mvc.upload.UploadAdaptor'
 by args: [
  @(../tmp_upload)
  @(8192)
  @(UTF-8)
  @(10)] becasue:
String index out of range: -14
org.nutz.lang.born.BorningException: Fail to born 'org.nutz.mvc.upload.UploadAda
ptor'
 by args: [
  @(../tmp_upload)
  @(8192)
  @(UTF-8)
  @(10)] becasue:
Fail to born 'org.nutz.mvc.upload.UploadAdaptor'
 by args: [
  @(../tmp_upload)
  @(8192)
  @(UTF-8)
  @(10)] becasue:
String index out of range: -14
        at org.nutz.lang.MirrorBorning.born(MirrorBorning.java:41)
        at org.nutz.lang.Mirror.born(Mirror.java:739)
        at org.nutz.mvc.invoker.ActionInvokerImpl.evalObject(ActionInvokerImpl.j
ava:162)
        at org.nutz.mvc.invoker.ActionInvokerImpl.evalHttpAdaptor(ActionInvokerI
mpl.java:130)
        at org.nutz.mvc.invoker.ActionInvokerImpl.<init>(ActionInvokerImpl.java:
73)
        at org.nutz.mvc.init.UrlMapImpl.add(UrlMapImpl.java:97)
        at org.nutz.mvc.init.DefaultLoading.loadSubModules(DefaultLoading.java:1
24)
        at org.nutz.mvc.init.DefaultLoading.load(DefaultLoading.java:64)
        at org.nutz.mvc.NutServlet.init(NutServlet.java:78)
        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1161)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:98
1)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:4045)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
351)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2010-06-17 09:59:31,062 [main] ERROR org.nutz.mvc.NutServlet - Error happend dur
ing start serivce!
org.nutz.lang.born.BorningException: Fail to born 'org.nutz.mvc.upload.UploadAda
ptor'
 by args: [
  @(../tmp_upload)
  @(8192)
  @(UTF-8)
  @(10)] becasue:
Fail to born 'org.nutz.mvc.upload.UploadAdaptor'
 by args: [
  @(../tmp_upload)
  @(8192)
  @(UTF-8)
  @(10)] becasue:
String index out of range: -14
        at org.nutz.lang.MirrorBorning.born(MirrorBorning.java:41)
        at org.nutz.lang.Mirror.born(Mirror.java:739)
        at org.nutz.mvc.invoker.ActionInvokerImpl.evalObject(ActionInvokerImpl.j
ava:162)
        at org.nutz.mvc.invoker.ActionInvokerImpl.evalHttpAdaptor(ActionInvokerI
mpl.java:130)
        at org.nutz.mvc.invoker.ActionInvokerImpl.<init>(ActionInvokerImpl.java:
73)
        at org.nutz.mvc.init.UrlMapImpl.add(UrlMapImpl.java:97)
        at org.nutz.mvc.init.DefaultLoading.loadSubModules(DefaultLoading.java:1
24)
        at org.nutz.mvc.init.DefaultLoading.load(DefaultLoading.java:64)
        at org.nutz.mvc.NutServlet.init(NutServlet.java:78)
        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1161)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:98
1)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:4045)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
351)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2010-6-17 9:59:31 org.apache.catalina.startup.HostConfig deployWAR
信息: Deploying web application archive zcms.war
INFO: 10-06-17 09:59:32 ----ZCMS(泽元网站内容管理系统): Config 
Initialized----
INFO: 10-06-17 09:59:32 Default.:创建新连接,总数:1
INFO: 10-06-17 09:59:32 select type,value from zdconfig {}
INFO: 10-06-17 09:59:32 ----ZCMS(泽元网站内容管理系统): CronManager 
Initialized-

---
INFO: 10-06-17 09:59:32 ----ZCMS(泽元网站内容管理系统): MainFilter 
Initialized--
--
2010-6-17 9:59:32 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: 
validateJarFile(D:\AppServer\apache-tomcat-6.0.14\webapps\city\WEB-INF\lib
\j2ee.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending clas
s: javax/servlet/Servlet.class
INFO: 10-06-17 09:59:32 select * from ZCStatItem where Period=? and Type=?
{201006,Client}
INFO: 10-06-17 09:59:32 select * from ZCStatItem where Period=? and Type=?
{201006,Global}
INFO: 10-06-17 09:59:32 select * from ZCStatItem where Period=? and Type=?
{201006,Hour}
INFO: 10-06-17 09:59:32 select * from ZCStatItem where Period=? and Type=?
{201006,Source}
INFO: 10-06-17 09:59:32 select * from ZCStatItem where Period=? and Type=?
{201006,Catalog}
INFO: 10-06-17 09:59:32 select * from ZCStatItem where Period=? and Type=?
{201006,URL}
INFO: 10-06-17 09:59:32 select ID from ZCAdPosition     {}
INFO: 10-06-17 09:59:32 正在更新统计信息......
INFO: 10-06-17 09:59:32 update ZCAdvertisement set HitCount=HitCount+? where ID=
?       {}
INFO: 10-06-17 09:59:32 update ZCArticle set StickTime=(HitCount*StickTime+?*?)/
(HitCount+?),HitCount=HitCount+? where ID=?     {}
INFO: 10-06-17 09:59:32 update ZCImage set StickTime=(HitCount*StickTime+?*?)/(H
itCount+?),HitCount=HitCount+? where ID=?       {}
INFO: 10-06-17 09:59:32 update ZCVideo set StickTime=(HitCount*StickTime+?*?)/(H
itCount+?),HitCount=HitCount+? where ID=?       {}
INFO: 10-06-17 09:59:32 Default.:创建新连接,总数:2
INFO: 10-06-17 09:59:32 更新统计信息耗时 63 毫秒.
INFO: 10-06-17 09:59:32 select ID from ZCAdvertisement where PositionID = 301 an
d StartTime < '2010-06-17 09:59:32' and EndTime > '2010-06-17 09:59:32' order by
 AddTime desc   {}
INFO: 10-06-17 09:59:32 select ID from ZCAdvertisement where PositionID = 302 an
d StartTime < '2010-06-17 09:59:32' and EndTime > '2010-06-17 09:59:32' order by
 AddTime desc   {}
INFO: 10-06-17 09:59:33 update ZCArticle set TopFlag='0' where topflag='1' and t
opdate is not null and topdate<=?       {Thu Jun 17 09:59:33 CST 2010}
2010-6-17 9:59:33 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-1988
2010-6-17 9:59:33 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2010-6-17 9:59:33 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/31  config=null
2010-6-17 9:59:33 org.apache.catalina.startup.Catalina start
信息: Server startup in 3561 ms

Original issue reported on code.google.com by shao0...@163.com on 17 Jun 2010 at 2:02

GoogleCodeExporter commented 9 years ago
请列出你使用的版本号/JDK版本/tomcat版本, thx

另外,请尝试一下 最新的版本,看看是否出现相同的问题.

Original comment by wendal1985@gmail.com on 17 Jun 2010 at 3:23

GoogleCodeExporter commented 9 years ago
没有下文了?
关掉了.

Original comment by wendal1985@gmail.com on 20 Oct 2010 at 4:26

GoogleCodeExporter commented 9 years ago
由于文件池太大造成,在nutz1.a.31.jar中这个问题已经解决了,��
�呵,在这还要谢谢nutz设计者和开发者。

Original comment by shao0...@163.com on 20 Oct 2010 at 4:34