Open
Description
phoneticenc
works in Stata 15 but fails in Stata 16. I am using Stata/MP for Windows (64-bit x86-64):
clear
input str15 last_name
"shadbolt"
""
"ayres"
"campbell"
"parmakli"
end
phoneticenc last_name, dblmetaphone(dblml)
The error in Stata 16 is
java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknow
> n Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at com.stata.Javacall.load(Javacall.java:130)
at com.stata.Javacall.load(Javacall.java:90)
Caused by: java.lang.NullPointerException
r(5100);
The error is caused by the missingness. For example, this code works in both Stata 15 and 16:
clear
input str15 last_name
"shadbolt"
"hello"
"ayres"
"campbell"
"parmakli"
end
phoneticenc last_name, dblmetaphone(dblml)
I am unable to fix the problem under version control. Basically, I want to use Stata 16 but if I do then I can no longer use your program because of the error. Please advice. I can cross-post on Statalist if you would like.