Hibernate SQL error - mysql

I try to get this example project running:
https://github.com/pkainulainen/spring-social-examples
Everytime a sql-query is placed it results in a 404 Error.
For example I can load the main page without problems. But if I put
User test = userRepository.findByEmail("test")
somewhere in the code i get the 404 Error again. Also everytime I try to do something like login -> 404.
From the logs i see the sql query which works fine if I copy it into phpmyadmin. Except for this logging I se nothing.
If I place a logging before and after the query I only see the first one. I guess the query somehow crashes and produces a 404.
I know 404 means not found but this does not make any sense.
What can I do? Is there a way to turn up more loggings?
I use Glassfish with the source provided from github.

Related

moving cakephp 3 to production, gives missing element error

I have uploaded my cakephp 3 app to production, I can login, but then getting the following error:
Element file "Element/sidebar/left_menu.ctp" is missing.
The weird part is, that on my local dev, it works.
The file is there.
Is there anything I am missing?
Cheers,

show error messages in typo3

I am wondering if there is a way to show concrete error messages instead of just getting "Oops, an error occurred!" with no further clarifications or hints concerning the error .
I also checked the file "typo3.log" but it's quite empty .
You can achieve this by setting value of [SYS][displayErrors] to 1
login into Install Tool,
go to All configuration
Open $TYPO3_CONF_VARS['SYS'] pane
search for [SYS][displayErrors] and set required value
1 is ok for local dev, and 2 (with devIPmask check) for remote dev. For production disable it again.

NHibernate Profiler does not show query plan

My application uses NHibernate to connect to a MySQL database. The profiling works fine, but the links at the bottom ("See the x row(s) resulting from this statement" and "Query plan for this statement") do not work. When I click on the query plan statement, nothing happens. When I click on the "See x rows" link, a new window is opened that does not display anything. When I click on "Edit Connection" and select the correct MySQL connection string, I get the following error: "could not find connection type mysql.data.mysqlclient.mysqlconnection" What am I doing wrong?
The problem is that NHibernate Profiler does not know the path to MySql.Data.dll and therefore cannot show the results or the query plan. The solution is very simple. In the Edit Connection window, you have to select the MySql.Data.dll file by clicking on Browse. After selecting it, click on OK and everything works fine.

Mantis Installing Error on Mysql

I tried to install the latest version of Mantis, but i keep getting this error:
APPLICATION ERROR #401
Database query failed. Error received from database was #1146: Table 'user_mantis.mantis_user_table' doesn't exist for the query: SELECT *
FROM mantis_user_table
WHERE username=?.
Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.
Im sure about the database credentials, i cant figure out what else would it be.
Appreciate your help!
You can find the solution at the below mentioned link
http://www.mantisbt.org/forums/viewtopic.php?t=19060&p=43806
Let me know if this works for you.

"fatal error encountered during command execution" when trying to add a view from MySQL DB

I'm trying to add some tables and views from a MySQL database to a project in VS2005. After a lot of looking around I ended using the ADO.NET connector, which works pretty fine, except when trying to add a View with the Data source configuration wizard, where I get the "fatal error encountered during command execution" error message, and when I try adding one with the query builder, where it doesn't show me the name of the columns at the diagram pane.
If I add all the SELECT commands by hand, it works like a charm. Any ideas on what might be causing this and how to fix it?
Looks like View uses variables
To fix this add 'allow user
variables=true' to your connection
string. In this mode it will not
complain when it sees #data but
doesn't find a parameter of that name.
http://bugs.mysql.com/bug.php?id=40765