Re: Jxpath getting stuck on trying to do a getValue

2023-09-25 Thread Matt Benson
Not really in a way that makes sense for a publicly archived ML like this, IMO. If you can "boil it down" to the essence of the problem you should be able to convey the example without revealing anything private. Alternatively, you can debug it yourself. If you want to report any problem you find i

Re: Jxpath getting stuck on trying to do a getValue

2023-09-24 Thread Debraj Manna
I can share a reproducible project but I would like to avoid doing it in a public link like in GitHub, etc. Is there a way to do that? On Mon, 25 Sep, 2023, 01:10 Matt Benson, wrote: > TBH I'm somewhat surprised it doesn't already, but I haven't actually > ran/debugged your example. > > On Sun,

Re: Jxpath getting stuck on trying to do a getValue

2023-09-24 Thread Matt Benson
TBH I'm somewhat surprised it doesn't already, but I haven't actually ran/debugged your example. On Sun, Sep 24, 2023 at 2:32 PM Debraj Manna wrote: > Is there a way I can throw some error from jxpath when this situation > arises instead of getting stuck in a never ending loop? > > On Sun, 24 Se

Re: Jxpath getting stuck on trying to do a getValue

2023-09-24 Thread Debraj Manna
Is there a way I can throw some error from jxpath when this situation arises instead of getting stuck in a never ending loop? On Sun, 24 Sep, 2023, 22:54 Matt Benson, wrote: > Well, to be clear, you can have linked nodes. But if N had both `next` and > `previous` members is where you'd run into

Re: Jxpath getting stuck on trying to do a getValue

2023-09-24 Thread Matt Benson
Well, to be clear, you can have linked nodes. But if N had both `next` and `previous` members is where you'd run into trouble. On Sun, Sep 24, 2023 at 12:22 PM Matt Benson wrote: > If you're doing a search down the tree you'd need some way to keep JXPath > from traversing these relationships, ye

Re: Jxpath getting stuck on trying to do a getValue

2023-09-24 Thread Matt Benson
If you're doing a search down the tree you'd need some way to keep JXPath from traversing these relationships, yes. On Sun, Sep 24, 2023 at 11:59 AM Debraj Manna wrote: > Are you saying that in JxPath we cannot use something like below? > > class A { > int n; > A next; > } > > On Sun, Se

Re: Jxpath getting stuck on trying to do a getValue

2023-09-24 Thread Debraj Manna
Are you saying that in JxPath we cannot use something like below? class A { int n; A next; } On Sun, Sep 24, 2023 at 8:43 PM Matt Benson wrote: > Is it possible the proto message (I'm not familiar with this API) is built > with internal recursive references, i.e. some child has a proper

Re: Jxpath getting stuck on trying to do a getValue

2023-09-24 Thread Matt Benson
Is it possible the proto message (I'm not familiar with this API) is built with internal recursive references, i.e. some child has a property that points, possibly indirectly, to its parent? That would be the most probable explanation, particularly as you say feeding jxpath the known absolute path

Re: Jxpath getting stuck on trying to do a getValue

2023-09-24 Thread Debraj Manna
It looks like it is getting stuck in some infinite loop. The thread stack looks like below after ~ 8 hours from the start. main Runnable CPU usage on sample: 979ms jdk.internal.reflect.GeneratedMethodAccessor640.invoke() jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod

Jxpath getting stuck on trying to do a getValue

2023-09-23 Thread Debraj Manna
I am trying to search using JxPath on a proto message, My proto message is placed here . val protoStr = getStringFromFile("classpath:BookingEnginePnrUpdateEventProto.txt"); val msgBld = BookingEnginePNRUpdateEvent.newBuilder();