Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index out of bounds #41

Open
geeskepeeters opened this issue Jan 22, 2025 · 0 comments
Open

index out of bounds #41

geeskepeeters opened this issue Jan 22, 2025 · 0 comments

Comments

@geeskepeeters
Copy link

After using the code
jsonio rv, file("filename.json") nourl ob(500)

I get the error message saying:
java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
at java.base/java.util.Objects.checkIndex(Objects.java:361)
at java.base/java.util.ArrayList.get(ArrayList.java:427)
at org.paces.Stata.Input.FlatJSON.flatten(FlatJSON.java:199)
at org.paces.Stata.Input.FlatJSON.flatten(FlatJSON.java:181)
at org.paces.Stata.Input.FlatJSON.flatten(FlatJSON.java:199)
at org.paces.Stata.Input.FlatJSON.flatten(FlatJSON.java:199)
at org.paces.Stata.Input.FlatJSON.flatten(FlatJSON.java:199)
at org.paces.Stata.Input.FlatJSON.flatten(FlatJSON.java:181)
at org.paces.Stata.Input.FlatJSON.flatten(FlatJSON.java:199)
at org.paces.Stata.Input.FlatJSON.flatten(FlatJSON.java:121)
at org.paces.Stata.Input.InJSON.insheetFileToVars(InJSON.java:192)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at com.stata.Javacall.load(Javacall.java:277)
at com.stata.Javacall.load(Javacall.java:92)

The result is that no data are read into Stata.

How can I solve this issue?
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant