Tagged Questions

1
vote
1answer
18 views

Error when trying to 'search similar images' using jsp

I am building a web application for feature extraction and comparing the feature of images, using jsp, java and postgresql. My feature extraction is extracting some features from images, so that then ...
1
vote
1answer
32 views

COPY FROM and C3PO connection pool in Postgres

I have the follow code in my JAVA program that allows me to copy data from a file into my Postgres database: Connection con = DriverManager.getConnection("jdbc:postgresql://localhost:####/myDb", ...
0
votes
1answer
23 views

Using PL/Java with JPA or other persistence library

I'm wondering if it's possible to use JPA or other persistence library with PL/Java together? I mean using JPA persistence for manipulationg database over the special JDBC connection provided by ...
0
votes
0answers
71 views

Can't save the features of an image in the PostgreSQL database

I am building an application that extracts the feature of an image and saves it to the database (using JSP, Java & PostgreSQL ). I have based it on Caliph & Emir website. ( ...
1
vote
0answers
116 views

Hibernate 3.6.10 doesn't cascade delete through OneToMany JoinTable

I've been messing with this and googling it for about 4 days and I'm getting crazy about how Hibernate annotations work with JPA annotations. I have two very simple entities: Student package ...
0
votes
2answers
33 views

postgresql hibernate Exception on insert

Hi I'm running a java project using hibernate with postgresql 9.2, when i try to insert it will display: Exception in thread "main" org.hibernate.exception.SQLGrammarException: Could not execute JDBC ...
0
votes
2answers
38 views

Hibernate startup very slow

For some reason, the startup of my hibernate application is unbarrably slow. (up to 2 min) I have been thinking that the c3p0 configuration is plain wrong (related question) but studying the logs ...
1
vote
2answers
49 views

Insert with DEFAULT id doesn't work in postgress

I tried running this statement in Postgress: insert into field (id, name) values (DEFAULT, 'Me') and I got this error: ERROR: null value in column "id" violates not-null constraint I ended up ...
1
vote
3answers
50 views

PostgreSQL (weird): NoClassDefFoundError: com/mysql/jdbc/StringUtils

I am getting well-known NoClassDefFoundError: com/mysql/jdbc/StringUtils, but my case is little different: I am not using MySQL at all. I'm working with PostgreSQL 9.1 database using JDK 1.6. On my ...
1
vote
1answer
34 views

Why am I unable to use prepared statements to update a database?

Consider the following code: String updatestmt = "UPDATE marketplaces.amazon_merchant_fulfilled_orders SET order_status = ? WHERE amazon_order_id=?;"; Connection conn = connectToDatabase(); ...
0
votes
1answer
26 views

Using Spring 3 to generate sql that uses cursors in Postgres

I have java webapp that I've upgraded from spring 2.5.x to spring 3.x. Everything post-upgrade works except that database load has gone up and queries are taking longer. The stack is Hibernate ...
0
votes
0answers
15 views

Hibernate 3.2 IdentifierGeneratorFactory can't create big_decimal type

I am using Hibernate 3.2, PostgreSQL 9. My database's id's are big_decimal type. I used reverse engineering and got hbm.xml files. But Hibernate 3.2 aren't supporting big_decimal. I tried extend ...
0
votes
1answer
28 views

Porting SQL/plPGsql tests to Java/JDBC: test an exception

I'm porting database schema tests from sql/plpgsql to Java/JDBC. But here is a test case I can't figure out how to test. As I can guess, this test tries to insert some row to a table, and expects ...
0
votes
2answers
45 views

Memory leak in java liferay project

When i try to re-deploy my project, sometimes it run out of memory and throw perGemSpace error (just re-deploy 2-3 times) I know my project have some memory leak trouble but can't figure out, someone ...
1
vote
2answers
53 views

How can I execute non-query Stored Procedure in JDBC

I have a stored procedure in a postgres database. I'm using the postgres JDBC driver to execute a stored procedure, and I do not care about the return type, and can't execute the query. It's ...

1 2 3 4 5 49
15 30 50 per page