AnsweredAssumed Answered

StackOverflowError using UDF

Question asked by dimamah on Mar 4, 2014
Latest reply on May 18, 2014 by dimamah
We are getting the error below from time to time when using custom UDF's. 
The error appears to come at random, the UDF on which it fails is also random. 
A work around is to re-run the command `create temporary function`...  after which the query succeeds. 
This seems like an endless loop as the error goes on and on in cycles for approximately 990 lines.

    2014-03-03 22:39:28,4310 DEBUG JniCommon fs/client/fileclient/cc/jni_cjava.lang.StackOverflowError
            at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:244)
            at java.beans.Statement.invokeInternal(Statement.java:239)
            at java.beans.Statement.access$000(Statement.java:39)
            at java.beans.Statement$2.run(Statement.java:140)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.beans.Statement.invoke(Statement.java:137)
            at java.beans.Expression.getValue(Expression.java:98)
            at java.beans.Encoder.getValue(Encoder.java:85)
            at java.beans.Encoder.get(Encoder.java:200)
            at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:94)
            at java.beans.Encoder.writeObject(Encoder.java:54)
            at java.beans.XMLEncoder.writeObject(XMLEncoder.java:257)
            at java.beans.Encoder.writeExpression(Encoder.java:279)
            at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:372)
            at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:97)
            at java.beans.Encoder.writeObject(Encoder.java:54)
            at java.beans.XMLEncoder.writeObject(XMLEncoder.java:257)
            at java.beans.Encoder.writeExpression(Encoder.java:279)
            at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:372)
            at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:97)
            at java.beans.Encoder.writeObject(Encoder.java:54)
            at java.beans.XMLEncoder.writeObject(XMLEncoder.java:257)
            at java.beans.Encoder.writeExpression(Encoder.java:279)
            at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:372)
            at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:97)
            at java.beans.Encoder.writeObject(Encoder.java:54)
            at java.beans.XMLEncoder.writeObject(XMLEncoder.java:257)
            at java.beans.Encoder.writeExpression(Encoder.java:279)
            at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:372)
            at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:97)
            at java.beans.Encoder.writeObject(Encoder.java:54)
            at java.beans.XMLEncoder.writeObject(XMLEncoder.java:257)
            at java.beans.Encoder.writeExpression(Encoder.java:279)
            at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:372)
            at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:97)
            at java.beans.Encoder.writeObject(Encoder.java:54)
            at java.beans.XMLEncoder.writeObject(XMLEncoder.java:257)
            at java.beans.Encoder.writeExpression(Encoder.java:279)
            at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:372)

Outcomes