Je veux faire Restful - Web Service en utilisant netbean 6.5, glassfish V2, et je fais déjà table et la relation entre la table. Mais quand je veux tester reposant Webservice, une table il montreHTTP Status 500
HTTP Status 500 -
type Exception report
message
descriptionThe server encountered an internal error() that prevented it from fulfilling this request.
exception
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b04-fcs (04/11/2008))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'E' in 'field list'
Error Code: 1054
Call: SELECT Id, MobileNumber, Country, First_Name, E-mail, Address, Identity, Zip, Last_name, City, State, Position FROM employee_table WHERE (Id = ?)
bind => [1]
Query: ReadObjectQuery(ws.EmployeeTable)
note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server 9.1_02 logs.
mais une table fonctionne. Est-ce que quelqu'un savait ce qui cause ce problème et comment gérer ce problème? THX.
Thx à Andrew Medico, et Jim Ferrans
je change tout mon E-mail dans un message électronique. et je n'oublierai pas de ne pas ajouter "-" dans DB. thx
Thx ça marche maintenant. Après avoir changé tous les e-mails en email. – Huuhaacece
Remarque backtick-escaping est un MySQLism non standard. Selon l'ANSI SQL, les guillemets doubles doivent être utilisés. Ce comportement peut être obtenu en définissant le ANSI_QUOTES SQL_MODE. – bobince