ExecSQL throws NullPointerException in large jobs (Oracle)
I'm processing a loop with execSQL calls on a Oracle database. My program works fine, but after 15 minutes (= about 90 loops) it always terminates with a NullPointerException from the execSQL call. Is there any time-out for the database connection ? I have also tried to reconnect in every loop step (I know that's a terrible idea), but it doesn't work either.
I'm using Oracle 8.1.6 on Windows NT with SUN JDK 1.2.2 and the OCI drivers.
Thanks, Holger
It's costly to provide the source code, because I have this problem within the webMethods B2B Integration server which is a pure Java solution. In my scenario I use partly the special services/methods from this middleware solution to access my database tables. But anyway, I've decompiled all that crap and underneath there is the normal JDBC coding which looks fine. But I suppose it could be a problem with the Oracle settings or (more probable) the OCI drivers. I've switched to the Oracle Thin Drivers and everything works fine. But to slow !
Holger
Similar Messages
-
CreateEntityManagerFactory throws NullPointerException for ejb3 jse client
This question has been posted to the Toplink/jpa forum without any reply.
Dear experts!
I am trying to create a java standard edition client, to test outside the weblogic server, my ejb 3 entities, declared as shown in the following persistence.xml.
The java code follows also. I have read about some relevant bugs in eclipselink back in 2006, or 7 or 8 and mostly unanswered threads :
CreateEntityManagerFactory null pointer exception and
Returned null to createEntityManagerFactory about tomcat and oc4j.
Persistence.createEntityManagerFactory() throw NullPointerException in oc4j
I am using JDeveloper 11g Studio Edition Version 11.1.1.3.0, Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660.
Any helping hand available?
Thank you very much in advance!
NA
package chapter12javaseclient;
import actionbazaar.buslogic.BidException;
import actionbazaar.persistence.Bid;
import actionbazaar.persistence.Bidder;
import actionbazaar.persistence.Item;
import java.util.HashMap;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import org.eclipse.persistence.config.EntityManagerProperties;
public class PlaceBidBeanJavaSE {
private static EntityManagerFactory emf;
private static EntityManager em;
public static void main(String[] args) {
String userId= "idiot";
Long itemId = new Long (1);
Double bidPrice = 2001.50;
try {
if (emf == null){
emf = Persistence.createEntityManagerFactory("actionBazaar");
System.out.println("EntityManagerFactory created!");
getEntityManager();
System.out.println("EntityManager created!");
addBid(userId,itemId,bidPrice);
commitTransaction();
} finally {
// close the EntityManager when done
em.close();
emf.close();
private static void getEntityManager() {
HashMap emProps = new HashMap();
emProps.put(EntityManagerProperties.JDBC_USER, "ab");
emProps.put(EntityManagerProperties.JDBC_PASSWORD, "ab");
System.out.println("Creating entity manager");
em = emf.createEntityManager(emProps);
em.getTransaction().begin();
private static void commitTransaction() {
em.getTransaction().commit();
private static Long addBid(String userId, Long itemId, Double bidPrice) throws BidException {
Item item = em.find(Item.class,itemId);
if (item == null)
throw new BidException("Invalid Item Id");
Bidder bidder = em.find(Bidder.class,userId);
if (bidder == null)
throw new BidException("Invalid Bidder Id");
Bid bid = new Bid();
bid.setItem(item);
bid.setBidBidder(bidder);
bid.setBidPrice(bidPrice);
em.persist(bid);
return bid.getBidId();
<?xml version="1.0" encoding="UTF-8" ?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="actionBazaar" transaction-type="RESOURCE_LOCAL">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<class>actionbazaar.persistence.Bid</class>
<class>actionbazaar.persistence.Item</class>
<class>actionbazaar.persistence.User</class>
<class>actionbazaar.persistence.Bidder</class>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="eclipselink.target-server" value="WebLogic_10"/>
<property name="eclipselink.target-database" value="Oracle11"/>
<property name="javax.persistence.jdbc.driver"
value="oracle.jdbc.OracleDriver"/>
<property name="javax.persistence.jdbc.password"
value="ab"/>
<property name="javax.persistence.jdbc.url"
value="jdbc:oracle:thin:@hera:1521:orcl"/>
<property name="javax.persistence.jdbc.user" value="ab"/>
<property name="eclipselink.logging.level" value="ALL"/>
</properties>
</persistence-unit>
</persistence>A solution might be found here:
Re: createEntityManagerFactory() throws NullPointerException for ejb jse client
Re: createEntityManagerFactory() throws NullPointerException for ejb jse client
NA
[http://nickaiva.blogspot.com/] -
CreateEntityManagerFactory() throws NullPointerException for ejb jse client
Dear experts!
I am trying to create a java standard edition client, to test outside the weblogic server, my ejb 3 entities, declared as shown in the following persistence.xml.
The java code, and stacktrace follows also. I have read about some relevant bugs in eclipselink back in 2006, or 7 or 8 and mostly unanswered threads :
CreateEntityManagerFactory null pointer exception and
Returned null to createEntityManagerFactory about tomcat and oc4j.
Persistence.createEntityManagerFactory() throw NullPointerException in oc4j
I am using JDeveloper 11g Studio Edition Version 11.1.1.3.0, Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660.
Any helping hand available?
Thank you very much in advance!
NA
package chapter12javaseclient;
import actionbazaar.buslogic.BidException;
import actionbazaar.persistence.Bid;
import actionbazaar.persistence.Bidder;
import actionbazaar.persistence.Item;
import java.util.HashMap;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import org.eclipse.persistence.config.EntityManagerProperties;
public class PlaceBidBeanJavaSE {
private static EntityManagerFactory emf;
private static EntityManager em;
public static void main(String[] args) {
String userId= "idiot";
Long itemId = new Long (1);
Double bidPrice = 2001.50;
try {
if (emf == null){
emf = Persistence.createEntityManagerFactory("actionBazaar");
System.out.println("EntityManagerFactory created!");
getEntityManager();
System.out.println("EntityManager created!");
addBid(userId,itemId,bidPrice);
commitTransaction();
} finally {
// close the EntityManager when done
em.close();
emf.close();
private static void getEntityManager() {
HashMap emProps = new HashMap();
emProps.put(EntityManagerProperties.JDBC_USER, "ab");
emProps.put(EntityManagerProperties.JDBC_PASSWORD, "ab");
System.out.println("Creating entity manager");
em = emf.createEntityManager(emProps);
em.getTransaction().begin();
private static void commitTransaction() {
em.getTransaction().commit();
private static Long addBid(String userId, Long itemId, Double bidPrice) throws BidException {
Item item = em.find(Item.class,itemId);
if (item == null)
throw new BidException("Invalid Item Id");
Bidder bidder = em.find(Bidder.class,userId);
if (bidder == null)
throw new BidException("Invalid Bidder Id");
Bid bid = new Bid();
bid.setItem(item);
bid.setBidBidder(bidder);
bid.setBidPrice(bidPrice);
em.persist(bid);
return bid.getBidId();
<?xml version="1.0" encoding="UTF-8" ?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="actionBazaar" transaction-type="RESOURCE_LOCAL">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<class>actionbazaar.persistence.Bid</class>
<class>actionbazaar.persistence.Item</class>
<class>actionbazaar.persistence.User</class>
<class>actionbazaar.persistence.Bidder</class>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="eclipselink.target-server" value="WebLogic_10"/>
<property name="eclipselink.target-database" value="Oracle11"/>
<property name="javax.persistence.jdbc.driver"
value="oracle.jdbc.OracleDriver"/>
<property name="javax.persistence.jdbc.password"
value="ab"/>
<property name="javax.persistence.jdbc.url"
value="jdbc:oracle:thin:@hera:1521:orcl"/>
<property name="javax.persistence.jdbc.user" value="ab"/>
<property name="eclipselink.logging.level" value="ALL"/>
</properties>
</persistence-unit>
</persistence>
The log output follows:
C:\Oracle\Middleware\jdev_11gR1\jdk160_18\bin\javaw.exe -client -classpath C:\MyWork\11g\ejb3inaction\.adf;C:\MyWork\11g\ejb3inaction\Chapter12JavaSEClient\classes;C:\MyWork\11g\ejb3inaction\Chapter12\classes;C:\Oracle\Middleware\jdev_11gR1\modules\javax.ejb_3.0.1.jar;C:\Oracle\Middleware\jdev_11gR1\modules\com.oracle.toplink_1.0.0.0_11-1-1-3-0.jar;C:\Oracle\Middleware\jdev_11gR1\modules\org.eclipse.persistence_1.0.0.0_2-0.jar;C:\Oracle\Middleware\jdev_11gR1\modules\com.bea.core.antlr.runtime_2.7.7.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.toplink_11.1.1\javax.persistence_2.0_preview.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.xdk_11.1.0\xml.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.jsf_1.0.0.0_1-2.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.enterprise.deploy_1.2.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.interceptor_1.0.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.jms_1.1.1.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.jsp_1.1.0.0_2-1.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.jws_2.0.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.activation_1.1.0.0_1-1.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.mail_1.1.0.0_1-4-1.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.xml.soap_1.3.1.0.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.xml.rpc_1.2.1.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.xml.ws_2.1.1.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.management.j2ee_1.0.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.resource_1.5.1.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.servlet_1.0.0.0_2-5.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.transaction_1.0.0.0_1-1.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.xml.stream_1.1.1.0.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.security.jacc_1.0.0.0_1-1.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.xml.registry_1.0.0.0_1-0.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.persistence_1.0.0.0_1-0-2.jar;C:\Oracle\Middleware\jdev_11gR1\wlserver_10.3\server\lib\weblogic.jar;C:\Oracle\Middleware\jdev_11gR1\wlserver_10.3\server\ext\jdbc\oracle\11g\ojdbc6.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n-collation.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n-lcsd.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n-mapping.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n-servlet.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n-translation.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n-utility.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.odl_11.1.1\ojdl.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.dms_11.1.1\dms.jar -Djavax.net.ssl.trustStore=C:\Oracle\Middleware\jdev_11gR1\wlserver_10.3\server\lib\DemoTrust.jks chapter12javaseclient.PlaceBidBeanJavaSE
[EL Finest]: 2010-06-25 09:23:10.495--ServerSession(229902)--Thread(Thread[main,5,main])--Begin predeploying Persistence Unit actionBazaar; session file:/C:/MyWork/11g/ejb3inaction/Chapter12JavaSEClient/classes/_actionBazaar; state Initial; factoryCount 0
[EL Finest]: 2010-06-25 09:23:10.518--ServerSession(229902)--Thread(Thread[main,5,main])--property=eclipselink.orm.throw.exceptions; default value=true
[EL Finer]: 2010-06-25 09:23:10.532--ServerSession(229902)--Thread(Thread[main,5,main])--Searching for default mapping file in file:/C:/MyWork/11g/ejb3inaction/Chapter12JavaSEClient/classes/
[EL Finer]: 2010-06-25 09:23:10.537--ServerSession(229902)--Thread(Thread[main,5,main])--Searching for default mapping file in file:/C:/MyWork/11g/ejb3inaction/Chapter12JavaSEClient/classes/
[EL Config]: 2010-06-25 09:23:10.652--ServerSession(229902)--Thread(Thread[main,5,main])--The access type for the persistent class [class actionbazaar.persistence.Item] is set to [PROPERTY].
[EL Config]: 2010-06-25 09:23:10.696--ServerSession(229902)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to many mapping element [method getCategorySet] is being defaulted to: class actionbazaar.persistence.Category.
[EL Config]: 2010-06-25 09:23:10.702--ServerSession(229902)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to many mapping element [method getBids] is being defaulted to: class actionbazaar.persistence.Bid.
[EL Config]: 2010-06-25 09:23:10.71--ServerSession(229902)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to one mapping element [method getSeller] is being defaulted to: class actionbazaar.persistence.Seller.
[EL Config]: 2010-06-25 09:23:10.71--ServerSession(229902)--Thread(Thread[main,5,main])--The access type for the persistent class [class actionbazaar.persistence.User] is set to [PROPERTY].
[EL Config]: 2010-06-25 09:23:10.711--ServerSession(229902)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to many mapping element [method getCategories] is being defaulted to: class actionbazaar.persistence.Category.
[EL Config]: 2010-06-25 09:23:10.716--ServerSession(229902)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to one mapping element [method getBillingInfo] is being defaulted to: class actionbazaar.persistence.BillingInfo.
[EL Config]: 2010-06-25 09:23:10.717--ServerSession(229902)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to one mapping element [method getContactInfo] is being defaulted to: class actionbazaar.persistence.ContactInfo.
[EL Config]: 2010-06-25 09:23:10.718--ServerSession(229902)--Thread(Thread[main,5,main])--The access type for the persistent class [class actionbazaar.persistence.Bidder] is set to [PROPERTY].
[EL Config]: 2010-06-25 09:23:10.72--ServerSession(229902)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to many mapping element [method getBids] is being defaulted to: class actionbazaar.persistence.Bid.
[EL Config]: 2010-06-25 09:23:10.721--ServerSession(229902)--Thread(Thread[main,5,main])--The access type for the persistent class [class actionbazaar.persistence.Bid] is set to [PROPERTY].
[EL Config]: 2010-06-25 09:23:10.721--ServerSession(229902)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to one mapping element [method getBidBidder] is being defaulted to: class actionbazaar.persistence.Bidder.
[EL Config]: 2010-06-25 09:23:10.721--ServerSession(229902)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to one mapping element [method getItem] is being defaulted to: class actionbazaar.persistence.Item.
[EL Config]: 2010-06-25 09:23:10.722--ServerSession(229902)--Thread(Thread[main,5,main])--The alias name for the entity class [class actionbazaar.persistence.Item] is being defaulted to: Item.
[EL Config]: 2010-06-25 09:23:10.746--ServerSession(229902)--Thread(Thread[main,5,main])--The alias name for the entity class [class actionbazaar.persistence.Bidder] is being defaulted to: Bidder.
[EL Config]: 2010-06-25 09:23:10.746--ServerSession(229902)--Thread(Thread[main,5,main])--The alias name for the entity class [class actionbazaar.persistence.User] is being defaulted to: User.
[EL Config]: 2010-06-25 09:23:10.753--ServerSession(229902)--Thread(Thread[main,5,main])--The table name for entity [class actionbazaar.persistence.Bidder] is being defaulted to: USERS.
[EL Config]: 2010-06-25 09:23:10.753--ServerSession(229902)--Thread(Thread[main,5,main])--The discriminator column name for the root inheritance class [class actionbazaar.persistence.Bidder] is being defaulted to: DTYPE.
[EL Config]: 2010-06-25 09:23:10.755--ServerSession(229902)--Thread(Thread[main,5,main])--The primary key column name for the inheritance class [class actionbazaar.persistence.Bidder] is being defaulted to: USER_ID.
[EL Config]: 2010-06-25 09:23:10.755--ServerSession(229902)--Thread(Thread[main,5,main])--The foreign key column name for the inheritance class [class actionbazaar.persistence.Bidder] is being defaulted to: USER_ID.
[EL Config]: 2010-06-25 09:23:10.758--ServerSession(229902)--Thread(Thread[main,5,main])--The alias name for the entity class [class actionbazaar.persistence.Bid] is being defaulted to: Bid.
Exception in thread "main" java.lang.NullPointerException
at chapter12javaseclient.PlaceBidBeanJavaSE.main(PlaceBidBeanJavaSE.java:43)
Process exited with exit code 1.Thank you for your reply!
The client now works correctly. It seems that the line
em = emf.createEntityManager(emProps);//
throws an exception when no argument is given for em = emf.createEntityManager();// emProps missing!
There was also a warning in jdev editor, about the line you mentioned:
<property name="eclipselink.target-server" value="WebLogic 10"/>
Carry on with your good work!
The updated persistence.xml and java source code shown below:
<?xml version="1.0" encoding="UTF-8" ?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="actionBazaar" transaction-type="RESOURCE_LOCAL">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<class>actionbazaar.persistence.Bid</class>
<class>actionbazaar.persistence.Item</class>
<class>actionbazaar.persistence.User</class>
<class>actionbazaar.persistence.Bidder</class>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="eclipselink.target-database" value="Oracle11"/>
<property name="javax.persistence.jdbc.driver"
value="oracle.jdbc.OracleDriver"/>
<property name="javax.persistence.jdbc.password"
value="29E8BD11B89A62E3862F19C4F84B7DB0"/>
<property name="javax.persistence.jdbc.user" value="ab"/>
<property name="eclipselink.logging.level" value="ALL"/>
<property name="eclipselink.orm.validate.schema" value="true"/>
<property name="javax.persistence.jdbc.url"
value="jdbc:oracle:thin:@hera:1521:orcl"/>
</properties>
</persistence-unit>
</persistence>
package chapter12javaseclient;
import actionbazaar.buslogic.BidException;
import actionbazaar.persistence.Bid;
import actionbazaar.persistence.Bidder;
import actionbazaar.persistence.Item;
import java.util.HashMap;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import org.eclipse.persistence.config.EntityManagerProperties;
public class PlaceBidBeanJavaSE {
private static EntityManagerFactory emf;
private static EntityManager em;
private static Hashtable emProps = new Hashtable();
public static void main(String[] args) {
String userId= "idiot";
Long itemId = new Long (2);
Double bidPrice = 2002.50;
try {
if (emf == null){
emf = Persistence.createEntityManagerFactory("actionBazaar");
System.out.println("EntityManagerFactory created!");
getEntityManager();
System.out.println("EntityManager created!");
addBid(userId,itemId,bidPrice);
commitTransaction();
} finally {
// close the EntityManager when done
em.close();
emf.close();
private static void getEntityManager() {
try {
System.out.println("Creating entity manager");
em = emf.createEntityManager(emProps);// if argument is missing exception is thrown!
em.getTransaction().begin();
} catch (Exception ne) {
// TODO: Add catch code
ne.printStackTrace();
private static void commitTransaction() {
em.getTransaction().commit();
private static Long addBid(String userId, Long itemId, Double bidPrice) throws BidException {
Item item = em.find(Item.class,itemId);
if (item == null)
throw new BidException("Invalid Item Id");
Bidder bidder = em.find(Bidder.class,userId);
if (bidder == null)
throw new BidException("Invalid Bidder Id");
Bid bid = new Bid();
bid.setItem(item);
bid.setBidBidder(bidder);
bid.setBidPrice(bidPrice);
em.persist(bid);
return bid.getBidId();
NA
[http://nickaiva.blogspot.com/] -
Private Room throws NullPointerException
Hi,
I have created a private room and it was sucessfull. i am able to see the room without any problem. but when others(non-members) go to their rooms directory, it throws NullPointerException. This problem is only for private rooms only.
we are using SP 17
The exception is
java.lang.NullPointerException
at com.sap.ip.collaboration.roomui.api.util.properties.RoomResourceProperties.getPropertyValueAsString(RoomResourceProperties.java:53)
at com.sap.ip.collaboration.roomui.api.util.properties.RoomResourceProperties.getRoomPrivacy(RoomResourceProperties.java:33)
at com.sap.netweaver.coll.roomui.api.uicommands.UIRequestMembershipCommand.isExecutable(UIRequestMembershipCommand.java:67)
at com.sapportals.wcm.rendering.uicommand.UIGroupCommand.getResourceCommands(UIGroupCommand.java:78)
at ..............
can anyone reply what might be the reason be?
Thank you.
Saravana.
Edited by: Saravana Parthiban Palaniswamy on Feb 4, 2009 1:22 PM
Edited by: Saravana Parthiban Palaniswamy on Feb 4, 2009 1:26 PMHi,
If u goes to room directory in collaboration, there is a tab called Restricted Rooms. End of the room name there is context menu if u click that, it will show the menu there you can see the option called Request Membership. If you click that, corresponding room owner will receive the mail if he/she enabled the mail properties.
If the answer helps your Question, provide the points.
Regards,
Kathiresan R -
MTOM throws NullPointerException
Hello,
I need to transfer large files (12Mb) of diferent types (.pdf, .jpg, .doc, etc). I changed the return type to DataHandler and tried to enable MTOM in my webservice, but when I enabled it, after the method is executed, system throws a NullPointerException.
I'm enabling MTOM with the annotation @MTOM, and if I just take off this annotation the webservice works correctly.
Do you know of any problem using MTOM with Java 1.6.0_10? Do you have a suggestion of a better way to transfer it?
ThanksTested this with JDK 1.4 and it works with the following changes:
Make these static:
static public Writer out;
static public void validateXml (String xmlSt)
and, of course adding:
import java.io.*;
import org.xml.sax.*;
import javax.xml.parsers.SAXParserFactory;
Then here is what I used to test it:
public class Test2 {
static public void main(String args[]){
System.out.println("Hi there");
String s = "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"> <html> <head> <title> Ho there </title> </head> <body> <h1> Hi there </h1> </body> </html>";
try {
xmlResHandler.validateXml(s);
}catch (Exception ex){
ex.printStackTrace();
}I think you problem make have to do with your management of the "out" Writer. -
Persistence.createEntityManagerFactory() throw NullPointerException in oc4j
Hi,
I am trying to use JPA(toplink essential) with EJB 2.0 spec using the DAO pattern. Outside the oc4j container all my DAO unit tests passes but when I run the same code inside oc4j the Persistence.createEntityManagerFactory() method throws a NPE. I verified that META-INF/persistence.xml file is available through the classpath inside the container but I don’t see any toplink specific logs in oc4j. Do I need to do anything to tell oc4j load up persistence.xml? I have been trying many different options in persistence.xml but I always get the same exception. Any help will be appreciated.
Code:
Persistence.createEntityManagerFactory(“default”, new HashMap());
Exception:
07/07/06 17:25:21 java.lang.NullPointerException
07/07/06 17:25:21 at oracle.toplink.essentials.ejb.cmp3.EntityManagerFacto
ryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:120)
07/07/06 17:25:21 at javax.persistence.Persistence.createEntityManagerFact
ory(Persistence.java:59)
07/07/06 17:25:21 at com.retek.rib.domain.hospital.dao.toplink.ToplinkSess
ionDispenser.currentEntityManager(ToplinkSessionDispenser.java:31)
Config File:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:
xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.
sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_
0.xsd">
<persistence-unit name="default" transaction-type="RESOURCE_LOCAL">
<!--persistence-unit name="ribPersistenceUnit" transaction-type="JTA"-->
<!--provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
</provider-->
<provider>
oracle.toplink.essentials.PersistenceProvider
</provider>
<!--jta-data-source>jdbc/OracleRibDs</jta-data-source-->
<class>com.retek.rib.domain.hospital.bo.impl.HospitalEntryImpl</class>
<class>com.retek.rib.domain.ribmessage.bo.impl.RibMessageFailureImpl</class>
<class>com.retek.rib.domain.ribmessage.bo.impl.RibMessageRoutingInfoImpl</class>
<class>com.retek.rib.domain.ribmessage.bo.impl.RibMessageHospitalRefImpl</class>
<!--properties>
<property name="toplink.jdbc.url" value="jdbc:derby://localhost:1527/testD
B"/>
<property name="toplink.jdbc.user" value="APP"/>
<property name="toplink.jdbc.driver" value="org.apache.derby.jdbc.ClientDr
iver"/>
<property name="toplink.jdbc.password" value="APP"/>
</properties-->
<properties>
<property name="toplink.jdbc.url" value="jdbc:oracle:thin:@pbora-lnx:1521:
orcl"/>
<property name="toplink.jdbc.user" value="stubby2"/>
<property name="toplink.jdbc.driver" value="oracle.jdbc.driver.OracleDrive
r"/>
<property name="toplink.jdbc.password" value="retek"/>
<property name="toplink.logging.level" value="FINE"/>
</properties>
<!--properties>
<!--property name="toplink.server.platform.class.name" value="oracle.topli
nk.essentials.platform.server.oc4j.Oc4jPlatform"/- ->
<property name="toplink.logging.level" value="FINE"/>
</properties-->
</persistence-unit>
</persistence>Hi,
I am trying to use JPA(toplink essential) with EJB 2.0 spec using the DAO pattern. Outside the oc4j container all my DAO unit tests passes but when I run the same code inside oc4j the Persistence.createEntityManagerFactory() method throws a NPE. I verified that META-INF/persistence.xml file is available through the classpath inside the container but I don’t see any toplink specific logs in oc4j. Do I need to do anything to tell oc4j load up persistence.xml? I have been trying many different options in persistence.xml but I always get the same exception. Any help will be appreciated.
Code:
Persistence.createEntityManagerFactory(“default”, new HashMap());
Exception:
07/07/06 17:25:21 java.lang.NullPointerException
07/07/06 17:25:21 at oracle.toplink.essentials.ejb.cmp3.EntityManagerFacto
ryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:120)
07/07/06 17:25:21 at javax.persistence.Persistence.createEntityManagerFact
ory(Persistence.java:59)
07/07/06 17:25:21 at com.retek.rib.domain.hospital.dao.toplink.ToplinkSess
ionDispenser.currentEntityManager(ToplinkSessionDispenser.java:31)
Config File:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:
xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.
sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_
0.xsd">
<persistence-unit name="default" transaction-type="RESOURCE_LOCAL">
<!--persistence-unit name="ribPersistenceUnit" transaction-type="JTA"-->
<!--provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
</provider-->
<provider>
oracle.toplink.essentials.PersistenceProvider
</provider>
<!--jta-data-source>jdbc/OracleRibDs</jta-data-source-->
<class>com.retek.rib.domain.hospital.bo.impl.HospitalEntryImpl</class>
<class>com.retek.rib.domain.ribmessage.bo.impl.RibMessageFailureImpl</class>
<class>com.retek.rib.domain.ribmessage.bo.impl.RibMessageRoutingInfoImpl</class>
<class>com.retek.rib.domain.ribmessage.bo.impl.RibMessageHospitalRefImpl</class>
<!--properties>
<property name="toplink.jdbc.url" value="jdbc:derby://localhost:1527/testD
B"/>
<property name="toplink.jdbc.user" value="APP"/>
<property name="toplink.jdbc.driver" value="org.apache.derby.jdbc.ClientDr
iver"/>
<property name="toplink.jdbc.password" value="APP"/>
</properties-->
<properties>
<property name="toplink.jdbc.url" value="jdbc:oracle:thin:@pbora-lnx:1521:
orcl"/>
<property name="toplink.jdbc.user" value="stubby2"/>
<property name="toplink.jdbc.driver" value="oracle.jdbc.driver.OracleDrive
r"/>
<property name="toplink.jdbc.password" value="retek"/>
<property name="toplink.logging.level" value="FINE"/>
</properties>
<!--properties>
<!--property name="toplink.server.platform.class.name" value="oracle.topli
nk.essentials.platform.server.oc4j.Oc4jPlatform"/- ->
<property name="toplink.logging.level" value="FINE"/>
</properties-->
</persistence-unit>
</persistence> -
Crystal Report Fails on Large Jobs
Post Author: Lynn
CA Forum: Crystal Reports
We have developed user software in VB6 using Crystal 8.5. We use SQL Server for the database and a DSN for the report connection. Our problem is that when a large print job is sent to the printer, it sometimes lock up. The report we have specifically been testing prints a check and has two sub reports which print the detail invoices being paid. From some of our development machines it works fine producing 30 - 50 checks with no hitch, from others only the first 1 - 6 checks are printed and then the windows printing system hangs as well as the application. We did have a customer using the software and the driver for the printer was HP PCL6. We found that changing the driver to HP PCL5 larger data can be printed. This, however, didn't solve a client who had HP Laser Jet 4350. The PCL5 didn't change the situation. Our software has been in distribution for about three years and these print issues have only cropped up in the last few months. We have seven different databases, applications and hundreds of reports. This type of situation is occuring in all seven. We have been fighting this for a while. Please any response would be appreciated!
LynnPost Author: Lee
CA Forum: Crystal Reports
Hi Lynn,
Have you found a solution to this problem? We are having the exact same issue. Crystal 8.0 with a VB6 app. When the print job is being spooled it simply locks up. Sometimes you can do one or two jobs before this happens. Other times it happens right off the bat. HP LaserJet 2100 printers with PCL 5 and 6 drivers (tried both) Lee -
Weblogic throws NullPointerException when using ServiceControl.setTimeout
We are invoking a SOAP service via a com.bea.control.ServiceControl that was generated from a WSDL (right click WSDL, Generate Service Control) using Weblogic 8.1.6.
SOAP service execution is successful using an http and https endpoint. However, when setting a timeout via ServiceControl.setTimeout(int millisecods) method, the Weblogic API is throwing a NullPointerException when using an https endpoint. When using an http endpoint with the setTimeout method execution is successful.
DEBUG com.bea.wlw.runtime.jws.call.SoapHttpCall [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: opening connection to https://[... edit removed ...]
DEBUG com.bea.wlw.runtime.jws.call.SoapHttpCall [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: Response generation exception
Throwable: java.lang.NullPointerException
Stack Trace:
java.lang.NullPointerException
at weblogic.net.http.HttpsClient.openWrappedSSLSocket(HttpsClient.java:455)
at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:235)
at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:389)
at weblogic.net.http.HttpsClient.<init>(HttpsClient.java:209)
at weblogic.net.http.HttpClient.New(HttpClient.java:228)
at weblogic.net.http.HttpsURLConnection.getHttpClient(HttpsURLConnection.java:246)
at weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:217)
at weblogic.net.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:189)
at com.bea.wlw.runtime.jws.call.SoapHttpCall.invoke(SoapHttpCall.java:179)
at com.bea.wlw.runtime.jws.call.SoapHttpCall.invoke(SoapHttpCall.java:80)
at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1288)
at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1155)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:433)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:406)
at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388)
DEBUG com.bea.wlw.runtime.jws.call.SoapFault [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: SoapFault exception throwable e
DEBUG com.bea.wlw.runtime.jws.call.SoapHttpCall [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: response code=0, responseMsg=null
DEBUG com.bea.wlw.runtime.jws.call.SoapHttpCall [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: closed connection to https://[... edit removed ...]
WARN WLW.INVOKE.[... edit removed ...] [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: Id=[... edit removed id ...] Method=[... edit removed method ...]; Failure=com.bea.control.ServiceControlException: SERVICE FAULT:
Code:java.lang.NullPointerException
String:null
Detail:
END SERVICE FAULT
ERROR [... edit removed ...]
[ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: ServiceControlException
com.bea.control.ServiceControlException: SERVICE FAULT:
Code:java.lang.NullPointerException
String:null
Detail:
END SERVICE FAULT
at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1268)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:433)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:406)
at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388)Thanks for the suggestion. But with -DUseSunHttpHandler=true the Weblogic API is throwing a ClassCastException with or without the timeout value set.
Failure=com.bea.control.ServiceControlException: SERVICE FAULT:
Code:java.lang.ClassCastException
String:null
Detail:
END SERVICE FAULT
ERROR: ServiceControlException
com.bea.control.ServiceControlException: SERVICE FAULT:
Code:java.lang.ClassCastException
String:null
Detail:
END SERVICE FAULT
at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1268)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:433)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:406)
at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388) -
Java Mail throws Connect failed error in Oracle 11g Enterprise Edition
Hi,
I am using Oracle 11g Enterprise edition.I have a java class which is used for reading outlook 2010 inbox and download attachments from mails .For Connecting to OutLook from oracle i am using "POP3S" protocol in my java class. Which is working fine until my database is oracle-11g standard edition. Last week we are upgraded our database from oracle 11g standard edition to oracle 11g enterprise edition after that i can't connect to mail server through my java class which throws an error as follows.
DEBUG: setDebug: JavaMail version 1.4.4
DEBUG: getProvider() returning javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc]
DEBUG POP3: mail.pop3s.rsetbeforequit: false
DEBUG POP3: mail.pop3s.disabletop: false
DEBUG POP3: mail.pop3s.forgettopheaders: false
DEBUG POP3: mail.pop3s.cachewriteto: false
DEBUG POP3: mail.pop3s.filecache.enable: false
DEBUG POP3: mail.pop3s.keepmessagecontent: false
DEBUG POP3: mail.pop3s.starttls.enable: true
DEBUG POP3: mail.pop3s.starttls.required: false
DEBUG POP3: mail.pop3s.apop.enable: false
DEBUG POP3: mail.pop3s.disablecapa: false
DEBUG POP3: connecting to host "194.42.133.180", port 110, isSSL true
javax.mail.MessagingException: Connect failed;
nested exception is:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:210)
at javax.mail.Service.connect(Service.java:295)
at javax.mail.Service.connect(Service.java:176)
at GetNoonReport.Connect2Mailserver(GetNoonReport:338)
at GetNoonReport.ReadMail(GetNoonReport:103)
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:501)
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1025)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1038)
at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:507)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:238)
at com.sun.mail.pop3.Protocol.<init>(Protocol.java:107)
at com.sun.mail.pop3.POP3Store.getPort(POP3Store.java:261)
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:206)
... 4 more
Is Oracle Enterprise Edition supports "POP3S" protocol?, Or Enterprise edition needs any additional configuration for establishing outlook connection with "pop3s" ?.
Any help is appreciated
Regards ,
Nisanth907833 wrote:
Hi,
I am using Oracle 11g Enterprise edition.I have a java class which is used for reading outlook 2010 inbox and download attachments from mails .For Connecting to OutLook from oracle i am using "POP3S" protocol in my java class. Which is working fine until my database is oracle-11g standard edition. Last week we are upgraded our database from oracle 11g standard edition to oracle 11g enterprise edition after that i can't connect to mail server through my java class which throws an error as follows.
I suspect root cause is with Java not Oracle.
Oracle RDBMS does NOT speak any "protocol" except SQL natively. -
Af:inputListOfValues without values throws NullPointerException
Hello!
In some cases we have an af:inputListOfValues without any values, due to restrictions in the query. Unfortunately, a NullPointerException is thrown in this case. Actually, we are using JDev 11.1.1.5.
Is there any solution or workaround to allow empty af:inputListOfValues?
Regards,
Christoph
Edited by: mephistopheles on Sep 3, 2012 11:47 PMHi,
can you verify with JDeveloper 11.1.1.6 and provide a reproducible set of steps if it reproduces? Also I am wondering if the NPE is throw when you close the LOV or when you submit the form later
Frank -
Edit locally throws NullPointerException
Hi All,
While doing EditLocally in a Custom Repository Manager,it throws a null pointer Exception.
As per the Repository Manager Implementation
log ,we dont any exception. So as there is no such relevent error realted to repository manager in default.trc file.
RF doesnt pass call to setContent() method of ContentManager.
We failed to do so in Nw04 SPS11 and Nw04 SPS14.
Where as we can able to edit successfully in NW04 SPS09.
Regards
Arati
Following is the stack trace we got in iview of edit locally
Please wait
Your request is being processed
System Error
An exception occurred during the program execution. Below you will find technical information pertaining to this exception that you might want to forward to your system administrator.
Exception Class
Call Stack java.lang.NullPointerException
at com.sapportals.wcm.control.edit.ResourceClientSideEditControl.renderLockedByUser(ResourceClientSideEditControl.java:1029)
at com.sapportals.wcm.control.edit.ResourceClientSideEditControl.renderIsLockedByOther(ResourceClientSideEditControl.java:344)
at com.sapportals.wcm.control.edit.ResourceClientSideEditControl.renderCurrentConditions(ResourceClientSideEditControl.java:302)
at com.sapportals.wcm.control.edit.ResourceClientSideEditControl.render(ResourceClientSideEditControl.java:191)
at com.sapportals.wdf.layout.HorizontalLayout.renderControls(HorizontalLayout.java:42)
at com.sapportals.wdf.stack.Pane.render(Pane.java:155)
at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:67)
at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:67)
at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:67)
at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:67)
at com.sapportals.wdf.WdfCompositeController.internalRender(WdfCompositeController.java:696)
at com.sapportals.wdf.WdfCompositeController.buildComposition(WdfCompositeController.java:664)
at com.sapportals.htmlb.AbstractCompositeComponent.preRender(AbstractCompositeComponent.java:33)
at com.sapportals.htmlb.Container.preRender(Container.java:118)
at com.sapportals.htmlb.Container.preRender(Container.java:118)
at com.sapportals.htmlb.Container.preRender(Container.java:118)
at com.sapportals.portal.htmlb.PrtContext.render(PrtContext.java:413)
at com.sapportals.htmlb.page.DynPage.doOutput(DynPage.java:237)
at com.sapportals.wcm.portal.component.base.KMControllerDynPage.doOutput(KMControllerDynPage.java:130)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
at com.sapportals.wcm.portal.component.base.ControllerComponent.doContent(ControllerComponent.java:73)
at com.sapportals.portal.prt.component.AbstractPortalComponent.doRefresh(AbstractPortalComponent.java:355)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:188)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.pb.IviewModeProxy.doContent(IviewModeProxy.java:20)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
Report ErrorSome more behavior of this problem
1)when try to edit locally>file download started and open the file in approprite application>and in the KM iview got the null pointer exception(which usually have check in now, check in later, cancel local editing buttons)
2) When resume local editing...nothing happens. Even doesnt through error in iview
3) when do a lock explicitly to any document- through selection->lock,it puts a check_out_by_me symbol rather than lock_by_me symbol
Please any body help to resolve the issue,
Regards
arati -
Starting soa_server1 server throws NullPointerException
Hi
I installed SOA Suite 11.1.1.2 on Oracle Red Hat 5. When I start soa_server1 for the first time I get:
Caused By: java.lang.NullPointerException
at oracle.fabric.BPELServiceEngine.getDaoFactory(BPELServiceEngine.java:
105)
at com.collaxa.cube.engine.CubeEngineBase.setCubeServiceEngine(CubeEngin
eBase.java:230)
at com.collaxa.cube.engine.CubeEngineBase.setServerManager(CubeEngineBas
e.java:222)
at com.collaxa.cube.admin.ServerManager.__init(ServerManager.java:130)
at com.collaxa.cube.admin.ServerManager.init(ServerManager.java:117)
Truncated. see log file for complete stacktrace
Regards,
Néstor BoscánHi
I installed SOA Suite 11.1.1.2 on Oracle Red Hat 5. When I start soa_server1 for the first time I get:
Caused By: java.lang.NullPointerException
at oracle.fabric.BPELServiceEngine.getDaoFactory(BPELServiceEngine.java:
105)
at com.collaxa.cube.engine.CubeEngineBase.setCubeServiceEngine(CubeEngin
eBase.java:230)
at com.collaxa.cube.engine.CubeEngineBase.setServerManager(CubeEngineBas
e.java:222)
at com.collaxa.cube.admin.ServerManager.__init(ServerManager.java:130)
at com.collaxa.cube.admin.ServerManager.init(ServerManager.java:117)
Truncated. see log file for complete stacktrace
Regards,
Néstor Boscán -
ODI Datastore Length differs with the DB length -IKM throws value too large
ODI datastore when reverse engineered shows different length to that of the datalength in the actual db.
ODI Datastore column details: char(44)
Target db column : varchar2(11 char)
The I$ table inserts char44 into varchar2(11char) in the target. As the source column value is empty ODI throws
"ORA-12899: value too large for column (actual: 44, maximum: 11).Yes. I have reverse engineered the target also.
source datatype varchar2(11 char)
After Reverse Engineering
odi datstore datatype-Source : char(44)
target datatype: varchar2(11 char)
after Reverse Engineering
odi datstore datatype-Target : char(44)
Since the target datastore is char(44) in ODI Datastore and the values in the source column are null/spaces, the IKM inserts them into the target Column which is of 11 Char and the above mentioned value too large error occurs.
There are no junk values seen on the column and I tried with substr(column,1,7) and
Trim functions too and it does not help. -
XMLReader throws NullPointerException
have developed a CSV to XML parser using a JAXP with SAX Events to parse the CSV file into a DOM tree.
Well inside the parse() method I have the following code":
public void parse(InputSource input) throws IOException, SAXException
BufferedReader br = null;
if( input.getCharacterStream() != null )
br = new BufferedReader( input.getCharacterStream() );
else if( input.getByteStream() != null )
br = new BufferedReader( new InputStreamReader( input.getByteStream() ) );
else if( input.getSystemId() != null )
URL url = new URL( input.getSystemId() );
br = new BufferedReader( new InputStreamReader( url.openStream() ) );
else
throw new SAXException( "Objeto InputSource invalido" );
ContentHandler ch = getContentHandler();
ch.startDocument();
ch.startElement( "", "", "file", new AttributesImpl() );
this.parseInput( br );
ch.endElement( "", "", "file" );
ch.endDocument();
Problem is that whenever the app gets to the ch.startDocument() statement it throws an java.lang.NullPointerExecption. I have no idea why this is happening, I have tested the very same code with Xalan 2 and Xercer 2 parsers and it works without problems. But using the oracle xml parser v2 throws the Exception.
Is this a bug? should I set tome of the Transformer's attributes to an specifica value to avoid this? Where could I find more info on processing SAX events?
Thanks,
Fedrohave developed a CSV to XML parser using a JAXP with SAX Events to parse the CSV file into a DOM tree.
Well inside the parse() method I have the following code":
public void parse(InputSource input) throws IOException, SAXException
BufferedReader br = null;
if( input.getCharacterStream() != null )
br = new BufferedReader( input.getCharacterStream() );
else if( input.getByteStream() != null )
br = new BufferedReader( new InputStreamReader( input.getByteStream() ) );
else if( input.getSystemId() != null )
URL url = new URL( input.getSystemId() );
br = new BufferedReader( new InputStreamReader( url.openStream() ) );
else
throw new SAXException( "Objeto InputSource invalido" );
ContentHandler ch = getContentHandler();
ch.startDocument();
ch.startElement( "", "", "file", new AttributesImpl() );
this.parseInput( br );
ch.endElement( "", "", "file" );
ch.endDocument();
Problem is that whenever the app gets to the ch.startDocument() statement it throws an java.lang.NullPointerExecption. I have no idea why this is happening, I have tested the very same code with Xalan 2 and Xercer 2 parsers and it works without problems. But using the oracle xml parser v2 throws the Exception.
Is this a bug? should I set tome of the Transformer's attributes to an specifica value to avoid this? Where could I find more info on processing SAX events?
Thanks,
Fedro -
TransformerHandler throws OutOfMemoryError with large xml files
i'm using TransformerHandler to convert any content to SAX events and transform it using XSLT into an XML file.
the problem is that for large amount of content i get a OutOfMemoryError.
it seams that the content is kept in memory and only flushed when i call handler.endDocument();
i tried using auto flush writers as the Result, or call the flush() method myself, but nothing.
here is the example - pls help!
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.sax.SAXTransformerFactory;
import javax.xml.transform.sax.TransformerHandler;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;
import org.xml.sax.helpers.AttributesImpl;
public class Test
* test handler memory usage
* @param loops no of loops - when large enogh - OutOfMemoryError !!!
* @param xsltFilePath xslt file
* @param targetXmlFile output xml file
* @throws Exception
public static void testHandlerMemUsage(int loops, String xsltFilePath, String targetXmlFile)throws Exception
//verify SAX support
TransformerFactory factory = TransformerFactory.newInstance();
if(!factory.getFeature(SAXTransformerFactory.FEATURE))
throw new UnsupportedOperationException("SAX tranformations not supported");
TransformerHandler handler=
((SAXTransformerFactory)factory).newTransformerHandler(new StreamSource(xsltFilePath));
handler.setResult(new StreamResult(targetXmlFile));
handler.startDocument();
handler.startElement(null,"root","root",new AttributesImpl());
//loop
for(int i=0;i<loops;i++)
handler.startElement(null,"el-"+i,"el-"+i,new AttributesImpl());
handler.characters("value".toCharArray(),0,"value".length());
handler.endElement(null,"el-"+i,"el-"+i);
handler.endElement(null,"root","root");
//System.out.println("end document");
//only after endDocument() starts to print..
handler.endDocument();
//System.out.println("ended document");
public static void main(String[] args)throws Exception
System.out.println("--starting..");
testHandlerMemUsage(500000,"/copy.xslt","/testHandlerMemUsage.xml");
System.out.println("--we are still here -- increase loops..");
}Did you try increasing memeory when starting java with the -Xmx parameter? You know that java uses only 64MB by default, so you might need to increase it to e.g. 256MB for your XML to work.
Maybe you are looking for
-
In this article, http://blogs.windows.com/itpro/2013/12/02/announcing-mdop-2013-r2/ I see mention of an Office version called "Office 2013 ProPlus App-V Package". Is this a download? I don't see it available as one when I login to my VLSC site.
-
Macbook pro - no audio - no option for internal speakers in sound prefs.
No audio will play from my 2011 macbook pro. It is fully updated. In sound preferences, there is no 'internal speakers' option to select in output, and no 'internal microphone' in input. No red light in headphone jack. Any solutions?
-
Hi ! Can anybody suggest me that, is there any TOAD versions (free versions) which supports Oracle 11g Database ? Thanks in advance. Aji
-
Calling subscreen which is part of tabstrip control
I am trying to call a subscreen which is part of a tab control, but i keep getting the error message: "." or "ID....FIELD..." expected after SUBSCREEN. Here is the code: CALL SUBSCREEN tab2 including zd_tabstrip 102. What is my mistake?
-
TS1503 can't back up my iphone 4.
message says that there is not enough disc space on my computer, My phone is conected by USB. I get the same message when I try to back up to icloud. help please?