A surprising exception when call the EJB
OS:Windows-2000
J2EE-Server:J2sdkee1.2.1
Database:SQLServer-2000
The CMP-bean---UserEJB has been deployed successfully.
Main client program:
UserHome userHome=(UserHome)PortableRemoteObject.narrow(objectRef,ejb.UserHome.class);
User user=userHome.create(userid,password,name);
When running the client program,exception occured like this:---
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.RemoteException: Transaction aborted (possibly due to transacti
on time out).; nested exception is:
javax.transaction.RollbackException
java.rmi.RemoteException: Transaction aborted (possibly due to transaction time
out).; nested exception is:
javax.transaction.RollbackException
javax.transaction.RollbackException
<<no stack trace available>>
But a new data-row has been inserted into the table successfully.
What on earth caused that? And how to solve this problem?
Any reply is welcome.Thanks!
I have only a partial solution (if you find it all I'll be happy to know myself...)
I had the same problem. It occurs that the problem is related to the definitions of transactions attributes in the table of the transaction tab. go to this tab and change the attribute from "required" to "supported" (I assume you have "required" and it should not be) in the method which causes the exception.
hope this helped.
Similar Messages
-
Netweaver throwing following exception when calling the ProductionOrder WS
Hi,
when calling the ProductionOrder web service I get the following exception from the system:
nested exception is: com.sap.engine.services.ts.exceptions.BaseSystemException: Exception ( SAP J2EE Engine JTA Transaction : [0ffffffaa60fffffffe00103e] ) in rollback.
The system was migrated from Netweaver CE 7.1 SP4 to SP5 before the error started to occur.
Any ideas how to fix this? Start/Stopping ME didn't do the trick.
Kind Regards,
Christoph MertinsYes the stack trace is:
System exception
[EXCEPTION]
javax.ejb.EJBException: nested exception is: com.sap.engine.services.ts.exceptions.BaseSystemException: Exception ( SAP J2EE Engine JTA Transaction : [0ffffffaa60fffffffe0013ffffffb6] ) in rollback.
com.sap.engine.services.ts.exceptions.BaseSystemException: Exception ( SAP J2EE Engine JTA Transaction : [0ffffffaa60fffffffe0013ffffffb6] ) in rollback.
at com.sap.engine.services.ts.jta.impl.TransactionImpl.rollback(TransactionImpl.java:921)
at com.sap.engine.services.ts.jta.impl.TransactionManagerImpl.rollback(TransactionManagerImpl.java:486)
at com.sap.engine.services.ejb3.runtime.impl.TransactionAttributeHandler$Required.error(TransactionAttributeHandler.java:296)
at com.sap.engine.services.ejb3.runtime.impl.TransactionAttributeHandler$TransactionAttributeErrorsHandler.error(TransactionAttributeHandler.java:130)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:40)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:22)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:16)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:21)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:16)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:133)
at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164)
at $Proxy3782.create(Unknown Source)
at com.sap.me.productdefinition.wserpimpl.productionOrder.ProductionOrderPersister.createOrUpdate(ProductionOrderPersister.java:133)
at com.sap.me.productdefinition.wserpimpl.GenericVOServiceImpl.createOrUpdate(GenericVOServiceImpl.java:57)
at com.sap.me.productdefinition.wserpimpl.productionOrder.ProductionOrderServiceHandlerAdapter.updateProductionOrder(ProductionOrderServiceHandlerAdapter.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.visiprise.frame.proxy.DefaultInterceptor.intercept(DefaultInterceptor.java:31)
at com.visiprise.frame.proxy.InterceptorChain.process(InterceptorChain.java:48)
at com.visiprise.frame.proxy.ProxyContext.process(ProxyContext.java:67)
at com.visiprise.frame.proxy.AdviceInterceptor.intercept(AdviceInterceptor.java:45)
at com.visiprise.frame.proxy.InterceptorChain.process(InterceptorChain.java:48)
at com.visiprise.frame.proxy.GenericSOProxy.invoke(GenericSOProxy.java:81)
at $Proxy3884.updateProductionOrder(Unknown Source)
at com.sap.me.production.ws.ProductionOrderService.updateProductionOrder(ProductionOrderService.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.sap.engine.services.webservices.runtime.JavaClassImplementationContainer.invokeMethod(JavaClassImplementationContainer.java:96)
at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process0(RuntimeProcessingEnvironment.java:525)
at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.preProcess(RuntimeProcessingEnvironment.java:494)
at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process(RuntimeProcessingEnvironment.java:260)
at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPostWOLogging(ServletDispatcherImpl.java:178)
at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPostWithLogging(ServletDispatcherImpl.java:114)
at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:72)
at com.sap.engine.services.webservices.servlet.SOAPServletExt.doPost(SOAPServletExt.java:90)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:162)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:81)
at com.sap.me.webservice.ClearServiceContextFilter.doFilter(ClearServiceContextFilter.java:28)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:73)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:461)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:298)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:397)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:48)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:83)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:243)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:78)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:43)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:428)
at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:247)
at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:45)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:327)
Caused by: com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException is thrown by the pooled connection: com.sap.sql.log.OpenSQLException: Connection object com.sap.sql.jdbc.vendor.VendorConnectionHandle@aa1bf8e has already been closed.
at com.sap.engine.services.dbpool.spi.LocalTXManagedConnectionImpl.throwBaseResourceException(LocalTXManagedConnectionImpl.java:89)
at com.sap.engine.services.dbpool.spi.LocalTXManagedConnectionImpl.rollback(LocalTXManagedConnectionImpl.java:389)
at com.sap.engine.services.ts.jta.impl.TransactionImpl.rollback(TransactionImpl.java:813)
... 83 more
Caused by: com.sap.sql.log.OpenSQLException: Connection object com.sap.sql.jdbc.vendor.VendorConnectionHandle@aa1bf8e has already been closed.
at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:83)
at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:122)
at com.sap.sql.jdbc.vendor.VendorConnectionHandle.validate(VendorConnectionHandle.java:383)
at com.sap.sql.jdbc.vendor.VendorConnectionHandle.setAutoCommit(VendorConnectionHandle.java:38)
at com.sap.engine.services.dbpool.spi.LocalTXManagedConnectionImpl.rollback(LocalTXManagedConnectionImpl.java:386)
... 84 more -
NO_PERMISSION Exception when calling secured EJB-methods
In WL6.1, I have an Ejb with secured methods. The (Swing) client application accesses the Ejb through rmi-iiop using the JDK1.3.1 Orb.
Unfortunately, it seems that the caller identity (which was supplied in the InitialContext lookup) is not propagated
to the server: any call to a secured method
fails with a CORBA NO_PERMISSION Exception.
Non secured methods work fine.
Using the t3 protocol the program also works fine, but that would require
the 25Mb weblogic.jar on all clients,
which is unattainable for us.
Any ideas how this situation can be corrected?
-Allard SiemelinkI am still getting the NO_PERMISSION Exception when using "weblogic.jndi.WLInitialContextFactory".
We use Sun's JRE, version 1.3.1_01.
Am I forgetting something?
My code is as follows:
InitialContext context = null;
try {
Hashtable ht = new Hashtable();
ht.put(InitialContext.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
ht.put(InitialContext.PROVIDER_URL, "iiop://localhost:80");
ht.put(InitialContext.SECURITY_PRINCIPAL, "system");
ht.put(InitialContext.SECURITY_CREDENTIALS, "system_password");
context = new InitialContext(ht);
Object objHome = context.lookup(EJB_NAME);
MyHome myHome = (MyHome)PortableRemoteObject.narrow(objHome, MyHome.class);
MyRemote myRemote = myHome.create();
//NEXT LINE Crashes when method is secured:
myRemote.securedMethod();
finally {
if (context!=null) context.close();
Andy Piper <[email protected]> wrote:
Allard Siemelink <[email protected]> writes:
In WL6.1, I have an Ejb with secured methods. The (Swing) client applicationaccesses the Ejb through rmi-iiop using the JDK1.3.1 Orb.
Unfortunately, it seems that the caller identity (which was suppliedin the InitialContext lookup) is not propagated
to the server: any call to a secured method
fails with a CORBA NO_PERMISSION Exception.Make sure you are using WLInitialContextFactory and not
CNCtxFactory. Only the former will give you security.
andy -
Get Inaccessible WSDL Exception when call the CRMOD WS
Hi All,
I download the Contact general WSDL, then Generate Web Service Proxy with JAX-WS(Version = Oracle WebServices (11.1.1.0.0, build 100408.1504.05443)) in JDeveloper(11.1.1.0).
Then I wrote the following code to invoke the ContactInsert method.
public class ContactClient
@WebServiceRef
private static Contact_Service contact_Service;
final static QName qName = new QName("urn:crmondemand/ws/ecbs/contact/", "Contact");
private static String server = "https://secure-ausomxdsa.crmondemand.com/Services/Integration;";
public static void main(String [] args) throws Exception
File kstore = new File("D:\\Oracle\\Middleware\\jdk160_18\\jre\\lib\\security\\jssecacerts");
boolean exists = kstore.exists();
if(!exists) {
throw new FileNotFoundException(kstore.getName());
System.setProperty("javax.net.ssl.trustStore", kstore.getAbsolutePath());
URL url = getWSDLURL(server);
System.out.println(url.toString());
Contact_Service contact_Service = new Contact_Service(url, qName);
Contact contact = contact_Service.getContact();
ContactInsertInput contactInsertInput = new ContactInsertInput();
contactInsertInput.setListOfContact(prepareInsertData());
contactInsertInput.setEcho("off");
ContactInsertOutput contactInsertOutput = new ContactInsertOutput();
contactInsertOutput = contact.contactInsert(contactInsertInput);
getOutPutResult(contactInsertOutput);
private static URL getWSDLURL (String urlStr) throws Exception{
GetSessionId getSessionId = new GetSessionId();
URL url = null;
try {
url = new URL(urlStr+"JSESSIONID="+getSessionId.getSessionId());
} catch (MalformedURLException e) {
e.printStackTrace();
throw new RuntimeException(e);
return url;
private static ListOfContactData prepareInsertData(){
ListOfContactData listOfContactData = new ListOfContactData();
ContactData contactData = new ContactData();
contactData.setContactFirstName("Joerg");
contactData.setContactLastName("Wallmueller");
contactData.setExternalSystemId("1234");
listOfContactData.getContact().add(contactData);
return listOfContactData;
private static void getOutPutResult(ContactInsertOutput result){
ListOfContactData listOfContactData = new ListOfContactData();
listOfContactData = result.getListOfContact();
ContactData contactData = new ContactData();
contactData = listOfContactData.getContact().get(0);
System.out.println(contactData.getCustomerId());
Then I run the script, get the error:
Exception in thread "main" com.sun.xml.internal.ws.wsdl.parser.InaccessibleWSDLException: 2 counts of InaccessibleWSDLException.
java.io.IOException: Server returned HTTP response code: 400 for URL: https://secure-ausomxdsa.crmondemand.com/Services/Integration;jsessionid=7c48ff64e251b2dc4667415290e54afbc2dd3762264182ea62b35aec974aa1b5.e3iRbxmSbx50ax8NbxuSbN8Se0
java.io.IOException: Server returned HTTP response code: 400 for URL: https://secure-ausomxdsa.crmondemand.com/Services/Integration;jsessionid=7c48ff64e251b2dc4667415290e54afbc2dd3762264182ea62b35aec974aa1b5.e3iRbxmSbx50ax8NbxuSbN8Se0?wsdl
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(Unknown Source)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source)
at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(Unknown Source)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source)
at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(Unknown Source)
at javax.xml.ws.Service.<init>(Unknown Source)
at crmondemand.ws.ecbs.user.User_Service.<init>(User_Service.java:42)
at ws.crmod.oracle.UserWSInvoke.main(UserWSInvoke.java:33)
Any body can tell me why the response is 400? It takes me a lot of time. Thanks
帖子经 [email protected]编辑过Hi All,
I download the Contact general WSDL, then Generate Web Service Proxy with JAX-WS(Version = Oracle WebServices (11.1.1.0.0, build 100408.1504.05443)) in JDeveloper(11.1.1.0).
Then I wrote the following code to invoke the ContactInsert method.
public class ContactClient
@WebServiceRef
private static Contact_Service contact_Service;
final static QName qName = new QName("urn:crmondemand/ws/ecbs/contact/", "Contact");
private static String server = "https://secure-ausomxdsa.crmondemand.com/Services/Integration;";
public static void main(String [] args) throws Exception
File kstore = new File("D:\\Oracle\\Middleware\\jdk160_18\\jre\\lib\\security\\jssecacerts");
boolean exists = kstore.exists();
if(!exists) {
throw new FileNotFoundException(kstore.getName());
System.setProperty("javax.net.ssl.trustStore", kstore.getAbsolutePath());
URL url = getWSDLURL(server);
System.out.println(url.toString());
Contact_Service contact_Service = new Contact_Service(url, qName);
Contact contact = contact_Service.getContact();
ContactInsertInput contactInsertInput = new ContactInsertInput();
contactInsertInput.setListOfContact(prepareInsertData());
contactInsertInput.setEcho("off");
ContactInsertOutput contactInsertOutput = new ContactInsertOutput();
contactInsertOutput = contact.contactInsert(contactInsertInput);
getOutPutResult(contactInsertOutput);
private static URL getWSDLURL (String urlStr) throws Exception{
GetSessionId getSessionId = new GetSessionId();
URL url = null;
try {
url = new URL(urlStr+"JSESSIONID="+getSessionId.getSessionId());
} catch (MalformedURLException e) {
e.printStackTrace();
throw new RuntimeException(e);
return url;
private static ListOfContactData prepareInsertData(){
ListOfContactData listOfContactData = new ListOfContactData();
ContactData contactData = new ContactData();
contactData.setContactFirstName("Joerg");
contactData.setContactLastName("Wallmueller");
contactData.setExternalSystemId("1234");
listOfContactData.getContact().add(contactData);
return listOfContactData;
private static void getOutPutResult(ContactInsertOutput result){
ListOfContactData listOfContactData = new ListOfContactData();
listOfContactData = result.getListOfContact();
ContactData contactData = new ContactData();
contactData = listOfContactData.getContact().get(0);
System.out.println(contactData.getCustomerId());
Then I run the script, get the error:
Exception in thread "main" com.sun.xml.internal.ws.wsdl.parser.InaccessibleWSDLException: 2 counts of InaccessibleWSDLException.
java.io.IOException: Server returned HTTP response code: 400 for URL: https://secure-ausomxdsa.crmondemand.com/Services/Integration;jsessionid=7c48ff64e251b2dc4667415290e54afbc2dd3762264182ea62b35aec974aa1b5.e3iRbxmSbx50ax8NbxuSbN8Se0
java.io.IOException: Server returned HTTP response code: 400 for URL: https://secure-ausomxdsa.crmondemand.com/Services/Integration;jsessionid=7c48ff64e251b2dc4667415290e54afbc2dd3762264182ea62b35aec974aa1b5.e3iRbxmSbx50ax8NbxuSbN8Se0?wsdl
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(Unknown Source)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source)
at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(Unknown Source)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source)
at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(Unknown Source)
at javax.xml.ws.Service.<init>(Unknown Source)
at crmondemand.ws.ecbs.user.User_Service.<init>(User_Service.java:42)
at ws.crmod.oracle.UserWSInvoke.main(UserWSInvoke.java:33)
Any body can tell me why the response is 400? It takes me a lot of time. Thanks
帖子经 [email protected]编辑过 -
TimedOutException exception when call an EJB in an other container
Hi there,
I am encountering a strange problem after I moved from WLS5.1 to
WLS6.1SP2.
There are two 6.1 app servers and two stateless session beans involved
in our problem. The scenario is the following:
EJB1 has RequiresNew on all methods as TRX attribute
EJB2 has NotSupported on all methods as TRX attribute
client calls method_1 on EJB1 in Server1
EBJ1 method_1 calls method_2 on EJB2 in Server2
EJB1 method returns
The client does not return from his call to EJB1 until a
'weblogic.transaction.internal.TimedOutException' occurs on the
server. In the debugger I can see that method_1 in EJB1 and method_2
in EJB_2 actually return successfully.
This behaviour can easily be fixed by setting the TRX attributes to
NotSupported on EJB1 as well, but I think this is not correct.
Any ideas?
Thanks
JuergHi Li,
If you would like to keep the generated source you start your oc4j using this command.
java -jar -DKeepWrapperCode=true oc4j.jar
And the null pointer might not have occured from the the create method, but i feel the home object is null in the thread which is calling this method.
--Shrini -
Server error when calling the DatabaseController.replaceConnection() method
<p>I am receiving the error message below when calling the DatabaseController.replaceConnection() method. Can anyone tell me what may be the cause of this? The code being executed is below the error message.
</p>
<p>
Thank you.
</p>
<pre>
A server error occured while processing the CrystalReport object, wfr.rpt (AVTJyRKrfDxKtXX31l5E9Ek), from the CMS.
Unable to connect to the server: ATHENA.ReportApplicationServer.
--- java.lang.Boolean cannot be cast to java.lang.String
Stack Trace:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Unable to connect to the server:
ATHENA.ReportApplicationServer. - java.lang.Boolean cannot be cast to java.lang.String--
Error code:-2147217387 Error code name:connectServer
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.
throwReportSDKServerException(Unknown Source)
at com.crystaldecisions.sdk.occa.managedreports.ras.internal.CECORBACommunicationAdapter.
request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.DatabaseController.replaceConnection(Unknown Source)
at aiConfigUtility.cmdlline.ImportExportBiarFile.changeReportDataSource(ImportExportBiarFile.java:561)
at aiConfigUtility.cmdlline.ImportExportBiarFile.processBiarFile(ImportExportBiarFile.java:726)
</pre>
<br />
<pre>
private void test(String reportName)
throws SDKException, ReportSDKException, java.io.IOException
IInfoObjects newInfoObjects;
IInfoObject reportObj;
ReportClientDocument clientDoc = new ReportClientDocument();
DatabaseController dc;
PropertyBag pBag;
PropertyBag logonProps;
ConnectionInfo newConInfo;
ConnectionInfo oldConInfo;
ConnectionInfos conInfos;
int connOptions = DBOptions._ignoreCurrentTableQualifiers + DBOptions._doNotVerifyDB; //0;
Fields connFields = null;
String queryStr = "Select * From CI_INFOOBJECTS " +
"Where SI_NAME='wfr.rpt' AND SI_KIND='CrystalReport' AND SI_INSTANCE=0";
newInfoObjects = getCms().executeQuery(queryStr);
if(newInfoObjects.size() > 0)
reportObj = (IInfoObject)newInfoObjects.get(0);
try
clientDoc = getCms().getReportAppFactory().openDocument(
reportObj
, OpenReportOptions._refreshRepositoryObjects
, java.util.Locale.US);
dc = clientDoc.getDatabaseController();
conInfos = dc.getConnectionInfos(null);
for(int i = 0; i < conInfos.size(); ++i)
oldConInfo = (ConnectionInfo)conInfos.getConnectionInfo(i);
newConInfo = (ConnectionInfo)oldConInfo.clone(true);
pBag = newConInfo.getAttributes();
pBag.putStringValue("QE_ServerDescription", "alio");
logonProps = new PropertyBag();
logonProps.putStringValue("Trusted_Connection", "false");
logonProps.putStringValue("Server", "alio");
pBag.put("QE_LogonProperties", logonProps);
newConInfo.setUserName("admin");
newConInfo.setPassword("password");
<b>dc.replaceConnection(
oldConInfo
, newConInfo
, connFields
, connOptions);</b>
catch(ReportSDKServerException Ex)
String msg = "A server error occured while processing the " + reportObj.getKind()
+ " object, " + reportObj.getTitle() + " (" + reportObj.getCUID() + "), from the CMS.";
Utility.errorOut(msg, Ex);
catch(Exception Ex)
String msg = "An error occured while processing the " + reportObj.getKind()
+ " object, " + reportObj.getTitle() + " (" + reportObj.getCUID() + "), from the CMS.";
Utility.errorOut(msg, Ex);
finally
clientDoc.save();
getCms().commitToInfoStore(newInfoObjects);
clientDoc.close();
</pre>
Edited by: Mark Young on Sep 10, 2009 2:13 PM<p>I just wanted to provide an update to this. I did find a work-around for this, but I cannot explain it. The post I added to a related thread on 23 Sept. 2009, Trying to change the data source for a Crystal Report. (thread 1472257), explains a work-around I found for that problem. It seemed to resolve this one simultaneously.
</p>
<p>
I don't know why it works. If anyone has a comment or some insight, it is welcome. Thank you in advance.
</p> -
MSS - Business Event Details - Error Unexpected Exception when Calling RFC
Dear Experts,
Manager is getting the Error "Unexpected Exception when Calling RFC from Profile Application 'Business Event' when he tries to get the Training history of ONE employee in MSS. However, he is getting the details for the other employees of his department.
Any inputs on this?
Thank you.I believe it is our custom iView that is incorrect.
-
Exception when retrieving the WS invoker using the execution destination
We got exception when we had tried to call WS in Web Dynpro for Java (NWDS 7.1 SP 5):
"Exception when retrieving the WS invoker using the execution destination".
We imported model as Adaptive Web Service Model with destination and
implemented Component Controller using document
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/900bbf94-a7a8-2910-e298-a651b4706c1e
We used:
1. Netweaver 7.1 CE
2. Backend R/3 system with RFC wrapped by Web Service without autorization on R/3
3. In our CE system we created two logical destinations (metadata and execution) to R/3 Web ServiceHi Yuriy,
It would be great if you can say how exactly you solved the problem as i am encountering the same error.
Regards,
Tekumalla -
Hi. please solve my problem.
.call information such as call waiting,call forwarding, call holding is not working when caller the call me or im wait for my call i cant see any title by iphon , and also holding is the same.2. there is not any option for call baring.3.playback music is not hearing by second partner during the call.4.i cant select ringing ton from saving tons.
thank you in advance.Hi Ersin,
Exception 1 would seem to be FORMATTING_ERROR, which suggests something in the design of the Smartform. However, that doesn't fit with the form being generated from a report, but only erroring when called from a function module. I can think of no reason why the different calling method would be a factor.
When FORMATTING_ERROR is raise it should also set a message ID and number, are you able to determine what they are?
Regards,
Nick -
Socket Exception when closing the console
Hi ,
I'm running WLC & P Server 3.5/WL 6.1 in the following environment
Weblogic Version: WebLogic Server 6.1 SP1
JDK Vendor: Blackdown Java-Linux Team
JDK Version: 1.3.1
Operating System: Linux
and I'm getting very often this exception when closing the console
<Dec 30, 2001 2:21:48 PM EST> <Error> <HTTP> <Connection failure
java.net.SocketException: Error in poll for fd: '60', revents: '24'
at
weblogic.socket.PosixSocketMuxer.deliverBadNews(PosixSocketMuxer.java:429)
at
weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:384)
at
weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
I also get the same behaviour under WL 6.1 alone when closing the console.
Does anybody know what this means?
Thanks,
DanOoops, sorry for the repost.
I can see my first post on the newsgroup when I access it with the browser
http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.develo
per.interest.personalization&item=1650&utag= )
but I cannot see it when using my newsgroup reader (Outlook Express).
Dan
"Dan" <[email protected]> wrote in message news:[email protected]..
Hi ,
I'm running WLC & P Server 3.5/WL 6.1 in the following environment
Weblogic Version: WebLogic Server 6.1 SP1
JDK Vendor: Blackdown Java-Linux Team
JDK Version: 1.3.1
Operating System: Linux
and I'm getting very often this exception when closing the console
<Dec 30, 2001 2:21:48 PM EST> <Error> <HTTP> <Connection failure
java.net.SocketException: Error in poll for fd: '60', revents: '24'
at
weblogic.socket.PosixSocketMuxer.deliverBadNews(PosixSocketMuxer.java:429)
at
weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:384)
at
weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
I also get the same behaviour under WL 6.1 alone when closing the console.
Does anybody know what this means?
Thanks,
Dan -
TRFC type conflict when calling the function module
Hi,
When I schedule, it is stucking up with TRFC and giving error message in SM58 as" TRFC type conflict when calling the function module" .
even if I execute the trfc LUWs ,load is not successful.
could you please any body suggest for this error.
Thanks
RHi Guys,
could any suggest why this is happening.
TRFC is stuck up and giving error message.
Thanks
Ram -
Can a client call the ejb callback methods directly????
Is there any way using which client can call the ejb callback methods directly.
ie in the client program i want to call ejbPassivate/ejbActivate?? is there any way of doing the sameshort answer: yes, pass a reference of the ejb (bean class) to the client. This will not do what you expect however and hopefully with generate an error that you should read as "don't do this".
better answer: you are no longer doing ejb development if you do this. those methods exists for the container to interact with your bean and are NOT meant for clients. You should NEVER do what I suggest in my "short answer". -
Why do I get Error -1073807343 when calling the open visa function ?
Hello,
I am running a Labview 6i under Linux (kernel 2.4) and I have Error -1073807343 when calling the open visa function. I have verified the name of the session (GPIB0::9::INSTR), and I can communicate with my instruments with ibic.
More informations : I use NIVISA 2.5 and nigpib-0.8.2. I have downloaded the lastest drivers of my instruments but it doesn't work better.
Thanks very much for your help.We've had several NI-VISA releases since 2.5 - so I suggest you upgrade to NI-VISA 3.0. While there isn't anything specific to your type of problem in the Linux version of our readme.txt, I know we've made a number of other fixes.
While the most recent release is NI-VISA 3.1, I still recommend you upgrade only to 3.0.
This is because NI-VISA 3.1 requires the new NI-488.2 release for GPIB-ENET to be installed (even though you aren't using that product). This is due to some internal rearchitectures, and the PCI-GPIB product is not released. If you do want to go with NI-VISA 3.1, the new NI-488.2 release for GPIB-ENET on Linux will still work with the PCI-GPIB beta driver that you have installed.
Dan Mondrik
National Instruments -
Marshall exception when calling a remote business method in EJB
Hi,
From a java client, i am calling a business method from a ejb. the home and remote interface object is sucessfully received at the client. but at the time of calling the remote business method the following error occurs.
java.rmi.RemoteException: ; nested exception is:
weblogic.rmi.ServerException: A remote exception occurred while executing the method on the
remote object
- with nested exception:
[weblogic.rmi.MarshalException: error marshalling return
- with nested exception:
[java.io.NotSerializableException: java.util.Vector$1]]
java.io.NotSerializableException: java.util.Vector$1
the business method returns an enumeration object.
How to solve this?
-chidamhi chidambaresh,
you could have sent this to me directly.
the Enumeration si an interface and so the object we get during the runtime is basically an object of some implementation of this interface.
the Enumeration you get from HAshtable is actually Serializable.
but the Enumeration you actually get from Vector (this is actaully an inner class of Vector viz., Vector$1) is not serializable. that is what the error you are getting.
regards
Srinivasan.R
(VAMSOFT) -
ClassNotFoundException on cluster when calling Stateless EJB
Using Weblogic 10.3.2 on Linux
and Oracle HTTP Server as the loadbalancer
I have an applicaiton that works if deployed to a standalone server.
When testing the application on a cluster with two nodes I get a ClassNotFoundException.
This is occuring on a call to a class that is called from a class that is called from an EJB.
So the class not found "classC" is called from "classB" with is used by "EJB-A". All are part of the same ejb jar.
The class not found (classC) is in the same package as "classB" in the jar.
The error is with org.apache.commons.digester.ObjectCreateRule not finding the class.
Any thoughts or ideas what could be going wrong? Is this a cluster setup issue?
Here is the error:
####<Aug 3, 2010 3:34:54 PM CDT> <Error> <org.apache.commons.digester.Digester> <localhost.localdomain> <Node2Server> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <BEA1-0000480BF0F8B173A146> <> <1280867694379> <BEA-000000> <Begin event threw exception
java.lang.ClassNotFoundException: com.myco.framework.server.MyConfig
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205)
at org.apache.commons.digester.Rule.begin(Rule.java:175)
at org.apache.commons.digester.Digester.startElement(Digester.java:1453)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1745)
at com.myco.framework.common.util.XmlUtil.parse(Unknown Source)
at com.myco.framework.server.ServerContext.initServerActionMap(Unknown Source)
at com.myco.framework.server.ServerContext.init(Unknown Source)
at com.myco.framework.server.ServerContext.<init>(Unknown Source)
at com.myco.framework.server.ServerContext.getInstance(Unknown Source)
at com.myco.framework.server.ejb.MyStatelessEJBBean.initServerActionMap(Unknown Source)
at com.myco.framework.server.ejb.MyStatelessEJBBean.doServerAction(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:55)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy160.doServerAction(Unknown Source)
at com.myco.framework.server.ejb.MyStatelessEJBBean_vqyexu_MyStatelessEJBBeanImpl.doServerAction(MyStatelessEJBBean_vqyexu_MyStatelessEJBBeanImpl.java:142)
Edited by: ora_R_n_R on Aug 4, 2010 2:15 PM
Edited by: ora_R_n_R on Aug 4, 2010 2:17 PM
Edited by: ora_R_n_R on Aug 4, 2010 2:31 PMHow are you deploying your application as an EAR, which has been targeted to the cluster?
Maybe you are looking for
-
IPod not working with new iTunes
As soon as I downloaded the newest version of iTunes, it stopped recognizing my iPod. iTunes says the iPod is synced with another library and it's not. I even erased everything off the iPod and synced it up again just to be sure, and when I plugged i
-
Problem(FECOD) in 2LIS_18_I0ACTY
I had a issue extracting data for FECOD(Problem) in 2LIS_18_I0ACTY. When i extract data for 2LIS_18_I0ACTY, FECOD doesn't have any data. I was verifying in RSA3. But when i extract data for 2LIS_18_I0ITEM, then FECOD has data. Both the extractors are
-
How do I open raw files taken with a Canon 70D? Elements 12. Version 8.0 Windows 7 64 bit. Thanks in advance for any help. JWT Lamar, CO
-
Insert same data with next holiday date
Hi All, I have write a pl block where in i need to copy the existing records from the table A to table A itself with date+1. Say for eg. there is a situation were daily one record is inserted into table A and there is a data column init but NO record
-
Changing the inside of text to an image rather than colour
It's probably a simple answer so apologies in advance! I have some text ( see attached photo) How do I change the background of the text to an image, rather than being blue? I want it to be a picture of bacteria rather than blue. I have all the adobe