Quantcast
Channel: Spring Community Forums - Data
Browsing all 297 articles
Browse latest View live
↧

What is causing PropertyAccessException?

Need some pointers on the cause of the follow Exception and how to get rid of it. Exception: Code: Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating...

View Article


Error when trying to use jndi with Tomcat7 in a spring application

I have created a spring application that uses jndi, but when I am trying to run it after I have started the tomcat application server I am getting an error. I am posting the relevant files here....

View Article


Broken Mongo DB PDF Link

FYI : http://static.springsource.org/sprin...-reference.pdf Site: http://www.springsource.org/spring-data/mongodb

View Article

How to enter data in two tables at one time in spring mvc hibernate

Article class: @Entity @Table(name = "imei") public class Article { @Id // @GeneratedValue @Column(name = "imei1",nullable = false) private Long imeiNo; @Column(name = "date_added")...

View Article

Integration Spring3.2.2 with Hibernate4.1 Error

Hello , I use hibernate 4.1 and spring 3.2.2 i've this exception Exception in thread "main" org.springframework.transaction.CannotCreateTransa ctionException: Could not open Hibernate Session for...

View Article


Image may be NSFW.
Clik here to view.

JPA repositories with shared behaviour, factory not working

Hi all, I'm trying to adding custom behaviour to all repositories, as described here http://static.springsource.org/sprin...l-repositories My spring config however complains about my repositories not...

View Article

Connection pooling oracle queue

Hi I'm pretty new to the Spring framework, and was wondering what would be he best way to have a connection pool to an Oracle queue? Is there something the framework can offer, without me having to...

View Article

JDBCTemplate premature close connection

Hi guys, I'm trying to integrate Spring ACL in my application. I use C3P0 for connection pooling, and Spring ACL uses JDBCTemplate, which requires a data-source, so I pass my ComboPooledDataSource. The...

View Article


Execute mssql stored procedure with where IN

i am working with spring jdbc templates and i have a simple mssql stored procedure like follows Code: CREATE PROCEDURE sp_ps_get  @serviceUnoList varchar(max) AS     select @value = max(value)     from...

View Article


Separate database configuration

Hey guys, I've been dealing with this problem for couple of days now and I can't get around to solve it. The working setup that I need is: two separate databases, one for JUnit testing and the other...

View Article

JdbcTemplate .setQueryTimeout .seconds or milliseconds

Hi , "http://static.springsource.org/autorepo/docs/spring/3.2.0.M1/api/org/springframework/jdbc/core/JdbcTemplate.html#setQueryTimeout(int)" Is this seconds or milliseconds? Regards

View Article

Spring MVC + Hibernate web application. Web server hangs on load of CRUD...

I am working on the following project and have came across a runtime issue. http://github.com/dmcquillan314/YouthMinistryHibernate The instructions to run this project are located in the README.md file...

View Article

JPA - Not loading relationship objects

I have an employee table with employee_id and supervisor_employee_id columns. The supervisor is also a record in the table. The mapping object looks something like: Code: @Entity...

View Article


Effective use of anti virus software

Antivirus options are progressively successful within heuristic as well as generic recognition, and tend to be thus ceasing to become only determined by virus improvements. This is great news when it...

View Article

setMappingContext(Lorg/springframework/data/mapping/context/MappingContext

Hi I have some jar dependency error. Any help appreciated: maven dependencies:-> spring: 3.2.2-RELEASE spring-data:1.3.0-RELEASE hibernate:4.2.1.Final hibernate-validator.version:4.3.1.Final I get...

View Article


How to write Native SQL

Hi, I am using spring data JPA for database access, I need to write complex query inorder to get data from DB, so i decided to go with pure SQL. Is it possible to write using spring data JPA? if that...

View Article

Spring Data 1.2 -> 1.3 migration causing Spring context error

Hi everyone, I've been working with Spring data for a several months, (and btw, thx to the development team to provide such a good high level framework)... but when I change my pom.xml config, moving...

View Article


How could I inject spring-data repository on...

Hi, I have a custom Authentication Sucess Handler like this: public class CustomAuthenticationHandler extends SavedRequestAwareAuthenticationSuccessHandler{ public void...

View Article

Image may be NSFW.
Clik here to view.

JPA + transactions: exceptions not translated

Hi, I'm using Spring 3.2 for accessing data through JPA with EclipseLink 2.4 + MySQL. I'm having problems with Spring's exception translation. For some reason a...

View Article

getting error Invalid property 'packagesToScan' of bean class

Hi to all, I am using spring 3.2. Eclipse maven project and Tomcat 7. When i run my project i get the following error that Code: Caused by: org.springframework.beans.factory.BeanCreationException:...

View Article
Browsing all 297 articles
Browse latest View live