java .lang.IllegalStateException: MASM0004: секция <tubelines>не найдена в стандартном [jaxws-tube-default. xml] - PullRequest
0 голосов
/ 17 марта 2020

мы обновили нашу версию Project Spring с 3.1.2.RELEASE до 4.3.25.RELEASE .

Я не нашел ошибок, связанных с кодом , Но тестовые случаи Junit дают сбой, выдавая ниже Error

com.project.core.portlet.userlogin.exception.ServiceException: java.lang.IllegalStateException: MASM0004: No <tubelines> section found in the default [ jaxws-tubes-default.xml ] configuration file
at com.project.core.portlet.userlogin.manager.LoginManager.searchUserProfiles(LoginManager.java:207)
at com.project.core.portlet.userlogin.manager.LoginManagerTest.testsearchUserProfiles(LoginManagerTest.java:153)
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 org.junit.internal.runners.TestMethod.invoke(TestMethod.java:68)
at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:316)
at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:89)

Тот же код работает в обязательном порядке с нижеследующими зависимостями

<spring.version>3.1.2.RELEASE</spring.version>
    <jaxws.plugin.version>1.12</jaxws.plugin.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <powermock.version>1.5.2</powermock.version>
    <hibernate.validator.version>4.1.0.Final</hibernate.validator.version>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.8.2</version>
      <scope>test</scope>
    </dependency>

Мы изменили вышеуказанные зависимости с нижеследующими как часть upgrade

    <spring.version>4.3.25.RELEASE</spring.version>
    <jaxws.version>2.1</jaxws.version>
    <jaxws.plugin.version>1.10</jaxws.plugin.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <java.version>1.8</java.version>
    <powermock.version>1.6.6</powermock.version>
    <hibernate.validator.version>4.1.0.Final</hibernate.validator.version>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.12</version>
      <scope>test</scope>
    </dependency>

Только тестовые случаи JUnit не проходят.

...