Hi @YC_9410522 ,
Since this is your custom code, you need to debug your code to see exactly why that happens.
Append to your Apache Tomcat Java options this line and restart the server after that:
-agentlib:jdwp=transport=dt_socket,address=1043,server=y,suspend=n
Then, debug your ThingWorx extension from Eclipse in this manner:
- Goto Run>Debug Configurations
- Select Remote Java Applications and create a new configuration (right click>New)
- In the Project field,browse for and select your project
- In the Host field,enter the host of your Tomcat instance
- In the Port field,enter the debug port t=> 1043
- Run debug after Tomcat has started,and you will be connected
Note that this way to debug works only if you have access to the ThingWorx's instance port you set above (1043 in this case). There might be cases where access to this port is blocked by the infrastructure team where the platform is hosted.
An alternative to this is to add multiple logger statements in your extension that write lines in the Script/Application Log..