Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-411

JdbcBatchletTest.storedProcedure and JdbcReaderWriterTest.storedProcedureReader failed

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Explained
    • Affects Version/s: 1.3.0.Beta7
    • Fix Version/s: 1.3.0.Final
    • Component/s: tests
    • Labels:
      None

      Description

      When running in Windows CI server, these tests failed (they passed when running in local environment):

      org.h2.jdbc.JdbcSQLException: IO Exception: "java.io.IOException: Cannot run program ""javac"": CreateProcess error=2, The system cannot find the file specified"; SQL statement:
      CREATE ALIAS IF NOT EXISTS sp2 AS $$void sp2(Connection conn) throws SQLException {    conn.createStatement().executeUpdate("delete from STOCK_TRADE");}$$; [90028-173]
      org.h2.jdbc.JdbcSQLException: 
      IO Exception: "java.io.IOException: Cannot run program ""javac"": CreateProcess error=2, The system cannot find the file specified"; SQL statement:
      CREATE ALIAS IF NOT EXISTS sp2 AS $$void sp2(Connection conn) throws SQLException {    conn.createStatement().executeUpdate("delete from STOCK_TRADE");}$$; [90028-173]
          at org.h2.message.DbException.getJdbcSQLException(DbException.java:331)
          at org.h2.message.DbException.get(DbException.java:160)
          at org.h2.message.DbException.convert(DbException.java:275)
          at org.h2.util.SourceCompiler.exec(SourceCompiler.java:229)
          at org.h2.util.SourceCompiler.javacProcess(SourceCompiler.java:203)
          at org.h2.util.SourceCompiler.javacCompile(SourceCompiler.java:187)
          at org.h2.util.SourceCompiler$1.findClass(SourceCompiler.java:102)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
          at org.h2.util.SourceCompiler.getClass(SourceCompiler.java:113)
          at org.h2.util.SourceCompiler.getMethod(SourceCompiler.java:127)
          at org.h2.engine.FunctionAlias.loadFromSource(FunctionAlias.java:123)
          at org.h2.engine.FunctionAlias.load(FunctionAlias.java:111)
          at org.h2.engine.FunctionAlias.init(FunctionAlias.java:98)
          at org.h2.engine.FunctionAlias.newInstanceFromSource(FunctionAlias.java:90)
          at org.h2.command.ddl.CreateFunctionAlias.update(CreateFunctionAlias.java:50)
          at org.h2.command.CommandContainer.update(CommandContainer.java:79)
          at org.h2.command.Command.executeUpdate(Command.java:235)
          at org.h2.jdbc.JdbcStatement.executeUpdateInternal(JdbcStatement.java:128)
          at org.h2.jdbc.JdbcStatement.executeUpdate(JdbcStatement.java:113)
          at org.jberet.support.io.JdbcBatchletTest.storedProcedure(JdbcBatchletTest.java:71)
          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.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.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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
          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:379)
          at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340)
          at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
          at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)
      Caused by: java.io.IOException: Cannot run program "javac": CreateProcess error=2, The system cannot find the file specified
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
          at org.h2.util.SourceCompiler.exec(SourceCompiler.java:221)
          ... 43 more
      Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
          at java.lang.ProcessImpl.create(Native Method)
          at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
          at java.lang.ProcessImpl.start(ProcessImpl.java:137)
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
          ... 44 more
      
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                cfang Cheng Fang
                Reporter:
                cfang Cheng Fang
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: