You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[develop_2.0] String index out of exception in android-java template #369
reading from http://petstore.swagger.wordnik.com/v2/swagger.json
java.lang.StringIndexOutOfBoundsException: String index out of range: 1
at java.lang.String.charAt(String.java:658)
at java.util.regex.Matcher.appendReplacement(Matcher.java:762)
at java.util.regex.Matcher.replaceAll(Matcher.java:906)
at java.lang.String.replaceAll(String.java:2162)
at com.wordnik.swagger.codegen.languages.AndroidClientCodegen.modelFileFolder(AndroidClientCodegen.java:74)
at com.wordnik.swagger.codegen.DefaultGenerator.generate(DefaultGenerator.java:87)
at com.wordnik.swagger.codegen.Codegen.main(Codegen.java:84)
changed the title [-]String index out of exception in android-java template[/-][+][develop_2.0] String index out of exception in android-java template[/+]on Jan 9, 2015
Note: Without the -t parameter it can't find the mustache files only for android
The output is same for all commands
reading from http://petstore.swagger.wordnik.com/v2/swagger.json
java.lang.IllegalArgumentException: character to be escaped is missing
at java.util.regex.Matcher.appendReplacement(Matcher.java:809)
at java.util.regex.Matcher.replaceAll(Matcher.java:955)
at java.lang.String.replaceAll(String.java:2210)
at com.wordnik.swagger.codegen.languages.AndroidClientCodegen.modelFileFolder(AndroidClientCodegen.java:74)
at com.wordnik.swagger.codegen.DefaultGenerator.generate(DefaultGenerator.java:87)
at com.wordnik.swagger.codegen.Codegen.main(Codegen.java:84)
Activity
[-]String index out of exception in android-java template[/-][+][develop_2.0] String index out of exception in android-java template[/+]fehguy commentedon Jan 9, 2015
Can you please take the default output folder (remove the -o flag) and report back what you get?
cantecim commentedon Jan 10, 2015
Sure. I tried it when i was in work. So I'll report back the output monday(two days later)
cantecim commentedon Jan 10, 2015
Actually, I am trying on home now
Using java 1.8 and mvn 3.1.1
One more time i can compile for java. When i try it for android using below commands
Note: Without the -t parameter it can't find the mustache files only for android
The output is same for all commands
Fixed apiFileFolder and modelFileFolder function results for android-…
Merge pull request #371 from cantecim/develop_2.0
cantecim commentedon Jan 10, 2015
So I correctly changed the AndroidClientCodegen.java the issue on my home environment solved
I'll try on work once I back to work and report back you for that issue
fehguy commentedon Jan 10, 2015
Thanks a lot--I've merged that PR.
cantecim commentedon Jan 12, 2015
Compiled succesfully. It seems it had fixed whole issue