org.apache.cassandra.exceptions.InvalidRequestException: Execution of user-defined function 'cql_test_keyspace.function_83' failed: javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot call method "getString" of null (<Unknown Source>#1) in <Unknown Source> at line number 1

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Apache's JIRA Issue Tracker by Robert Stupp, 1 year ago
Execution of user-defined function 'cql_test_keyspace.function_83' failed: javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot call method "getString" of null (<Unknown Source>#1) in <Unknown Source> at line number 1
org.apache.cassandra.exceptions.InvalidRequestException: Execution of user-defined function 'cql_test_keyspace.function_83' failed: javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot call method "getString" of null (<Unknown Source>#1) in <Unknown Source> at line number 1
at org.apache.cassandra.cql3.functions.ScriptBasedUDF.execute(ScriptBasedUDF.java:142)
at org.apache.cassandra.cql3.selection.ScalarFunctionSelector.getOutput(ScalarFunctionSelector.java:60)
at org.apache.cassandra.cql3.selection.Selection$SelectionWithProcessing$1.getOutputRow(Selection.java:397)
at org.apache.cassandra.cql3.selection.Selection$ResultSetBuilder.build(Selection.java:241)
at org.apache.cassandra.cql3.statements.SelectStatement.process(SelectStatement.java:1168)
at org.apache.cassandra.cql3.statements.SelectStatement.processResults(SelectStatement.java:304)
at org.apache.cassandra.cql3.statements.SelectStatement.executeInternal(SelectStatement.java:328)
at org.apache.cassandra.cql3.statements.SelectStatement.executeInternal(SelectStatement.java:65)
at org.apache.cassandra.cql3.QueryProcessor.executeOnceInternal(QueryProcessor.java:349)
at org.apache.cassandra.cql3.CQLTester.execute(CQLTester.java:436)
at org.apache.cassandra.cql3.UFTest.testJavascriptUTCollections(UFTest.java:1278)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.