美文网首页
0001.java.lang.IllegalStateExcep

0001.java.lang.IllegalStateExcep

作者: airkisser | 来源:发表于2017-02-24 00:44 被阅读0次

    错误简要信息

    java.lang.IllegalStateException: Could not load TestContextBootstrapper [null].  
    Specify @BootstrapWith's 'value' attribute or make the default bootstrapper class available.
    

    错误完整信息如下:

    "C:\Program Files\Java\jdk1.8.0_111\bin\java" -ea -Didea.launcher.port=7536 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.1.3\bin" -Didea.junit.sm_runner -Dfile.encoding=UTF-8 -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.1.3\lib\idea_rt.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.1.3\plugins\junit\lib\junit-rt.jar;D:\Program Files\apache-cxf-3.1.6\lib\activemq-broker-5.12.0.jar;D:\Program Files\apache-cxf-3.1.6\lib\activemq-client-5.12.0.jar;D:\Program Files\apache-cxf-3.1.6\lib\activemq-openwire-legacy-5.12.0.jar;D:\Program Files\apache-cxf-3.1.6\lib\antlr-2.7.7.jar;D:\Program Files\apache-cxf-3.1.6\lib\aopalliance-1.0.jar;D:\Program Files\apache-cxf-3.1.6\lib\asm-5.0.4.jar;D:\Program Files\apache-cxf-3.1.6\lib\bcprov-jdk15on-1.54.jar;D:\Program Files\apache-cxf-3.1.6\lib\commons-codec-1.10.jar;D:\Program Files\apache-cxf-3.1.6\lib\commons-collections-3.2.2.jar;D:\Program Files\apache-cxf-3.1.6\lib\commons-lang-2.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cryptacular-1.0.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-core-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-manifest.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-bindings-coloc-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-bindings-corba-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-bindings-object-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-bindings-soap-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-bindings-xml-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-databinding-aegis-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-databinding-jaxb-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-databinding-jibx-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-databinding-sdo-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-databinding-xmlbeans-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-features-clustering-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-frontend-jaxrs-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-frontend-jaxws-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-frontend-js-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-frontend-simple-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-javascript-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-management-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-rs-client-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-rs-extension-providers-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-rs-extension-search-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-rs-json-basic-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-rs-security-cors-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-rs-security-jose-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-rs-security-jose-jaxrs-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-rs-security-oauth-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-rs-security-oauth2-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-rs-security-sso-saml-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-rs-security-xml-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-rs-service-description-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-security-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-security-saml-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-transports-http-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-transports-http-hc-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-transports-http-netty-client-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-transports-http-netty-server-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-transports-jms-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-transports-local-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-transports-udp-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-ws-addr-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-ws-mex-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-ws-policy-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-ws-rm-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-ws-security-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-rt-wsdl-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-services-sts-core-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-services-ws-discovery-api-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-services-ws-discovery-service-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-services-wsn-api-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-services-wsn-core-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-tools-common-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-tools-corba-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-tools-java2ws-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-tools-misctools-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-tools-validator-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-tools-wadlto-jaxrs-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-tools-wsdlto-core-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-tools-wsdlto-databinding-jaxb-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-tools-wsdlto-frontend-javascript-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-tools-wsdlto-frontend-jaxws-3.1.6.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-xjc-boolean-3.0.5.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-xjc-bug671-3.0.5.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-xjc-dv-3.0.5.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-xjc-javadoc-3.0.5.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-xjc-runtime-3.0.5.jar;D:\Program Files\apache-cxf-3.1.6\lib\cxf-xjc-ts-3.0.5.jar;D:\Program Files\apache-cxf-3.1.6\lib\ehcache-2.10.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\FastInfoset-1.2.13.jar;D:\Program Files\apache-cxf-3.1.6\lib\geronimo-j2ee-management_1.1_spec-1.0.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\geronimo-javamail_1.4_spec-1.7.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\geronimo-jms_1.1_spec-1.1.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\geronimo-jta_1.1_spec-1.1.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\geronimo-servlet_3.0_spec-1.0.jar;D:\Program Files\apache-cxf-3.1.6\lib\guava-18.0.jar;D:\Program Files\apache-cxf-3.1.6\lib\hawtbuf-1.11.jar;D:\Program Files\apache-cxf-3.1.6\lib\httpasyncclient-4.1.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\httpclient-4.5.2.jar;D:\Program Files\apache-cxf-3.1.6\lib\httpcore-4.4.4.jar;D:\Program Files\apache-cxf-3.1.6\lib\httpcore-nio-4.4.4.jar;D:\Program Files\apache-cxf-3.1.6\lib\jasypt-1.9.2.jar;D:\Program Files\apache-cxf-3.1.6\lib\java-support-7.1.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\javax.annotation-api-1.2.jar;D:\Program Files\apache-cxf-3.1.6\lib\javax.ws.rs-api-2.0.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\jaxb-core-2.2.11.jar;D:\Program Files\apache-cxf-3.1.6\lib\jaxb-impl-2.2.11.jar;D:\Program Files\apache-cxf-3.1.6\lib\jcl-over-slf4j-1.7.19.jar;D:\Program Files\apache-cxf-3.1.6\lib\jettison-1.3.7.jar;D:\Program Files\apache-cxf-3.1.6\lib\joda-time-2.7.jar;D:\Program Files\apache-cxf-3.1.6\lib\js-1.7R2.jar;D:\Program Files\apache-cxf-3.1.6\lib\mina-core-2.0.9.jar;D:\Program Files\apache-cxf-3.1.6\lib\neethi-3.0.3.jar;D:\Program Files\apache-cxf-3.1.6\lib\oauth-20100527.jar;D:\Program Files\apache-cxf-3.1.6\lib\oauth-provider-20100527.jar;D:\Program Files\apache-cxf-3.1.6\lib\opensaml-core-3.1.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\opensaml-profile-api-3.1.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\opensaml-saml-api-3.1.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\opensaml-saml-impl-3.1.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\opensaml-security-api-3.1.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\opensaml-security-impl-3.1.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\opensaml-soap-api-3.1.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\opensaml-xacml-api-3.1.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\opensaml-xacml-impl-3.1.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\opensaml-xacml-saml-api-3.1.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\opensaml-xacml-saml-impl-3.1.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\opensaml-xmlsec-api-3.1.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\opensaml-xmlsec-impl-3.1.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\slf4j-api-1.7.19.jar;D:\Program Files\apache-cxf-3.1.6\lib\slf4j-jdk14-1.7.19.jar;D:\Program Files\apache-cxf-3.1.6\lib\spring-aop-4.1.9.RELEASE.jar;D:\Program Files\apache-cxf-3.1.6\lib\spring-beans-4.1.9.RELEASE.jar;D:\Program Files\apache-cxf-3.1.6\lib\spring-context-4.1.9.RELEASE.jar;D:\Program Files\apache-cxf-3.1.6\lib\spring-core-4.1.9.RELEASE.jar;D:\Program Files\apache-cxf-3.1.6\lib\spring-expression-4.1.9.RELEASE.jar;D:\Program Files\apache-cxf-3.1.6\lib\spring-web-4.1.9.RELEASE.jar;D:\Program Files\apache-cxf-3.1.6\lib\stax2-api-3.1.4.jar;D:\Program Files\apache-cxf-3.1.6\lib\velocity-1.7.jar;D:\Program Files\apache-cxf-3.1.6\lib\woodstox-core-asl-4.4.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\wsdl4j-1.6.3.jar;D:\Program Files\apache-cxf-3.1.6\lib\wss4j-bindings-2.1.5.jar;D:\Program Files\apache-cxf-3.1.6\lib\wss4j-policy-2.1.5.jar;D:\Program Files\apache-cxf-3.1.6\lib\wss4j-ws-security-common-2.1.5.jar;D:\Program Files\apache-cxf-3.1.6\lib\wss4j-ws-security-dom-2.1.5.jar;D:\Program Files\apache-cxf-3.1.6\lib\wss4j-ws-security-policy-stax-2.1.5.jar;D:\Program Files\apache-cxf-3.1.6\lib\wss4j-ws-security-stax-2.1.5.jar;D:\Program Files\apache-cxf-3.1.6\lib\xml-resolver-1.2.jar;D:\Program Files\apache-cxf-3.1.6\lib\xmlbeans-2.6.0.jar;D:\Program Files\apache-cxf-3.1.6\lib\xmlschema-core-2.2.1.jar;D:\Program Files\apache-cxf-3.1.6\lib\xmlsec-2.0.6.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\rt.jar;G:\workspace\ideaWorkSpace\access_control_mgt\target\test-classes;G:\workspace\ideaWorkSpace\access_control_mgt\target\classes;D:\maven\repo\junit\junit\4.12\junit-4.12.jar;D:\maven\repo\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;D:\maven\repo\org\springframework\spring-test\4.3.6.RELEASE\spring-test-4.3.6.RELEASE.jar;D:\maven\repo\org\springframework\spring-core\4.3.6.RELEASE\spring-core-4.3.6.RELEASE.jar;D:\maven\repo\org\slf4j\slf4j-api\1.7.22\slf4j-api-1.7.22.jar;D:\maven\repo\org\slf4j\slf4j-jdk14\1.7.22\slf4j-jdk14-1.7.22.jar;D:\maven\repo\log4j\log4j\1.2.12\log4j-1.2.12.jar;D:\maven\repo\com\stee\dsms_framework\v0.0.14\dsms_framework-v0.0.14.jar;D:\maven\repo\javax\servlet\javax.servlet-api\3.1.0\javax.servlet-api-3.1.0.jar;D:\maven\repo\org\springframework\spring-aop\4.3.6.RELEASE\spring-aop-4.3.6.RELEASE.jar;D:\maven\repo\org\springframework\spring-beans\4.3.6.RELEASE\spring-beans-4.3.6.RELEASE.jar;D:\maven\repo\org\springframework\spring-aspects\4.3.6.RELEASE\spring-aspects-4.3.6.RELEASE.jar;D:\maven\repo\org\aspectj\aspectjweaver\1.5.4\aspectjweaver-1.5.4.jar;D:\maven\repo\org\springframework\spring-context\4.3.6.RELEASE\spring-context-4.3.6.RELEASE.jar;D:\maven\repo\org\springframework\spring-expression\4.3.6.RELEASE\spring-expression-4.3.6.RELEASE.jar;D:\maven\repo\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;D:\maven\repo\org\springframework\spring-orm\4.3.6.RELEASE\spring-orm-4.3.6.RELEASE.jar;D:\maven\repo\org\springframework\spring-jdbc\4.3.6.RELEASE\spring-jdbc-4.3.6.RELEASE.jar;D:\maven\repo\org\springframework\spring-tx\4.3.6.RELEASE\spring-tx-4.3.6.RELEASE.jar;D:\maven\repo\org\springframework\spring-web\4.3.6.RELEASE\spring-web-4.3.6.RELEASE.jar;D:\maven\repo\org\springframework\data\spring-data-jpa\1.11.0.RELEASE\spring-data-jpa-1.11.0.RELEASE.jar;D:\maven\repo\org\springframework\data\spring-data-commons\1.13.0.RELEASE\spring-data-commons-1.13.0.RELEASE.jar;D:\maven\repo\org\slf4j\jcl-over-slf4j\1.7.22\jcl-over-slf4j-1.7.22.jar;D:\maven\repo\org\aspectj\aspectjrt\1.8.10\aspectjrt-1.8.10.jar;D:\maven\repo\org\hibernate\hibernate-core\4.3.11.Final\hibernate-core-4.3.11.Final.jar;D:\maven\repo\org\jboss\logging\jboss-logging\3.1.3.GA\jboss-logging-3.1.3.GA.jar;D:\maven\repo\org\jboss\logging\jboss-logging-annotations\1.2.0.Beta1\jboss-logging-annotations-1.2.0.Beta1.jar;D:\maven\repo\org\jboss\spec\javax\transaction\jboss-transaction-api_1.2_spec\1.0.0.Final\jboss-transaction-api_1.2_spec-1.0.0.Final.jar;D:\maven\repo\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;D:\maven\repo\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar;D:\maven\repo\org\hibernate\common\hibernate-commons-annotations\4.0.5.Final\hibernate-commons-annotations-4.0.5.Final.jar;D:\maven\repo\org\hibernate\javax\persistence\hibernate-jpa-2.1-api\1.0.0.Final\hibernate-jpa-2.1-api-1.0.0.Final.jar;D:\maven\repo\org\javassist\javassist\3.18.1-GA\javassist-3.18.1-GA.jar;D:\maven\repo\antlr\antlr\2.7.7\antlr-2.7.7.jar;D:\maven\repo\org\jboss\jandex\1.1.0.Final\jandex-1.1.0.Final.jar;D:\maven\repo\org\hibernate\hibernate-ehcache\4.3.11.Final\hibernate-ehcache-4.3.11.Final.jar;D:\maven\repo\net\sf\ehcache\ehcache-core\2.4.3\ehcache-core-2.4.3.jar;D:\maven\repo\org\hibernate\hibernate-entitymanager\4.3.11.Final\hibernate-entitymanager-4.3.11.Final.jar;D:\maven\repo\mysql\mysql-connector-java\5.1.22\mysql-connector-java-5.1.22.jar;D:\maven\repo\c3p0\c3p0\0.9.1.2\c3p0-0.9.1.2.jar;D:\maven\repo\com\stee\ojdbc\v17\ojdbc-v17.jar;D:\maven\repo\com\google\code\gson\gson\2.2.2\gson-2.2.2.jar;D:\maven\repo\org\apache\cxf\cxf-rt-frontend-jaxws\3.1.10\cxf-rt-frontend-jaxws-3.1.10.jar;D:\maven\repo\xml-resolver\xml-resolver\1.2\xml-resolver-1.2.jar;D:\maven\repo\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;D:\maven\repo\org\apache\cxf\cxf-core\3.1.10\cxf-core-3.1.10.jar;D:\maven\repo\org\codehaus\woodstox\woodstox-core-asl\4.4.1\woodstox-core-asl-4.4.1.jar;D:\maven\repo\org\codehaus\woodstox\stax2-api\3.1.4\stax2-api-3.1.4.jar;D:\maven\repo\org\apache\ws\xmlschema\xmlschema-core\2.2.1\xmlschema-core-2.2.1.jar;D:\maven\repo\org\apache\cxf\cxf-rt-bindings-soap\3.1.10\cxf-rt-bindings-soap-3.1.10.jar;D:\maven\repo\org\apache\cxf\cxf-rt-wsdl\3.1.10\cxf-rt-wsdl-3.1.10.jar;D:\maven\repo\wsdl4j\wsdl4j\1.6.3\wsdl4j-1.6.3.jar;D:\maven\repo\org\apache\cxf\cxf-rt-databinding-jaxb\3.1.10\cxf-rt-databinding-jaxb-3.1.10.jar;D:\maven\repo\com\sun\xml\bind\jaxb-impl\2.2.11\jaxb-impl-2.2.11.jar;D:\maven\repo\com\sun\xml\bind\jaxb-core\2.2.11\jaxb-core-2.2.11.jar;D:\maven\repo\org\apache\cxf\cxf-rt-bindings-xml\3.1.10\cxf-rt-bindings-xml-3.1.10.jar;D:\maven\repo\org\apache\cxf\cxf-rt-frontend-simple\3.1.10\cxf-rt-frontend-simple-3.1.10.jar;D:\maven\repo\org\apache\cxf\cxf-rt-ws-addr\3.1.10\cxf-rt-ws-addr-3.1.10.jar;D:\maven\repo\org\apache\cxf\cxf-rt-ws-policy\3.1.10\cxf-rt-ws-policy-3.1.10.jar;D:\maven\repo\org\apache\neethi\neethi\3.0.3\neethi-3.0.3.jar;D:\maven\repo\org\apache\cxf\cxf-rt-transports-http\3.1.10\cxf-rt-transports-http-3.1.10.jar;D:\maven\repo\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\maven\repo\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar" com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 com.stee.accessCtrlMgt.dao.ACEDaoTest
    SLF4J: Class path contains multiple SLF4J bindings.
    SLF4J: Found binding in [jar:file:/D:/Program%20Files/apache-cxf-3.1.6/lib/slf4j-jdk14-1.7.19.jar!/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: Found binding in [jar:file:/D:/maven/repo/org/slf4j/slf4j-jdk14/1.7.22/slf4j-jdk14-1.7.22.jar!/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
    SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory]
    
    java.lang.IllegalStateException: Could not load TestContextBootstrapper [null]. Specify @BootstrapWith's 'value' attribute or make the default bootstrapper class available.
    
        at org.springframework.test.context.BootstrapUtils.resolveTestContextBootstrapper(BootstrapUtils.java:143)
        at org.springframework.test.context.TestContextManager.<init>(TestContextManager.java:105)
        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTestContextManager(SpringJUnit4ClassRunner.java:152)
        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.<init>(SpringJUnit4ClassRunner.java:143)
        at org.springframework.test.context.junit4.SpringRunner.<init>(SpringRunner.java:49)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
        at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
        at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
        at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
        at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
        at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33)
        at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:98)
        at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
        at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
        at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
    Caused by: java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotatedElementUtils.findAllMergedAnnotations(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/Class;)Ljava/util/Set;
        at org.springframework.test.context.BootstrapUtils.resolveExplicitTestContextBootstrapper(BootstrapUtils.java:150)
        at org.springframework.test.context.BootstrapUtils.resolveTestContextBootstrapper(BootstrapUtils.java:126)
        ... 23 more
    
    
    Process finished with exit code -1
    

    错误原因:

    1. 在使用Intellj Idea在当前项目中使用本地Apache cxf工具生成WebService客户端时,在项目扩展库中引入了Apache cxf的运行环境库"CXF Runtime",导致slf4j包冲突,如下图:
    测试异常情况下工程库

    解决方式:

    删除Apache cxf本地运行环境依赖库"CXF Runtime"后Spring Junit Test测试正常运行。

    删除CXF Runtime 删除CXF Runtime后工程库

    相关文章

      网友评论

          本文标题:0001.java.lang.IllegalStateExcep

          本文链接:https://www.haomeiwen.com/subject/fveiwttx.html