lastfm/musicbrainz-data

Build test failures

Closed this issue · 4 comments

Hello,

I have problems compiling the project. I get many errors like these 2 lower down.
Note that I had no issues with lastfm/covertartarchive-api which works fine.
Is there something I am missing ? Configuration ?
Even if there are compilation errors, a JAR is created (37Ko without dependencies and 12 367 Ko including dependencies). I tried to test but I think I am missing something to init connection to MusicBrainz (and it is not documented yet...).
Also, while I am writing, I'd like to know if it is possible to use both musicbrainz-data and covertartarchive-api behind a firewall. If so, how ?

Thanks
Raphael

2012-10-04 12:11:34,467 DEBUG com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1831) An exception occurred while acquiring a poolable resource. Will retry.
org.postgresql.util.PSQLException: Connexion refusée. Vérifiez que le nom de machine et le port sont corrects et que postmaster accepte les connexions TCP/IP.
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:138)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
at org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:125)
at org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:30)
at org.postgresql.jdbc3g.AbstractJdbc3gConnection.(AbstractJdbc3gConnection.java:22)
at org.postgresql.jdbc4.AbstractJdbc4Connection.(AbstractJdbc4Connection.java:32)
at org.postgresql.jdbc4.Jdbc4Connection.(Jdbc4Connection.java:24)
at org.postgresql.Driver.makeConnection(Driver.java:393)
at org.postgresql.Driver.connect(Driver.java:267)
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.(Socket.java:375)
at java.net.Socket.(Socket.java:189)
at org.postgresql.core.PGStream.(PGStream.java:62)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:76)
... 16 more
2012-10-04 12:11:34,467 DEBUG com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1831) An exception occurred while acquiring a poolable resource. Will retry.
org.postgresql.util.PSQLException: Connexion refusée. Vérifiez que le nom de machine et le port sont corrects et que postmaster accepte les connexions TCP/IP.
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:138)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
at org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:125)
at org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:30)
at org.postgresql.jdbc3g.AbstractJdbc3gConnection.(AbstractJdbc3gConnection.java:22)
at org.postgresql.jdbc4.AbstractJdbc4Connection.(AbstractJdbc4Connection.java:32)
at org.postgresql.jdbc4.Jdbc4Connection.(Jdbc4Connection.java:24)
at org.postgresql.Driver.makeConnection(Driver.java:393)
at org.postgresql.Driver.connect(Driver.java:267)
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.(Socket.java:375)
at java.net.Socket.(Socket.java:189)
at org.postgresql.core.PGStream.(PGStream.java:62)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:76)
... 16 more

Resulting in:
Tests in error:
getByExistingIdReturnsOneArtist(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT): Failed to load ApplicationContext
getByNotExistingIdReturnsNull(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT): Failed to load ApplicationContext
getByExistingGidReturnsOneArtist(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT): Failed to load ApplicationContext
getByNotExistingGidReturnsNull(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT): Failed to load ApplicationContext
getByExistingRedirectedGidReturnsOneArtist(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT): Failed to load ApplicationContext
getByExistingGidReturnsOneArtistThatHasNoRedirectedGids(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT): Failed to load ApplicationContext
getByExistingNameReturnsTwoArtists(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT): Failed to load ApplicationContext
getByExistingUppercaseNameReturnsTwoArtists(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT): Failed to load ApplicationContext
getByExistingLowercaseNameReturnsTwoArtists(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT): Failed to load ApplicationContext
getByNotExistingNameReturnsEmptyList(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT): Failed to load ApplicationContext
getByNotExistingIdReturnsNull(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT): Failed to load ApplicationContext
getByNotExistingGidReturnsNull(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT): Failed to load ApplicationContext
getByExistingIdReturnsOneRecording(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT): Failed to load ApplicationContext
getByExistingGidReturnsOneRecording(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT): Failed to load ApplicationContext
getByExistingGidReturnsOneRecordingThatHasNoRedirectedGids(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT): Failed to load ApplicationContext
getByArtistAndNameReturnsTwoRecordings(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT): Failed to load ApplicationContext
getByArtistAndUppercaseNameReturnsTwoRecordings(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT): Failed to load ApplicationContext
getByArtistAndLowercaseNameReturnsTwoRecordings(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT): Failed to load ApplicationContext
getByArtistAndNotExistingNameReturnsEmptyList(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT): Failed to load ApplicationContext
getByArtistReturnsAllRecordings(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT): Failed to load ApplicationContext
getByArtistReturnsNoRecordingsForEmptyArtist(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT): Failed to load ApplicationContext
getByNotExistingIdReturnsNull(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT): Failed to load ApplicationContext
getByNotExistingGidReturnsNull(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT): Failed to load ApplicationContext
getByArtistAndNotExistingNameReturnsEmptyList(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT): Failed to load ApplicationContext
getByExistingIdReturnsOneRelese(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT): Failed to load ApplicationContext
getByExistingGidReturnsOneRelease(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT): Failed to load ApplicationContext
getByExistingRedirectedGidReturnsOneRelease(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT): Failed to load ApplicationContext
getByExistingGidReturnsOneReleaseThatHasNoRedirectedGids(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT): Failed to load ApplicationContext
getByExistingArtistReturnsThreeReleases(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT): Failed to load ApplicationContext
getByArtistThatHasNoReleasesReturnsEmptyList(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT): Failed to load ApplicationContext
getByArtistAndNameReturnsTwoReleases(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT): Failed to load ApplicationContext
getByArtistAndUppercaseNameReturnsTwoReleases(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT): Failed to load ApplicationContext
getByArtistAndLowercaseNameReturnsTwoReleases(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT): Failed to load ApplicationContext
getByExistingArtistReturnsThreeTracks(fm.last.musicbrainz.data.dao.impl.TrackDaoImplIT): Failed to load ApplicationContext
getByArtistThatHasNoTracksReturnsEmptyList(fm.last.musicbrainz.data.dao.impl.TrackDaoImplIT): Failed to load ApplicationContext
fullNameIsOrderedByPosition(fm.last.musicbrainz.data.model.ArtistCreditIT): Failed to load ApplicationContext
singleArtistArtistCreditHasSameFullNameAsArtist(fm.last.musicbrainz.data.model.ArtistCreditIT): Failed to load ApplicationContext
allFieldsArePopulated(fm.last.musicbrainz.data.model.ArtistIT): Failed to load ApplicationContext
artistWithoutRedirectedGidsHasOneGid(fm.last.musicbrainz.data.model.ArtistIT): Failed to load ApplicationContext
allFieldsArePopulated(fm.last.musicbrainz.data.model.MediumIT): Failed to load ApplicationContext
tracksAreOrderedByPosition(fm.last.musicbrainz.data.model.MediumIT): Failed to load ApplicationContext
releaseReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.MediumIT): Failed to load ApplicationContext
tracksReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.MediumIT): Failed to load ApplicationContext
allFieldsArePopulated(fm.last.musicbrainz.data.model.RecordingIT): Failed to load ApplicationContext
recordingWithoutRedirectedGidsHasOneGid(fm.last.musicbrainz.data.model.RecordingIT): Failed to load ApplicationContext
artistCreditReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.RecordingIT): Failed to load ApplicationContext
allFieldsArePopulated(fm.last.musicbrainz.data.model.ReleaseGroupIT): Failed to load ApplicationContext
artistCreditReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.ReleaseGroupIT): Failed to load ApplicationContext
releaseGroupPrimaryTypeIsNotUndefined(fm.last.musicbrainz.data.model.ReleaseGroupIT): Failed to load ApplicationContext
releaseGroupWithoutRedirectedGidsHasOneGid(fm.last.musicbrainz.data.model.ReleaseGroupIT): Failed to load ApplicationContext
allFieldsArePopulated(fm.last.musicbrainz.data.model.ReleaseIT): Failed to load ApplicationContext
artistCreditReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.ReleaseIT): Failed to load ApplicationContext
releaseStatusIsNotUndefined(fm.last.musicbrainz.data.model.ReleaseIT): Failed to load ApplicationContext
mediumsAreOrderedByPosition(fm.last.musicbrainz.data.model.ReleaseIT): Failed to load ApplicationContext
releaseWithoutRedirectedGidsHasOneGid(fm.last.musicbrainz.data.model.ReleaseIT): Failed to load ApplicationContext
mediumReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.ReleaseIT): Failed to load ApplicationContext
releaseGroupReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.ReleaseIT): Failed to load ApplicationContext
allFieldsArePopulated(fm.last.musicbrainz.data.model.TrackIT): Failed to load ApplicationContext
artistCreditReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.TrackIT): Failed to load ApplicationContext

Tests run: 59, Failures: 0, Errors: 59, Skipped: 0

Have you set up a local test database for testing? That's what appears to
be going wrong - the tests are failing as they are being refused access to
the test database. You could also run "maven -DskipTests=true package" to
skip the tests and get the jar file built without running the tests. But if
you're doing this then you might as well just grab the jar file from Maven
and not try build it yourself.

As for running the services behind a firewall - that depends on whether you
have access to your local MusicBrainz database through your firewall and
whether you have http access to coverartarchive.org.

Adrian

On 4 October 2012 12:22, phramusca notifications@github.com wrote:

Hello,

I have problems compiling the project. I get many errors like these 2
lower down.
Note that I had no issues with lastfm/covertartarchive-api which works
fine.
Is there something I am missing ? Configuration ?
Even if there are compilation errors, a JAR is created (37Ko without
dependencies and 12 367 Ko including dependencies). I tried to test but I
think I am missing something to init connection to MusicBrainz (and it is
not documented yet...).
Also, while I am writing, I'd like to know if it is possible to use both
musicbrainz-data and covertartarchive-api behind a firewall. If so, how ?

Thanks
Raphael

2012-10-04 12:11:34,467 DEBUG
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1831)
An exception occurred while acquiring a poolable resource. Will retry.
org.postgresql.util.PSQLException: Connexion refusée. Vérifiez que le nom
de machine et le port sont corrects et que postmaster accepte les
connexions TCP/IP.
at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:138)
at
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
at
org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:125)
at
org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:30)
at
org.postgresql.jdbc3g.AbstractJdbc3gConnection.(AbstractJdbc3gConnection.java:22)
at
org.postgresql.jdbc4.AbstractJdbc4Connection.(AbstractJdbc4Connection.java:32)
at org.postgresql.jdbc4.Jdbc4Connection.(Jdbc4Connection.java:24)
at org.postgresql.Driver.makeConnection(Driver.java:393)
at org.postgresql.Driver.connect(Driver.java:267)
at
com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)
at
com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
at
com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
at
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)
at
com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
at
com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
at
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
at
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.(Socket.java:375)
at java.net.Socket.(Socket.java:189)
at org.postgresql.core.PGStream.(PGStream.java:62)
at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:76)
... 16 more
2012-10-04 12:11:34,467 DEBUG
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1831)
An exception occurred while acquiring a poolable resource. Will retry.
org.postgresql.util.PSQLException: Connexion refusée. Vérifiez que le nom
de machine et le port sont corrects et que postmaster accepte les
connexions TCP/IP.
at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:138)
at
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
at
org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:125)
at
org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:30)
at
org.postgresql.jdbc3g.AbstractJdbc3gConnection.(AbstractJdbc3gConnection.java:22)
at
org.postgresql.jdbc4.AbstractJdbc4Connection.(AbstractJdbc4Connection.java:32)
at org.postgresql.jdbc4.Jdbc4Connection.(Jdbc4Connection.java:24)
at org.postgresql.Driver.makeConnection(Driver.java:393)
at org.postgresql.Driver.connect(Driver.java:267)
at
com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)
at
com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
at
com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
at
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)
at
com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
at
com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
at
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
at
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.(Socket.java:375)
at java.net.Socket.(Socket.java:189)
at org.postgresql.core.PGStream.(PGStream.java:62)
at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:76)
... 16 more

Resulting in:
Tests in error:
getByExistingIdReturnsOneArtist(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT):
Failed to load ApplicationContext
getByNotExistingIdReturnsNull(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT):
Failed to load ApplicationContext
getByExistingGidReturnsOneArtist(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT):
Failed to load ApplicationContext
getByNotExistingGidReturnsNull(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT):
Failed to load ApplicationContext
getByExistingRedirectedGidReturnsOneArtist(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT):
Failed to load ApplicationContext
getByExistingGidReturnsOneArtistThatHasNoRedirectedGids(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT):
Failed to load ApplicationContext
getByExistingNameReturnsTwoArtists(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT):
Failed to load ApplicationContext
getByExistingUppercaseNameReturnsTwoArtists(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT):
Failed to load ApplicationContext
getByExistingLowercaseNameReturnsTwoArtists(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT):
Failed to load ApplicationContext
getByNotExistingNameReturnsEmptyList(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT):
Failed to load ApplicationContext
getByNotExistingIdReturnsNull(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByNotExistingGidReturnsNull(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByExistingIdReturnsOneRecording(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByExistingGidReturnsOneRecording(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByExistingGidReturnsOneRecordingThatHasNoRedirectedGids(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByArtistAndNameReturnsTwoRecordings(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByArtistAndUppercaseNameReturnsTwoRecordings(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByArtistAndLowercaseNameReturnsTwoRecordings(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByArtistAndNotExistingNameReturnsEmptyList(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByArtistReturnsAllRecordings(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByArtistReturnsNoRecordingsForEmptyArtist(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByNotExistingIdReturnsNull(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByNotExistingGidReturnsNull(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByArtistAndNotExistingNameReturnsEmptyList(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByExistingIdReturnsOneRelese(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByExistingGidReturnsOneRelease(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByExistingRedirectedGidReturnsOneRelease(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByExistingGidReturnsOneReleaseThatHasNoRedirectedGids(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByExistingArtistReturnsThreeReleases(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByArtistThatHasNoReleasesReturnsEmptyList(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByArtistAndNameReturnsTwoReleases(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByArtistAndUppercaseNameReturnsTwoReleases(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByArtistAndLowercaseNameReturnsTwoReleases(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByExistingArtistReturnsThreeTracks(fm.last.musicbrainz.data.dao.impl.TrackDaoImplIT):
Failed to load ApplicationContext
getByArtistThatHasNoTracksReturnsEmptyList(fm.last.musicbrainz.data.dao.impl.TrackDaoImplIT):
Failed to load ApplicationContext
fullNameIsOrderedByPosition(fm.last.musicbrainz.data.model.ArtistCreditIT):
Failed to load ApplicationContext
singleArtistArtistCreditHasSameFullNameAsArtist(fm.last.musicbrainz.data.model.ArtistCreditIT):
Failed to load ApplicationContext
allFieldsArePopulated(fm.last.musicbrainz.data.model.ArtistIT): Failed to
load ApplicationContext
artistWithoutRedirectedGidsHasOneGid(fm.last.musicbrainz.data.model.ArtistIT):
Failed to load ApplicationContext
allFieldsArePopulated(fm.last.musicbrainz.data.model.MediumIT): Failed to
load ApplicationContext
tracksAreOrderedByPosition(fm.last.musicbrainz.data.model.MediumIT):
Failed to load ApplicationContext
releaseReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.MediumIT):
Failed to load ApplicationContext
tracksReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.MediumIT):
Failed to load ApplicationContext
allFieldsArePopulated(fm.last.musicbrainz.data.model.RecordingIT): Failed
to load ApplicationContext
recordingWithoutRedirectedGidsHasOneGid(fm.last.musicbrainz.data.model.RecordingIT):
Failed to load ApplicationContext
artistCreditReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.RecordingIT):
Failed to load ApplicationContext
allFieldsArePopulated(fm.last.musicbrainz.data.model.ReleaseGroupIT):
Failed to load ApplicationContext
artistCreditReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.ReleaseGroupIT):
Failed to load ApplicationContext
releaseGroupPrimaryTypeIsNotUndefined(fm.last.musicbrainz.data.model.ReleaseGroupIT):
Failed to load ApplicationContext
releaseGroupWithoutRedirectedGidsHasOneGid(fm.last.musicbrainz.data.model.ReleaseGroupIT):
Failed to load ApplicationContext
allFieldsArePopulated(fm.last.musicbrainz.data.model.ReleaseIT): Failed to
load ApplicationContext
artistCreditReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.ReleaseIT):
Failed to load ApplicationContext
releaseStatusIsNotUndefined(fm.last.musicbrainz.data.model.ReleaseIT):
Failed to load ApplicationContext
mediumsAreOrderedByPosition(fm.last.musicbrainz.data.model.ReleaseIT):
Failed to load ApplicationContext
releaseWithoutRedirectedGidsHasOneGid(fm.last.musicbrainz.data.model.ReleaseIT):
Failed to load ApplicationContext
mediumReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.ReleaseIT):
Failed to load ApplicationContext
releaseGroupReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.ReleaseIT):
Failed to load ApplicationContext
allFieldsArePopulated(fm.last.musicbrainz.data.model.TrackIT): Failed to
load ApplicationContext
artistCreditReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.TrackIT):
Failed to load ApplicationContext

Tests run: 59, Failures: 0, Errors: 59, Skipped: 0


Reply to this email directly or view it on GitHubhttps://github.com//issues/2.

Thanks for your prompt answer.
I have indeed not setup a local database and you're right, I do not need to compile the solution. I only need the JAR file. I have compiled as I could not find the JAR on the Downloads page ...
I do not really know maven, I was able to compile with the help of Netbeans that did the job for me (I only added a few lines in pom.xml so that dependencies are included in JAR).
As of firewall, sorry I meant proxy !

So, to summarize, I have 3 questions left:

  • How to get JAR using maven ? (could it be possible that the JAR - incl. dependencies - are available on the Download page. It could be useful for other users as well ...)
  • How to use both APIs through a proxy (not firewall ;) )
  • Can you provide a little more detailed code sample to get a release with musicbrainz-data API ? I think I am missing something to init releaseDao.
    (Note that I have no issues with covertartarchive-api, the sample code is enough and it works like a charm ... when I am not behind a proxy)

Thanks

----- Mail original -----

De: "Mass Dosage" notifications@github.com
À: "lastfm/musicbrainz-data" musicbrainz-data@noreply.github.com
Cc: "phramusca" raphael.camus@free.fr
Envoyé: Jeudi 4 Octobre 2012 16:43:02
Objet: Re: [musicbrainz-data] Build test failures (#2)

Have you set up a local test database for testing? That's what appears to
be going wrong - the tests are failing as they are being refused access to
the test database. You could also run "maven -DskipTests=true package" to
skip the tests and get the jar file built without running the tests. But if
you're doing this then you might as well just grab the jar file from Maven
and not try build it yourself.

As for running the services behind a firewall - that depends on whether you
have access to your local MusicBrainz database through your firewall and
whether you have http access to coverartarchive.org.

Adrian

On 4 October 2012 12:22, phramusca < notifications@github.com > wrote:

Hello,

I have problems compiling the project. I get many errors like these 2
lower down.
Note that I had no issues with lastfm/covertartarchive-api which works
fine.
Is there something I am missing ? Configuration ?
Even if there are compilation errors, a JAR is created (37Ko without
dependencies and 12 367 Ko including dependencies). I tried to test but I
think I am missing something to init connection to MusicBrainz (and it is
not documented yet...).
Also, while I am writing, I'd like to know if it is possible to use both
musicbrainz-data and covertartarchive-api behind a firewall. If so, how ?

Thanks
Raphael

2012-10-04 12:11:34,467 DEBUG
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1831)
An exception occurred while acquiring a poolable resource. Will retry.
org.postgresql.util.PSQLException: Connexion refusée. Vérifiez que le nom
de machine et le port sont corrects et que postmaster accepte les
connexions TCP/IP.
at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:138)
at
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
at
org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:125)
at
org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:30)
at
org.postgresql.jdbc3g.AbstractJdbc3gConnection.(AbstractJdbc3gConnection.java:22)
at
org.postgresql.jdbc4.AbstractJdbc4Connection.(AbstractJdbc4Connection.java:32)
at org.postgresql.jdbc4.Jdbc4Connection.(Jdbc4Connection.java:24)
at org.postgresql.Driver.makeConnection(Driver.java:393)
at org.postgresql.Driver.connect(Driver.java:267)
at
com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)
at
com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
at
com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
at
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)
at
com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
at
com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
at
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
at
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.(Socket.java:375)
at java.net.Socket.(Socket.java:189)
at org.postgresql.core.PGStream.(PGStream.java:62)
at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:76)
... 16 more
2012-10-04 12:11:34,467 DEBUG
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1831)
An exception occurred while acquiring a poolable resource. Will retry.
org.postgresql.util.PSQLException: Connexion refusée. Vérifiez que le nom
de machine et le port sont corrects et que postmaster accepte les
connexions TCP/IP.
at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:138)
at
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
at
org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:125)
at
org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:30)
at
org.postgresql.jdbc3g.AbstractJdbc3gConnection.(AbstractJdbc3gConnection.java:22)
at
org.postgresql.jdbc4.AbstractJdbc4Connection.(AbstractJdbc4Connection.java:32)
at org.postgresql.jdbc4.Jdbc4Connection.(Jdbc4Connection.java:24)
at org.postgresql.Driver.makeConnection(Driver.java:393)
at org.postgresql.Driver.connect(Driver.java:267)
at
com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)
at
com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
at
com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
at
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)
at
com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
at
com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
at
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
at
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.(Socket.java:375)
at java.net.Socket.(Socket.java:189)
at org.postgresql.core.PGStream.(PGStream.java:62)
at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:76)
... 16 more

Resulting in:
Tests in error:
getByExistingIdReturnsOneArtist(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT):
Failed to load ApplicationContext
getByNotExistingIdReturnsNull(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT):
Failed to load ApplicationContext
getByExistingGidReturnsOneArtist(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT):
Failed to load ApplicationContext
getByNotExistingGidReturnsNull(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT):
Failed to load ApplicationContext
getByExistingRedirectedGidReturnsOneArtist(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT):
Failed to load ApplicationContext
getByExistingGidReturnsOneArtistThatHasNoRedirectedGids(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT):
Failed to load ApplicationContext
getByExistingNameReturnsTwoArtists(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT):
Failed to load ApplicationContext
getByExistingUppercaseNameReturnsTwoArtists(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT):
Failed to load ApplicationContext
getByExistingLowercaseNameReturnsTwoArtists(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT):
Failed to load ApplicationContext
getByNotExistingNameReturnsEmptyList(fm.last.musicbrainz.data.dao.impl.ArtistDaoImplIT):
Failed to load ApplicationContext
getByNotExistingIdReturnsNull(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByNotExistingGidReturnsNull(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByExistingIdReturnsOneRecording(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByExistingGidReturnsOneRecording(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByExistingGidReturnsOneRecordingThatHasNoRedirectedGids(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByArtistAndNameReturnsTwoRecordings(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByArtistAndUppercaseNameReturnsTwoRecordings(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByArtistAndLowercaseNameReturnsTwoRecordings(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByArtistAndNotExistingNameReturnsEmptyList(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByArtistReturnsAllRecordings(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByArtistReturnsNoRecordingsForEmptyArtist(fm.last.musicbrainz.data.dao.impl.RecordingDaoIT):
Failed to load ApplicationContext
getByNotExistingIdReturnsNull(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByNotExistingGidReturnsNull(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByArtistAndNotExistingNameReturnsEmptyList(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByExistingIdReturnsOneRelese(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByExistingGidReturnsOneRelease(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByExistingRedirectedGidReturnsOneRelease(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByExistingGidReturnsOneReleaseThatHasNoRedirectedGids(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByExistingArtistReturnsThreeReleases(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByArtistThatHasNoReleasesReturnsEmptyList(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByArtistAndNameReturnsTwoReleases(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByArtistAndUppercaseNameReturnsTwoReleases(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByArtistAndLowercaseNameReturnsTwoReleases(fm.last.musicbrainz.data.dao.impl.ReleaseDaoImplIT):
Failed to load ApplicationContext
getByExistingArtistReturnsThreeTracks(fm.last.musicbrainz.data.dao.impl.TrackDaoImplIT):
Failed to load ApplicationContext
getByArtistThatHasNoTracksReturnsEmptyList(fm.last.musicbrainz.data.dao.impl.TrackDaoImplIT):
Failed to load ApplicationContext
fullNameIsOrderedByPosition(fm.last.musicbrainz.data.model.ArtistCreditIT):
Failed to load ApplicationContext
singleArtistArtistCreditHasSameFullNameAsArtist(fm.last.musicbrainz.data.model.ArtistCreditIT):
Failed to load ApplicationContext
allFieldsArePopulated(fm.last.musicbrainz.data.model.ArtistIT): Failed to
load ApplicationContext
artistWithoutRedirectedGidsHasOneGid(fm.last.musicbrainz.data.model.ArtistIT):
Failed to load ApplicationContext
allFieldsArePopulated(fm.last.musicbrainz.data.model.MediumIT): Failed to
load ApplicationContext
tracksAreOrderedByPosition(fm.last.musicbrainz.data.model.MediumIT):
Failed to load ApplicationContext
releaseReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.MediumIT):
Failed to load ApplicationContext
tracksReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.MediumIT):
Failed to load ApplicationContext
allFieldsArePopulated(fm.last.musicbrainz.data.model.RecordingIT): Failed
to load ApplicationContext
recordingWithoutRedirectedGidsHasOneGid(fm.last.musicbrainz.data.model.RecordingIT):
Failed to load ApplicationContext
artistCreditReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.RecordingIT):
Failed to load ApplicationContext
allFieldsArePopulated(fm.last.musicbrainz.data.model.ReleaseGroupIT):
Failed to load ApplicationContext
artistCreditReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.ReleaseGroupIT):
Failed to load ApplicationContext
releaseGroupPrimaryTypeIsNotUndefined(fm.last.musicbrainz.data.model.ReleaseGroupIT):
Failed to load ApplicationContext
releaseGroupWithoutRedirectedGidsHasOneGid(fm.last.musicbrainz.data.model.ReleaseGroupIT):
Failed to load ApplicationContext
allFieldsArePopulated(fm.last.musicbrainz.data.model.ReleaseIT): Failed to
load ApplicationContext
artistCreditReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.ReleaseIT):
Failed to load ApplicationContext
releaseStatusIsNotUndefined(fm.last.musicbrainz.data.model.ReleaseIT):
Failed to load ApplicationContext
mediumsAreOrderedByPosition(fm.last.musicbrainz.data.model.ReleaseIT):
Failed to load ApplicationContext
releaseWithoutRedirectedGidsHasOneGid(fm.last.musicbrainz.data.model.ReleaseIT):
Failed to load ApplicationContext
mediumReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.ReleaseIT):
Failed to load ApplicationContext
releaseGroupReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.ReleaseIT):
Failed to load ApplicationContext
allFieldsArePopulated(fm.last.musicbrainz.data.model.TrackIT): Failed to
load ApplicationContext
artistCreditReferenceDoesNotHitDatabase(fm.last.musicbrainz.data.model.TrackIT):
Failed to load ApplicationContext

Tests run: 59, Failures: 0, Errors: 59, Skipped: 0


Reply to this email directly or view it on GitHub< #2 >.


Reply to this email directly or view it on GitHub .

See answers inline below...

On 4 October 2012 16:31, phramusca notifications@github.com wrote:

Thanks for your prompt answer.
I have indeed not setup a local database and you're right, I do not need
to compile the solution. I only need the JAR file. I have compiled as I
could not find the JAR on the Downloads page ...
I do not really know maven, I was able to compile with the help of
Netbeans that did the job for me (I only added a few lines in pom.xml so
that dependencies are included in JAR).
As of firewall, sorry I meant proxy !

So, to summarize, I have 3 questions left:

  • How to get JAR using maven ? (could it be possible that the JAR - incl.
    dependencies - are available on the Download page. It could be useful for
    other users as well ...)

You can browse the Sonatype Maven repository where the jar is published to,
for example:

https://oss.sonatype.org/index.html#view-repositories;releases~browsestorage~/fm/last/musicbrainz-data/1.2/musicbrainz-data-1.2.jar

I agree that it could be useful to provide a link to be able to download
the jar directly for those not using Maven.

  • How to use both APIs through a proxy (not firewall ;) )

There isn't in-built support for this but I'd imagine you could configure
this at an operating system level and then configure musicbrainz-data to
use the ports of the proxy you set up instead of connecting directly.

  • Can you provide a little more detailed code sample to get a release with
    musicbrainz-data API ? I think I am missing something to init releaseDao.

If you have set everything up correctly in Spring by including the music
brainz Spring context as shown in the documentation you should be able to
use @Autowired to get a fully initialised ReleaseDao.

Regards,

Adrian

Thanks Adrian
As I could not use this library (would have to learn Spring and eventually Maven, but do not have enough time), I switched to another one (musicbrainzws2-java) for which I finally managed to use behind a proxy.
For your information, I also managed to use a proxy with lastfm/coverartarchive-api:

  • First, I made DefaultCoverArtArchiveClient(HttpClient client) public in DefaultCoverArtArchiveClient class
  • then :
    DefaultHttpClient httpclient = new DefaultHttpClient();
    HttpHost proxy = new HttpHost("xx.xx.xx.xx", 8080);
    httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);

CoverArtArchiveClient client = new DefaultCoverArtArchiveClient(httpclient);

Regards