Win a copy of Spring Boot in Practice this week in the Spring forum!

sowjan kumar

Greenhorn
+ Follow
since Oct 09, 2004
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 sowjan kumar

I would like to know which architecture to choose - Apache Camel or Mule soft for a ESB setup.. We have a large transaction based enviornment with large number of user transactions happening.

ESB should well be integrated with other products too such as SAP, Salesforce etc..No cloud based setup or Hadoop/Big data kinda technologies used..

Thanks
7 years ago
Because of this am getting the following error

17:17:07,053 WARN [JDBCExceptionReporter] SQL Error: 933, SQLState: 42000
17:17:07,053 ERROR [JDBCExceptionReporter] ORA-00933: SQL command not properly ended

17:17:07,053 ERROR [MmsDataRetrieval] [MFINDT-SKUMARA][ERR3876] HibernateException caught, rethrowing as MmsDataAccessException.
17:17:07,053 WARN [GlobalRFT] [MFINDT-SKUMARA][WRN0000] Unable to initialise GRFT

Originally posted by Nathan Hook:
<sarcasm>
I would think that the schema would be identified by the database connection string found in the hibernate properties file.



You are right. What really is needed is how in the .hbm.xml file we do configurations in such a way that we terminate the schema. For ex..the SQL that hibernate generates from the XML is

select mmsservice0_.SERVICE as col_0_0_ from PROD40.PR.MMS_SERVICE mmsservice0_

where PROD40 is the schema name and PR is the username. I need to have the SQL as follows
select mmsservice0_.SERVICE as col_0_0_ from PR.MMS_SERVICE mmsservice0_
Iam facing the same issue now. Pls help if anyone knows about the solution for this. Thanks
Thanks a lot Mark. Solved this issue by cleaning the classes inside JB_CLASS folder. I had some .xml and .properties file inside that and after removign that it worked fine.
15 years ago
Thanks Mark..But still the same issue. The exception as follows

Failed to boot JBoss:
java.lang.RuntimeException: Cannot create MBeanServer
at org.jboss.mx.server.MBeanServerImpl.<init>(MBeanServerImpl.java:224)
at org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MBeanServerBuilderImpl.java:56)
at javax.management.MBeanServerFactory.createMBeanServerImpl(MBeanServerFactory.java:207)
at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:44)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:369)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
at org.jboss.Main.boot(Main.java:195)
at org.jboss.Main$1.run(Main.java:463)
at java.lang.Thread.run(Thread.java:534)
Caused by: javax.management.NotCompliantMBeanException: Cannot register MBean: JMImplementation:type=MBeanServerDelegate
at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:300)
at org.jboss.mx.server.MBeanServerImpl.<init>(MBeanServerImpl.java:200)
... 8 more
Caused by: java.lang.NullPointerException
at org.jboss.mx.modelmbean.ModelMBeanInvoker.setModelMBeanInfo(ModelMBeanInvoker.java:170)
at org.jboss.mx.modelmbean.XMBean.<init>(XMBean.java:241)
at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:180)
... 9 more
Press any key to continue . . .
15 years ago
Iam having my own batch file and the contents are as follows

set JB_CLASS=C:\myproject\jboss\classes //this contains all the java classes
set JBOSS_CLASSPATH=%JB_CLASS%

.\run.bat


In run.bat i see the following

echo %JBOSS_CLASSPATH%
if "%JBOSS_CLASSPATH%" == "" (
set JBOSS_CLASSPATH=%JAVAC_JAR%;%RUNJAR%
) ELSE (
set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;%JAVAC_JAR%;%RUNJAR%
)
15 years ago
I have java class files stored in classes folder which is not in the classpath and i added the classpath in a seperate batch file as folows

JBOSS_CLASSPATH=%C:/CLASSES%

And I ran in to the following

Failed to boot JBoss:
java.lang.RuntimeException: Cannot create MBeanServer
at org.jboss.mx.server.MBeanServerImpl.<init>(MBeanServerImpl.java:224)
at org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MBeanServerBuilderImpl.java:56)
at javax.management.MBeanServerFactory.createMBeanServerImpl(MBeanServerFactory.java:207)
at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:44)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:369)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
at org.jboss.Main.boot(Main.java:195)
at org.jboss.Main$1.run(Main.java:463)
at java.lang.Thread.run(Thread.java:534)
Caused by: javax.management.NotCompliantMBeanException: Cannot register MBean: JMImplementation:type=MBeanServerDelegate
at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:300)
at org.jboss.mx.server.MBeanServerImpl.<init>(MBeanServerImpl.java:200)
... 8 more
Caused by: java.lang.NullPointerException
at org.jboss.mx.modelmbean.ModelMBeanInvoker.setModelMBeanInfo(ModelMBeanInvoker.java:170)
at org.jboss.mx.modelmbean.XMBean.<init>(XMBean.java:241)
at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:180)
... 9 more
15 years ago
I have a JSP page and when I click a button it will call a servlet to open a file. Now I want to refresh the page when the file is "opened" or "closed" or "cancelled". This is because the jsp page contains checkboxes whose values are not refreshed. How to handle this situation

thanks
16 years ago
JSP
This problem is solved as there was a problem with the Tag libraries
16 years ago
Greetings. Can any one tell how to maintain a single code base for JBoss and weblogic. Weblogic its fine.
Our application consists of a .ear file 2 jar files and also some start up classes. As of now We have placed the corresponding things in server/default/deploy and default/lib.
How to configure Jboss in such a way that it refers to .ear in some other drive.
Please help

Thanks
Sowjanya
16 years ago
Hi,
Greetings!
I have a problem in reloading the JSP files every time I visit the page. For eg I go to search page and search for criteria1 and once again when i search for criteria2 Iam getting the datas of criteria1. The page is not refreshed. My jboss-4.0.2\server\default\work\jboss.web\localhost\_\org\apache\jsp is not refreshed. But when i delete the files in ..\work I could get the new data. Can any one please tell me how do i do this dynamically?
16 years ago
Hello Paul,
Yeah..At last I fould a solution by having BLOB as such..As u said Iam using oracle database. The following is the code i used

insert into blob_details values(empty_blob(),empty_blob()) //initially i inserted an empty blob. No matter whether BLOB datatype in oracle is declared as NULL or NOT NULL.. we can follow this one..Then for updation of BLOB

select blob,blob_tree from blob_details where id=? for update

prepareStmt = con.prepareStatement (sql,ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
.
.
.
con.setAutoCommit(false);
...
...//all necessary stream operation
...
con.commit ();//done after closing the streams...
Hello charles
SUN Studio's FORTE IDE has a built in support tool for you to validate and check XMl documents
17 years ago
Hi
Iam having 2 fields in my table to store files. BLOB can insert files of size < 4k and update files of size <2k. CLOB can do both insert and update of files <4k. LONG RAW datatype is not suporting 2 fields in the same table...Any ideas as how to implement a datatype for 2 fields where i can store files of size greater than 20k will be most welcome

Sowjanya