Google Engine with Firebase

52 views
Skip to first unread message

hr lumiins

unread,
Mar 28, 2018, 7:00:08 PM3/28/18
to Google App Engine

HI, 


Followed this sample:

https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/appengine/firebase-tictactoe


Getting an error when login..


Any idea of this =


Error:

Problem accessing /. Reason:

    Server Error

Caused by:

java.lang.RuntimeException: Please copy your Firebase web snippet into WEB-INF/view/firebase_config.jspf
	at com.example.appengine.firetactoe.FirebaseChannel.parseFirebaseUrl(FirebaseChannel.java:109)
	at com.example.appengine.firetactoe.FirebaseChannel.<init>(FirebaseChannel.java:92)
	at com.example.appengine.firetactoe.FirebaseChannel.getInstance(FirebaseChannel.java:71)
	at com.example.appengine.firetactoe.Game.sendUpdateToUser(Game.java:137)
	at com.example.appengine.firetactoe.Game.sendUpdateToClients(Game.java:146)
	at com.example.appengine.firetactoe.TicTacToeServlet.doGet(TicTacToeServlet.java:91)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848)
	at org.ec

Attila-Mihaly Balazs

unread,
Mar 29, 2018, 1:47:37 AM3/29/18
to Google App Engine
Check out the "Adding the Firebase SDK to your web page" part of this: https://cloud.google.com/solutions/using-firebase-real-time-events-app-engine (be sure to switch to "JAVA" for the example).

Attila

George (Cloud Platform Support)

unread,
Mar 29, 2018, 3:04:07 PM3/29/18
to Google App Engine
The error message: "Please copy your Firebase web snippet into WEB-INF/view/firebase_config.jspf" does seem to indicate the source of the issue. Have you verified the link provided by Attila-Mihaly in the other reply? What is the actual code snippet used in your case?   
Reply all
Reply to author
Forward
0 new messages