jcleiva Posted February 9, 2012 Share Posted February 9, 2012 Jasper server 02/08/2012 20:22 Hi all I publish a report to the Jasper Server and it is not working as expected The report uses a jdbc connection against a Postgresql DB. The error message on the server log is this one: Error Message com.jaspersoft.jasperserver.api.JSExceptionWrapper: Error executing SQL statement for : report1 Error Trace com.jaspersoft.jasperserver.api.JSExceptionWrapper: net.sf.jasperreports.engine.JRException: Error executing SQL statement for : report1 at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:229) at com.jaspersoft.jasperserver.api.engine.jasperreports.util.JRTimezoneJdbcQueryExecuter.createDatasource(JRTimezoneJdbcQueryExecuter.java:167) at com.jaspersoft.commons.util.JSControlledJdbcQueryExecuter.createDatasource(JSControlledJdbcQueryExecuter.java:113) at net.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(JRFillDataset.java: So I double checked the postgresql logs and I foud that the jasper server is sending this statement to the postgresql DB inf front of our function call SET SESSION CHARACTERISTICS AS TRANSACTION READ ONLY (this creates a lock on the tables involved in the function) The function is dropping and creating some tables So that makes the function we are calling to fail. How can we disable it ? It is something in the jdbc driver? The reports works ok in the Ireport designer. Thanks Link to comment Share on other sites More sharing options...
jcleiva Posted February 9, 2012 Author Share Posted February 9, 2012 Actually what I found is that any select statement coming from the jasper server is encapsulated in a transaction block,.That means that the tables involved in the query are locked , we don't want that for just a select.......Wondering if that is configurable some where in the server side . Thanks Link to comment Share on other sites More sharing options...
jcleiva Posted February 13, 2012 Author Share Posted February 13, 2012 HI all I think we are stuck with jasper until we fix this....So far no luck.....so... should we give up???? Post Edited by jcleiva at 02/13/2012 14:29 Link to comment Share on other sites More sharing options...
jcleiva Posted February 23, 2012 Author Share Posted February 23, 2012 Hi all Never mindAfter TWO WEEKS of looking in the forum I was able to find the solution for thism problemThis is the URL just in case someone come across with the same issue http://jasperforge.org/plugins/espforum/view.php?group_id=112&forumid=102&topicid=50351&page=2Basically what I needed to do was to change from using a jdbc connection to a jndi connection, wich was a little tricky due the lack of documentation .The down size, my test licence for jasper has expired , so......... ../../../themes/jasper/images//tools/forum/shock.gif Thanks Link to comment Share on other sites More sharing options...
andrin Posted March 9, 2012 Share Posted March 9, 2012 Hellow Everybody !Im a student and i need a help to make a project for two days.I have to make this project : Design and implement a program in Java RMI JDBC that enables remote clients tocontrol some parameters in a Documental Archive Building, which stores documentssensitive to temperature, light, humidity and ventilation. The correct parameter valuesshould be as follows:• Temperature: between min= 13ºC and max=18ºC• Light: between min=65 lux and max 105 lux• Humidity: between min 20% and max=30%• Ventilation: open / close The objective of this practice is to develop a client/server program in Java RMI JDBCthat offers to remote clients the following options, which enable to change the valuesof the parameters, through a contextual menu1:1. Connect a remote client to the server application: A client (employee) requeststo enter the application by providing its username and its password.a. if the username and password (verified at the database) are correct, theclient enters the program and the options are shown to him.b. the username and password (verified at the database) are incorrect, theserver should notify “You don’t have access to the application”.2. A client (employee) can modify (increment and decrement the values oftemperature, light and humidity and open/close the ventilation) and consultthe value of each of the parameters above. When the introduced value is out ofthe specified interval, exceptions should arise and error notifications should beshown to the client.3. Disconnect the user from application server.The data base should have two tables:• User, which keeps information on all users (clients): Id, name, surname,username, active or not, blocked or not, last entrance to the system. • Changes, which keep all changes done by a user in the parameter values. This isdone to keep track of who did parameter changes. Each row of the table shouldcontain the relative information on the user who did the changes, the datewhen changes took place and the new values of the parameters.To implement the program follow the steps below:1. Design and implement the database in postgresql2. Define the remote interface (only one remote interface in this case)3. Implement the remote interface4. Implement a Java server application5. Implement a Java client application that uses the remote interface.6. Compile all java sources (with javac) and further generate stubs and skeletons(with rmic)7. Deploy and run the applicationFor running and testing the application you can use the localhost.I tried to solve but can not until we've reached the end as not promised time, if you help will be given the honor of knowing.thank you.....best regards ! Andrin Link to comment Share on other sites More sharing options...
andrin Posted March 9, 2012 Share Posted March 9, 2012 Please help me for this ! :( Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now