NutzCN Logo
问答 3.38,执行maven install 提示以下错误
发布于 2740天前 作者 yhq1212 3053 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-mock/1.r.61-SNAPSHOT/nutz-plugins-mock-1.r.61-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.505s
[INFO] Finished at: Thu Jun 22 20:43:00 CST 2017
[INFO] Final Memory: 6M/122M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project nutzwk: Could not resolve dependencies for project cn.wizzer:nutzwk:war:3.3.8: Failed to collect dependencies for [javax.servlet:javax.servlet-api:jar:3.1.0 (provided), org.nutz:nutz:jar:1.r.61-SNAPSHOT (compile), org.nutz:nutz-plugins-daocache:jar:1.r.61-SNAPSHOT (compile), org.nutz:nutz-plugins-cache:jar:1.r.61-SNAPSHOT (compile), org.nutz:nutz-integration-jedis:jar:1.r.61-SNAPSHOT (compile), org.nutz:nutz-integration-quartz:jar:1.r.61-SNAPSHOT (compile), org.nutz:nutzwx:jar:1.r.61-SNAPSHOT (compile), org.nutz:nutz-plugins-views:jar:1.r.61-SNAPSHOT (compile), cn.enilu.tools:nutzwk-code-generator:jar:1.3.2 (compile), com.vdurmont:emoji-java:jar:3.2.0 (compile), org.quartz-scheduler:quartz:jar:2.2.3 (compile), org.apache.shiro:shiro-web:jar:1.2.5 (compile), org.apache.shiro:shiro-core:jar:1.2.5 (compile), org.slf4j:slf4j-log4j12:jar:1.7.21 (compile), org.slf4j:slf4j-api:jar:1.7.21 (compile), log4j:log4j:jar:1.2.17 (compile), cn.apiclub.tool:simplecaptcha:jar:1.2.2 (compile), com.alibaba:druid:jar:1.0.26 (compile), mysql:mysql-connector-java:jar:5.1.39 (compile), net.sourceforge.jtds:jtds:jar:1.3.1 (compile), com.google.zxing:javase:jar:3.2.1 (compile), net.sf.ehcache:ehcache:jar:2.10.3 (compile), redis.clients:jedis:jar:2.8.1 (compile), org.apache.commons:commons-email:jar:1.4 (compile), com.sun.mail:javax.mail:jar:1.5.5 (compile), javax.activation:activation:jar:1.1.1 (compile), org.apache.commons:commons-lang3:jar:3.4 (compile), org.apache.shiro:shiro-ehcache:jar:1.3.2 (compile), commons-beanutils:commons-beanutils-core:jar:1.8.3 (compile), com.ibeetl:beetl:jar:2.5.2 (compile), commons-collections:commons-collections:jar:3.2.1 (compile), commons-lang:commons-lang:jar:2.6 (compile), commons-logging:commons-logging:jar:1.1 (compile), org.brickred:socialauth:jar:4.12 (compile), org.json:json:jar:20160212 (compile), junit:junit:jar:4.12 (test), maven:dom4j:jar:1.7-20060614 (test), io.jsonwebtoken:jjwt:jar:0.6.0 (compile), com.fasterxml.jackson.core:jackson-databind:jar:2.8.1 (compile), org.nutz:nutz-plugins-mock:jar:1.r.61-SNAPSHOT (test)]: Failed to read artifact descriptor for org.nutz:nutz:jar:1.r.61-SNAPSHOT: Could not transfer artifact org.nutz:nutz:pom:1.r.61-SNAPSHOT from/to ossrh (https://jfrog.nutz.cn/artifactory/snapshots): Received fatal alert: handshake_failure to https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.61-SNAPSHOT/nutz-1.r.61-SNAPSHOT.pom -> [Help 1] [ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

35 回复

jdk版本多少

nutzwk需要JDK 1.8最新版

我查看了一下1.0版本,配置写的是1.7;但是编译时提示代码有误;3.3.8提示上述错误;
相应的说明部署资料及文档有没有呢?论坛里面没有相应资料,解答式回答双方都耗时呀。

C:\Users\Administrator>mvn -version
Apache Maven 3.3.1 (cab6659f9874fa96462afef40fcf6bc033d58c1c; 2015-03-14T04:10:2
7+08:00)
Maven home: D:\Program Files\apache-maven-3.3.1\bin..
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_131\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.974 s
[INFO] Finished at: 2017-06-23T06:12:06+08:00
[INFO] Final Memory: 16M/175M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:3.0.2:j
ar (default) on project nutzwk: Execution default of goal org.apache.maven.plugi
ns:maven-jar-plugin:3.0.2:jar failed: A required class was missing while executi
ng org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar: org/apache/commons/compr
ess/parallel/InputStreamSupplier
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-jar-plugin:3.0.2
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/e:/maven_repository/org/apache/maven/plugins/maven-jar-p
lugin/3.0.2/maven-jar-plugin-3.0.2.jar
[ERROR] urls[1] = file:/e:/maven_repository/org/sonatype/sisu/sisu-inject-bean/1
.4.2/sisu-inject-bean-1.4.2.jar
[ERROR] urls[2] = file:/e:/maven_repository/org/sonatype/sisu/sisu-guice/2.1.7/s
isu-guice-2.1.7-noaop.jar
[ERROR] urls[3] = file:/e:/maven_repository/org/sonatype/aether/aether-util/1.7/
aether-util-1.7.jar
[ERROR] urls[4] = file:/e:/maven_repository/org/codehaus/plexus/plexus-interpola
tion/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[5] = file:/e:/maven_repository/org/codehaus/plexus/plexus-component
-annotations/1.6/plexus-component-annotations-1.6.jar
[ERROR] urls[6] = file:/e:/maven_repository/org/sonatype/plexus/plexus-sec-dispa
tcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[7] = file:/e:/maven_repository/org/sonatype/plexus/plexus-cipher/1.
4/plexus-cipher-1.4.jar
[ERROR] urls[8] = file:/e:/maven_repository/org/apache/maven/maven-archiver/3.1.
1/maven-archiver-3.1.1.jar
[ERROR] urls[9] = file:/e:/maven_repository/org/apache/maven/shared/maven-shared
-utils/3.0.1/maven-shared-utils-3.0.1.jar
[ERROR] urls[10] = file:/e:/maven_repository/commons-io/commons-io/2.5/commons-i
o-2.5.jar
[ERROR] urls[11] = file:/e:/maven_repository/org/codehaus/plexus/plexus-archiver
/3.4/plexus-archiver-3.4.jar
[ERROR] urls[12] = file:/e:/maven_repository/org/codehaus/plexus/plexus-io/2.7.1
/plexus-io-2.7.1.jar
[ERROR] urls[13] = file:/e:/maven_repository/org/apache/commons/commons-compress
/1.11/commons-compress-1.11.jar
[ERROR] urls[14] = file:/e:/maven_repository/org/iq80/snappy/snappy/0.4/snappy-0
.4.jar
[ERROR] urls[15] = file:/e:/maven_repository/org/tukaani/xz/1.5/xz-1.5.jar
[ERROR] urls[16] = file:/e:/maven_repository/org/codehaus/plexus/plexus-utils/3.
0.24/plexus-utils-3.0.24.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] [ERROR]
[ERROR] -----------------------------------------------------: org.apache.common
s.compress.parallel.InputStreamSupplier
[ERROR] -> [Help 1] [ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] [ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContaine
rException

更换maven版本至3.5后,提示错误如下

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.750 s
[INFO] Finished at: 2017-06-23T06:18:45+08:00
[INFO] Final Memory: 18M/181M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:3.0.2:j
ar (default) on project nutzwk: Execution default of goal org.apache.maven.plugi
ns:maven-jar-plugin:3.0.2:jar failed: A required class was missing while executi
ng org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar: org/apache/commons/compr
ess/archivers/zip/ZipArchiveEntry
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-jar-plugin:3.0.2
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/e:/maven_repository/org/apache/maven/plugins/maven-jar-p
lugin/3.0.2/maven-jar-plugin-3.0.2.jar
[ERROR] urls[1] = file:/e:/maven_repository/org/sonatype/sisu/sisu-inject-bean/1
.4.2/sisu-inject-bean-1.4.2.jar
[ERROR] urls[2] = file:/e:/maven_repository/org/sonatype/sisu/sisu-guice/2.1.7/s
isu-guice-2.1.7-noaop.jar
[ERROR] urls[3] = file:/e:/maven_repository/org/apache/maven/maven-aether-provid
er/3.0/maven-aether-provider-3.0.jar
[ERROR] urls[4] = file:/e:/maven_repository/org/sonatype/aether/aether-util/1.7/
aether-util-1.7.jar
[ERROR] urls[5] = file:/e:/maven_repository/org/codehaus/plexus/plexus-interpola
tion/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[6] = file:/e:/maven_repository/org/codehaus/plexus/plexus-component
-annotations/1.6/plexus-component-annotations-1.6.jar
[ERROR] urls[7] = file:/e:/maven_repository/org/sonatype/plexus/plexus-sec-dispa
tcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[8] = file:/e:/maven_repository/org/sonatype/plexus/plexus-cipher/1.
4/plexus-cipher-1.4.jar
[ERROR] urls[9] = file:/e:/maven_repository/org/apache/maven/maven-archiver/3.1.
1/maven-archiver-3.1.1.jar
[ERROR] urls[10] = file:/e:/maven_repository/org/apache/maven/shared/maven-share
d-utils/3.0.1/maven-shared-utils-3.0.1.jar
[ERROR] urls[11] = file:/e:/maven_repository/commons-io/commons-io/2.5/commons-i
o-2.5.jar
[ERROR] urls[12] = file:/e:/maven_repository/org/codehaus/plexus/plexus-archiver
/3.4/plexus-archiver-3.4.jar
[ERROR] urls[13] = file:/e:/maven_repository/org/codehaus/plexus/plexus-io/2.7.1
/plexus-io-2.7.1.jar
[ERROR] urls[14] = file:/e:/maven_repository/org/apache/commons/commons-compress
/1.11/commons-compress-1.11.jar
[ERROR] urls[15] = file:/e:/maven_repository/org/iq80/snappy/snappy/0.4/snappy-0
.4.jar
[ERROR] urls[16] = file:/e:/maven_repository/org/tukaani/xz/1.5/xz-1.5.jar
[ERROR] urls[17] = file:/e:/maven_repository/org/codehaus/plexus/plexus-utils/3.
0.24/plexus-utils-3.0.24.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] [ERROR]
[ERROR] -----------------------------------------------------
[ERROR] : org.apache.commons.compress.archivers.zip.ZipArchiveEntry
[ERROR] -> [Help 1] [ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] [ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContaine
rException

jar文件损坏了

e:/maven_repository/org/codehaus/plexus/plexus-utils/3.
0.24/plexus-utils-3.0.24.jar

把maven_repository删了吧,估计是一些jar损坏了

Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-mock/1.r.61-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-mock/1.r.61-SNAPSHOT/maven-metadata.xml (980 B at 2.7 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.647s
[INFO] Finished at: Fri Jun 23 10:59:55 CST 2017
[INFO] Final Memory: 10M/220M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project nutzwk: Could not resolve dependencies for project cn.wizzer:nutzwk:war:3.3.8: Failed to collect dependencies for [javax.servlet:javax.servlet-api:jar:3.1.0 (provided), org.nutz:nutz:jar:1.r.61-SNAPSHOT (compile), org.nutz:nutz-plugins-daocache:jar:1.r.61-SNAPSHOT (compile), org.nutz:nutz-plugins-cache:jar:1.r.61-SNAPSHOT (compile), org.nutz:nutz-integration-jedis:jar:1.r.61-SNAPSHOT (compile), org.nutz:nutz-integration-quartz:jar:1.r.61-SNAPSHOT (compile), org.nutz:nutzwx:jar:1.r.61-SNAPSHOT (compile), org.nutz:nutz-plugins-views:jar:1.r.61-SNAPSHOT (compile), cn.enilu.tools:nutzwk-code-generator:jar:1.3.2 (compile), com.vdurmont:emoji-java:jar:3.2.0 (compile), org.quartz-scheduler:quartz:jar:2.2.3 (compile), org.apache.shiro:shiro-web:jar:1.2.5 (compile), org.apache.shiro:shiro-core:jar:1.2.5 (compile), org.slf4j:slf4j-log4j12:jar:1.7.21 (compile), org.slf4j:slf4j-api:jar:1.7.21 (compile), log4j:log4j:jar:1.2.17 (compile), cn.apiclub.tool:simplecaptcha:jar:1.2.2 (compile), com.alibaba:druid:jar:1.0.26 (compile), mysql:mysql-connector-java:jar:5.1.41 (compile), net.sourceforge.jtds:jtds:jar:1.3.1 (compile), com.google.zxing:javase:jar:3.2.1 (compile), net.sf.ehcache:ehcache:jar:2.10.3 (compile), redis.clients:jedis:jar:2.8.1 (compile), org.apache.commons:commons-email:jar:1.4 (compile), com.sun.mail:javax.mail:jar:1.5.5 (compile), javax.activation:activation:jar:1.1.1 (compile), org.apache.commons:commons-lang3:jar:3.4 (compile), org.apache.shiro:shiro-ehcache:jar:1.3.2 (compile), commons-beanutils:commons-beanutils-core:jar:1.8.3 (compile), com.ibeetl:beetl:jar:2.5.2 (compile), commons-collections:commons-collections:jar:3.2.1 (compile), commons-lang:commons-lang:jar:2.6 (compile), commons-logging:commons-logging:jar:1.1 (compile), org.brickred:socialauth:jar:4.12 (compile), org.json:json:jar:20160212 (compile), junit:junit:jar:4.12 (test), maven:dom4j:jar:1.7-20060614 (test), io.jsonwebtoken:jjwt:jar:0.6.0 (compile), com.fasterxml.jackson.core:jackson-databind:jar:2.8.1 (compile), org.nutz:nutz-plugins-mock:jar:1.r.61-SNAPSHOT (test)]: Failed to read artifact descriptor for net.sourceforge.jtds:jtds:jar:1.3.1: Could not transfer artifact net.sourceforge.jtds:jtds:pom:1.3.1 from/to central (http://repo.maven.apache.org/maven2): Remotely Closed [id: 0x3501b535, /192.168.124.185:8322 :> repo.maven.apache.org/151.101.24.215:80] -> [Help 1] [ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

删除后的新错误。

贴你的settings.xml,肯定是里面的mirror不对

http://nutzam.com/core/basic/maven.html

MVN为3.3.5,settings.xmL没做任何修改。


中间为注释。

 <mirrors>
    <!-- mirror
     | Specifies a repository mirror site to use instead of a given repository. The repository that
     | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
     | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
     |
    <mirror>
      <id>mirrorId</id>
      <mirrorOf>repositoryId</mirrorOf>
      <name>Human Readable Name for this Mirror.</name>
      <url>http://my.repository.com/repo/path</url>
    </mirror>
     -->
	 
  </mirrors>

那怎么会有192.168.124.185呢?不科学啊

调整为阿里云的也是一样。

<mirror>
    <id>nexus-aliyun</id>
    <mirrorOf>central</mirrorOf>
    <name>Nexus aliyun</name>
    <url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.224s
[INFO] Finished at: Fri Jun 23 11:28:21 CST 2017
[INFO] Final Memory: 9M/159M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project nutzwk: Could not resolve dependencies for project cn.wizzer:nutzwk:war:3.3.8: Failed to collect dependencies for [javax.servlet:javax.servlet-api:jar:3.1.0 (provided), org.nutz:nutz:jar:1.r.61-SNAPSHOT (compile), org.nutz:nutz-plugins-daocache:jar:1.r.61-SNAPSHOT (compile), org.nutz:nutz-plugins-cache:jar:1.r.61-SNAPSHOT (compile), org.nutz:nutz-integration-jedis:jar:1.r.61-SNAPSHOT (compile), org.nutz:nutz-integration-quartz:jar:1.r.61-SNAPSHOT (compile), org.nutz:nutzwx:jar:1.r.61-SNAPSHOT (compile), org.nutz:nutz-plugins-views:jar:1.r.61-SNAPSHOT (compile), cn.enilu.tools:nutzwk-code-generator:jar:1.3.2 (compile), com.vdurmont:emoji-java:jar:3.2.0 (compile), org.quartz-scheduler:quartz:jar:2.2.3 (compile), org.apache.shiro:shiro-web:jar:1.2.5 (compile), org.apache.shiro:shiro-core:jar:1.2.5 (compile), org.slf4j:slf4j-log4j12:jar:1.7.21 (compile), org.slf4j:slf4j-api:jar:1.7.21 (compile), log4j:log4j:jar:1.2.17 (compile), cn.apiclub.tool:simplecaptcha:jar:1.2.2 (compile), com.alibaba:druid:jar:1.0.26 (compile), mysql:mysql-connector-java:jar:5.1.39 (compile), net.sourceforge.jtds:jtds:jar:1.3.1 (compile), com.google.zxing:javase:jar:3.2.1 (compile), net.sf.ehcache:ehcache:jar:2.10.3 (compile), redis.clients:jedis:jar:2.8.1 (compile), org.apache.commons:commons-email:jar:1.4 (compile), com.sun.mail:javax.mail:jar:1.5.5 (compile), javax.activation:activation:jar:1.1.1 (compile), org.apache.commons:commons-lang3:jar:3.4 (compile), org.apache.shiro:shiro-ehcache:jar:1.3.2 (compile), commons-beanutils:commons-beanutils-core:jar:1.8.3 (compile), com.ibeetl:beetl:jar:2.5.2 (compile), commons-collections:commons-collections:jar:3.2.1 (compile), commons-lang:commons-lang:jar:2.6 (compile), commons-logging:commons-logging:jar:1.1 (compile), org.brickred:socialauth:jar:4.12 (compile), org.json:json:jar:20160212 (compile), junit:junit:jar:4.12 (test), maven:dom4j:jar:1.7-20060614 (test), io.jsonwebtoken:jjwt:jar:0.6.0 (compile), com.fasterxml.jackson.core:jackson-databind:jar:2.8.1 (compile), org.nutz:nutz-plugins-mock:jar:1.r.61-SNAPSHOT (test)]: Failed to read artifact descriptor for net.sourceforge.jtds:jtds:jar:1.3.1: Could not transfer artifact net.sourceforge.jtds:jtds:pom:1.3.1 from/to central (http://repo.maven.apache.org/maven2): null to http://repo.maven.apache.org/maven2/net/sourceforge/jtds/jtds/1.3.1/jtds-1.3.1.pom: UnresolvedAddressException -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

mvn -U clean compile

试过。没用。

应该不是这个原因。还是包导致无法编译。

现在报啥错误?完整贴一下

NFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building NutzWk 3.3.8
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ nutzwk ---
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar (218 KB at 7.2 KB/sec)
[INFO] Deleting E:\git\NutzWk2\target
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33.447s
[INFO] Finished at: Fri Jun 23 12:02:00 CST 2017
[INFO] Final Memory: 6M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on project nutzwk: Failed to clean project: Failed to delete E:\git\NutzWk2\target -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

打包搞定了。

新问题来了。

HTTP Status 500 - java.lang.NullPointerException

type Exception report

message java.lang.NullPointerException

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: java.lang.NullPointerException
	org.apache.shiro.web.servlet.AdviceFilter.cleanup(AdviceFilter.java:196)
	org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:148)
	org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
	org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
	org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
	org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
	org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
	org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
	org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
	org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
root cause

java.lang.NullPointerException
	cn.wizzer.common.filter.RouteFilter.doFilter(RouteFilter.java:26)
	org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
	org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
	org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
	org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
	org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
	org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
	org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
	org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
	org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
	org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
	org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
note The full stack trace of the root cause is available in the Apache Tomcat/8.0.44 logs.

Apache Tomcat/8.0.44

这个错误我见过。。。 RouteFilter 里面有个语句没判断null,自己改一下吧,就是报错那一行

1,报错的原因是因为代码Globals.RouteMap没值,没值的原因是官方代码问题还是哪里没考虑到呢?
2,做了IS NOT NULL 处理后,访问首页会提示,没有找到该页面;代码显示会检测TETUP.initSysRoute方法,dao.count(Sys_route.class)==0是成立的。

@yhq1212 请使用官方最新版~~4.x

@Wizzercn好; 3.38这个不行么?

添加回复
请先登陆
回到顶部