Applet GWT speichert Daten nicht in Datenbank

Dimadon

Aktives Mitglied
Hallo Leute, ich hoffe ich bin mit meinem GWT Problem hier richtig 🙂

ich bekomme beim anfügen von Daten immer den gleichen Fehler:
Java:
 [ERROR] [socialmediaprojekt] Uncaught exception escaped
com.google.gwt.event.shared.UmbrellaException: Exception caught: Service implementation URL not specified
Java:
Caused by: com.google.gwt.user.client.rpc.ServiceDefTarget$NoServiceEntryPointSpecifiedException: Service implementation URL not specified

Meine Klasse hierzu ist folgende:
Java:
import com.google.appengine.api.users.User;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.i18n.client.HasDirection.Direction;
import com.google.gwt.user.client.ui.CheckBox;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.MouseDownHandler;
import com.google.gwt.event.dom.client.MouseDownEvent;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.user.client.Window;

public class Registration extends Composite {
	
	
	
	FlowPanel panel = new FlowPanel();
	PinnwandVerwaltungAsync pinnwandVerwaltung = ClientSideSettings.getPinnwandVerwaltung();
	//UserAccountsTreeViewModel catvm = null;
	
	public Registration() {
		panel.setPixelSize(300, 300);
		initWidget(panel);
		registrieren();
		
		
	}

	private void registrieren() {
		panel.clear();
		final TextBox vorname = new TextBox();
		vorname.setText("Vorname");
		panel.add(vorname);
		final TextBox nachname = new TextBox();
		nachname.setText("Nachname");
		panel.add(nachname);
		final TextBox nickname = new TextBox();
		nickname.setText("Nickname");
		panel.add(nickname);
		Button reg = new Button("Registrieren");
		panel.add(reg);
		
		reg.addClickHandler(new ClickHandler(){

			public void onClick(ClickEvent event) {
				
//				Anzeigen der eingegebenen Werte
				
				Window.alert("Folgende Angaben wurden gemacht.. \n\nVorname:" +vorname.getText()+"\nNachname:"+nachname.getText()+"\nNickname: "+nickname.getText());
				
//				Implementierung der Werte in die Datenbank
				String vnam = vorname.getText();
				String nanam = nachname.getText();
				String niname = nickname.getText();
				
				pinnwandVerwaltung.createUser(vnam, nanam, niname, new CreateUserCallback());
				
				
			}
			
		});
		
		
		
	}
		
}

Weis jemand woran es liegen kann? Ich denke das es an dem Entry Point liegt aber wie und wo muss ich diesen implementieren?
 
1. Java Code in Java-Tags! Hast es ja oben geschafft. Also nachdem der Beitrag erstellt wurde noch mal Korrektur lesen!:idea:

2. Gut die Exception sagst du uns schon mal, hilfreich wäre aber auch der StackTrace und entsprechende Codestelle aus deinem Code

3. Du hast eine Exception inkl. Message --> Hast du schon selber nach einer Lösung gesucht? Was hast du denn schon probiert? (Sonst kommen 5 Vorschläge die du schon alle getestet hättest)
--> Google hat mir das als 1.Link ausgespuckt
 
Zuletzt bearbeitet:
Danke für den Hinweiß. Eigentlich achte ich immer auf die korrekte Schreibweise. Ist eventuell in der Aufregung durch zahlreiche Versuche das Ding zum Lauen zu bekommen untergegangen.

Danke für den Link, den habe ich bereits versucht umzusetzen jedoch ohne Erfolg 🙁

Meine Async sieht so saus:
Java:
import java.util.Vector;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface PinnwandVerwaltungAsync {
	
	

	void save(User u, AsyncCallback<Void> callback);

	void createUser(String vorname, String nachname, String nickname, AsyncCallback<User> callback);

	void init(AsyncCallback<Void> callback);

	void getUserByNachname(String nachname, AsyncCallback<Vector<User>> callback);

	void getUserById(int id, AsyncCallback<User> callback);

	// getbySourceUser Methoden

	void getKommentarBySourceUser(int sourceId, AsyncCallback<Vector<Kommentar>> callback);
	void getPinnwandBySourceUser(int sourceId, AsyncCallback<Vector<Pinnwand>> callback);
	void getBeitragBySourceUser(int sourceId, AsyncCallback<Vector<Beitrag>> callback);
	void getLikeBySourceUser(int sourceId, AsyncCallback<Vector<Like>> callback);
	void getLikeByTargetBeitrag(int beitragId, AsyncCallback<Vector<Like>> callback);
	void getAboBySourcePinnwand(int pinnwandId, AsyncCallback<Vector<Abo>> callback);
	void getAboByTargetPinnwand(int pinnwandId, AsyncCallback<Vector<Abo>> callback);

	// "Find" by ID -Methoden für Alle SMOs

	void getAboById(int id, AsyncCallback<Abo> callback);
	void getPinnwandById(int id, AsyncCallback<Pinnwand> callback);
	void getBeitragById(int id, AsyncCallback<Beitrag> callback);
	void getLikeById(int id, AsyncCallback<Like> callback);
	void getKommentarById(int id, AsyncCallback<Kommentar> callback);

	// "FIND ALL"- Methoden für alle SMOs
	// alle Methodennamen sind im Singular gehalten.

	void getAllUser(AsyncCallback<Vector<User>> callback);
	void getAllPinnwand(AsyncCallback<Vector<Pinnwand>> callback);
	void getAllLike(AsyncCallback<Vector<Like>> callback);
	void getAllKommentar(AsyncCallback<Vector<Kommentar>> callback);
	void getAllBeitrag(AsyncCallback<Vector<Beitrag>> callback);
	void getAllAbo(AsyncCallback<Vector<Abo>> callback);

	void getKommentarByTargetBeitrag(int beitragId,
			AsyncCallback<Vector<Kommentar>> callback);

	void createAbo(int sourcePinnwand, int targetPinnwand,
			AsyncCallback<Abo> callback);

	void createPinnwand(int sourceUser, AsyncCallback<Pinnwand> callback);

	void createKommentar(String text, int sourceUser, int targetBeitrag,
			AsyncCallback<Kommentar> callback);

	void createLike(int sourceUser, int targetBeitrag,
			AsyncCallback<Like> callback);

	void createBeitrag(String text, int sourceUser,
			AsyncCallback<Beitrag> callback);

	void deleteUser(User u, AsyncCallback<User> callback);

	void deleteAbo(Abo a, AsyncCallback<Void> callback);

	void deletePinnwand(Pinnwand p, AsyncCallback<Void> callback);

	void deleteKommentar(Kommentar k, AsyncCallback<Void> callback);

	void deleteLike(Like l, AsyncCallback<Void> callback);

	void deleteBeitrag(Beitrag b, AsyncCallback<Void> callback);

	void save(Beitrag b, AsyncCallback<Void> callback);

	void save(Kommentar k, AsyncCallback<Void> callback);


	}

und die "normale" Verwaltung sieht so aus:
Java:
import java.util.Vector;

import com.google.gwt.user.client.rpc.RemoteService;


public interface PinnwandVerwaltung extends RemoteService {

	public void init() throws IllegalArgumentException;

	public User createUser(String vorname, String nachname, String nickname) throws IllegalArgumentException;

	public void save(User u) throws IllegalArgumentException;

	public Vector<User> getUserByNachname(String nachname) throws IllegalArgumentException;

	// getbySourceUser Methoden

	public Vector<Kommentar> getKommentarBySourceUser(int sourceId) throws IllegalArgumentException;
	public Vector<Pinnwand> getPinnwandBySourceUser(int sourceId) throws IllegalArgumentException;
	public Vector<Beitrag> getBeitragBySourceUser(int sourceId) throws IllegalArgumentException;
	public Vector<Like> getLikeBySourceUser(int sourceId) throws IllegalArgumentException;
	public Vector<Like> getLikeByTargetBeitrag(int beitragId) throws IllegalArgumentException;
	public Vector<Abo> getAboBySourcePinnwand(int pinnwandId) throws IllegalArgumentException;
	public Vector<Abo> getAboByTargetPinnwand(int pinnwandId) throws IllegalArgumentException;
	public Vector<Kommentar> getKommentarByTargetBeitrag(int beitragId) throws IllegalArgumentException;

	// "Find" by ID -Methoden für Alle SMOs

	public User getUserById(int id) throws IllegalArgumentException;

	public Abo getAboById(int id) throws IllegalArgumentException;

	public Pinnwand getPinnwandById(int id) throws IllegalArgumentException;

	public Beitrag getBeitragById(int id) throws IllegalArgumentException;

	public Like getLikeById(int id) throws IllegalArgumentException;

	public Kommentar getKommentarById(int id) throws IllegalArgumentException;

	// "FIND ALL"- Methoden für alle SMOs
	// alle Methodennamen sind im Singular gehalten.

	public Vector<User> getAllUser() throws IllegalArgumentException;

	public Vector<Pinnwand> getAllPinnwand() throws IllegalArgumentException;

	public Vector<Like> getAllLike() throws IllegalArgumentException;

	public Vector<Kommentar> getAllKommentar() throws IllegalArgumentException;

	public Vector<Beitrag> getAllBeitrag() throws IllegalArgumentException;

	public Vector<Abo> getAllAbo() throws IllegalArgumentException;

	//create methoden
	public Abo createAbo(int sourcePinnwand, int targetPinnwand) throws IllegalArgumentException;
	public Pinnwand createPinnwand(int sourceUser) throws IllegalArgumentException;
	public Kommentar createKommentar(String text, int sourceUser, int targetBeitrag) throws IllegalArgumentException;
	public Like createLike(int sourceUser, int targetBeitrag) throws IllegalArgumentException;
	public Beitrag createBeitrag(String text, int sourceUser) throws IllegalArgumentException;

	//delete methoden
	public User deleteUser(User u) throws IllegalArgumentException;
	public void deleteAbo(Abo a) throws IllegalArgumentException;
	public void deletePinnwand(Pinnwand p) throws IllegalArgumentException;
	public void deleteKommentar(Kommentar k)throws IllegalArgumentException;
	public void deleteLike(Like l) throws IllegalArgumentException;
	public void deleteBeitrag(Beitrag b) throws IllegalArgumentException;

	//update methoden
	public void save(Beitrag b) throws IllegalArgumentException;
	public void save(Kommentar k) throws IllegalArgumentException;

}

Bin mir im Prinzip sicher das ich den Entry Point nicht gesetzt habe. Weiß aber leider nicht wie und wo???
 

Zurück
Oben