No Response from Server

I’m trying to get a project working, which uses this client for communication:

https://github.com/aesy/musicbrainz-api-client

I’ve managed to compile the client into Jar’s using eclipse and maven

import io.aesy.musicbrainz.client.MusicBrainzClient;
import io.aesy.musicbrainz.client.MusicBrainzJerseyClient;
import io.aesy.musicbrainz.entity.Artist;
..

MusicBrainzClient client = MusicBrainzJerseyClient.createWithDefaults();

if(client!=null) {
	try {
       String id = "8e66ea2b-57b-47d9-8df0-df4630aeb8e5"
	   Artist artist = client.artist().withId(UUID.fromString(id))
            .lookup().get(); 
	   System.out.println(artist.toString());
	}catch( NoSuchElementException e ) {
		StackTraceElement[] stacktrace = e.getStackTrace();
		int len = e.getStackTrace().length;
		for (int i = 0; i < len; i++)
			System.out.println(stacktrace[i].toString());
	}
}

By call of the get()-method, I get a NoSuchElementException, which means there are no data. Any suggestions?

8e66ea2b-57b-47d9-8df0-df4630aeb8e5 is not a valid UUID. It looks like you accidentally deleted a character from 8e66ea2b-b57b-47d9-8df0-df4630aeb8e5.

2 Likes

Yes you’re right. I’ve checked it, that missing char is only here in this post.

1 Like

I forgot that Bitmap memorizes all of our UUID’s. We’ve only had to do it a couple of times but it’s very useful when all the data gets wiped, Bitmap can type them in again

3 Likes

The Problem is solved. I had to update JDK and Glassfish and include more Jars into the Java-Build-Path.

1 Like