13 December 2007

Technical Error with Rhapsody on Linux

I use Rhapsody's streaming service from within Firefox 2.0 on Linux. It works as a Firefox plugin.

Recently (maybe when upgrading to Ubuntu 7.10?) it refused to play any music. I found a couple of issues:
  1. It wouldn't authenticate me properly. I found that by deleting all my Rhapsody cookies and restarting Firefox that problem went away.
  2. It simply refused to play music, each time reporting a "Technical Error". Selecting "Try again" never worked and it eventually crashed Firefox.
The cause of the technical error appears to be due to the "esd" process running under Gnome. ESD apparently is a mixer that lets multiple apps play sound at the same time (it probably does a lot more too).

A number of people suggest killing it and that worked for me.
The steps are:
  1. Open a terminal window
  2. killall esd
  3. Restart Firefox
  4. Use Rhapsody again
This works every time for me.

I'm speculating that Rhapsody refuses to work when that is running to try and prevent people from capturing the streaming audio?

I currently have an issue open with Real Networks. I documented the above workaround but outlined that it would be great if it either gave a much more obvious error message, or worked without requiring termination of esd. Here was their last reply. I don't hold out much hope.

Hello,

My name is ******. I am a Real Networks Tier 2 Technical Support Representative. Your case has been escalated to our department due to severity. Thank you for your continued patience, and I would like to apologize for any inconvenience you may have experienced so far.

I have followed this thread since the day you initiated it. As I understand it you wish for a better work-around to technical errors playing Rhapsody Online content. I can help you with this.

I have forwarded the information regarding this work-around to the Rhapsody team for further investigation. However since there is limited support for Linux and Rhapsody Online I do not know if/when another solution will be available.

Please reply to this email with any further questions or concerns.

Thank you,

RealNetworks Technical Support
Tier 2 Escalation Department

27 January 2007

Hibernate identity column insert ignores update count on Sybase

Ran into a problem whereby an insert into a Sybase database failed but Hibernate reported no error. Instead a PK value of zero was assigned.

Posted a question on the forums
Sybase numeric overflow on insert does not fail as expected

but then decided to file a JIRA issue HHH-2388: Insert w/ identity column fails on Sybase but no exception occurs

23 January 2007

Maven 2 Surefire plugin works with Junit 4

The latest snapshot of the Surefire plugin for Maven2 now works with JUnit4. Read about it on the JIRA issue.

To use it right now you'll need to add a pluginRepository and declare a specific version of the plugin.

Here is a complete pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>test-junit4</groupId>
<artifactId>test</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.1</version>
</dependency>
</dependencies>
<build>
<defaultGoal>test</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.3-SNAPSHOT</version>
</plugin>
</plugins>
</build>
<pluginRepositories>
<pluginRepository>
<id>maven-snapshot-repository</id>
<url>http://people.apache.org/maven-snapshot-repository</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</project>