Wednesday, October 12, 2016

Skype drops connection within about 20 seconds of initiating a call on MacOS

Is this happening to you? Well, I pain your feel! But do not worry, I figured it out. Simply kill Skype, remove your Skype application's user profile, and restart Skype. Then I was able to initiate a call over wifi, and it would not drop.  Specifically, this is what I did to fix the issue:
$ killall Skype
$ cd ~/Library/Application\ Support/
$ mv Skype ~/trash/Skype_01
$ mv Skype.app ~/trash/Skype.app_01
Then restarted Skype, and all was well with initiating calls. Here were the symptoms of what I was experiencing:
  1. If I initiated a call, it would drop within about 20 or 30 seconds of starting it. 
  2. If I was on a group call withe others, and I tried to share my screen ... it would silently fail and they would never see my screen share. 
  3. If someone else initiated the call, the call would procede normally, and it would not be dropped, so it makes you feel like you are the only one on the planet who ever sees this issue. 
  4. The problem crept in with a skype update within the last 6 months of 20161012, so some time after April of 2016. Installing Skype_7.37.178 did not help. 
  5. This was occurring on MacOS Yosemite and Sierra.
  6. Originally had Skype_6.17.60.477 installed and let Skype update itself from there.
I tried everything, nothing helped. Here were some of the things that failed to solve the issue:
  1. Basically, following most advice on this web site was useless.
  2. Specifically, these posts which came up first with google.
  3. There was this one post which I found after solving the issue which seemed to have an answer which was close to solving the issue on MacOS, but I basically had to google the solution in order to find this.
  4. Any posts which talked about adjusting Settings -> Energy Saver or using the "pmset" command to adjust power management settings or sleep settings ... these suggestions were useless.
  5. Upgrading to MacOS Sierra did not help.
Hope that helps.

Tuesday, December 08, 2015

org.osgi.framework.BundleException: Unresolved constraint in bundle jaxb-api

If you are getting this error message:
missing requirement [1.0] package; (package=javax.activation)
Do not worry, this is because you are unknowingly using the wrong version of Java to start glassfish. Even though you think you are running glassfish with the version in your shell's environment, either via sudo or some other sub process, the environment is not your own, and it is attempting to run glassfish with a different version of java (probably a newer version of java).

If you are running glassfish with sudo because of this bug, try these possible workarounds instead of the suggested ones:
JAVA_HOME=$JAVA_HOME ./asadmin start-domain --verbose=true domain1
sudo JAVA_HOME=$JAVA_HOME ./asadmin start-domain --verbose=true domain1

Hope that helps.

And here is more of the original error message in case yours is similar:
ERROR: Bundle jaxb-api [1]: Error starting file:/Users/apple/app_servers/oracle.com/glassfish-3.2-b07-05_12_2011.zip/glassfish3/glassfish/modules/endorsed/jaxb-api-osgi.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle jaxb-api [1]: Unable to resolve 1.0: missing requirement [1.0] package; (package=javax.activation))
org.osgi.framework.BundleException: Unresolved constraint in bundle jaxb-api [1]: Unable to resolve 1.0: missing requirement [1.0] package; (package=javax.activation)
 at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443)
 at org.apache.felix.framework.Felix.startBundle(Felix.java:1727)
 at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)
 at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
 at java.lang.Thread.run(Thread.java:745)
ERROR: Bundle org.glassfish.metro.webservices-api-osgi [2]: Error starting file:/Users/apple/app_servers/oracle.com/glassfish-3.2-b07-05_12_2011.zip/glassfish3/glassfish/modules/endorsed/webservices-api-osgi.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.metro.webservices-api-osgi [2]: Unable to resolve 2.0: missing requirement [2.0] package; (&(package=javax.xml.bind)(version>=2.2.2)) [caused by: Unable to resolve 1.0: missing requirement [1.0] package; (package=javax.activation)])
org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.metro.webservices-api-osgi [2]: Unable to resolve 2.0: missing requirement [2.0] package; (&(package=javax.xml.bind)(version>=2.2.2)) [caused by: Unable to resolve 1.0: missing requirement [1.0] package; (package=javax.activation)]

Tuesday, November 10, 2015

Cannot find function addEventListener in object [object HTMLDocument]

If you get this error, do not worry. The answer is not difficult to understand.
ANSWER: 
   do not initialize your HtmlUnit WebClient like this: 
      new WebClient();
   instead, initialize it like this: 
      new WebClient(BrowserVersion.FIREFOX_38);
The default "browser" that the HtmlUnit WebClient gives you does not have some of the basic JavaScript functions available to call such as "addEventListener".

See also: HtmlUnit issue tracker non-issue 1615.

Wednesday, September 23, 2015

None of the wicked shall understand, but those who are wise shall understand.  -- Daniel 12;10

Wednesday, September 02, 2015