cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Java Extension - Subscription handler is NOT called

Highlighted
Pearl

Java Extension - Subscription handler is NOT called

Hi ,

 

(This thread is a simplifed sample to reproducing the same problem in https://community.ptc.com/t5/ThingWorx-Developers/Subscription-defined-in-extension-doesn-t-work/m-p...)

 

I have the following event, Subscription and Service defined in JAVA extension.  Executing the Service raise the event "raiseHelpMe", but the handler helpMeHandler is NOT called.  and I didn't find  the log "Entering Service: helpMeHandler" .

 

Thingworx: 8.3.4

 

=============================Code========================================

ExtensionCode.PNG

 

=====================application log===============================================

2019-02-18 19:43:22.148  Debug Completed event processing for : Event.helpMe on behalf of   c.t.s.s.e.EventInstance TWEventProcessor-14    
2019-02-18 19:43:22.148  Debug Completed execution of event : Event.helpMe on behalf of Administrator c.t.s.s.e.EventInstance TWEventProcessor-14    
2019-02-18 19:43:22.148  Debug Starting execution of event : Event.helpMe on behalf of   c.t.s.s.e.EventInstance TWEventProcessor-14    
2019-02-18 19:43:22.148  Debug Starting event processing for event : Event.helpMe on behalf of   c.t.s.s.e.EventInstance TWEventProcessor-14    
2019-02-18 19:43:22.148  Trace Exiting Service: raiseHelpMe Administrator c.t.w.EventTestThingTemplate http-nio-8080-exec-8    
2019-02-18 19:43:22.148  Info Firing event Event.helpMe with 1 subscribers Administrator c.t.s.s.i.SubscriptionStoreInMemoryThreadSafe http-nio-8080-exec-8    
2019-02-18 19:43:22.148  Trace Entering Service: raiseHelpMe Administrator c.t.w.EventTestThingTemplate http-nio-8080-exec-8    
2019-02-18 19:43:22.148  Debug Executing request [URI: /Thingworx/Things/EventTestThing/Services/raiseHelpMe] Administrator c.t.w.BaseService http-nio-8080-exec-8    
2019-02-18 19:41:46.585  Trace Entered addSubscription for publisher EventTestThing and subscriber EventTestThing and event Type.Thing:Entity.EventTestThing:Event.helpMe Administrator c.t.s.s.i.SubscriptionStoreInMemoryThreadSafe http-nio-8080-exec-5
3 REPLIES 3

Re: Java Extension - Subscription handler is NOT called

Hello, Sean.

 

This looks like a good candidate to be opened as a support case with TS. Let me know if you need assistance doing so.

 

Thanks,

 

-- Craig A.

Re: Java Extension - Subscription handler is NOT called

Hi Craig A,

 

Thank you for your help. I'm new to thingworx and haven't tried to open ticket.  Could you assist me to do it ?  Thank you

 

Regards,

Sean 

Re: Java Extension - Subscription handler is NOT called

Hi, Sean.

 

I've been informed TS is not directly able to support this kind of customization, so I have not opened a case for this.

 

Let's see if the Community can provide any suggestions.

 

My apologies,

 

-- Craig A.