Smart-doc is a java restful api document generation tool. Smart-doc is based on interface source code analysis to generate interface documentation, completely zero-injection.
plugin version (e.g. smart-doc-maven-plugin or smart-doc-gradle-plugin): 2.7.7
maven:3.9.3
Expected Behavior(您期望的结果)
Normally parse the SSE interface and generate documentation.
正常解析SSE 接口并且生成文档
Current Behavior(当前结果)
[ERROR]
java.lang.reflect.InaccessibleObjectException: Unable to make field private transient java.lang.Object java.lang.Throwable.backtrace accessible: module java.base does not "opens java.lang" to unnamed module @176b4e21
at java.lang.reflect.AccessibleObject.checkCanSetAccessible (AccessibleObject.java:354)
at java.lang.reflect.AccessibleObject.checkCanSetAccessible (AccessibleObject.java:297)
at java.lang.reflect.Field.checkCanSetAccessible (Field.java:178)
at java.lang.reflect.Field.setAccessible (Field.java:172)
at com.power.doc.utils.JavaClassUtil.getFieldGenericType (JavaClassUtil.java:783)
at com.power.doc.utils.JavaClassUtil.getFields (JavaClassUtil.java:241)
at com.power.doc.utils.JavaClassUtil.getFields (JavaClassUtil.java:66)
at com.power.doc.builder.ProjectDocConfigBuilder.getClassByName (ProjectDocConfigBuilder.java:156)
at com.power.doc.helper.JsonBuildHelper.buildJson (JsonBuildHelper.java:166)
at com.power.doc.helper.JsonBuildHelper.buildJson (JsonBuildHelper.java:442)
at com.power.doc.helper.JsonBuildHelper.buildReturnJson (JsonBuildHelper.java:123)
at com.power.doc.template.IRestDocTemplate.buildEntryPointMethod (IRestDocTemplate.java:441)
at com.power.doc.template.IRestDocTemplate.processApiData (IRestDocTemplate.java:66)
at com.power.doc.template.SpringBootDocBuildTemplate.getApiData (SpringBootDocBuildTemplate.java:54)
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:165)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
Your Environment(您的使用环境)
JDK17,SpringBoot 2.5.3
Expected Behavior(您期望的结果)
Normally parse the SSE interface and generate documentation. 正常解析SSE 接口并且生成文档
Current Behavior(当前结果)
Possible Solution(bug解决建议)
Steps to Reproduce (Bug产生步骤,请尽量提供用例代码)
Write a controller to handle SSE requests
Context(Bug影响描述)
Failed to generate the documentation.