Details

      Description

      BpmnParseTest.testFeatureSecureProcessingRestrictExternalSchemaAccess fails, because the exception message is different in IBM JDK.

      For example see https://ci.cambpm.camunda.cloud/job/7.12/job/7.12-platform-jdk-ibm-jdk-8-latest/35/

      Expected: (an instance of org.camunda.bpm.engine.ProcessEngineException and exception with message a string containing "Failed to read schema document 'BPMNDI.xsd'")
           but: exception with message a string containing "Failed to read schema document 'BPMNDI.xsd'" message was "ENGINE-09003 Could not parse '0_process.bpmn20.xml'. Failed to read external schema document "file:/home/camunda/workspace/7.12/7.12-platform-jdk-ibm-jdk-8-latest/engine/target/classes/org/camunda/bpm/engine/impl/bpmn/parser/BPMN20.xsd", because "file" access is not allowed."
      Stacktrace was: org.camunda.bpm.engine.ProcessEngineException: ENGINE-09003 Could not parse '0_process.bpmn20.xml'. Failed to read external schema document "file:/home/camunda/workspace/7.12/7.12-platform-jdk-ibm-jdk-8-latest/engine/target/classes/org/camunda/bpm/engine/impl/bpmn/parser/BPMN20.xsd", because "file" access is not allowed.
       at org.camunda.bpm.engine.impl.util.EngineUtilLogger.parsingFailureException(EngineUtilLogger.java:50)
       at org.camunda.bpm.engine.impl.util.xml.Parse.execute(Parse.java:162)
       at org.camunda.bpm.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:252)
       at org.camunda.bpm.engine.impl.bpmn.deployer.BpmnDeployer.transformDefinitions(BpmnDeployer.java:105)
       at org.camunda.bpm.engine.impl.AbstractDefinitionDeployer.transformResource(AbstractDefinitionDeployer.java:99)
       at org.camunda.bpm.engine.impl.AbstractDefinitionDeployer.parseDefinitionResources(AbstractDefinitionDeployer.java:74)
       at org.camunda.bpm.engine.impl.AbstractDefinitionDeployer.deploy(AbstractDefinitionDeployer.java:64)
       at org.camunda.bpm.engine.impl.persistence.deploy.cache.CacheDeployer$1.call(CacheDeployer.java:54)
       at org.camunda.bpm.engine.impl.persistence.deploy.cache.CacheDeployer$1.call(CacheDeployer.java:51)
       at org.camunda.bpm.engine.impl.interceptor.CommandContext.runWithoutAuthorization(CommandContext.java:537)
       at org.camunda.bpm.engine.impl.persistence.deploy.cache.CacheDeployer.deploy(CacheDeployer.java:51)
       at org.camunda.bpm.engine.impl.persistence.deploy.cache.DeploymentCache.deploy(DeploymentCache.java:67)
       at org.camunda.bpm.engine.impl.persistence.entity.DeploymentManager.insertDeployment(DeploymentManager.java:65)
       at org.camunda.bpm.engine.impl.cmd.DeployCmd.deploy(DeployCmd.java:486)
       at org.camunda.bpm.engine.impl.cmd.DeployCmd$1.call(DeployCmd.java:142)
       at org.camunda.bpm.engine.impl.cmd.DeployCmd$1.call(DeployCmd.java:130)
       at org.camunda.bpm.engine.impl.interceptor.CommandContext.runWithoutAuthorization(CommandContext.java:537)
       at org.camunda.bpm.engine.impl.cmd.DeployCmd.doExecute(DeployCmd.java:130)
       at org.camunda.bpm.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:96)
       at org.camunda.bpm.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:76)
       at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:28)
       at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:110)
       at org.camunda.bpm.engine.impl.interceptor.ProcessApplicationContextInterceptor.execute(ProcessApplicationContextInterceptor.java:70)
       at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
       at org.camunda.bpm.engine.impl.RepositoryServiceImpl.deployWithResult(RepositoryServiceImpl.java:102)
       at org.camunda.bpm.engine.impl.repository.DeploymentBuilderImpl.deployWithResult(DeploymentBuilderImpl.java:270)
       at org.camunda.bpm.engine.test.util.ProcessEngineTestRule.deploy(ProcessEngineTestRule.java:125)
       at org.camunda.bpm.engine.test.util.ProcessEngineTestRule.deploy(ProcessEngineTestRule.java:172)
       at org.camunda.bpm.engine.test.util.ProcessEngineTestRule.deploy(ProcessEngineTestRule.java:117)
       at org.camunda.bpm.engine.test.bpmn.parse.BpmnParseTest.testFeatureSecureProcessingRestrictExternalSchemaAccess(BpmnParseTest.java:1127)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
       at java.lang.reflect.Method.invoke(Method.java:495)
       at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
       at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
       at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
       at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
       at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
       at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
       at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
       at org.camunda.bpm.engine.test.ProcessEngineRule$1.evaluate(ProcessEngineRule.java:172)
       at org.junit.rules.ExpectedException$ExpectedExceptionStatement.evaluate(ExpectedException.java:239)
       at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
       at org.junit.rules.RunRules.evaluate(RunRules.java:20)
       at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
       at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
       at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
       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.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
       at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
       at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
       at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
       at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
       at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
       at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
       at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
      Caused by: org.xml.sax.SAXParseException: Failed to read external schema document "file:/home/camunda/workspace/7.12/7.12-platform-jdk-ibm-jdk-8-latest/engine/target/classes/org/camunda/bpm/engine/impl/bpmn/parser/BPMN20.xsd", because "file" access is not allowed.
       at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
       at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
       at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
       at javax.xml.parsers.SAXParser.parse(Unknown Source)
       at org.camunda.bpm.engine.impl.util.xml.Parse.execute(Parse.java:160)
       ... 60 more
      

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              akif.hazarvi Akif Hazarvi
              Reporter:
              thorben.lindhauer Thorben Lindhauer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development