Obtaining a connection outside a UserTransaction
I have been running a simple single-threaded benchmark to see the impact of JTA.
I wonder if anyone can explain the following results. I am using client demarcated
transactions with the UserTransaction class. I do 10,000 operations and average
the results.
1. Obtain a connection. Start a transaction. Insert a row. Commit the transaciton.
Close the conneciton.
This takes about 2ms per operation.
2. Start a transaction. Obtain a connection. Insert a row. Close the conneciton.
Commit the transaciton.
This takes about 5ms per operation.
3. Do not use JTA - set autocmmit true on the conneciton.
Obtain a conneciton. set autocommit true. insert a row. close the connection.
This takes about 2ms per operation.
So the JTA takes more than twice as long as the non-JTA.
My questions are
1. Why the overhead - I believe that no 2PC will happen, since there is only one
database involved.
2. Is it permitted to obtain the connection outside (before) the transaction?
In that case how does the implementation realize that the transaction needs to
be reqistred in the transaction. The approach did work when I tried it, but I'm
not sure how safe this is.
Thanks,
Barry
If you suspect this is a JVM bug, I recommend you to test our most recent service pack - JRockit R27.6.0.
To check if it is a JVM bug, check if the whole process has freezed. Then it would not respond to Ctrl-Break or not respond to a connection with jrcmd or the Console in JRMC. If it has, it is very likely it is a JVM bug. If not, it is less likely.
JRockit R27.6.0 was released today and can be downloaded from:
http://www.oracle.com/technology/software/products/jrockit/index.html
The JRockit JVM is bundled both with JRockit Real Time (JRRT) and JRockit Mission Control (JRMC).
If it is a JVM bug, contact Oracle Support to get a patch.
Similar Messages
-
Problem with EJB and JMS - Failed to obtain/create connection
hello ejb and jms programmers,
My problem is my topic MDB keep on retrieving the same message when there is a database connection failure. Maybe somebody could help me how to prevent to retrieve the same data?
Given:
- I purposedly turn off the pointbase database because im testing my error handling.
- Im using SJSAS 8 as my application server.
- My message Driven Bean of topic type.
- Im using CMP for my entity bean
Here is the scenario of whats happening - step by step:
1. A separate application publishes a message to JMS queue server
2. My MDB retrieves this message and do some processing then inserts a record (transaction history) in my database
3. But my db is turned off or down
4. My MDB sends a successful processing reply to the JMS queue server
5. Then i noticed that my server.log keeps on growing so when i opened it, the record was not inserted and printed the stacktrace below "RAR5117 : Failed to obtain/create connection. Reason : javax.transaction.SystemException" (complete stacktrace below)
6. I understand the cause of the stacktrace is because the DB is turned off. But what i dont understand is that my MDB keeps on reading the same message. Since my MDB is of topic type, isnt a topic MDB supposedly reads a message only once???
So my questions are:
1. how do i handle insert database error?
2. how can i stop my MDB from processing the same message?
3. any better suggestions?
Thank you in advance :)
leigh
*** more complete stack trace ***
[#|2005-01-09T15:35:57.097+0800|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.system.core.transaction|_ThreadID=17;|JTS5041: The resource manager is doing work outside a global transaction
javax.transaction.xa.XAException
at com.pointbase.xa.xaException.getXAException(Unknown Source)
at com.pointbase.xa.xaConnectionResource.start(Unknown Source)
at com.sun.gjc.spi.XAResourceImpl.start(XAResourceImpl.java:162)
[#|2005-01-09T15:35:57.167+0800|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.resource.resourceadapter|_ThreadID=17;|RAR5027:Unexpected exception in resource pooling
javax.transaction.SystemException
at com.sun.jts.jta.TransactionImpl.enlistResource(TransactionImpl.java:185)
at com.sun.enterprise.distributedtx.J2EETransaction.enlistResource(J2EETransaction.java:360)
at com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.enlistResource(J2EETransactionManagerImpl.java:303)
at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.enlistResource(J2EETransactionManagerOpt.java:115)
[#|2005-01-09T15:35:57.177+0800|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.resource.resourceadapter|_ThreadID=17;|RAR5117 : Failed to obtain/create connection. Reason : javax.transaction.SystemException|#]
[#|2005-01-09T15:35:57.227+0800|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.resource.resourceadapter|_ThreadID=17;|RAR5114 : Error allocating connection : [Error in allocating a connection. Cause: javax.transaction.SystemException]|#]
[#|2005-01-09T15:35:57.237+0800|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.ejb|_ThreadID=17;|EJB5071: Some remote or transactional roll back exception occurred
com.sun.jdo.api.persistence.support.JDODataStoreException: JDO77006: SQL exception: state = null, error code = 0.
NestedException: java.sql.SQLException: Error in allocating a connection. Cause: javax.transaction.SystemException
FailedObjectArray: [[email protected]5ac]
at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.getConnectionInternal(TransactionImpl.java:1444)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.getConnection(TransactionImpl.java:1339)Hi annie,
Wherever you are handling database transactions,
you'd not be able to create a Connection if database
is closed (I think you mentioned turning off the
database) then at this condition, you should
certainly throw a System level exception and stop all
processing with some meaningful flow to indicate a
failure (like display message on UI). Even
network problems are handled by exceptions... so I
don't see a reason why you didn't wrap it in the
first place.
Anyway, try handling specific exceptions rather than
the general Exception... this will give you a better
idea of what to do in case of an exception.Yes i know this. I am practicing this in my non-j2ee server applications. But the j2ee app im making, i just pass the db url in the descriptor and the app server automatically creates the connection for my app. So where would i put exception handling?
2. how can i stop my MDB from processing the same
message?Guaranteed delivery is not supposed to stop
processing. It will continue to process the message
after certain intervals till the message is
delivered. You shouldn't deliver it at all, if you
are able to detect that the database is off
The problem here is that my MDB automatically retrieves the message from the JMS queue server. Im not the one retrieving the messages manually.
My assumed behavior of topic MDB is once the a certain MDB retrieves a message it will not retrieve the same message anymore.
thank you in advance.
leigh -
Can not connect outside of Lan to with rtsp PVC2300
I have the following cameras set up at my office
1 - PVC2300
2 - WVC54GC
3 - AXIS 225FD
I have a BEFSR81 Router
I have a computer on Windows XP running the surv software to record. Everything with that is good.
I also have 2 desktops.
I have been playing around with the rtsp feed with the pvc2300, but have run into a few problems.
1(a). I can not connect outside of the LAN with RTSP with either the VLC player or quicktime. It connects and asks for a password and then just hangs.
The PVC 2300 local address is 192.168.1.102 with ports 554, 5000-5010, and 6970-6999 forwarded on the router. What am I missing?
1(b) I can successfully connect with my blackberry bold, although when I try to change the default port (554) to something else (I would like to RTSP my the AXIS camera as well, so I will need a different port) it connects on my bold, but then says server is unresponsive. What am I missing here?
2. The voice with the PVC 2300 using http outside of the LAN (internet) lags quite baddly and is choppy. This happens without fail when I have all 4 cameras running, which I understand is upload bandwidth problem. But it also happens when I connect to just the PVC2300. I do have a connection to all 4 cameras inside the LAN to the XP running the surv software, but that is it. Is the my router acting buggy? I have unplugged the router for 5 sec, and it fixed it for a while, but it always comes back. I have donwloaded the latest firmware for the router and PVC 2300 and that didnt seem ot fix it either. Suggestions?
3. This is more of a question. I know the mobile streaming of the PVC 2300 does not include voice. Is there an app or way that I can just get it to my Blackberry. Even if I didnt get the video, voice is sometimes more important to me.
I hope Ive been clear enough in my description, Im very self taught (google is amazing), but I am in no way a techy.
Thank you in advace for your help.
ColinGlad to hear you are successfully using the SWVMS16. That program is really cool and useful. I just cant tell you how that model of Linksys Router can work for you here (that is not a model we support on this community as its not small business)
Regarding RTSP access, are you also including the mobile.sdp in the URL?
RTSP:///mobile.sdp I noticed in the camera GUI with the newer firmware, you can specify an access code under mobile settings after checking the enable mobile streaming box. That word may be what you have to include, so check that too...
Try this locally first and then remotely is the easiest way to see if you got it right, then it just becomes a routing or firewall issue to figure out.
But your forwarded ports look right and should be opened.
Under advanced settings, you can define an alternate HTTP, HTTPS or RTSP port -
Error while obtaining JCO connection when creating JCO connection
Hey,
im having a problem when creating a JCO connection in the Web Dynpro Content Administrator. Creating the Modeldata (Application Data Data type) JCO Worked but when creating the JCO for the RFC Metadata (Dictionary Meta data) there is a problem:
In step 3.2 Msg server connection I cannot specify a system name and logon group, only the message server can be selected with the dropdown box.
After pushing the finish button i get the following stacktrace:
Failed to create new JCO client connection WD_RFC_METADATA_DEST: com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscapeException: Error while obtaining JCO connection. at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:150) at
com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.createJCOClientConnection(SystemLandscapeFactory.java:356) at
com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.createJCOClientConnection(WDSystemLandscape.java:107) at
com.sap.tc.webdynpro.tools.sld.ButtonBar.onActionFinish(ButtonBar.java:224) at com.sap.tc.webdynpro.tools.sld.wdp.InternalButtonBar.wdInvokeEventHandler(InternalButtonBar.java:265) at
com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87) at
com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67) at
com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:101) at
com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:304) at
com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649) at
com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59) at
com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248) at
com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154) at
com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116) at
com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760) 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) Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to resolve connection parameter for WD_RFC_METADATA_DEST at
com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestinaton(JCOClientConnection.java:664) at
com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter(JCOClientConnection.java:508) at
com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.init(AbstractJCOClientConnection.java:248) at
com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.<init>(AbstractJCOClientConnection.java:222) at
com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.<init>(JCOClientConnection.java:101) at
com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:148) ... 30 more Caused by: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:393) at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestinaton(JCOClientConnection.java:558) ... 35 more
We are running WebAS 640 SP 14 on Unix.
Greetings,
Hannes
Message was edited by: Hannes DeflooHi
Please configure your SLD. Your SLD holds the system definition. Define a SAP WebAS abap system and then try to create a Metadata connection using WebDynpro content administrator. Now you will be able to see the msg server defined in the dropdown. Also ensure that you have the message server entry in your services file.
Refer these links for SLD
http://help.sap.com/saphelp_nw04/helpdata/en/c9/dc37520bdf4b48bb8f6d4329f073d5/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/24/8fa93e08503614e10000000a114084/content.htm
Hope that helps.
regards
Ravi -
Failed to obtain/create connection from connection pool after redeploy
I have a web application (.war) that uses a jdbc connection pool. The application works fine, however after I redeploy it using the administration console I get "Failed to obtain/create connection from connection pool [ Datavision_Pool ]. Reason : null" followed by "Error allocating connection : [Error in allocating a connection. Cause: null]" from javax.enterprise.resource.resourceadapter and I am forced to restart the instance. I am running Sun Java System Application Server 9.1 (build b58g-fcs)
using a connection pool to a Microsoft SQL 2000 database using inet software's JDBC drivers. I need to be able to redeploy applications without having to restart the instance. Any help is appreciated.I have turned on some additional diagnostics and found out some answers and a work-around, but I think that there may be a bug in the way JDBC connection pool classes are loaded. The actual error was a null pointer in the JDBC driver class in the perpareStatement method. The only line in this method is "return factory.createPreparedStatement( this , sql );" and the only possible NPE would be if the factory was null, which should be impossible because it is a static variable and it is initialized when the class is loaded. The problem occurs because we deploy the JDBC driver .jar file within our .war file, for use when a client doesn't have or want to use connection pooling. Apparently, the connection pool must have picked up some of these classes and when the .war was redeployed, the reference to the factory was lost for existing connections (not sure how). If I remove the JDBC .jar file from the .war, it works, but that wasn't an ideal solution, the other way to get it to work was to change the sun-web.xml file to have <class-loader delegate="true">. We previously had it set to false in version 8.1 because of interference with a different version of the apache Tiles classes, which has now been addressed in version 9.1.
I still think there is an issue, because the connection pool should never use the application specific classloaders. Am I wrong to believe this? -
Error while obtaining JCO connection.
Hi I'm trying to put in place since BW-SEM RSPLAN the transaction, I'm pointing at my portal from the transaction RSPLSA
But when it signs the user gets the message Error while obtaining JCO connection.
I was reviewing my WebDynpro on my site by following these steps:
1 I will http://portal:port
2 I clicked Webdynpro
3 I click on Content Administrator
I clicked on 4 Maintain JCO destinations
and then I log shows the following:
Failed to process request. Please contact your system administrator.
[Hide]
Error Summary
While processing the current request, an exception occured which could not be handled by the application or the framework.
If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
Root Cause
The initial exception that caused the request to fail, was:
java.lang.NullPointerException
at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.checkStatus(SystemLandscapeFactory.java:991)
at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.checkStatus(WDSystemLandscape.java:485)
at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.updateJCOClientStatus(JCOConnectionsDetails.java:480)
at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.addJCOClientToList(JCOConnectionsDetails.java:699)
at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.addJCOClientToList(JCOConnectionsDetails.java:663)
... 39 more
See full exception chain for details.
System Environment
Client
Web Dynpro Client Type HTML Client
User agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
Version null
DOM version null
Client Type ns7
Client Type Profile nn7
ActiveX disabled
Cookies enabled
Frames enabled
Java Applets enabled
JavaScript enabled
Tables enabled
VB Script enabled
Server
Web Dynpro Runtime Vendor: SAP, build ID: 7.0014.20071210061512.0000 (release=645_VAL_REL, buildtime=2007-12-10:05:23:29[UTC], changelist=470565, host=pwdfm101), build date: Wed Oct 01 12:15:02 CDT 2008
J2EE Engine 7.00 patchlevel 109886.44
Java VM IBM J9 VM, version:2.3, vendor: IBM Corporation
Operating system AIX, version: 5.3, architecture: ppc64
Session & Other
Session Locale en_US
Time of Failure Thu Nov 06 16:00:23 CST 2008 (Java Time: 1226008823202)
Web Dynpro Code Generation Infos
sap.com/tcwdtools
No information available null
sap.com/tcwddispwda
No information available null
sap.com/tcwdcorecomp
No information available null
Detailed Error Information
Detailed Exception Chain
java.lang.NullPointerException
at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.checkStatus(SystemLandscapeFactory.java:991)
at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.checkStatus(WDSystemLandscape.java:485)
at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.updateJCOClientStatus(JCOConnectionsDetails.java:480)
at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.addJCOClientToList(JCOConnectionsDetails.java:699)
at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.addJCOClientToList(JCOConnectionsDetails.java:663)
at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.wdDoInit(JCOConnectionsDetails.java:121)
at com.sap.tc.webdynpro.tools.explorer.wdp.InternalJCOConnectionsDetails.wdDoInit(InternalJCOConnectionsDetails.java:262)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:555)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.makeVisible(ViewManager.java:789)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.performNavigation(ViewManager.java:296)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:767)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.navigate(ClientComponent.java:881)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doNavigation(WindowPhaseModel.java:498)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:144)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:319)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
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(AccessController.java:219)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
What should I do??Hi Antonio,
Follow the below note for Jco related troubleshooting.
https://service.sap.com/sap/support/notes/919850
Are you able to see the 4 Jco connections green?
Regards,
Debasis. -
Hi,
I am Shanmugavel, SharePoint developer,
I am facing the below SharePoint 2013 deployment issue while deploying using VS2012.
If i will deploy the same wsp or existing wsp
(last build) using direct powershell deployment, the solution adding properly, but the same timeout exception coming while activation the features. Please find the below error.
I tried the below activists:
1. Restarted my dev server, DB server.
2. tried the same solution id different server
3. tried existing wsp file (last build version)
4. Deactivated all the features, including project Active deployment configuration.... but still i am facing the same issue.
I hope this is not coding level issue, because still my code is not start running, before that some problem coming.
Please help me any one..... Last two days i am struck because of this...What you need to understand is the installation of a WSP does not do much. It just makes sure that you relevant solution files are deployed to the SharePoint farm.
Next comes the point when you activate the features. It is when the code which you have written to "Activate" certain features for your custom solution.
Regarding the error you are getting, it typically means that you have more connections (default is I guess 100) open for a SQL database then you are allowed to.
If you have a custom database and you are opening a connection, make sure you close it as well.
Look at the similar discussion here:
The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool
size was reached[^]
I would suggest further to look at the
ULS logs[^] to get better insight.
Manas Bhardwaj's Stream : www.manasbhardwaj.net -
Unable to Obtain a Connection to Hyperion Essbase from Planning Application
Dear All,
I have installed FDM+Foundation+HFM+Essbase+Planning 11.1.1.3 (Tomcat)
I have stacked with the following problem:
when I try to open my data form, I am getting
“Unable to obtain a connection to Hyperion Essbase. If this problem persists, please contact your administrator”
Validate Database Connection & Validate Essbase Connection are successful throw Manage Data Source menu
Essbase user has admin privileges
In EAS console I can make myself sure, that my application is running
Data Form is valid (verified in Preview screen in Data Form wizard)
Can somebody help me with it?
Best Regards,
SiarheiThanks, John
Summary
Symptoms
When attempting to connect to Hyperion Planning as the admin user, the following error occurs:
Unable to obtain a connection to Hyperion Essbase. If the problem persists, please contact your administrator'
Cause
Hyperion Planning web accesses the application by making a connection to the Planning metadata in the relational repository (via Relational repository settings) and also to Essbase via the datasource settings.
Any Essbase connection issues indicate problems with the Essbase settings in the datasource or are related to the Essbase server.
Solution
- Edit the datasource via the Configuration Utility.
- Test the Essbase connection and make sure that the user used to make the connection is valid and has admin rights to Essbase.
- Restart the Hyperion Planning service once the Essbase user has been given the correct access rights.
- Login to the Essbase Administration Services (EAS) console and right click on the Essbase server name node -> Refresh security from Shared Services
- Expand the applications node (under the Essbase server name node) and check that there is an application with exactly the same name as the Planning application.
Note: Go to section 'manually recreating a Planning application in Hyperion Essbase, if the Planning application is missing in the above step.
- Login to the application in Hyperion Planning web.
Manually recreating a Planning application in Essbase:
- Login to the EAS console as admin (the Essbase user used by admin must have Essbase administrator rights)
- Go to Essbase servers -> your Essbase server name -> right click on applications -> Create application -> Using Block Storage and enter the exact Hyperion Planning Application name then click on ok.
Note: The above step will only create the application shell without the databases.
- Login to the application in Hyperion Planning web as admin and go to Administration menu -> Manage Database -> select database and filters (to create filter access to Essbase) and Refresh (refresh will also recreate the databases if they don't exist)
Best Regards,
Siarhei -
Error in launching guided procedure: Error while obtaining JCO connection.
Hello experts,
we've a problem with webdynpro java calling a guided procedure.
We've defined an endpoint for our callable object, as you can see the test of the connection works fine:
In the configuration of our callable object we use the endpoint above:
And we can test the callable object: it works well, call the right BAPI and find the results.
But when the GP is called and this callable object try to call the BAPI in the background it doesn't work at all.
In the log and trace of the portal we find this:
A technical callable object exception ocurred: Le service RecupActeurs n'a pas pu être exécuté : La connexion pour le nom de connexion SAP_R3_HumanResources n'a pas pu être chargée à partir de System Landscape Directory (SLD) : Error while obtaining JCO connection.
com.sap.caf.eu.gp.model.co.tech.TechnicalCallableObjectException: Le service RecupActeurs n'a pas pu être exécuté : La connexion pour le nom de connexion SAP_R3_HumanResources n'a pas pu être chargée à partir de System Landscape Directory (SLD) : Error while obtaining JCO connection.
at com.sap.caf.eu.gp.model.connect.impl.ExternalServiceBackgroundCOContainer.execute(ExternalServiceBackgroundCOContainer.java:101)
at com.sap.caf.eu.gp.model.co.background.impl.BackgroundCOExecutorImpl$CallableObjectExecutor.run(BackgroundCOExecutorImpl.java:126)
at com.sap.caf.eu.gp.model.co.background.impl.BackgroundCOExecutorImpl.execute(BackgroundCOExecutorImpl.java:504)
at com.sap.caf.eu.gp.model.co.background.impl.BackgroundCOExecutorImpl.execute(BackgroundCOExecutorImpl.java:581)
at com.sap.caf.eu.gp.model.pfw.wfc.local.impl.BackGroundActionProcessorHelper.processAction(BackGroundActionProcessorHelper.java:183)
at com.sap.caf.eu.gp.model.pfw.wfc.local.impl.queue.BackgroundCOQueueProcessor.run(BackgroundCOQueueProcessor.java:263)
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:104)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
Caused by: com.sap.caf.eu.gp.base.exception.EngineException: Connection that belongs to connection name SAP_R3_HumanResources could not be loaded from System Landscape Directory (SLD): Error while obtaining JCO connection.
at com.sap.caf.eu.gp.model.connect.rfc.impl.SLDConnectionManager.getClientConnection(SLDConnectionManager.java:138)
at com.sap.caf.eu.gp.model.connect.rfc.impl.ConnectionDeliverRFC.analyseConnectionMode(ConnectionDeliverRFC.java:185)
at com.sap.caf.eu.gp.model.connect.rfc.impl.ConnectionDeliverRFC.deliverConnection(ConnectionDeliverRFC.java:91)
at com.sap.caf.eu.gp.model.connect.rfc.impl.SAPSystemConnector.deliverMetaData(SAPSystemConnector.java:116)
at com.sap.caf.eu.gp.model.connect.pvd.saprfc.impl.SAPRFCServiceProvider.executeExternalService(SAPRFCServiceProvider.java:232)
at com.sap.caf.eu.gp.model.connect.impl.ExternalServiceManager.executeExternalService(ExternalServiceManager.java:139)
at com.sap.caf.eu.gp.model.connect.impl.ExternalServiceBackgroundCOContainer.execute(ExternalServiceBackgroundCOContainer.java:89)
... 9 more
Caused by: com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscapeException: Error while obtaining JCO connection.
at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:152)
at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:160)
at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.getJCOClientConnection(WDSystemLandscape.java:41)
at com.sap.caf.eu.gp.model.connect.rfc.impl.SLDConnectionManager.resolveClientConnection(SLDConnectionManager.java:169)
at com.sap.caf.eu.gp.model.connect.rfc.impl.SLDConnectionManager.getClientConnection(SLDConnectionManager.java:102)
... 15 more
Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to resolve connection parameter for 'SAP_R3_HumanResources'
at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestination(JCOClientConnection.java:658)
at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter(JCOClientConnection.java:485)
at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.init(AbstractJCOClientConnection.java:248)
at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.<init>(AbstractJCOClientConnection.java:233)
at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.<init>(JCOClientConnection.java:129)
at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:150)
... 19 more
Caused by: com.sap.tc.webdynpro.services.sal.um.api.WDUMException: No client user defined for the current request (no regular Web Dynpro request as ITask is null.
at com.sap.tc.webdynpro.serverimpl.core.um.AbstractClientUserFactory.getCurrentUser(AbstractClientUserFactory.java:48)
at com.sap.tc.webdynpro.services.sal.um.api.WDClientUser.getCurrentUser(WDClientUser.java:67)
at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestination(JCOClientConnection.java:591)
It seems that the GP could not connect to the SLD to call the JCO, but as said before, when we test the callable object, it calls the BAPI without any problem.
We tried to recreat either the JCO and the Endpoint but without success.
Any help will be appreciated.
Thank you.Hi.
Thanks for your answers.
Here are the things :
From the GP administration, the endpoint's test is working.
From the SLD, the JCO is working too.
From the Web Dynpro Content Administrator, the JCO's test is working too.
From the GP Desing Time, the callable object supposed to call the FM uses the right endpoint, and the test is working too, we retreive data from the backend.
From our app, calling the GP process that includes our callable object, we have errors pasted above...
Regards. -
Error while obtaining JCO connection in t-code RSPLAN
Hi Gurus,
I have installed ECC 6.0 SR3 and i have added BI_CONT and updated all the patches. But while trying to access the t-code RSPLAN and after clicking on the START MODELER button it is opening in a browser . after giving the user id and password in the browser , while opening the page it is showing the error " Error while obtaining JCO connection". and how to create jco connections in visual admin.
can anybody please help me in this issue.
Thanks in advance.
Regards,
Babu.Hi,
when i was trying to open RSPLAN T-Code in BI, i able to open start modeller it says that http://udnubd1:8003/sap/public/myssocntl?sap-client=320 and says that cannot find server. So i request you please can anyone help me onthis issue.
Thanks,
Reddy -
How to obtain database connection via PL/SQL
Dear friends,
I need to obtain the database name where user is connected - using PL/SQL. That is, if I type "select user from dual" I obtain the connected user; is there some similar way for me to obtain database connection?
Thanks, and best regards,
FranklinSELECT sys_context('USERENV', 'DB_NAME') FROM dual;
SELECT sys_context('USERENV', 'INSTANCE') FROM dual;
You can choose whichever you want to use. :-)
Instace parameter will give you INSTANCE_ID (matches with GV$INSTANCE) so not that much useful I guess.
Edited by: Satish Kandi on Oct 6, 2008 9:32 PM -
Cannot obtain the connection from hyperion planning to Essbase
Hi,
Does anyone is familiar with following problem:
When I try for example create a new data form and than want to add member for a dimention the following error is displayed: Unable to obtain a connection to Hyperion Essbase. If this problem persists, please contact your administrator.
My Essbase is running and Eas is running as well.
Will be gratefull for any tips.
cheers,Hi,
Has any of the essbase information such as server or account details changed since you created the datasource connection for the planning application.
If it has you will need to edit the datasource and enter the new details and restart planning.
Cheers
John
http://john-goodwin.blogspot.com/ -
Obtaining pooled connection in utility class.
Hello,
For our ADF application,
There is a utility class obtaining DB connection. Presently it is directly using JDBC to obtain the same. We need to change it to use connection from the Weblogic connection pool, that gets built at the start of server.
Please can you suggest a specific link that I can refer?
Regards,
AmarWell create a datasource in weblogic and then in your AM - Configurations - Double click on Local - Application Module Tab - Connection Type section - Select JDBC DataSource - and in the datasource name give the name of datasource you created in weblogic
-
SecurityException: "Reserve" errors when obtaining jdbc connections
Hi,
We've seen an interesting issue come up with Weblogic 6.1 SP3. Not sure why this
is happening now.
I am using the MBean approach to creating Connection Pools dynamically. This still
works. The main thing I had to change for SP3 was to add a user/password when
I grab the Admin MBean. So this is all working fine.
The problem I get is when I try to make a connection. I end up getting a Pool
connect failed: java.lang.SecurityException: User "guest" does not have Per
mission "reserve" based on ACL "dynaPool". There were two ways I saw to solve
this, and I was wondering which was the best.
1) Add an acl that looks like "acl.reserve.dynaPool=everyone", and that seems
to work.
2) User the Driver.connect(String url, Properties aProps) where I include a "user"
and "password" key for the properties file. I use the same user/password that
I used to grab the Admin MBean. Problem is, I can't find any doc on this, or why
it works. Maybe you can enlighten me on why this works.
Anyway, I was curious on why 2) works, as well as which approach is the recommended.
We didn't see this reserve error until we tried to utilize SP3. Thanks in advance
for your assistance.
Michael DolbearHi Michael,
When there is no user provided, user "guest" is used.
AFAIR in SP2 in ACL was not defined on a pool, this effectively
allowed making connection to everyone, including guest.
I haven't worked on SP3, but it looks like the approach changed.
Speaking about the preferable way of making a connection,
the second one is better as the principal is clearly specified.
The first method can be harmful from security point of
view.
Hope it helps,
Regards,
Slava Imeshev
"Michael Dolbear" <[email protected]> wrote in message
news:[email protected]...
>
Hi Slava,
1) Getting the connection:
Properties tempProperties = new Properties();
tempProperties.setProperty(USER,
aUserName);
tempProperties.setProperty(PASSWORD,
aPassword);
tempDriver =(Driver)Class.forName(this.getJDBCDriverClassName()).newInstance();
tempConnection = tempDriver.connect(this.getJDBCDriverURL(),
aProperties);
2) My test case deletes the connection pool after its done, but
the main things to be know are
that I am using the weblogic.jdbc.jts.Driver and the url is
"jdbc:weblogic:jts:someName".
If that's not enough, I will get you the definition. The connection poolruns
on top of a two tier driver that is the Oracle thin driver.
3)Here is the stack trace. The is no weblogoic code in it (just ours), soI don't
think it will tell you much other than the message:
com.thc.ids.inf.framework.opf.DatabaseConnectionFailure:RDBMSDataStore:::failure
to get c
onnection-Pool connect failed: java.lang.SecurityException: User "guest"does
not have Per
mission "reserve" based on ACL "dynaPool".
atcom.thc.ids.inf.framework.opf.rdbms.datastore.RDBMSDataStore.getConnection(R
DBM
SDataStore.java:74)
atcom.thc.ids.inf.framework.opf.rdbms.query.RDBMSObjectQuery.getConnection(RDB
MSO
bjectQuery.java:104)
atcom.thc.ids.inf.util.persistence.content.queries.DrugsForNameQuery.findDrugs
For
Name(DrugsForNameQuery.java:88)
atcom.thc.ids.inf.util.persistence.content.queries.DrugsForNameQuery.runQuery(
Dru
gsForNameQuery.java:69)
atcom.thc.ids.inf.services.business.css.spi.oracle.OracleSearchProvider.basicR
unQ
uery(OracleSearchProvider.java:251)
atcom.thc.ids.inf.services.business.css.spi.oracle.OracleSearchProvider.basicE
xec
uteSearch(OracleSearchProvider.java:169)
atcom.thc.ids.inf.services.business.css.spi.oracle.OracleSearchProvider.execut
eSe
arch(OracleSearchProvider.java:65)
atcom.thc.ids.inf.services.business.css.ContentSearchService.executeSearch(Con
ten
tSearchService.java:89)
at java.lang.reflect.Method.invoke(Native Method)
atcom.thc.ids.inf.util.reflection.MethodDescription.invokeMethod(MethodDescrip
tio
n.java:181)
atcom.thc.ids.inf.util.reflection.MethodInvocation.invoke(MethodInvocation.jav
a:7
9)
atcom.thc.ids.inf.framework.service.internal.ServerObject.invoke(ServerObject.
jav
a:141)
atcom.thc.ids.inf.framework.service.J2EE.ejb.ServiceBean_nd24gc_EOImpl.invoke(
Ser
viceBean_nd24gc_EOImpl.java:37)
atcom.thc.ids.inf.framework.service.J2EE.ejb.ServiceBean_nd24gc_EOImpl_WLSkel.
inv
oke(Unknown Source)
atweblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
atweblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:93
atweblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:274)
atweblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:2
2)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
"Slava Imeshev" <[email protected]> wrote:
Hi Michael,
A couple of questions:
1. Could you show me how exactly how you obtain a connection?
2. Could you persist dynamic pool definition and post it here?
3. Well, three questions :) Could you post the stacktrace you get?
Regards,
Slava Imeshev
"Michael Dolbear" <[email protected]> wrote in message
news:[email protected]...
Hi,
We've seen an interesting issue come up with Weblogic 6.1 SP3. Notsure
why this
is happening now.
I am using the MBean approach to creating Connection Pools dynamically.This still
works. The main thing I had to change for SP3 was to add a
user/password
when
I grab the Admin MBean. So this is all working fine.
The problem I get is when I try to make a connection. I end up gettinga
Pool
connect failed: java.lang.SecurityException: User "guest" does nothave
Per
mission "reserve" based on ACL "dynaPool". There were two ways I sawto
solve
this, and I was wondering which was the best.
1) Add an acl that looks like "acl.reserve.dynaPool=everyone", andthat
seems
to work.
2) User the Driver.connect(String url, Properties aProps) where I
include
a "user"
and "password" key for the properties file. I use the same
user/password
that
I used to grab the Admin MBean. Problem is, I can't find any doc onthis,
or why
it works. Maybe you can enlighten me on why this works.
Anyway, I was curious on why 2) works, as well as which approach isthe
recommended.
We didn't see this reserve error until we tried to utilize SP3. Thanksin
advance
for your assistance.
Michael Dolbear -
I do not obtain to connect in Flash Media Server !!
Hi people
I do not obtain to connect in Flash Media Server after that I
installed it !!!
I go in Star > Programs > Macromedia > Flash Media
Server > Manangement Console
In go in the console and I place the password and the user
who I placed at the moment of the installation and go in Login, but
I do not happen nothing!
Somebody can help me ?
Sorry my english
PHANTOXEDid you look in
Program Files\Macromedia\Flash Media Server 2\conf
that's where
fms.ini is located. HTH...
Maybe you are looking for
-
ITunes 10 - iPhone 4 Device playlist not updating from main iTunes Playlist
Installed iTunes 10 and synched with an Apple iPhone 4. After the first install, I could see all of the Playlists displayed in iTunes when I selected to sync Music on the iPhone using the 'Selected playlists, artists, albums, and genres'. After the i
-
New ipod touch slider not working
I just got a new ipod touch 5 hours ago and the slid to un lock is not working. I have tried restoring it and it does nothing to help. Do i need to take it to the store or is there something i cad do to fix this problem?
-
Any problems with Windows Media Player 9 for Mac OS X?
I want to be able to play video from CNN.com, but it says I need Windows Media Player 9. Before I download it, I want to know if it is reliable. I've already got Flip4Mac, and that doesn't help. (I get a -2048 error.) Please share experiences with Wi
-
How do I get a lip sync flash frame sequence to encode properly
I built a flash frame sequ ence in Premiere. It is 2 seconds long with the first two frame white and the remaining time black frames. This is repeated for 1 minute. If I encode it in non-compressed AVI it is correct. If I use MPEG2 or H.264 to bui
-
Cost Center wise goods issue report
Hi, Is there any standard report to see the stock of materials based on cost center. I tried MB51 & also put costcenter field in that report. But when i am running the report it is not showing against cost centers. It is showing against mov type 201