package crashburnfree.javaserver;

import javax.persistence.EntityManagerFactory;
import javax.persistence.PersistenceUnit;
import javax.transaction.Transactional;
import javax.transaction.Transactional.TxType;
import javax.ws.rs.Consumes;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;

@Path("/submit")
public class JavaServer {

	// @PersistenceUnit(name="crashburnfree") EntityManagerFactory emf;

	@POST
	@Consumes(MediaType.APPLICATION_JSON)
	// @Transactional(value=TxType.REQUIRED)
	public void upload(Throwable t, @HeaderParam("Authorization") String authorization) {
		System.out.println("JavaServer.upload: " + t);
		
		// Here you'd have to actually do something with the Throwable.
		
	}
}

@@ -32,184 +32,8 @@
 r;%0A%0A
-import javax.persistence.EntityManagerFactory;%0Aimport javax.persistence.PersistenceUnit;%0Aimport javax.transaction.Transactional;%0Aimport javax.transaction.Transactional.TxType;%0A
 impo
@@ -57,16 +57,16 @@
 nsumes;%0A
+
 import j
@@ -175,16 +175,53 @@
 aType;%0A%0A
+import crashburnfree.client.Report;%0A%0A
 @Path(%22/
@@ -438,19 +438,16 @@
 oad(
-Throwable t
+Report r
 , @H
@@ -543,17 +543,17 @@
 ad: %22 + 
-t
+r
 );%0A%09%09%0A%09%09

Correct argument list