JBC Error messages
Website and Java frontend to a Cloud database for booksellers.
Brought to you by:
jbookcloud,
kelagedart
Exception [EclipseLink] The last packet sent successfully to the server
was 0 milliseconds ago.
The driver has not received any packets from the server. Error Code:0
The server is not responding or the hostname, port or database name are
incorrect.
Apologies for delay!
I was wondering why Sourceforge so easily permitted anonymous postings.
All have to be APPROVED!!!!
Not a big deal, will pay closer attention to email postings from here.
It seems like there is an error in the PERSISTENCE.XML file.
Use the format in the example, and perhaps better, in the included one within the JAR file to get a better idea od the exact syntax.
The database must be created BEFORE use, And the server must be set up to allow EXTERNAL CONNECTIONS.
Hopefully I will have time to add to the FAQ today!
Dont' know if it is because of a java 1.8 update but now JBookCloud is spitting out the following error on start:
Exception [EclipseLink-28014] (Eclipse Persistence Services - 2.4.1.v2121003-ad44345): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Exception was thrown while processing property [eclipselink.session.customizer] with value
[JPAEclipseLinkSessionCustomizer].
Internal Exception: java.lang.NumberFormatException: null
Might have to start at the beginning and reinstall.
Seems to be working OK here under 1.8. The error is coming from the Eclipse library 2014. There is probably an update by now.
Look for the error message in
http://wiki.eclipse.org/EclipseLink/Examples/JPA/Tomcat_Web_Tutorial
See http://eclipse.1072660.n5.nabble.com/SessionCustomizer-problem-td5296.html
Thanks Myles. Took the hint about commenting out the eclipselink line in the persistence.xml file. Now I've got JBookCloud connecting to a mysql database. I've got one version of BOSC running php 5.5 along with MySQL 5.5 on one machine. On another machine the default version of php is version 7 along with MariaDB 10.2 but without the oscommerce running. Imported the mysql database from the first machine into the second machine and now with your help I can connect with the mariadb database via JBookCloud. There's a community edition of osCommerce called Responsive osCommerce that's done some work on making it compatible with php 7. Anyway thanks a bunch and Happy New Year to you and your kin.