com.datastax.driver.core.exceptions.InvalidQueryException: ERROR FUNCTION_FAILURE: execution of 'cql_test_keyspace_alt.function_1[double]' failed: java.lang.RuntimeException

DataStax JIRA | Robert Stupp | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When UDF execution raises a {{FunctionExecutionException}}, it's propagated as an {{InvalidQueryException}}. Should it be a {{FunctionExecutionException}}? Not sure about the other exceptions like {{TruncateException}} (didn't check that). {code} com.datastax.driver.core.exceptions.InvalidQueryException: ERROR FUNCTION_FAILURE: execution of 'cql_test_keyspace_alt.function_1[double]' failed: java.lang.RuntimeException at com.datastax.driver.core.exceptions.InvalidQueryException.copy(InvalidQueryException.java:35) at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:271) at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:185) at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:55) at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:47) at org.apache.cassandra.cql3.CQLTester.executeNet(CQLTester.java:484) at org.apache.cassandra.cql3.UFTest.testFunctionExecutionExceptionNet(UFTest.java:2158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:44) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.ParentRunner.run(ParentRunner.java:220) at org.junit.runner.JUnitCore.run(JUnitCore.java:159) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68) Caused by: com.datastax.driver.core.exceptions.InvalidQueryException: ERROR FUNCTION_FAILURE: execution of 'cql_test_keyspace_alt.function_1[double]' failed: java.lang.RuntimeException at com.datastax.driver.core.Responses$Error.asException(Responses.java:125) at com.datastax.driver.core.DefaultResultSetFuture.onSet(DefaultResultSetFuture.java:120) at com.datastax.driver.core.RequestHandler.setFinalResult(RequestHandler.java:186) at com.datastax.driver.core.RequestHandler.access$2300(RequestHandler.java:45) at com.datastax.driver.core.RequestHandler$SpeculativeExecution.setFinalResult(RequestHandler.java:752) at com.datastax.driver.core.RequestHandler$SpeculativeExecution.onSet(RequestHandler.java:576) at com.datastax.driver.core.Connection$Dispatcher.channelRead0(Connection.java:1003) at com.datastax.driver.core.Connection$Dispatcher.channelRead0(Connection.java:925) at com.datastax.shaded.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) {code}

    DataStax JIRA | 2 years ago | Robert Stupp
    com.datastax.driver.core.exceptions.InvalidQueryException: ERROR FUNCTION_FAILURE: execution of 'cql_test_keyspace_alt.function_1[double]' failed: java.lang.RuntimeException
  2. 0

    When UDF execution raises a {{FunctionExecutionException}}, it's propagated as an {{InvalidQueryException}}. Should it be a {{FunctionExecutionException}}? Not sure about the other exceptions like {{TruncateException}} (didn't check that). {code} com.datastax.driver.core.exceptions.InvalidQueryException: ERROR FUNCTION_FAILURE: execution of 'cql_test_keyspace_alt.function_1[double]' failed: java.lang.RuntimeException at com.datastax.driver.core.exceptions.InvalidQueryException.copy(InvalidQueryException.java:35) at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:271) at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:185) at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:55) at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:47) at org.apache.cassandra.cql3.CQLTester.executeNet(CQLTester.java:484) at org.apache.cassandra.cql3.UFTest.testFunctionExecutionExceptionNet(UFTest.java:2158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:44) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.ParentRunner.run(ParentRunner.java:220) at org.junit.runner.JUnitCore.run(JUnitCore.java:159) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68) Caused by: com.datastax.driver.core.exceptions.InvalidQueryException: ERROR FUNCTION_FAILURE: execution of 'cql_test_keyspace_alt.function_1[double]' failed: java.lang.RuntimeException at com.datastax.driver.core.Responses$Error.asException(Responses.java:125) at com.datastax.driver.core.DefaultResultSetFuture.onSet(DefaultResultSetFuture.java:120) at com.datastax.driver.core.RequestHandler.setFinalResult(RequestHandler.java:186) at com.datastax.driver.core.RequestHandler.access$2300(RequestHandler.java:45) at com.datastax.driver.core.RequestHandler$SpeculativeExecution.setFinalResult(RequestHandler.java:752) at com.datastax.driver.core.RequestHandler$SpeculativeExecution.onSet(RequestHandler.java:576) at com.datastax.driver.core.Connection$Dispatcher.channelRead0(Connection.java:1003) at com.datastax.driver.core.Connection$Dispatcher.channelRead0(Connection.java:925) at com.datastax.shaded.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) {code}

    DataStax JIRA | 2 years ago | Robert Stupp
    com.datastax.driver.core.exceptions.InvalidQueryException: ERROR FUNCTION_FAILURE: execution of 'cql_test_keyspace_alt.function_1[double]' failed: java.lang.RuntimeException

    Root Cause Analysis

    1. com.datastax.driver.core.exceptions.InvalidQueryException

      ERROR FUNCTION_FAILURE: execution of 'cql_test_keyspace_alt.function_1[double]' failed: java.lang.RuntimeException

      at com.datastax.driver.core.Responses$Error.asException()
    2. DataStax Java Driver for Apache Cassandra - Core
      SimpleChannelInboundHandler.channelRead
      1. com.datastax.driver.core.Responses$Error.asException(Responses.java:125)
      2. com.datastax.driver.core.DefaultResultSetFuture.onSet(DefaultResultSetFuture.java:120)
      3. com.datastax.driver.core.RequestHandler.setFinalResult(RequestHandler.java:186)
      4. com.datastax.driver.core.RequestHandler.access$2300(RequestHandler.java:45)
      5. com.datastax.driver.core.RequestHandler$SpeculativeExecution.setFinalResult(RequestHandler.java:752)
      6. com.datastax.driver.core.RequestHandler$SpeculativeExecution.onSet(RequestHandler.java:576)
      7. com.datastax.driver.core.Connection$Dispatcher.channelRead0(Connection.java:1003)
      8. com.datastax.driver.core.Connection$Dispatcher.channelRead0(Connection.java:925)
      9. com.datastax.shaded.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
      9 frames