Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

stack trace - NullPointerException

busitech
Level 2
Level 2
The following NullPointerException happens when I configure
destinations with bidirectional one-many associations more than one
level deep.



Example:

Company, one-to-many Vendors, one-to-many Items

Items, many-to-one Vendor



The recursive subscription mechanism gets stuck in the Vendor
association of Item and crashes:



11:49:53,796 ERROR [STDERR] Exception in RtmpReader thread:
java.lang.NullPointerException

11:49:53,796 ERROR [STDERR] java.lang.NullPointerException

11:49:53,796 ERROR [STDERR] at
flex.data.DataService.addSubscriberToSequenceProxies(DataService.java:1029)

11:49:53,796 ERROR [STDERR] at
flex.data.DataService.addSubscriberToSequenceProxies(DataService.java:1044)

11:49:53,796 ERROR [STDERR] at
flex.data.DataService.addSubscriberToSequenceProxies(DataService.java:1044)

11:49:53,796 ERROR [STDERR] at
flex.data.DataService.addSubscriberToSequenceProxies(DataService.java:1044)

11:49:53,796 ERROR [STDERR] at
flex.data.DataService.addSubscriberToSequenceProxies(DataService.java:1044)

11:49:53,796 ERROR [STDERR] at
flex.data.DataService.addSubscriberToSequenceProxies(DataService.java:1044)

11:49:53,796 ERROR [STDERR] at
flex.data.DataService.addSubscriberToSequenceProxies(DataService.java:1044)

11:49:53,796 ERROR [STDERR] at
flex.data.DataService.addSubscriberToSequenceProxies(DataService.java:1044)

11:49:53,796 ERROR [STDERR] at
flex.data.DataService.addSubscriberToSequenceProxies(DataService.java:1044)

11:49:53,796 ERROR [STDERR] at
flex.data.DataService.addSubscriberToSequenceProxies(DataService.java:1044)

11:49:53,796 ERROR [STDERR] at
flex.data.DataService.addSubscriberToSequenceProxies(DataService.java:1044)

11:49:53,796 ERROR [STDERR] at
flex.data.DataService.addSubscriberToSequenceProxies(DataService.java:1044)

11:49:53,796 ERROR [STDERR] at
flex.data.DataService.addSubscription(DataService.java:440)

11:49:53,796 ERROR [STDERR] at
flex.data.DataService.serviceMessage(DataService.java:298)

11:49:53,796 ERROR [STDERR] at
flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:506)

11:49:53,796 ERROR [STDERR] at
flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:266)

11:49:53,796 ERROR [STDERR] at
flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage(AbstractRTMPServer.java:602)

11:49:53,796 ERROR [STDERR] at
flex.messaging.endpoints.rtmp.RTMPConnection$RtmpReader.run(RTMPConnection.java:465)

11:49:53,796 ERROR [STDERR] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:643)

11:49:53,796 ERROR [STDERR] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:668)

11:49:53,796 ERROR [STDERR] at java.lang.Thread.run(Unknown
Source)
0 Replies
busitech
Level 2
Level 2
Even with one-level bidirectional associations, FDS evenually
loops forever when enough records are in the database, and never
responds to the fill request. I have had to remove all of my
many-to-one entries from metadata when they point back to the
owning entity in order to keep working on my application.
jvroom
Level 2
Level 2
My apologies for the problems. This code has been modified
quite a bit since beta 2 so I believe this problem will just be
fixed in beta 3 (due out soon).