Java's 'tnameserv' takes 3+ minutes to be Ready , why?
Turns out the problem was a firewall issue. Wireshark didn't show anything useful because the firewall was dropping a certain packet. Although I looked at my firewall logs quite a few times to make sure this wasn't the case, turns out I wasn't looking in the right place. I overlooked the fact that this 'tnameserv' was IPv6 aware (as it was binding to :::23423) and a cursory glance of my firewall script showed that I was logging IPv6 related packets to a different location than my IPv4 packets. This was not an oversight but had to be done because ip6tables does not currently support the -j ULOG target.
Long story short, allowing loopback for IPv6 fixed the issue and 'tnameserv' returns "Ready" almost instantly.
Corba Event Client ETIMEDOUT
I ended up figuring out that since I'm on a different subnet than the server, the ORB as publishing the wrong IP address, and couldn't figure out the route back to my client when an even triggered.
I ended up changing the config file at /etc/omniORB.cfg and changing the value of the "endPointPublish" property to the IP address on the server's subnet!
Shell script hangs, but only when called into a variable or strace
I'm pretty sure the problem is that the shell is capturing output from the /sbin/service script and the solr service it starts, and hence will wait for the service to exit (or at least close its stdout) before continuing. Here's a simple demo:
$ bg_service() { while true; do sleep 10; done; }
$ start_bg_service() { echo "starting"; bg_service& echo "running"; }
$ start_bg_service
starting
[1] 8656
running
$ var=$(start_bg_service)
[It hangs at this point... until I open another shell and kill the background process]
Related Topics
Android How to Draw a Smooth Line Following Your Finger
How to Add Parameters to a Http Get Request in Android
Add Buttons to Tabs and Tab Area Javafx
When Exactly Is It Leak Safe to Use (Anonymous) Inner Classes
Android Camera Will Not Work. Startpreview Fails
How to Convert a Part of Java Source File to Kotlin
Java 7 Language Features with Android
Converting Java Bitmap to Byte Array
Get Driving Directions Using Google Maps API V2
Execute Shell Command from Android
Custom Listview Click Issue on Items in Android
Iso 8601 String to Date/Time Object in Android
How to Unzip Files Programmatically in Android
Why How to Successfully Move a File in Linux While It Is Being Written To
Load Native Libraries in an Eclipse Rcp Application on Linux