Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!

Joydeep Bhattacharjee

Greenhorn
+ Follow
since Jan 24, 2012
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Joydeep Bhattacharjee

Hello I am having some problem while running this . I am getting the following exception . I am trying out the following example CrudRepository for Spring Data, and I face the following


Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'helloCntrl': Unsatisfied dependency expressed through field 'test'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.joydeep.springboot.Test1' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations:{@org.springframework.beans.factory.annotation.Autowired(required=true)}


  



     


    



1 year ago
Hi All,
I am getting a very unusual exception in my production servers.

Production Server Details:
OS- Red Hat Enterprise Linux Server release 6.3 (Santiago)
JBOSS Server - jboss-5.0.1.GA
JBOSS Memory Settings - -Xms1536m -Xmx1536m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:NewSize=512m -XX:MaxNewSize=512m -XX:SurvivorRatio=32
Application - Struts 1.2 web application

Problem Details - Sometimes (Sporadically) the web application gets hanged and gives a very bizarre exception when submitting orders as follows

The relevant Classes where the exception is thorown are as follows
OrderProcessingController

WorkQueue



Any help in this regard would be highly appreciated.Thanks in advance.

Best Regards,
Joydeep
5 years ago
Hi Ivan,
I downloaded Exam-Objectives-SCDJWS5.pdf for the Oracle Certified Professional, Java EE 5 Web Services exam. I was going through the excellent note that you have put together , however I think I have noticed one printing mistake may be, on page 15 (XML Schemas). In this page you have explained the use of elementFormDefault . The first portion explains it's use when elementFormDefault is set to qualified . However I guess in the second portion you have tried to explain when elementFormDefault is set to unqualified, here I guess the printing mistake happened , it is printed as qualified instead of unqualified. Please can you clarify if I am correct.
5 years ago
Hi Ivan,
I downloaded Exam-Objectives-SCDJWS5.pdf for the Oracle Certified Professional, Java EE 5 Web Services exam. I was going through the excellent note that you have put together , however I think I have noticed one printing mistake may be, on page 15 (XML Schemas). In this page you have explained the use of elementFormDefault . The first portion explains it's use when elementFormDefault is set to qualified . However I guess in the second portion you have tried to explain when elementFormDefault is set to unqualified, here I guess the printing mistake happened , it is printed as qualified instead of unqualified. Please can you clarify if I am correct.
5 years ago
Hi Ivan,
I downloaded Exam-Objectives-SCDJWS5.pdf for the Oracle Certified Professional, Java EE 5 Web Services exam. I was going through the excellent note that you have put together , however I think I have noticed one printing mistake may be, on page 15 (XML Schemas). In this page you have explained the use of elementFormDefault . The first portion explais it's use when elementFormDefault is set to qualified . However I guess in the second portion you have tried to explain when elementFormDefault is set to unqualified, here I guess the printing mistake happened , it is printed as qualified instead of unqualified. Please can you clarify if I am correct.

5 years ago
Thanks for your explanation , it was helpful indeed . But there seems to be some restriction on the length of name createDescriptor(String name, java.sql.Connection conn). It seems maximum allowed length is 30 . When I use the fully qualified name which has length 41 I get the following exception ...

xception in thread "main" java.sql.SQLException: ORA-01948: identifier's name length (41) exceeds maximum (30)
ORA-06512: at "SYS.DBMS_PICKLER", line 18
ORA-06512: at "SYS.DBMS_PICKLER", line 58
ORA-06512: at line 1

However I think we will create SQL types as you have suggested and try to access it .
Can you please tell where the package should be defined , is it that it can be accessed if it is under the schema and not in any packages



I have used the fully qualified name of the type in Java APPS.HZ_CUSTOMER_ACCOUNTS_PUB.account_rec_type but the exception occours.

Exception in thread "main" java.sql.SQLException: ORA-01948: identifier's name length (41) exceeds maximum (30)
ORA-06512: at "SYS.DBMS_PICKLER", line 18
ORA-06512: at "SYS.DBMS_PICKLER", line 58
ORA-06512: at line 1

at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:184)
at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:873)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1086)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3076)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4273)
at oracle.jdbc.oracore.OracleTypeADT.initMetadata(OracleTypeADT.java:404)
at oracle.jdbc.oracore.OracleTypeADT.init(OracleTypeADT.java:327)
at oracle.sql.StructDescriptor.initPickler(StructDescriptor.java:206)
at oracle.sql.StructDescriptor.<init>(StructDescriptor.java:179)
at oracle.sql.StructDescriptor.createDescriptor(StructDescriptor.java:142)
at com.teliasonera.fi.ebshla.cust.impl.StoreHzCommand.main(StoreHzCommand.java:250)


We have only one schema and I am sure that there is only one Type defined with account_rec_type.
I have to call a stored procedure in oracle from java for which some of the parameters are oracle custom objects.

The stored procedure :-


where p_account_rec is a oracle custom type ACCOUNT_REC_TYPE


ACCOUNT_REC_TYPE is defined in package HZ_CUSTOMER_ACCOUNTS_PUB as




Now the java code for calling the stored procedure :





Exception in thread "main" java.sql.SQLException: invalid name pattern: HZ_CUSTOMER_ACCOUNTS_PUB.ACCOUNT_REC_TYPE
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at oracle.jdbc.oracore.OracleTypeADT.initMetadata(OracleTypeADT.java:412)
at oracle.jdbc.oracore.OracleTypeADT.init(OracleTypeADT.java:327)
at oracle.sql.StructDescriptor.initPickler(StructDescriptor.java:206)
at oracle.sql.StructDescriptor.<init>(StructDescriptor.java:179)
at oracle.sql.StructDescriptor.createDescriptor(StructDescriptor.java:142)
at com.teliasonera.fi.ebshla.cust.impl.StoreHzCommand.main(StoreHzCommand.java:250)








Please can you suggest where I am going wrong ...