java打包内存溢出_java - Apache目录服务器Maven打包 - 堆栈内存溢出

我已经检查了最新的Apache目录服务器主干,并试图使打包工作正常进行。 我对protocol-ntp做了小改动(即添加了一个新类)。 当我在protocol-ntp运行mvn package时, target中生成的jar包含新类。

但是,我很难让新类出现在包含所有项目的jar中。 当我在all文件夹中运行mvn package ,它将“成功”打包,但jar文件(确实具有更新的时间戳)仅包含旧项目,而没有新类。 在中继根目录中运行mvn package产生以下错误:

-------------------------------------------------------

T E S T S

-------------------------------------------------------

Running org.apache.directory.ldap.client.template.LdapConnectionTemplateTest

Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.718 sec - in org.apache.directory.ldap.client.template.LdapConnectionTemplateTest

Running org.apache.directory.shared.client.api.AdsSchemaLoaderTest

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.378 sec - in org.apache.directory.shared.client.api.AdsSchemaLoaderTest

Running org.apache.directory.shared.client.api.LdapConnectionPoolTest

Tests run: 3, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 5.171 sec - in org.apache.directory.shared.client.api.LdapConnectionPoolTest

Running org.apache.directory.shared.client.api.LdapConnectionTest

Tests run: 13, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 64.625 sec <<< FAILURE! - in org.apache.directory.shared.client.api.LdapConnectionTest

testConnectionWrongHost(org.apache.directory.shared.client.api.LdapConnectionTest) Time elapsed: 30.056 sec <<< FAILURE!

java.lang.AssertionError: Expected exception: org.apache.directory.ldap.client.api.exception.InvalidConnectionException

at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:32)

at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)

at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)

at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)

at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)

at org.apache.directory.server.core.integ.FrameworkRunner.runChild(FrameworkRunner.java:391)

at org.apache.directory.server.core.integ.FrameworkRunner.runChild(FrameworkRunner.java:64)

at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)

at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)

at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)

at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)

at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)

at org.junit.runners.ParentRunner.run(ParentRunner.java:363)

at org.apache.directory.server.core.integ.FrameworkRunner.run(FrameworkRunner.java:164)

at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)

at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)

at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)

at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)

at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)

at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)

at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

Running org.apache.directory.shared.client.api.LdapSSLConnectionTest

Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.409 sec - in org.apache.directory.shared.client.api.LdapSSLConnectionTest

Running org.apache.directory.shared.client.api.LightweightLdapConnectionPoolTest

Max Active connections =: 8

Tests run: 6, Failures: 0, Errors: 0, Skipped: 5, Time elapsed: 3.851 sec - in org.apache.directory.shared.client.api.LightweightLdapConnectionPoolTest

Running org.apache.directory.shared.client.api.operations.bind.SimpleBindRequestTest

Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.147 sec - in org.apache.directory.shared.client.api.operations.bind.SimpleBindRequestTest

Running org.apache.directory.shared.client.api.operations.ClientAbandonRequestTest

Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 36.442 sec - in org.apache.directory.shared.client.api.operations.ClientAbandonRequestTest

Running org.apache.directory.shared.client.api.operations.ClientAddRequestTest

Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.067 sec - in org.apache.directory.shared.client.api.operations.ClientAddRequestTest

Running org.apache.directory.shared.client.api.operations.ClientCompareRequestTest

Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.913 sec - in org.apache.directory.shared.client.api.operations.ClientCompareRequestTest

Running org.apache.directory.shared.client.api.operations.ClientDeleteRequestTest

Tests run: 7, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 4.525 sec - in org.apache.directory.shared.client.api.operations.ClientDeleteRequestTest

Running org.apache.directory.shared.client.api.operations.ClientExtendedRequestTest

Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.875 sec - in org.apache.directory.shared.client.api.operations.ClientExtendedRequestTest

Running org.apache.directory.shared.client.api.operations.ClientModifyDnRequestTest

Tests run: 9, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 4.896 sec - in org.apache.directory.shared.client.api.operations.ClientModifyDnRequestTest

Running org.apache.directory.shared.client.api.operations.ClientModifyRequestTest

Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.234 sec - in org.apache.directory.shared.client.api.operations.ClientModifyRequestTest

Running org.apache.directory.shared.client.api.operations.ConcurrentSearchAndUnbindTest

Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 4.257 sec - in org.apache.directory.shared.client.api.operations.ConcurrentSearchAndUnbindTest

Running org.apache.directory.shared.client.api.operations.GetRootDseTest

Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.234 sec - in org.apache.directory.shared.client.api.operations.GetRootDseTest

Running org.apache.directory.shared.client.api.operations.search.AnonymousClientSearchRequestTest

Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.928 sec - in org.apache.directory.shared.client.api.operations.search.AnonymousClientSearchRequestTest

Running org.apache.directory.shared.client.api.operations.search.ClientSearchRequestTest

Tests run: 11, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 5.169 sec - in org.apache.directory.shared.client.api.operations.search.ClientSearchRequestTest

Running org.apache.directory.shared.client.api.operations.search.OperationWithIndexTest

Tests run: 6, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 21.043 sec - in org.apache.directory.shared.client.api.operations.search.OperationWithIndexTest

Running org.apache.directory.shared.client.api.operations.search.SearchRequestReturningAttributesTest

Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.254 sec - in org.apache.directory.shared.client.api.operations.search.SearchRequestReturningAttributesTest

Running org.apache.directory.shared.client.api.operations.search.SearchWithReferralsTest

Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.803 sec - in org.apache.directory.shared.client.api.operations.search.SearchWithReferralsTest

Running org.apache.directory.shared.client.api.ServerSchemaLoaderTest

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.399 sec - in org.apache.directory.shared.client.api.ServerSchemaLoaderTest

Running org.apache.directory.shared.client.api.ValidatingLdapConnectionPoolTest

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.835 sec - in org.apache.directory.shared.client.api.ValidatingLdapConnectionPoolTest

Results :

Failed tests:

LdapConnectionTest.testConnectionWrongHost Expected exception: org.apache.directory.ldap.client.api.exception.InvalidConnectionException

Tests run: 162, Failures: 1, Errors: 0, Skipped: 14

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO]

[INFO] ApacheDS Protocol Ntp .............................. SUCCESS [ 4.451 s]

[INFO] Apacheds Server Annotations ........................ SUCCESS [ 34.057 s]

[INFO] ApacheDS Server Config ............................. SUCCESS [ 12.769 s]

[INFO] ApacheDS Server JNDI ............................... SUCCESS [ 1.720 s]

[INFO] ApacheDS Test Framework ............................ SUCCESS [01:09 min]

[INFO] ApacheDS All ....................................... SUCCESS [ 3.743 s]

[INFO] ApacheDS Logger Interceptor ........................ SUCCESS [ 1.962 s]

[INFO] ApacheDS Password Hashing Interceptor .............. SUCCESS [ 1.046 s]

[INFO] ApacheDS Core Integration .......................... SUCCESS [14:02 min]

[INFO] ApacheDS Protocol Kerberos Test .................... SUCCESS [ 27.092 s]

[INFO] ApacheDS Server Integration ........................ SUCCESS [10:50 min]

[INFO] ApacheDS DirectoryService-WebApp bridge ............ SUCCESS [ 0.723 s]

[INFO] ApacheDS Jetty HTTP Server Integration ............. SUCCESS [ 1.341 s]

[INFO] ApacheDS Service Builder ........................... SUCCESS [ 3.739 s]

[INFO] Apache Directory LDAP Client API test .............. FAILURE [03:44 min]

[INFO] kerberos-client .................................... SKIPPED

[INFO] ApacheDS Service ................................... SKIPPED

[INFO] ApacheDS Wrapper ................................... SKIPPED

[INFO] ApacheDS Installers Maven Plugin ................... SKIPPED

[INFO] ApacheDS Installers ................................ SKIPPED

[INFO] ApacheDS OSGi Integration Tests .................... SKIPPED

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 31:21 min

[INFO] Finished at: 2017-04-25T21:53:52-04:00

[INFO] Final Memory: 118M/1407M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project ldap-client-test: There are test failures.

[ERROR]

[ERROR] Please refer to /media/DataDrive/Projects/Parclock/git-repos/directory-server/ldap-client-test/target/surefire-reports for the individual test results.

[ERROR] -> [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/MojoFailureException

[ERROR]

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR] mvn -rf :ldap-client-test

关于如何使它起作用的任何想法?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值