Saravanakumar Jeyavel

Greenhorn
+ Follow
since Aug 20, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Saravanakumar Jeyavel

Hi,
I am using JPA with hibernate in my project. when i tried to call query using the below , i am getting as Product is not mapped. can you please suggest what i am missing?

Error:
java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: Product is not mapped [select e from Product e where e.ndc11_cd = :ndc11_cd]



Entity : Product



spring context file:
Hello ,

i am using jnlp to launch my application. recently updated to java 7. it was working fine, but since updated to java 7 i am getting the error javax.security.auth.login.LoginException: No LoginModules configured webutc though all the jars are being signed correctly. Below is my jnlp file


I am using jboss 7 and the login.config.xml contains the webutc info as below.


i have been trying to solve this issue past 2 days. i really appreciate if someone suggest me how to fix this issue.

Thanks

10 years ago
I have an object called TickeDO which contains another object TicketoptionDO. I am generating xml using Castor 1.2. the TicketoptionDO object is an optional value. how can i avoid ticketoption tag in the generated xml when it is null. right now, i am getting empty tag as </ticketoption> within the <ticket> tag. below is my mapping structure.

<?xml version="1.0"?>
<!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN" "http://castor.org/mapping.dtd">
<mapping>
<class name="com.data.objects.ticket.TicketDO" verify-constructable="false">
<map-to xml="ticket"/>
<field name="TicketId" type="long" get-method="getId" set-method="setId">
<bind-xml name="ticketId" node="element"/>
</field>

<field name="ticketoption" type="com.data.objects.ticket.TicketoptionDO" get-method="getTicketoption" set-method="setTicketoption" required="false">
<bind-xml name="ticketoption" node="element"/>
</field>
</class>

<class name="com.data.objects.ticket.TicketoptionDO" verify-constructable="false">
<map-to xml="ticketoption"/>
<field name="optiontype" type="string" get-method="getOptionType" set-method="setOptionType">
<bind-xml name="optiontype" node="element"/>
</field>
</class>
</mapping>

how to exclude empty </ticketoption> tag from the generated xml when it is null ? i really appreciate any help.

thanks.
Hi ,

I am getting the below error when i start up the jboss server. i have the following jars in my lib folder

spring-context-3.2.0.M1
spring-core-3.2.0.M1
spring-aspects-3.2.0.M1
spring-aop-3.2.0.M1
spring-web-3.2.0.M1
spring-beans-3.2.0.M1
spring-webmvc-3.2.0.M1

this is all happening when i have the following code in my applicationContext.xml

schema definition in my application context is,

i am trying to solve this problem since y'day...but i don't have an idea how to solve it. any help is really appreciated.

Thanks
11 years ago
Hi ,

I am getting the below error when i start up the jboss server. i have the following jars in my lib folder

spring-context-3.2.0.M1
spring-core-3.2.0.M1
spring-aspects-3.2.0.M1
spring-aop-3.2.0.M1
spring-web-3.2.0.M1
spring-beans-3.2.0.M1
spring-webmvc-3.2.0.M1




this is all happening when i have the following code in my applicationContext.xml

schema definition in my application context is,



i am trying to solve this problem since y'day...but i don't have an idea how to solve it. any help is really appreciated.

Thanks
11 years ago
Thanks Jaikiran ... i noticed that after closing db connection in java code, i don't see any effect on the number of opened connection and available connection thru jboss jmx-console. if i increase the connection pool size to 100 or 200, wouldn't i get the same issue after reaching the max-pool-size because there is no decrease in connection size after closing the db connection in the finally block. why the jboss is not handling the internal db connection pooling ?

i will implement what have suggested.
11 years ago
Hi,

I am getting the below error when i run my application in jboss 4.0.2 with oracle11g.

org.jboss.util.NestedSQLException: No ManagedConnections available within configured blocking timeout ( 5000 [ms] ); - nested throwable: (javax.resource.ResourceException: No ManagedConnections available within configured blocking timeout ( 5000 [ms] ))
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:107)


my configuration in oracle-ds is as below




any suggestion/help would be really appreciated.

Thanks
11 years ago