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

integer expected at position 2 #351

Closed
xingkexin opened this issue Sep 14, 2022 · 2 comments
Closed

integer expected at position 2 #351

xingkexin opened this issue Sep 14, 2022 · 2 comments
Milestone

Comments

@xingkexin
Copy link

[INFO] Smart-doc Starting Create API Documentation at: 2022-09-14 22:12:48
[INFO] API documentation is output to => D:/software_temp/api-doc
[ERROR]
java.lang.IllegalArgumentException: integer expected at position 2
at dk.brics.automaton.RegExp.parseRepeatExp (Unknown Source)
at dk.brics.automaton.RegExp.parseConcatExp (Unknown Source)
at dk.brics.automaton.RegExp.parseInterExp (Unknown Source)
at dk.brics.automaton.RegExp.parseUnionExp (Unknown Source)
at dk.brics.automaton.RegExp. (Unknown Source)
at dk.brics.automaton.RegExp. (Unknown Source)
at com.mifmif.common.regex.Generex.createRegExp (Generex.java:117)
at com.mifmif.common.regex.Generex. (Generex.java:85)
at com.mifmif.common.regex.Generex. (Generex.java:76)
at com.power.doc.utils.DocUtil.formatAndRemove (DocUtil.java:243)
at com.power.doc.template.SpringBootDocBuildTemplate.buildReqJson (SpringBootDocBuildTemplate.java:717)
at com.power.doc.template.SpringBootDocBuildTemplate.buildControllerMethod (SpringBootDocBuildTemplate.java:382)
at com.power.doc.template.SpringBootDocBuildTemplate.getApiData (SpringBootDocBuildTemplate.java:134)
at com.power.doc.builder.HtmlApiDocBuilder.buildApiDoc (HtmlApiDocBuilder.java:89)
at com.smartdoc.mojo.HtmlMojo.executeMojo (HtmlMojo.java:48)
at com.smartdoc.mojo.BaseDocsGeneratorMojo.execute (BaseDocsGeneratorMojo.java:154)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.682 s
[INFO] Finished at: 2022-09-14T22:12:52+08:00
[INFO] ------------------------------------------------------------------------

进程已结束,退出代码0

@shalousun
Copy link
Collaborator

shalousun commented Sep 14, 2022

@xingkexin 请按照issue模板填写并注明使用版本,按照模板填写方便跟踪维护。另外你的代码中主要是存在url上使用正则的情况,也需要提供错误用例。在url上下复杂的正则解析上会比较困难。#81

netdied pushed a commit that referenced this issue Sep 25, 2022
@netdied
Copy link
Collaborator

netdied commented Sep 25, 2022

use url like: ${server.path:${path:/detail}} ?

@shalousun shalousun added this to the 2.6.0 milestone Oct 15, 2022
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

3 participants