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
everything works fine, but I noticed that sometimes when I start the application, it throws exception @ line : pin1out = this.pi4j.create(pin1Config);
also I noticed that if I turn on the actuator motor , and then shutdown the application, upon restart, this error happened, sometimes, but not all the time..
is there a way to pinpoint what is going on?
exception is : Caused by: java.lang.reflect.UndeclaredThrowableException at com.sun.proxy.$Proxy66.create(Unknown Source) at com.pi4j.context.Context.create(Context.java:317) at com.pi4j.internal.IOCreator.create(IOCreator.java:58) at com.pi4j.internal.IOCreator.create(IOCreator.java:96) at com.pi4j.internal.IOCreator.create(IOCreator.java:176) at io.solarspace.beans.PWMMotor.init(PWMMotor.java:67) at io.solarspace.beans.PWMMotor.<init>(PWMMotor.java:35) at io.solarspace.config.PiConfig.actuatorPWM(PiConfig.java:121) at io.solarspace.config.PiConfig$$EnhancerBySpringCGLIB$$aa5325f1.CGLIB$actuatorPWM$0(<generated>) at io.solarspace.config.PiConfig$$EnhancerBySpringCGLIB$$aa5325f1$$FastClassBySpringCGLIB$$41f28d1f.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) at io.solarspace.config.PiConfig$$EnhancerBySpringCGLIB$$aa5325f1.actuatorPWM(<generated>) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ... 55 more Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at com.pi4j.provider.impl.ProviderProxyHandler.invoke(ProviderProxyHandler.java:100) ... 73 more Caused by: com.pi4j.library.pigpio.PiGpioException: PIGPIO ERROR: PI_INIT_FAILED; pigpio initialisation failed at com.pi4j.library.pigpio.impl.PiGpioBase.validateResult(PiGpioBase.java:263) at com.pi4j.library.pigpio.impl.PiGpioBase.validateResult(PiGpioBase.java:249) at com.pi4j.library.pigpio.impl.PiGpioNativeImpl.gpioInitialise(PiGpioNativeImpl.java:95) at com.pi4j.library.pigpio.PiGpio.initialize(PiGpio.java:146) at com.pi4j.plugin.pigpio.provider.gpio.digital.PiGpioDigitalOutputProviderImpl.create(PiGpioDigitalOutputProviderImpl.java:60) at com.pi4j.plugin.pigpio.provider.gpio.digital.PiGpioDigitalOutputProviderImpl.create(PiGpioDigitalOutputProviderImpl.java:41) ... 78 more
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am initializing actuator motor control using following code :
check :
everything works fine, but I noticed that sometimes when I start the application, it throws exception @ line : pin1out = this.pi4j.create(pin1Config);
also I noticed that if I turn on the actuator motor , and then shutdown the application, upon restart, this error happened, sometimes, but not all the time..
is there a way to pinpoint what is going on?
exception is :
Caused by: java.lang.reflect.UndeclaredThrowableException at com.sun.proxy.$Proxy66.create(Unknown Source) at com.pi4j.context.Context.create(Context.java:317) at com.pi4j.internal.IOCreator.create(IOCreator.java:58) at com.pi4j.internal.IOCreator.create(IOCreator.java:96) at com.pi4j.internal.IOCreator.create(IOCreator.java:176) at io.solarspace.beans.PWMMotor.init(PWMMotor.java:67) at io.solarspace.beans.PWMMotor.<init>(PWMMotor.java:35) at io.solarspace.config.PiConfig.actuatorPWM(PiConfig.java:121) at io.solarspace.config.PiConfig$$EnhancerBySpringCGLIB$$aa5325f1.CGLIB$actuatorPWM$0(<generated>) at io.solarspace.config.PiConfig$$EnhancerBySpringCGLIB$$aa5325f1$$FastClassBySpringCGLIB$$41f28d1f.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) at io.solarspace.config.PiConfig$$EnhancerBySpringCGLIB$$aa5325f1.actuatorPWM(<generated>) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ... 55 more Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at com.pi4j.provider.impl.ProviderProxyHandler.invoke(ProviderProxyHandler.java:100) ... 73 more Caused by: com.pi4j.library.pigpio.PiGpioException: PIGPIO ERROR: PI_INIT_FAILED; pigpio initialisation failed at com.pi4j.library.pigpio.impl.PiGpioBase.validateResult(PiGpioBase.java:263) at com.pi4j.library.pigpio.impl.PiGpioBase.validateResult(PiGpioBase.java:249) at com.pi4j.library.pigpio.impl.PiGpioNativeImpl.gpioInitialise(PiGpioNativeImpl.java:95) at com.pi4j.library.pigpio.PiGpio.initialize(PiGpio.java:146) at com.pi4j.plugin.pigpio.provider.gpio.digital.PiGpioDigitalOutputProviderImpl.create(PiGpioDigitalOutputProviderImpl.java:60) at com.pi4j.plugin.pigpio.provider.gpio.digital.PiGpioDigitalOutputProviderImpl.create(PiGpioDigitalOutputProviderImpl.java:41) ... 78 more
Beta Was this translation helpful? Give feedback.
All reactions