tuya-connector helps you efficiently create cloud development projects regarding the OpenAPI or message subscription capabilities. You can put all the focus on business logic without taking care of server-side programming nor relational databases.
Apache License 2.0
60
stars
34
forks
source link
com.tuya.connector.api.exceptions.ConnectorDelegateException: Error create retrofit delegate for connector #47
`com.tuya.connector.api.exceptions.ConnectorDelegateException: Error create retrofit delegate for connector : com.tuya.open.spring.boot.sample.ability.api.DeviceConnector.
Cause: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @458c1321
at com.tuya.connector.api.core.delegate.DelegateFactory.forRetrofit(DelegateFactory.java:26)
at com.tuya.connector.api.core.ConnectorProxy.invoke(ConnectorProxy.java:46)
at jdk.proxy2/jdk.proxy2.$Proxy84.getDevices(Unknown Source)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.tuya.connector.api.plugin.Invocation.proceed(Invocation.java:29)
at com.tuya.connector.api.error.ErrorProcessorInterceptor.intercept(ErrorProcessorInterceptor.java:31)
at com.tuya.connector.api.plugin.Plugin.invoke(Plugin.java:26)
at jdk.proxy2/jdk.proxy2.$Proxy84.getDevices(Unknown Source)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.tuya.connector.api.plugin.Invocation.proceed(Invocation.java:29)
at com.tuya.connector.api.context.ContextInterceptor.intercept(ContextInterceptor.java:30)
at com.tuya.connector.api.plugin.Plugin.invoke(Plugin.java:26)
at jdk.proxy2/jdk.proxy2.$Proxy84.getDevices(Unknown Source)
at com.tuya.open.spring.boot.sample.DemoAplicationTest.getDevices(DemoAplicationTest.java:25)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @458c1321
at java.base/java.lang.reflect.AccessibleObject.throwInaccessibleObjectException(AccessibleObject.java:391)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:367)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:315)
at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:203)
at java.base/java.lang.reflect.Method.setAccessible(Method.java:197)
at javassist.util.proxy.SecurityActions.setAccessible(SecurityActions.java:159)
at javassist.util.proxy.DefineClassHelper$JavaOther.defineClass(DefineClassHelper.java:213)
at javassist.util.proxy.DefineClassHelper$Java11.defineClass(DefineClassHelper.java:52)
at javassist.util.proxy.DefineClassHelper.toClass(DefineClassHelper.java:260)
at javassist.ClassPool.toClass(ClassPool.java:1232)
at javassist.CtClass.toClass(CtClass.java:1384)
at com.tuya.connector.api.core.delegate.RetrofitDelegate.deriveFrom(RetrofitDelegate.java:201)
at com.tuya.connector.api.core.delegate.RetrofitDelegate.(RetrofitDelegate.java:74)
at com.tuya.connector.api.core.delegate.DelegateFactory.forRetrofit(DelegateFactory.java:23)
... 18 more`
版本:1.3.5</tuya-spring-boot-starter.version>
jdk版本 21
具体报错如下:
`com.tuya.connector.api.exceptions.ConnectorDelegateException: Error create retrofit delegate for connector : com.tuya.open.spring.boot.sample.ability.api.DeviceConnector. Cause: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @458c1321
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @458c1321 at java.base/java.lang.reflect.AccessibleObject.throwInaccessibleObjectException(AccessibleObject.java:391) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:367) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:315) at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:203) at java.base/java.lang.reflect.Method.setAccessible(Method.java:197) at javassist.util.proxy.SecurityActions.setAccessible(SecurityActions.java:159) at javassist.util.proxy.DefineClassHelper$JavaOther.defineClass(DefineClassHelper.java:213) at javassist.util.proxy.DefineClassHelper$Java11.defineClass(DefineClassHelper.java:52) at javassist.util.proxy.DefineClassHelper.toClass(DefineClassHelper.java:260) at javassist.ClassPool.toClass(ClassPool.java:1232) at javassist.CtClass.toClass(CtClass.java:1384) at com.tuya.connector.api.core.delegate.RetrofitDelegate.deriveFrom(RetrofitDelegate.java:201) at com.tuya.connector.api.core.delegate.RetrofitDelegate.(RetrofitDelegate.java:74)
at com.tuya.connector.api.core.delegate.DelegateFactory.forRetrofit(DelegateFactory.java:23)
... 18 more`