Transportation Planning Error - u2018No resource for optimizationu2019

Dear All,
While generating the Transportation proposal , I am getting an error u2018No resource for optimizationu2019. Can anyone please guide me what could be the possible reason for the same? Below are some more information:-
1. The resources created by us are getting displayed with the following dimensions.
Weight 40TO, Volume 80M3, Used Qty 0.0, Rem Qty 0.0, Max Utli 0.0, Last Loc u2013 Blank, Multires u2013 false, No. Res. u2013 0, Lock Res u2013 false.
2. The Freight Unit is having following dimensions. Weight u2013 7.770 KG, Volume 38M3, and one container is assigned as a transportation Unit.
3. Source and destination locations both are belonging to same transportation zone for which we have defined one intra-zone land and MTr to which this resource is assigned. This is not a passive resource.
Please advise what could be the possible reason for the same.
Thanks & Regards,
Vikram

Hi Vikram,
Please check the following
1) The resource category is "T"
2) The resource is attached to active model 000
3)  The resource is attached/assigned to material/item where it is
getting planned.
4) All resource data are maintained properly.
5) Check whether resource is not blocked
Regards
R. Senthil Mareeswaran.

Similar Messages

  • ChaRM - transport with error keep repeating for every transport job

    Dear experts,
      We are using ChaRM for our transport. There are always transport will returned with error. And I believe this is a feature provided by ChaRM, that all these transport with error will be retransport again during next run. Is there anyway to stop this? Some is in the list of "Correct Import (Repair Flag)" in task list, but some is not.

    Hello FlyingFox,
    I assume that we consider a urgent correction with different transport requests:
    tr #1 :       retrun code 0
    tr #2 :       retrun code 8
    tr #3 :       return code 0      (but tr #3 didn't resolve the problem of tr #2)
    Starting the import again, transport requests #2 and #3 have to be imported.
    Sequence errors will be possible, if only tr #2  is imported again.
    Therefore:
    mark those transport requests, which shouldn't be imported again via task list ('correct transport requests manually' as you described -  in our little example: mark tr #2).
    Afterwards only new tranport requests will be included (e.g. tr #4).
    Best regards
    Horst
    Edited by: Horst Förster on Oct 25, 2011 11:37 AM

  • Transportation Planning in Logistics Execution

    Hi Friends,
    As of now in our company we aren't using transportation planning in Logistics Execution for shipments from mother go-down to Depot (33 in Number) and also from factory to Depot.
    How to dynamically update the Transti time and transit route in SAP R/3 ECC 5.?
    I have defined OVTB,OVTA,OVTD,OVTC in define routes and also OVR1,OVSY etc in route determination in master data.
    How to use those information to get update for tranit time dynamically?
    I'm ready to give more info on this. Thanks in advance.
    Regards,
    Arasu

    Transit time is pre-defined in the route. Based on your route determination (essentially, departure and receiving zones), the pertinent route is selected that invokes the calculation of the dates including the planned GI and delivery date. So, essentially, the transit time is pre-defined so to calculate these dates.
    Not sure what you mean by 'dynamic' calculation of the transit time as oppose to manually entering the time during route creation.

  • Delivery 0080000276 is not relevant for transportation planning.

    At the time of (delivery related) invoice creation, system throws a message "check the error log".
    Log says:
    " Error Log             0080000276 000010 Delivery 0080000276 is not relevant for transportation planning
                LongText
                    Detail
                     Diagnosis
                         Copying control for billing requires that shipment costs
                         are copied from the shipment belonging to this delivery.
                         No shipment costs could be determined, because this
                         delivery is not relevant for transportation planning.
                     System Response
                         The system assumes that no shipment costs are to be billed
                         in this case.
                Technical data
                    Tech. data details
                     Client                                 251
                     Group Number
                     Sales Document Number                  0080000276
                     Item Number of the SD Document         000010
                     Schedule Line Number                   0306
                     Counter in Control Tables              00
                     Message Identification                 VY
                     System Message Number                  306
                     Output Type                            I
                     Message Variable 01                    0080000276
                     Message Variable 02
                     Message Variable 03
                     Message Variable 04
                     Group Type                             F "
    Please advice if anyone have any idea for this error log.

    Error Log 0080000276 000010 Delivery 0080000276 is
    not relevant for transportation planning
    It is not necessary to assign the Transportation Planning to Delivery type.  Only recently, I completed a similar configuration and running successfully for a client.  The issue is  because of your copy control VTFL.  For more information, check note 713171.
    thanks
    G. Lakshmipathi

  • Error encountered while polling the resource for the service endpoint

    Hello everyone
    I'm a newbie on OSB world. Yesterday, I've tried to test OSB with FTP transport and got some problems.
    As you see in the title, I've search this forum to get a solution already, but I couldn't find anything. So that I create a new thread.
    I created a new OSB project, create a new Proxy service to connect to my FTP server:
    - service type: messaging service
    - request message type: Text, response message type: None
    - FTP transport: external user (I used a Service account), Post read action: archive, transfer mode: ascii, some directories needed were created in /tmp directory
    - Message flow: Start node -> pipeline pairs
    in request pipeline of pipeline pairs node: i created a new stage: Assign action -> Log (to get file contents, error severity) -> Assign -> Log (get file name)
    The expected results are: file file content and file name (display in osb console) after I submit a text file to ftp server (using test console or ftp client)
    But, some error occur continuously after I submit a text file (I can get the file content because error raise and log catch it). The error message is show below:
    <Jun 6, 2011 10:04:59 AM EDT> <Error> <ALSB Logging> <BEA-000000> < [PipelinePairNode1, PipelinePairNode1_request, show_text_info, REQUEST] file contents: li
    ag
    a
    glakjgk
    >
    <Jun 6, 2011 10:05:30 AM EDT> <Error> <WliSbTransports> <BEA-381602> <Error encountered while polling the resource for the service endpoint ProxyService$FTPTestProject$ProxyServices$FTPTestPS: *javax.naming.NameNotFoundException:* While trying to lookup *'wlsb.internal.transport.task.queue.ftp'* *didn't find subcontext 'wlsb'. Resolved ''; remaining name 'wlsb/internal/transport/task/queue/ftp'*
    *javax.naming.NameNotFoundException: While trying to lookup 'wlsb.internal.transport.task.queue.ftp' didn't find subcontext 'wlsb'. Resolved ''; remaining name 'wlsb/internal/transport/task/queue/ftp'*
         at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
         at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:247)
         at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
         at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
         at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
         Truncated. see log file for complete stacktrace
    >
    <Jun 6, 2011 10:06:30 AM EDT> <Error> <WliSbTransports> <BEA-381602> <Error encountered while polling the resource for the service endpoint ProxyService$FTPTestProject$ProxyServices$FTPTestPS: javax.naming.NameNotFoundException: While trying to lookup 'wlsb.internal.transport.task.queue.ftp' didn't find subcontext 'wlsb'. Resolved ''; remaining name 'wlsb/internal/transport/task/queue/ftp'
    javax.naming.NameNotFoundException: While trying to lookup 'wlsb.internal.transport.task.queue.ftp' didn't find subcontext 'wlsb'. Resolved ''; remaining name 'wlsb/internal/transport/task/queue/ftp'
         at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
         at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:247)
         at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
         at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
         at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
         Truncated. see log file for complete stacktrace
    >
    ...There are many BEA-381602 errors that occur continuously.
    My question is how to solve this problem.
    Any suggestion is appreciated.
    Thank in advance.
    Regards, CuongPT
    Edited by: Doubt_Man on Jun 6, 2011 11:17 AM

    Thank atheek1, I remember that I didnt do any manual configuration on my domain :). I use that domain for testing so that I will create a new domain for comparison.

  • Transportation Planning for Shippers RDS

    I'm implementing SAP TM 9.0 Transportation Planning for Shippers RDS.
    While trying to activate this solution in Solution Builder I get following errors:
    1. Error@ ECATT /SMBERP/XK01_O001_T55 in BB TM1 (XX) of scenario T79 does not exist in system
    2. Error@ ECATT /SMB50/WE21_O001_E04_01 in BB TM3 (XX) of scenario T79 does not exist in system
    3. Error@ BC Sets /SMBA0/V_T681F_B4E2_J01 in BB TM7 (XX) of scenario T79 do not exist in system
    Installation files (INST_FILES_TMS_XX_BP_ERP606V7.zip file) were downloaded properly, but these ecatts are missing somehow. Did anybody face with this problem?

    Hi Erica
    We do have expertise in this area and can handle the projects. Please let me know your contact details or write to [email protected] or reach me out on +91 99595 99887 to discuss further on this.
    Regards
    Krishna

  • Memory-Based Snapshot Main Process for Transportation Planning getting erro

    Hi All,
    I have created a Plan in Transportation Planning module and asigned a facility to that plan then i did launch plan, then the program 'Launch Transportation Planning Process' running successfully but with that program Memory-Based Snapshot Main Process for Transportation Planning running and error outing.
    the completion text is:
    The executable file /u04/NRVIS/apps/apps_st/appl/mst/12.0.0/bin/MSTSNWRK for this concurrent program cannot be executed.
    Contact your system administrator or support representative.
    Verify that the execution path to the executable file
    i have verified the path but there is only have '/u04/NRVIS/apps/apps_st/appl/mst/12.0.0' but no /bin/MSTSNWRK file
    can anyone tell me what has to be there actually, is MSTSNWRK file missed?
    thanks
    vijay

    Thanks for your suggestions. I finally able to resolve this issue.
    - I'd relink all MSC and MSO exe files. No error found. Still not unable to launch Memory-Based Snapshot.
    - I'd turned on all possible debug, trace, etc to see any possible reasons for the failure. But no help at all.
    I almost created a TAR (which will need to run numerous useless checkings, talking to some clueless people, and waiting for weeks for doing nothing) and I found out I forgot to check one place - Windows Event Log. Bingo - I found the error and it's because of DLL unmatched (typical Microsoft DLL hell issue).
    Using Dependent Walker to see the linking of the MSC exe file, and then I pinpointed which version of MS C++ libraries were missed. Installed the latest MS VS2005 and 2008 redistributable libraries, relinked MSC exe files again, and FINALLY it's fixed.
    I need to talk to the DBA who prepare this clone to me....
    Edited by: 960630 on Sep 24, 2012 1:01 AM

  • Getting an error while activating a planning area "Enter values for planning horizon From and planning horizon To for the storage time profile level"

    Dear S&OP community,
    I am getting following error while creating a planning ares in a newly installed sandbox. "Enter values for planning horizon From and planning horizon To for the storage time profile level".
    This what I did...
    1) Created new attributes and master data objects and activated them successfully.
    2) Time profile created and activated successfully
    3) Trying to create planing area by assigning  time profile in step 2 and assigned master data from step1..Unable to save the data and system returns 
    this error - "Enter values for planning horizon From and planning horizon To for the storage time profile level"
    My understanding is time profile needs to be active  but doesn't have to have values...
    Any help is appreciated.
    Thanks,
    Krishna

    YS,
    Here are my time profile settings
    Level       Name          Display Horizon - Past  Display Horizon - Future
    1             Monthly     -6                                       11         
    2             Quarterly     -2                                       3
    3             Yearly        -1                                       2
    Time profile is active and but time profile data is not loaded
    Thanks,
    Krishna

  • Error in resource clean up for a disconnected client

    Hi
    we are using NW04s portal. in the default.log of this dispatcher I continuously receive the following error. this is fulling my log in less then 10 minutes. anobody have an id ??
    regards
    #1.#00156004CA3300070000FEEC000062CA00043EE5ADC2F2ED#1195056074160#com.sap.engine.core.manipulator.TCPRunnableConnection##com.sap.engine.core.manipulator.TCPRunnableConnection.closeConnection()#######OrderedChannel for http service##0#0#Warning#1#/System/Network#Java###Exception occurred while closing connection.
    [EXCEPTION]
    #1#java.net.SocketException: Socket already closed.
            at iaik.security.ssl.SSLTransport.a(Unknown Source)
            at iaik.security.ssl.SSLOutputStream.flush(Unknown Source)
            at com.sap.engine.core.manipulator.TCPRunnableConnection.closeConnection(TCPRunnableConnection.java:194)
            at com.sap.engine.core.manipulator.TCPRunnableConnection$CloseThread.run(TCPRunnableConnection.java:1050)
            at com.sap.engine.core.manipulator.TCPRunnableConnection.run(TCPRunnableConnection.java:547)
            at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
            at com.sap.engine.core.thread.impl6.SingleThread.execute(SingleThread.java:78)
            at com.sap.engine.core.thread.impl6.SingleThread.run(SingleThread.java:148)
    #1.#00156004CA3300070000FEED000062CA00043EE5ADC2F71B#1195056074162#com.sap.engine.services.httpserver.dispatcher##com.sap.engine.services.httpserver.dispatcher#######OrderedChannel for http service##0#0#Error##Plain###Connection [237267712] is NOT removed! serverToConnections = [{299438950={}, 299438951={}, 299438952={}, 278697050={}, 278697051={}, 278697052={}, 8914750={}, 8914751={}, -1={}, 8914752={}, 299438900={}, 278697000={}, 8914700={}, 261671250={}, 261671251={}, 261671252={}, 261671200={}, 289070750={com.sap.engine.core.manipulator.TCPRunnableConnection@4c032069[closed=false, initialize=false, markedForClose=false, passCount=1, replyThreadRunning=false, replyThreadToStart=false, readThreadRunning=true, serviceName=http, synchronous=1, workingThreads=1, inProcess=true, dataFromServer=false, connectionID=237253376], com.sap.engine.core.manipulator.TCPRunnableConnection@5424bf0[closed=false, initialize=false, markedForClose=false, passCount=1, replyThreadRunning=false, replyThreadToStart=false, readThreadRunning=true, serviceName=http, synchronous=1, workingThreads=1, inProcess=true, dataFromServer=false, connectionID=237255680], com.sap.engine.core.manipulator.TCPRunnableConnection@73eef3b0[closed=false, initialize=false, markedForClose=false, passCount=1, replyThreadRunning=false, replyThreadToStart=false, readThreadRunning=true, serviceName=http, synchronous=1, workingThreads=1, inProcess=true, dataFromServer=false, connectionID=237250816], com.sap.engine.core.manipulator.TCPRunnableConnection@5978bb14[closed=false, initialize=false, markedForClose=false, passCount=1, replyThreadRunning=false, replyThreadToStart=false, readThreadRunning=true, serviceName=http, synchronous=1, workingThreads=1, inProcess=true, dataFromServer=false, connectionID=237260288], com.sap.engine.core.manipulator.TCPRunnableConnection@44ad78a2[closed=false, initialize=false, markedForClose=false, passCount=1, replyThreadRunning=false, replyThreadToStart=false, readThreadRunning=true, serviceName=http, synchronous=1, workingThreads=1, inProcess=true, dataFromServer=false, connectionID=237260800]}, 289070751={com.sap.engine.core.manipulator.TCPRunnableConnection@193c7c35[closed=false, initialize=false, markedForClose=false, passCount=1, replyThreadRunning=false, replyThreadToStart=false, readThreadRunning=true, serviceName=http, synchronous=1, workingThreads=1, inProcess=true, dataFromServer=false, connectionID=237256960], com.sap.engine.core.manipulator.TCPRunnableConnection@6909037d[closed=false, initialize=false, markedForClose=false, passCount=1, replyThreadRunning=false, replyThreadToStart=false, readThreadRunning=true, serviceName=http, synchronous=1, workingThreads=1, inProcess=true, dataFromServer=false, connectionID=237260544], com.sap.engine.core.manipulator.TCPRunnableConnection@68634baf[closed=false, initialize=false, markedForClose=false, passCount=1, replyThreadRunning=false, replyThreadToStart=false, readThreadRunning=true, serviceName=http, synchronous=1, workingThreads=1, inProcess=true, dataFromServer=false, connectionID=237235200]}, 289070752={com.sap.engine.core.manipulator.TCPRunnableConnection@4e3f905b[closed=false, initialize=false, markedForClose=false, passCount=1, replyThreadRunning=false, replyThreadToStart=false, readThreadRunning=true, serviceName=http, synchronous=1, workingThreads=1, inProcess=true, dataFromServer=false, connectionID=237242368], com.sap.engine.core.manipulator.TCPRunnableConnection@5424bf0[closed=false, initialize=false, markedForClose=false, passCount=1, replyThreadRunning=false, replyThreadToStart=false, readThreadRunning=true, serviceName=http, synchronous=1, workingThreads=1, inProcess=true, dataFromServer=false, connectionID=237255680], com.sap.engine.core.manipulator.TCPRunnableConnection@7b15d277[closed=false, initialize=false, markedForClose=false, passCount=1, replyThreadRunning=false, replyThreadToStart=false, readThreadRunning=true, serviceName=http, synchronous=1, workingThreads=1, inProcess=true, dataFromServer=false, connectionID=237247744], com.sap.engine.core.manipulator.TCPRunnableConnection@6ba5d6d6[closed=false, initialize=false, markedForClose=false, passCount=1, replyThreadRunning=false, replyThreadToStart=false, readThreadRunning=true, serviceName=http, synchronous=1, workingThreads=1, inProcess=true, dataFromServer=false, connectionID=237249280], com.sap.engine.core.manipulator.TCPRunnableConnection@23ec4333[closed=false, initialize=false, markedForClose=false, passCount=1, replyThreadRunning=false, replyThreadToStart=false, readThreadRunning=true, serviceName=http, synchronous=1, workingThreads=1, inProcess=true, dataFromServer=false, connectionID=237199104], com.sap.engine.core.manipulator.TCPRunnableConnection@3f29a75a[closed=false, initialize=false, markedForClose=false, passCount=1, replyThreadRunning=false, replyThreadToStart=false, readThreadRunning=true, serviceName=http, synchronous=1, workingThreads=1, inProcess=true, dataFromServer=false, connectionID=237213952]}}]#
    #1.#00156004CA3300070000FEEE000062CA00043EE5ADC2F885#1195056074162#com.sap.engine.services.httpserver.dispatcher##com.sap.engine.services.httpserver.dispatcher#######OrderedChannel for http service##0#0#Error##Plain###Error in resource clean up for a disconnected client
    java.lang.NullPointerException

    Hi guys
    We are running a EP 7.0. We have external clients connecting from the internet through a 3rd party application gateway / reverse proxy. We have the problem that this gateway responds with 'service unavailable' while direct http(s) connections to the portal work without problem.
    Now i noticed the same messages in the dispatcher default trace.
    2008-02-07 17:40:55:155 Connection 300800 is NOT removed! serverToConnections = ...
    2008-02-07 17:40:55:154 Exception occurred while closing connection. EXCEPTION java.net.SocketException: Socket already closed....
    2008-02-07 17:40:55:154 Cannot get input and output streams from socket. ConnectionsManipulator is not initialized. EXCEPTION java.io.EOFException: Connection closed by remote host....
    I do not have a solution here, but i list some information on our system, so you can compare it to your environnements.
    - Enterprise Portal 7.0 SP13
    - our network guys observed a lot of tcp connections from the gateway to the portal with status CLOSE_WAIT
    - they also observed the portal sending a RST tcp packet instead of FIN (or FIN_ACK?)
    - the application gateway runs on Sun Solaris the portal on Linux x86_64
    - connection uses https
    The issue is very obscure, we are trying to tcpdump and decrypt the data, but no luck so far.
    Best regards, Michael

  • [SOLVED] X11 error: BadAlloc (insufficient resources for operation)

    Both VLC and mplayer are unable to display video (sound is ok). mplayer complains
    X11 error: BadAlloc (insufficient resources for operation)
    I am able to play the same file with
    mplayer -vo x11
    but no fullscreen with -vo x11 (which is to be expected), and I see no reason why the xv output should not work..
    This is on Dell Latitude D530, intel GM965/GL960. I've switched to arch from gentoo, where it worked, week or two ago.
    Any ideas what can be wrong?
    Last edited by renergy (2014-09-28 10:13:03)

    Have you tried any other video outputs? See 'mplayer -vo help' for the list.
    Try mpv, mplayer's cousin.
    Does it happen only with one file? Run mediainfo on it.
    Edit: Are you using SNA or UXA?
    Compare version numbers and configs of the respective packages of gentoo and Arch. Only what's to blame - the drivers?
    Last edited by karol (2014-09-27 15:14:26)

  • " Server Error [2009]: Failed to allocate resources for results data" IR Error

    Hi,
    We recently moved form 9.3.3. to 11.1.2.3 and we run only IR and SQR reports. When we run few IR reports we get the below error.
    "Script(x):uncaught exception:  Server Error [2009]: Failed to allocate resources for results data."
    Any thought on what could be the cause. I changed the DSA setting, HTTP config settings for timeouts. I followed a oracle Knowledge base document to make sure I'm setting the right parameters still it doesn't work.
    Any advise will be appreciated.
    Thank you.

    Hi,
    Can you please try to increase the timeout settings for workspace and check the issue.
    You can refer following KM article for more information :
    Hyperion Interactive Reporting (IR) When Processing a BQY in Web Client and iHTML Error: "Server Error [2009] Failed To Allocate Resources To Results Data" [ID 1089121.1]
    To try in 11.1.2.x check these settings in workspace :
    Please go to Navigate -> Administer -> Reporting and Analysis -> Web Applications -> Right click on RA_FRAMEWORK_LWA and select Properties. A
    Window pops up. In that, go to Applications tab and then go to Data Access Servlet. There are two values there
    i) Hyperion Intelligence Client Polling Time(seconds) => Set this to zero
    ii) DAS Response Timeout => Set this to 3600
    Restart the R&A services and WebApp after this change.
    Hope this information helps.
    regards,
    Harish.

  • Standard message type to transfer data for transportation planning

    Hi,
    We would like to develop a interface that would transfer the following data from SAP to another system (called Vista).
    "(Past) Receivings and requirements shall be considered in the transportation planning. Transfer the requirement information from the ERP system to Vista for the transportation planning."
    Is there any standard message type (or any other std solution) in SAP that can transfer this data from SAP to legacy system(Vista)?
    In general how does one identify for any given requirement, if there exists a standard message type (standard solution) of transffering data from or to an SAP system
    Thanks in advance.
    John

    Hi,
    U can go throught this sap help
    http://help.sap.com/saphelp_45b/helpdata/en/b5/9c48ebfc6f11d1bf5a0000e8a7386f/content.htm

  • "Insufficient resources for this video mode" error in IMAQ for IEEE-1394 1.1

    I'm using 3 Sony DFW-X700 cameras (1024x768 YUV 4:2:2) and 1 Sony XCD-X700 (1024x768 8-bit mono) connected to 2 IEEE-1394 adapter cards (3 ports each). I'm running LV 6.1 on WinXP Pro PT.
    I've tried several acquisition modes, and the only one that works fine is 'continuous acquisition', using 1 buffer per camera. The problem is that I can only setup 2 color cameras and 1 mono camera. If I try to setup 3 color cameras, I get an 'insufficient resources for this video mode' error. I would like to know if it's possible to configure more memory for the acquisition buffers under IEEE-1394 so that I can avoid this error.

    Habil,
    You might want to try to lower the frame rate of the cameras. This error is caused because the driver is able to allocate only part of the firewire bandwidth for your image acquisition, and a three camera color acquisition requires a huge amount of bandwidth. This is currently an issue that our R&D department worked this period and is going to be resolved in the next release of the driver. This release should be ready in one month. Good luck!
    Nestor.
    Nestor
    National Instruments

  • Selection variant for transportation planning.

    Dear All,
    Can you please let me know how to configure Selection variant for transportation planning.
    Regards,
    Sunya

    Hi Sunya,
      Check the links below.
      http://help.sap.com/bestpractices/industry/pharmaceuticals/v346c_uk/documentation/SCM/_Toc27302002
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8bbeae90-0201-0010-f887-8287448cbb9b
       In these you wil find the selection variant for transportation planning
       Reward points if it helps.
    Regards
    Karan
    Message was edited by:
            Karan Bhatia

  • Database Error: RSR0009: Resource not available for pool. Wait-time expired

    i am occassionally receiving the following error during database connections in my servlet:
    Database Error: RSR0009: Resource not available for pool [webAdvisorTestPool]. Wait-time expired
    i understand that this is a result of a connection leak from improper closure of my Connection object, but i thought that i was properly closing my connection.
    i can get the error if i do the following steps:
    1) access my login page and enter login credentials.
    2) submit the login which then hits the Authentication servlet.
    3) Authentication servlet authenticates and takes me to home page.
    4) hit the back button to get back to the login page.
    5) repeat this process until i hit the Max Pool Size (from web server).
    6) then i get the error message
    here are some details:
    i have an Authentication servlet; here is the pertinent code from that servlet:
    try {     // retrieve the user and add the User object to the session     DAO dao = new DAO();     Person authenticUser = dao.getPerson(userID, password);     session.setAttribute("validUser", authenticUser);     redirectPage = mapping.findForward("success"); }
    i also have a DAO object that handles all of my DB transactions (and you can see from my code above that the Authentication servlet is using that object); here is the pertinant code from that servlet:
    public DAO() {     datasource = "java:comp/env/jdbc/webAdvisorTest"; } public Person getPerson(String userID, String password)     throws ObjectNotFoundException {     // JDBC variables     DataSource ds = null;     Connection conn = null;     PreparedStatement stmt = null;     ResultSet results = null;     // User variables     Person validUser = null;     try     {         // Retrieve the DataSource from JNDI         InitialContext ctx = new InitialContext();         // if this statement fails, NamingException is thrown         ds = (DataSource)ctx.lookup(datasource);         // get DB connection and perform SQL operations         conn = ds.getConnection();         // User variables         String validUserID = null;         String validFName = null;         String validLName = null;         String validEmail = null;         // get DB connection and perform SQL operations         conn = ds.getConnection();         stmt = conn.prepareStatement(PERSON_QUERY);         stmt.setString(1, userID);         stmt.setString(2, password);         results = stmt.executeQuery();         // iterate through the results         if (results.next())         {             validUserID = results.getString("id");             validFName = results.getString("first_name");             validLName = results.getString("last_name");             validUser = new Person(validUserID, validFName, validLName);         }     }     // handle SQL errors     catch(SQLException e)     {         e.printStackTrace(System.err);         throw new RuntimeException("Database Error: " + e.getMessage());     }     // handle JNDI errors     catch(NamingException e)     {         throw new RuntimeException("JNDI Error: " + e.getMessage());     }     // clean up resources     finally     {         doClosure(results, stmt, conn);     }     // if the user was not found, throw ObjectNotFoundException     if(validUser == null)     {         throw new ObjectNotFoundException();     }     return validUser; } protected void doClosure(ResultSet results, PreparedStatement stmt,     Connection conn) {     if (results != null)     {         try { results.close(); }         catch (SQLException e) { e.printStackTrace(System.err); }     }     if (stmt != null)     {         try { stmt.close(); }         catch (SQLException e) { e.printStackTrace(System.err); }     }     if (conn != null)     {         try         {             System.out.println("R18Resources.conn before close: " + conn);             conn.close();             System.out.println("R18Resources.conn after close: " + conn);             System.out.println("R18Resources.conn is closed? " +                 conn.isClosed());         }         catch (SQLException e)         {             System.out.println("R18Resource conn close error: " +                 e.getMessage());         }     } }
    as you can see, i've added some print statements in my connection closure block. based on my output log, each connection is being properly closed and i am not encountering any errors during that closing block.
    any ideas???
    Message was edited by:
    millerand

    Please try the following code in your doClosure method. Replace your code with the following code.
    public void doClosure(ResultSet pResultSet, Statement pStmt, Connection pConn) throws Exception {
    try {
                   if (pResultSet != null) {
                        pResultSet.close();
                        pResultSet = null;
              } catch (SQLException se) {
              logger.error( se );
              } finally {
                   try {
                        if (pStmt != null) {
                             pStmt.close();
                             pStmt = null;
                   } catch (SQLException se) {
                   logger.error(se);
                   } finally {
                        try {
                             if (pConn != null) {
                                  pConn.close();
                                  pConn = null;
                        } catch (SQLException se) {
                        logger.error(se);
    And let me know if you still face this issue. What is the application server you are using?

Maybe you are looking for

  • My iCal calendars no longer sync adn I can't re-publish them

    I have several calendars created in my iCal for staffing schedules, from which I keep and maintain my staff shifts. The Mac the staff uses (I have a separate machine in my office) is subscribed to each of these calendars (one for each staff member) i

  • Install Oracle 10g on Mac os x 10.5.6

    Hi i have a ques regarding installation can i install 10g on mac os x 10.5.6 ??? i searched on net but it was saying i have to have Mac os X server???? Plz guide me i didnt find any suitable article on net till now...also let me knw where i can find

  • SapScript in text file

    How do I save a SapScript spool in text file?

  • Using .swc in Flash CS5

    I have a user who is having trouble using my library .swc in flash CS5. I do not have CS5 to help him out much; but the .swc does work fine with mxmlc from the Flex SDK, as well as under flashdevelop using the Flex SDK. And although not this exact ve

  • How can change currency rate in clearing document

    How can change currency amount in clearing document