NullPointerException when deploying the MBO - java

I am deploying the MBOs in SUP 2.2 and it is failing with the Null Pointer Exception.
Errors occurred while creating packages.
Deployment Error: Create package failed (package=/TestforSR/.pkg, server=MOF Server)
java.lang.NullPointerException
java.lang.NullPointerException
java.lang.NullPointerException
java.lang.NullPointerException
But it is working fine and able to fetch the response when preview and by using the SOAPUI utilities and not throwing any error or exception. Only the exception when deploying the package.

Check if you are connected the SUP server? And while deploying, it would be better to use the
Update
mode.

I have found a work around for the issue. Not sure if this is the only solution but this is working for me and MBOs are getting deployed to the SUP Server successfully without throwing the Null Pointer Exception.
The webservice that i was using had some parameters of datatype set as enum, which is not supported by SUP and by changing the parameter datatype from enum to String resolved the issue, and error is no more there.

Related

Where is the cause of: Error Connecting to Glassfish Server?

I'm running into the following error when trying to deploy to Glassfish from IntellIJ IDEA, but I can't work out where to look first to find the issue.
Error running 'Glassfish Dev'
Error Connecting to Glassfish Server.
Exception occurred : java.lang.NullPointerException
Exception message : null
This is Glassfish 3.1, the configuration used to work but has recently stopped, I can't work out if the issue should be investigated within the Glassfish server or the local project + config.

How to resolve a 'Call to undefined function mysql_pconnect()' error in PHP while running the index file through NetBeans 8.2?

When I am running my PHP index file through NetBeans 8.2 then I am getting the following error:
Fatal error: Uncaught Error: Call to undefined function
mysql_pconnect() in C:\xampp\htdocs\Property\Connections\PMS.php:9
Stack trace: #0 C:\xampp\htdocs\Property\register.php(1):
require_once() #1 {main} thrown in
C:\xampp\htdocs\Property\Connections\PMS.php on line 9
Could you please advise me on possible solutions?
You may need to include the package mysqli (the package you should be using for mysql) in your php libraries.
You can also check that you have the package by seeing if it is listed in phpinfo();.

SQL code not getting picked up in Websphere 8.5

I have a Database Handler java code which should execute the Select statement from the JSP. That is not happening and it is throwing the exception. I suspect, there is some JAR file issue due to which my code is not working in Websphere 8.5. The same code works in Tomcat at my Local.
Exception thrown:
Java.lang.NullPointerException
at java.sql.DriverManager.getConnection(DriverManager.java:467)
at com.ids.dbmanager.DatabaseManager.executeGUCountQuery(Databa‌​seManager.java:130)
at com.ibm._jsp._folder._jspService(_folder.java:176)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:‌​99)
Thanks

Uncaught exception thrown while accessing data from db2 using type 4 driver

I get an uncaught exception error while I try to fetch the data from db2 using type 4 driver within the servlet.I used db2jcc.jar and its license file it works first time but after some time it shows following exception
Uncaught exception thrown in one of the service methods of the servlet: Check.
Exception thrown : java.lang.VerifyError: class loading constraint violated (class: com/ibm/db2/jcc/am/jb method: a(Ljava/lang/String;Lcom/ibm/db2/jcc/SQLJSection;Lcom/ibm/db2/jcc/am/hb;Lcom/ibm/db2/jcc/am/hb;)Lcom/ibm/db2/jcc/am/um;) at pc: 0
Please help me to resolve this problem.
thanks
java.lang.VerifyError: occurs when your classloader finds two copies of same class. I suspect two jars are visible for your classloader. Make sure only required jars are there.

AppEngine development environment gives java.lang.VerifyError

I'm getting the following error when I run my app on Eclipse development environment, but when I deploy app to app-engine it works fine. Is it possible to get this work in development environment?
HTTP ERROR 500
Problem accessing /my-controller/. Reason:
(class: org/datanucleus/TransactionImpl, method: internalPreRollback signature: ()V) Accessing value from uninitialized register 5
Caused by:
java.lang.VerifyError: (class: org/datanucleus/TransactionImpl, method: internalPreRollback signature: ()V) Accessing value from uninitialized register 5
at org.datanucleus.ObjectManagerImpl.<init>(ObjectManagerImpl.java:283)
at org.datanucleus.jdo.JDOPersistenceManager.<init>(JDOPersistenceManager.java:132)
at org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManager.<init>(DatastoreJDOPersistenceManager.java:42)
at org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManagerFactory.newPM(DatastoreJDOPersistenceManagerFactory.java:77)
at org.datanucleus.jdo.JDOPersistenceManagerFactory.getPersistenceManager(JDOPersistenceManagerFactory.java:578)
at org.datanucleus.jdo.JDOPersistenceManagerFactory.getPersistenceManager(JDOPersistenceManagerFactory.java:557)
Do you have asm (asm.ow2.org) and/or cglib (cglib.sourceforge.net) in your build path ?
If so remove them.

Categories

Resources