Resource handling with errors (freeing resources in doEndTag)

Hi,
          If I have a Custom Tag that allocates resources in doStartTag and frees them
          in doEndTag then it seems to me that I have a problem if there is an
          exception while the body between these two tags is being processed. For
          example, if doEndTag closes a database connection then each time there's an
          error in a page I lose a connection from the pool. This doesn't seem very
          robust.
          Is there any way of guaranteeing that doEndTag is called once soStartTag has
          been called, even if an exception occurs? If not, how do people manage
          resources like this?
          Thanks,
          Andrew
          

If you target JSP 1.2 container, you can implement TryCatchFinally interface:
          http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/jsp/tagext/TryCatchFinally.html
          Andrew Cooke <[email protected]> wrote:
          > Hi,
          > If I have a Custom Tag that allocates resources in doStartTag and frees them
          > in doEndTag then it seems to me that I have a problem if there is an
          > exception while the body between these two tags is being processed. For
          > example, if doEndTag closes a database connection then each time there's an
          > error in a page I lose a connection from the pool. This doesn't seem very
          > robust.
          > Is there any way of guaranteeing that doEndTag is called once soStartTag has
          > been called, even if an exception occurs? If not, how do people manage
          > resources like this?
          > Thanks,
          > Andrew
          Dimitri
          

Similar Messages

  • Handle With Error Records In Bapi

    Hello Gurus,
    I am Working with Bapi(bapi_goodsmvt_create)
    i need how to handle with errors.
    i should collect all the Error records into one custom table.
    which record produced Error.
    Regards,
    Naren

    The Return parameter may be based on the following reference structures:
    BAPIRET2
    You must use this reference structure when developing new BAPIS.
    BAPIRET1, BAPIRETURN
    These reference structures are still partly used in old BAPIs.
    http://help.sap.com/saphelp_nw04/helpdata/en/a5/3ec9f74ac011d1894e0000e829fbbd/frameset.htm

  • Error: Requested resource does not exist with SAP WebAS..deployed an ear

    hi,
    i deployed an application using SDM gui deployement manger.   the application is built using struts,spring etc. I have also created a datasource with Oracel 9i succesfully and hav associated it with the application.
    When i try to access the application using the struts based path i get an "<b>ERROR 404:- Error: Requested resource does not exist</b>". I also tried accessing the index.jsp page directly without struts paths but dont know why i get an error "<b>File [appContext/admin/index.jsp] not found in application root of alias [/] of J2EE application [sap.com/com.sap.engine.docs.examples].</b>"
    The same ear is working perfectly fine with IBM WSAD but not in SAP Web AS ?? is there any configuration issues that i need to address ?? Kindly help me ASAP !!
    Regards,
    Vaibhav

    Hi,
    The Required server log contents are as follows:-
    #1.5#000CF1AFC124017A000000020000067000041B1D550F525C#1155712701853#com.sap.engine.services.servlets_jsp.server.jsp.JSPParser#sap.com/doculine#com.sap.engine.services.servlets_jsp.server.jsp.JSPParser#Guest#2####661184d02cf711db80fa000cf1afc124#SAPEngine_Application_Thread[impl:3]_37##0#0#Error#1#/System/Server#Plain###Runtime error in compiling of the JSP file <C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/doculine/servlet_jsp/doculine/root/admin/login.jsp> !
    The error is: com.sap.engine.services.servlets_jsp.server.jsp.exceptions.ParseException: TagLibValidator returns error(s) for taglib [/WEB-INF/c.tld]: [
         com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Unsupported character: a9(:main:, row:739, col:23)(:main:, row=739, col=23) -> com.sap.engine.lib.xml.parser.ParserException: Unsupported character: a9(:main:, row:739, col:23)
    Exception id: [000CF1AFC124017A000000000000067000041B1D550F4D94]#
    #1.5#000CF1AFC124017A000000030000067000041B1D550F5C88#1155712701868#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#sap.com/doculine#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#Guest#2####661184d02cf711db80fa000cf1afc124#SAPEngine_Application_Thread[impl:3]_37##0#0#Error##Plain###Processing HTTP request to servlet [action] finished with error. The error is: com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: Internal error while parsing JSP page [C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/doculine/servlet_jsp/doculine/root/admin/login.jsp].
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:117)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.getClassName(JSPServlet.java:238)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.compileAndGetClassName(JSPServlet.java:429)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:169)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:316)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:372)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
         at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1001)
         at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:560)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:209)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:316)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:372)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         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:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.engine.services.servlets_jsp.server.jsp.exceptions.ParseException: TagLibValidator returns error(s) for taglib [/WEB-INF/c.tld]: [
         com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Unsupported character: a9(:main:, row:739, col:23)(:main:, row=739, col=23) -> com.sap.engine.lib.xml.parser.ParserException: Unsupported character: a9(:main:, row:739, col:23)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.validate(JSPParser.java:243)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.initParser(JSPParser.java:348)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:105)
         ... 37 more
    #1.5#000CF1AFC124017A000000050000067000041B1D550F5F94#1155712701868#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#sap.com/doculine#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#Guest#2####661184d02cf711db80fa000cf1afc124#SAPEngine_Application_Thread[impl:3]_37##0#0#Error#1#/System/Server/WebRequests#Plain###Processing HTTP request to servlet [action] finished with error.
    The error is: com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: Internal error while parsing JSP page [C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/doculine/servlet_jsp/doculine/root/admin/login.jsp].
    Exception id: [000CF1AFC124017A000000030000067000041B1D550F5C88]#

  • Live Migration Fails with error Synthetic FiberChannel Port: Failed to finish reserving resources on an VM using Windows Server 2012 R2 Hyper-V

    Hi, I'm currently experiencing a problem with some VMs in a Hyper-V 2012 R2 failover cluster using Fiber Channel adapters with Virtual SAN configured on the hyper-v hosts.
    I have read several articles about this issues like this ones:
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/baca348d-fb57-4d8f-978b-f1e7282f89a1/synthetic-fibrechannel-port-failed-to-start-reserving-resources-with-error-insufficient-system?forum=winserverhyperv
    http://social.technet.microsoft.com/wiki/contents/articles/18698.hyper-v-virtual-fibre-channel-troubleshooting-guide.aspx
    But haven't been able to fix my issue.
    The Virtual SAN is configured on every hyper-v host node in the cluster. And every VM has 2 fiber channel adapters configured.
    All the World Wide Names are configured both on the FC Switch as well as the FC SAN.
    All the drivers for the FC Adapter in the Hyper-V Hosts have been updated to their latest versions.
    The strange thing is that the issue is not affecting all of the VMs, some of the VMs with FC adapters configured are live migrating just fine, others are getting this error.
    Quick migration works without problems.
    We even tried removing and creating new FC Adapters on a VM with problems, we had to configure the switch and SAN with the new WWN names and all, but ended up having the same problem.
    At first we thought is was related to the hosts, but since some VMs do work live migrating with FC adapters we tried migrating them on every host, everything worked well.
    My guess is that it has to be something related to the VMs itself but I haven't been able to figure out what is it.
    Any ideas on how to solve this is deeply appreciated.
    Thank you!
    Eduardo Rojas

    Hi Eduardo,
    How are things going ?
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Synthetic FibreChannel Port: Failed to start reserving resources with Error 'Insufficient system resources exist to complete the requested service.' (0x800705AA)

    Hello Gurus 
    i have installed windows server 2012 RTM with Hyper-V. i already created virtual machine with virtual fiber channel adapter connected to physical one. sometimes when i restart the virtual machine it gets failed to start again and the following error appears
    in the event viewer of the host:
    error id 21502
    'Virtual Machine xyz' failed to start.
    'xyz' failed to start. (Virtual machine ID number)
    'xyz' Synthetic FibreChannel Port: Failed to start reserving resources with Error 'Insufficient system resources exist to complete the requested service.' (0x800705AA). (Virtual machine ID
    number)
    'xyz': Operation for virtual port (C003FF18F98C000E) failed with an error: No physical port available to satisfy the request (Virtual machine ID
    number).
    error id 1069
    Cluster resource 'Virtual Machine xyz' of type 'Virtual Machine' in clustered role 'xyz' failed. The error code was '0x5aa' ('Insufficient system resources exist to complete the requested service.').
    Based on the failure policies for the resource and role, the cluster service may try to bring the resource online on this node or move the group to another node of the cluster and then restart it.  Check the resource and group state using Failover Cluster
    Manager or the Get-ClusterResource Windows PowerShell cmdlet.
    appreciate your help
    Ashraf

    Dear All,
    Subject : Need to create a file cluster
    in Guest Vms (Host machine : Windows 2012 R2), using MSA p2000 strorage with HBA Qlogic (HP 8Gb PCIe Host Bus Adapter)
    Note: It's a direct connection from HBA to HP MSA p2000 (No SAN switch in between)
    Currently I am using Qlogic HBA (HP
    81Q 8Gb 1-port PCIe Fibre Channel Host Bus Adapter- Part No. AK344A).
    Unable to create vPort using  Microsoft
    Hyper-V (Win 2012 R2) & secondly using QConverge
    Console utility.
           When trying to create  Microsoft
    Hyper-V (Win 2012 R2), I received the below error.
    Secondly, when I am trying to create vSAN switch in using Qlogic QConverge Utility the above error is popup. 
    Currently I am using the following latest version of Qlogic Firmware & Drivers...
    HBA - Running Firmware Version:  7.00.02
    HBA - Driver Version:  STOR Miniport 9.1.11.24
    If any body the same issue, Please could you update me as earliest.
    Regards,
    Mirza

  • Error: ORA-16751: resource guard encountered errors in switchover to primar

    Hello ,
    I have just completed dataguard configuration for one standby server. However when I tries to switchover i am getting following error in dataguard log file.
    DG 2011-07-09-20:08:58 0 2 0 RSM0: HEALTH CHECK ERROR: ORA-16816: incorrect database role
    DG 2011-07-09-20:08:58 0 2 0 RSM0: HEALTH CHECK ERROR: ORA-16783: instance p11 not open for read and write access
    DG 2011-07-09-20:08:58 0 2 0 RSM Warning: cannot find the destinationsetting in v$archive_dest for database 'p11_disaster'.
    DG 2011-07-09-20:08:58 0 2 0 RSM0: HEALTH CHECK WARNING: ORA-16728: consistency check for property LogXptMode found ORA-16777 error
    DG 2011-07-09-20:08:58 0 2 0 RSM0: HEALTH CHECK WARNING: ORA-16777: unable to find the destination entry of a standby database in V$ARCHIVE_DEST
    DG 2011-07-09-20:08:58 0 2 0 RSM Warning: cannot find the destinationsetting in v$archive_dest for database 'p11_disaster'.
    DG 2011-07-09-20:08:58 0 2 0 RSM0: HEALTH CHECK WARNING: ORA-16728: consistency check for property DelayMins found ORA-16777 error
    DG 2011-07-09-20:08:58 0 2 0 RSM0: HEALTH CHECK WARNING: ORA-16777: unable to find the destination entry of a standby database in V$ARCHIVE_DEST
    DG 2011-07-09-20:08:58 0 2 0 RSM Warning: cannot find the destinationsetting in v$archive_dest for database 'p11_disaster'.
    DG 2011-07-09-20:08:58 0 2 0 RSM0: HEALTH CHECK WARNING: ORA-16728: consistency check for property Binding found ORA-16777 error
    DG 2011-07-09-20:08:58 0 2 0 RSM0: HEALTH CHECK WARNING: ORA-16777: unable to find the destination entry of a standby database in V$ARCHIVE_DEST
    DG 2011-07-09-20:08:58 0 2 0 RSM Warning: cannot find the destinationsetting in v$archive_dest for database 'p11_disaster'.
    DG 2011-07-09-20:08:58 0 2 0 RSM0: HEALTH CHECK WARNING: ORA-16728: consistency check for property MaxFailure found ORA-16777 error
    DG 2011-07-09-20:08:58 0 2 0 RSM0: HEALTH CHECK WARNING: ORA-16777: unable to find the destination entry of a standby database in V$ARCHIVE_DEST
    DG 2011-07-09-20:08:58 0 2 0 RSM Warning: cannot find the destinationsetting in v$archive_dest for database 'p11_disaster'.
    DG 2011-07-09-20:08:58 0 2 0 RSM0: HEALTH CHECK WARNING: ORA-16728: consistency check for property MaxConnections found ORA-16777 error
    DG 2011-07-09-20:08:58 0 2 0 RSM0: HEALTH CHECK WARNING: ORA-16777: unable to find the destination entry of a standby database in V$ARCHIVE_DEST
    DG 2011-07-09-20:08:58 0 2 0 RSM Warning: cannot find the destinationsetting in v$archive_dest for database 'p11_disaster'.
    DG 2011-07-09-20:08:58 0 2 0 RSM0: HEALTH CHECK WARNING: ORA-16728: consistency check for property ReopenSecs found ORA-16777 error
    DG 2011-07-09-20:08:58 0 2 0 RSM0: HEALTH CHECK WARNING: ORA-16777: unable to find the destination entry of a standby database in V$ARCHIVE_DEST
    DG 2011-07-09-20:08:58 0 2 756068556 Operation CTL_GET_STATUS cancelled during phase 2, error = ORA-16810
    DG 2011-07-09-20:08:58 0 2 756068556 Operation CTL_GET_STATUS cancelled during phase 2, error = ORA-16810
    I have tried several times however it changes the role of primary DB to physical standby , which i again change to primary by "Alter Database Commit to Switchover to PRIMARY with session Shutdown;"
    Here are the DGMGRL command prompts output.
    C:\Documents and Settings\p11adm>dgmgrl
    DGMGRL for 64-bit Windows: Version 10.2.0.2.0 - 64bit Production
    Copyright (c) 2000, 2005, Oracle. All rights reserved.
    Welcome to DGMGRL, type "help" for information.
    DGMGRL> connect sys/windows123@to_primary
    Connected.
    DGMGRL> show database verbose p11_primary;
    Database
    Name: p11_primary
    Role: PRIMARY
    Enabled: YES
    Intended State: ONLINE
    Instance(s):
    p11
    Properties:
    InitialConnectIdentifier = 'to_primary'
    LogXptMode = 'ASYNC'
    Dependency = ''
    DelayMins = '0'
    Binding = 'OPTIONAL'
    MaxFailure = '0'
    MaxConnections = '1'
    ReopenSecs = '300'
    NetTimeout = '180'
    LogShipping = 'ON'
    PreferredApplyInstance = ''
    ApplyInstanceTimeout = '0'
    ApplyParallel = 'AUTO'
    StandbyFileManagement = 'AUTO'
    ArchiveLagTarget = '0'
    LogArchiveMaxProcesses = '10'
    LogArchiveMinSucceedDest = '1'
    DbFileNameConvert = ''
    LogFileNameConvert = ''
    FastStartFailoverTarget = ''
    StatusReport = '(monitor)'
    InconsistentProperties = '(monitor)'
    InconsistentLogXptProps = '(monitor)'
    SendQEntries = '(monitor)'
    LogXptStatus = '(monitor)'
    RecvQEntries = '(monitor)'
    HostName = 'PROD104'
    SidName = 'p11'
    LocalListenerAddress = '(ADDRESS=(PROTOCOL=TCP)(HOST=10.0.1.104)(
    PORT=1527))'
    StandbyArchiveLocation = 'C:\oracle\P11\oraarch\P11arch'
    AlternateLocation = ''
    LogArchiveTrace = '0'
    LogArchiveFormat = 'ARC%S_%R.%T'
    LatestLog = '(monitor)'
    TopWaitEvents = '(monitor)'
    Current status for "p11_primary":
    SUCCESS
    DGMGRL> show database verbose p11_disaster;
    Database
    Name: p11_disaster
    Role: PHYSICAL STANDBY
    Enabled: YES
    Intended State: ONLINE
    Instance(s):
    p11
    Properties:
    InitialConnectIdentifier = 'to_standby'
    LogXptMode = 'ARCH'
    Dependency = ''
    DelayMins = '0'
    Binding = 'OPTIONAL'
    MaxFailure = '0'
    MaxConnections = '1'
    ReopenSecs = '300'
    NetTimeout = '180'
    LogShipping = 'ON'
    PreferredApplyInstance = ''
    ApplyInstanceTimeout = '0'
    ApplyParallel = 'AUTO'
    StandbyFileManagement = 'AUTO'
    ArchiveLagTarget = '0'
    LogArchiveMaxProcesses = '10'
    LogArchiveMinSucceedDest = '1'
    DbFileNameConvert = ''
    LogFileNameConvert = ''
    FastStartFailoverTarget = ''
    StatusReport = '(monitor)'
    InconsistentProperties = '(monitor)'
    InconsistentLogXptProps = '(monitor)'
    SendQEntries = '(monitor)'
    LogXptStatus = '(monitor)'
    RecvQEntries = '(monitor)'
    HostName = 'PROD102'
    SidName = 'p11'
    LocalListenerAddress = '(ADDRESS=(PROTOCOL=TCP)(HOST=10.0.1.102)(
    PORT=1527))'
    StandbyArchiveLocation = 'C:\oracle\P11\oraarch\P11arch'
    AlternateLocation = ''
    LogArchiveTrace = '0'
    LogArchiveFormat = 'ARC%S_%R.%T'
    LatestLog = '(monitor)'
    TopWaitEvents = '(monitor)'
    Current status for "p11_disaster":
    SUCCESS
    DGMGRL> switchover to p11_disaster;
    Performing switchover NOW, please wait...
    Error: ORA-16751: resource guard encountered errors in switchover to primary dat
    abase
    Failed.
    Unable to switchover, primary database is still "p11_primary"
    Here are the changed pfile of both DB's
    Pfile changes at Primary
    *.db_name='p11'
    *.db_unique_name='p11_primary'
    *.dg_broker_start=true
    *.dml_locks=4000
    *.event='10191 trace name context forever, level 1'
    *.FILESYSTEMIO_OPTIONS='setall'
    *.job_queue_processes=1
    *.local_listener='(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.1.104)(PORT = 1527))'
    *.log_archive_config='dg_config=(p11_disaster,p11_primary)'
    *.log_archive_dest_1='LOCATION=C:\oracle\P11\oraarch\P11arch VALID_FOR=(ALL_LOGFILES,ALL_ROLES)'
    *.log_archive_dest_state_1='enable'
    *.log_archive_dest_state_2='ENABLE'
    *.log_archive_max_processes=10
    *.log_archive_min_succeed_dest=1
    *.log_buffer=1048576
    *.log_checkpoint_interval=0
    *.log_checkpoints_to_alert=true
    *.open_cursors=800
    *.parallel_execution_message_size=16384
    *.pga_aggregate_target=347917516
    *.processes=80
    *.query_rewrite_enabled='false'
    *.recyclebin='off'
    *.remote_login_passwordfile='exclusive'
    *.remote_os_authent=true
    Pfile of standby server ( few parameters are created by DGMGRL itself)
    *.db_name='P11'
    *.db_unique_name='P11_disaster'
    *.dg_broker_start=TRUE
    *.dml_locks=4000
    *.event='10191 trace name context forever, level 1'
    *.fal_client='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.0.1.102)(PORT=1527)))(CONNECT_DATA=(SERVICE_NAME=p11_disaster_XPT)(INSTANCE_NAME=p11)(SERVER=dedicated)))'
    *.fal_server='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.0.1.104)(PORT=1527)))(CONNECT_DATA=(SERVICE_NAME=p11_primary_XPT)(SERVER=dedicated)))'
    *.FILESYSTEMIO_OPTIONS='setall'
    *.job_queue_processes=1
    *.local_listener='(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.1.102)(PORT = 1527))'
    *.log_archive_config='DG_CONFIG= (P11_primary, P11_disaster)'
    *.log_archive_dest_1='LOCATION="C:\oracle\P11\oraarch\P11arch", VALID_FOR=(ALL_LOGFILES,ALL_ROLES)'
    p11.log_archive_dest_1='location="C:\oracle\P11\oraarch\P11arch"','valid_for=(ALL_LOGFILES,ALL_ROLES)'
    *.log_archive_dest_state_1='enable'
    p11.log_archive_dest_state_1='ENABLE'
    p11.log_archive_format='ARC%S_%R.%T'
    *.log_archive_max_processes=10
    *.log_archive_min_succeed_dest=1
    p11.log_archive_trace=0
    *.log_buffer=1048576
    *.log_checkpoint_interval=0
    *.log_checkpoints_to_alert=true
    *.open_cursors=800
    *.parallel_execution_message_size=16384
    *.pga_aggregate_target=207827763
    *.processes=80
    *.query_rewrite_enabled='false'
    *.recyclebin='off'
    *.remote_login_passwordfile='exclusive'
    *.remote_os_authent=true
    *.replication_dependency_tracking=false
    *.sessions=96
    *.sga_max_size=311741644
    *.shared_pool_reserved_size=15587082
    *.shared_pool_size=300870822
    *.sort_area_retained_size=0
    *.sort_area_size=2097152
    p11.standby_archive_dest='C:\oracle\P11\oraarch\P11arch'
    *.standby_file_management='AUTO'
    Please advice .
    Thanks & Regards
    Edited by: dharm.singh on Jul 9, 2011 7:48 AM

    I have added the standby archive log destination as per your suggestion p11.standby_archive_dest='C:\oracle\P11\oraarch\P11arch'
    However , i am now getting these errors in dgmgrl log file while doing switchover.
    DG 2011-07-11-14:39:24 0 2 756225487 DMON: CTL_ENABLE of p11
    DG 2011-07-11-14:39:24 0 2 756225487 requires reset of LOG XPT Engine
    DG 2011-07-11-14:39:24 0 2 756225487 on Site p11_primary
    DG 2011-07-11-14:39:24 0 2 0 Reset Log Transport Resource: SetState ONLINE, phase BUILD-UP, External Cond ENABLE
    DG 2011-07-11-14:39:24 0 2 0 Set log transport destination: SetState ONLINE, phase BUILD-UP, External Cond ENABLE
    DG 2011-07-11-14:39:24 0 2 0 Executing SQL [alter system set log_archive_dest_2 =  'service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.0.1.102)(PORT=1527)))(CONNECT_DATA=(SERVICE_NAME=p11_disaster_XPT)(INSTANCE_NAME=p11)(SERVER=dedicated)))"', '   LGWR ASYNC NOAFFIRM delay=0 OPTIONAL max_failure=0 max_connections=1   reopen=300 db_unique_name="p11_disaster" register net_timeout=180  valid_for=(online_logfile,primary_role)']
    DG 2011-07-11-14:39:24 0 2 0 SQL [alter system set log_archive_dest_2 =  'service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.0.1.102)(PORT=1527)))(CONNECT_DATA=(SERVICE_NAME=p11_disaster_XPT)(INSTANCE_NAME=p11)(SERVER=dedicated)))"', '   LGWR ASYNC NOAFFIRM delay=0 OPTIONAL max_failure=0 max_connections=1   reopen=300 db_unique_name="p11_disaster" register net_timeout=180  valid_for=(online_logfile,primary_role)'] Executed successfully
    DG 2011-07-11-14:39:24 0 2 0 Executing SQL [alter system set log_archive_dest_state_2 = 'ENABLE']
    DG 2011-07-11-14:39:24 0 2 0 SQL [alter system set log_archive_dest_state_2 = 'ENABLE'] Executed successfully
    DG 2011-07-11-14:39:24 0 2 0 Executing SQL [ALTER SYSTEM SWITCH ALL LOGFILE]
    DG 2011-07-11-14:39:26 0 2 0 SQL [ALTER SYSTEM SWITCH ALL LOGFILE] Executed successfully
    DG 2011-07-11-14:39:26 0 2 0 DMON: site 01001000, instance 00000001 queuing healthcheck lock request
    DG 2011-07-11-14:39:26 0 2 0 DMON: Releasing healthcheck master lock
    DG 2011-07-11-14:39:26 0 2 0 DMON: Health check master lock conversion successful
    DG 2011-07-11-14:39:26 0 2 0 DMON: a process acquired the healthcheck master lock
    DG 2011-07-11-14:39:26 0 2 0 INSV: Received message for inter-instance publication
    DG 2011-07-11-14:39:26 0 2 756225487 DMON: status from rfi_post_instances() for ENABLE = ORA-00000
    DG 2011-07-11-14:39:26 0 2 0 req_id 1.1.756225487, opcode CTL_ENABLE, phase END, flags 5
    DG 2011-07-11-14:39:26 0 2 756225487 DMON: ENABLE Complete, Object p11
    DG 2011-07-11-14:39:26 0 2 756225487      enabled in State ONLINE
    DG 2011-07-11-14:39:26 0 2 756225487 rfm_inst_phase_dispatch 16 END phase processing
    DG 2011-07-11-14:39:26 0 2 0 INSV: All instances have replied for message
    DG 2011-07-11-14:39:26 0 2 0 req_id 1.1.756225487, opcode CTL_ENABLE, phase END
    DG 2011-07-11-14:39:26 0 2 756225487 DMON: CTL_ENABLE operation completed
    DG 2011-07-11-14:39:26 0 2 756225487 DMON: Entered rfm_release_chief_lock for CTL_ENABLE
    DG 2011-07-11-14:39:29 0 2 756225495 DMON: ENUM_DRC: success. (len = 652)
    DG 2011-07-11-14:39:29 0 2 756225495 DMON: ENUM_DRC operation completed
    DG 2011-07-11-14:39:29 1000 2 756225496 DMON: MON_PROPERTY operation completed
    DG 2011-07-11-14:39:29 1000 2 756225497 DMON: Entered rfm_get_chief_lock() for MON_VERIFY, reason 0
    DG 2011-07-11-14:39:29 1000 2 756225497 DMON: chief lock convert for client healthcheck
    DG 2011-07-11-14:39:29 0 2 0 INSV: Received message for inter-instance publication
    DG 2011-07-11-14:39:29 0 2 0 req_id 1.1.756225497, opcode MON_VERIFY, phase BEGIN, flags 5
    DG 2011-07-11-14:39:30 0 2 0 INSV: All instances have replied for message
    DG 2011-07-11-14:39:30 0 2 0 req_id 1.1.756225497, opcode MON_VERIFY, phase BEGIN
    DG 2011-07-11-14:39:30 0 2 0 INSV: Received message for inter-instance publication
    DG 2011-07-11-14:39:30 0 2 0 req_id 1.1.756225497, opcode MON_VERIFY, phase RESYNCH, flags 10005
    DG 2011-07-11-14:39:30 0 2 0 INSV: All instances have replied for message
    DG 2011-07-11-14:39:30 0 2 0 req_id 1.1.756225497, opcode MON_VERIFY, phase RESYNCH
    DG 2011-07-11-14:39:30 1000 2 756225497 DMON: MON_VERIFY operation completed
    DG 2011-07-11-14:39:30 1000 2 756225497 DMON: Entered rfm_release_chief_lock for MON_VERIFY
    DG 2011-07-11-14:39:30 1000 2 756225500 DMON: CTL_GET_STATUS operation completed
    DG 2011-07-11-14:39:44 1000 2 756225501 DMON: Entered rfm_get_chief_lock() for MON_VERIFY, reason 0
    DG 2011-07-11-14:39:44 1000 2 756225501 DMON: chief lock convert for client healthcheck
    DG 2011-07-11-14:39:44 0 2 0 INSV: Received message for inter-instance publication
    DG 2011-07-11-14:39:44 0 2 0 req_id 1.1.756225501, opcode MON_VERIFY, phase BEGIN, flags 5
    DG 2011-07-11-14:39:45 0 2 0 INSV: All instances have replied for message
    DG 2011-07-11-14:39:45 0 2 0 req_id 1.1.756225501, opcode MON_VERIFY, phase BEGIN
    DG 2011-07-11-14:39:45 0 2 0 INSV: Received message for inter-instance publication
    DG 2011-07-11-14:39:45 0 2 0 req_id 1.1.756225501, opcode MON_VERIFY, phase RESYNCH, flags 10005
    DG 2011-07-11-14:39:45 0 2 0 INSV: All instances have replied for message
    DG 2011-07-11-14:39:45 0 2 0 req_id 1.1.756225501, opcode MON_VERIFY, phase RESYNCH
    DG 2011-07-11-14:39:45 1000 2 756225501 DMON: MON_VERIFY operation completed
    DG 2011-07-11-14:39:45 1000 2 756225501 DMON: Entered rfm_release_chief_lock for MON_VERIFY
    DG 2011-07-11-14:39:45 0 2 756225504 DMON: ENUM_DRC: success. (len = 652)
    DG 2011-07-11-14:39:45 0 2 756225504 DMON: ENUM_DRC operation completed
    DG 2011-07-11-14:39:45 1000 2 756225505 DMON: MON_PROPERTY operation completed
    DG 2011-07-11-14:39:45 2000000 3 756225506 DMON: Entered rfm_get_chief_lock() for CTL_SWITCH, reason 0
    DG 2011-07-11-14:39:45 2000000 3 756225506 DMON: chief lock convert for switchover
    DG 2011-07-11-14:39:45 0 2 0 Executing SQL [ALTER SYSTEM ARCHIVE LOG CURRENT]
    DG 2011-07-11-14:39:53 0 2 0 SQL [ALTER SYSTEM ARCHIVE LOG CURRENT] Executed successfully
    DG 2011-07-11-14:39:53 2000000 3 756225506 DMON: posting primary instances for SWITCHOVER phase 1
    DG 2011-07-11-14:39:53 2000000 3 756225506 DMON: dispersing message to standbys for SWITCHOVER phase 1
    DG 2011-07-11-14:39:53 0 2 0 INSV: Received message for inter-instance publication
    DG 2011-07-11-14:39:53 0 2 0 req_id 1.1.756225506, opcode CTL_SWITCH, phase BEGIN, flags 5
    DG 2011-07-11-14:39:53 2000000 3 756225506 DMON: Entered rfmsoexinst for phase 1
    DG 2011-07-11-14:39:53 0 2 0 INSV: All instances have replied for message
    DG 2011-07-11-14:39:53 0 2 0 req_id 1.1.756225506, opcode CTL_SWITCH, phase BEGIN
    DG 2011-07-11-14:39:53 2000000 3 756225506 DMON: CLSR being notified to disable services and shutdown instances as appropriate for SWITCHOVER.
    DG 2011-07-11-14:39:53 2000000 3 756225506 DMON: posting primary instances for SWITCHOVER phase 2
    DG 2011-07-11-14:39:53 0 2 0 INSV: Received message for inter-instance publication
    DG 2011-07-11-14:39:53 2000000 3 756225506 DMON: dispersing message to standbys for SWITCHOVER phase 2
    DG 2011-07-11-14:39:53 0 2 0 req_id 1.1.756225506, opcode CTL_SWITCH, phase TEARDOWN, flags 5
    DG 2011-07-11-14:39:53 2000000 3 756225506 DMON: Entered rfmsoexinst for phase 2
    DG 2011-07-11-14:39:53 0 2 0 RSM 0 received SETSTATE request: rid=0x01041000, sid=0, phid=1, econd=2, sitehndl=0x02001000
    DG 2011-07-11-14:39:53 0 2 0 Log Transport Resource: SetState OFFLINE, phase TEAR-DOWN, External Cond SWITCH-OVER-PHYS_STBY
    DG 2011-07-11-14:39:53 0 2 0 RSM 0 received SETSTATE request: rid=0x01012000, sid=4, phid=1, econd=2, sitehndl=0x02001000
    DG 2011-07-11-14:39:53 0 2 0 Database Resource[IAM=PRIMARY]: SetState PHYSICAL-APPLY-ON, phase TEAR-DOWN, External Cond SWITCH-OVER-PHYS_STBY, Target Site Handle 0x02001000
    DG 2011-07-11-14:39:53 0 2 0 Executing SQL [ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY WITH SESSION SHUTDOWN]
    DG 2011-07-11-14:41:32 0 2 0 SQL [ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY WITH SESSION SHUTDOWN] Executed successfully
    DG 2011-07-11-14:41:32 0 2 0 Executing SQL [alter system set log_archive_dest_2 = '']
    DG 2011-07-11-14:41:32 0 2 0 SQL [alter system set log_archive_dest_2 = ''] Executed successfully
    DG 2011-07-11-14:41:32 0 2 0 Executing SQL [alter system set log_archive_dest_state_2 = 'ENABLE']
    DG 2011-07-11-14:41:32 0 2 0 SQL [alter system set log_archive_dest_state_2 = 'ENABLE'] Executed successfully
    DG 2011-07-11-14:41:32 0 2 0 Database Resource SetState succeeded
    DG 2011-07-11-14:41:32 0 2 0 INSV: All instances have replied for message
    DG 2011-07-11-14:41:32 0 2 0 req_id 1.1.756225506, opcode CTL_SWITCH, phase TEARDOWN
    DG 2011-07-11-14:41:32 2000000 3 756225506 DMON: posting primary instances for SWITCHOVER phase 2
    DG 2011-07-11-14:41:32 2000000 3 756225506 DMON: dispersing message to standbys for SWITCHOVER phase 2
    DG 2011-07-11-14:41:32 0 2 0 INSV: Received message for inter-instance publication
    DG 2011-07-11-14:41:32 0 2 0 req_id 1.1.756225506, opcode CTL_SWITCH, phase TEARDOWN, flags 5
    DG 2011-07-11-14:41:32 2000000 3 756225506 DMON: Entered rfmsoexinst for phase 2
    DG 2011-07-11-14:41:32 0 2 0 INSV: All instances have replied for message
    DG 2011-07-11-14:41:32 0 2 0 req_id 1.1.756225506, opcode CTL_SWITCH, phase TEARDOWN
    DG 2011-07-11-14:41:47 2000000 3 756225506 Operation CTL_SWITCH cancelled during phase 2, error = ORA-16751
    DG 2011-07-11-14:41:47 2000000 3 756225506 DMON: CLSR being notified to enable services and startup primary instances as appropriate for SWITCHOVER.
    DG 2011-07-11-14:41:47 0 2 0 DMON: site 01001000, instance 00000001 queuing healthcheck lock request
    DG 2011-07-11-14:41:47 0 2 0 DMON: Releasing healthcheck master lock
    DG 2011-07-11-14:41:47 0 2 0 DMON: Health check master lock conversion successful
    DG 2011-07-11-14:41:47 0 2 0 DMON: a process acquired the healthcheck master lock
    DG 2011-07-11-14:41:47 2000000 3 756225506 DMON: posting primary instances for SWITCHOVER phase 5
    DG 2011-07-11-14:41:47 2000000 3 756225506 DMON: SWITCHOVER Aborted due to errors
    DG 2011-07-11-14:41:47 0 2 0 INSV: Received message for inter-instance publication
    DG 2011-07-11-14:41:47 2000000 3 756225506      Site named: p11_primary is still primary
    DG 2011-07-11-14:41:48 0 2 0 req_id 1.1.756225506, opcode CTL_SWITCH, phase END, flags 5
    DG 2011-07-11-14:41:48 2000000 3 756225506      error = ORA-16751
    DG 2011-07-11-14:41:48 2000000 3 756225506 DMON: dispersing message to standbys for SWITCHOVER phase 5
    DG 2011-07-11-14:41:48 0 2 0 INSV: All instances have replied for message
    DG 2011-07-11-14:41:48 0 2 0 DMON: site 01001000, instance 00000001 queuing healthcheck lock request
    DG 2011-07-11-14:41:48 0 2 0 req_id 1.1.756225506, opcode CTL_SWITCH, phase END
    DG 2011-07-11-14:41:48 0 2 0 DMON: Releasing healthcheck master lock
    DG 2011-07-11-14:41:48 0 2 0 DMON: Health check master lock conversion successful
    DG 2011-07-11-14:41:48 0 2 0 DMON: a process acquired the healthcheck master lock
    DG 2011-07-11-14:41:48 2000000 3 756225506 Operation CTL_SWITCH cancelled during phase 5, error = ORA-16751
    DG 2011-07-11-14:41:48 2000000 3 756225506 DMON: CTL_SWITCH operation completed
    DG 2011-07-11-14:41:48 2000000 3 756225506 DMON: Entered rfm_release_chief_lock for CTL_SWITCH
    Please advice.

  • Invalid resource handle or path name "/cmshome"

    I setup an cmsxdb.
    a user is created but the following error occured.
    "oracle.otnsamples.cmsxdb.exception.CMSAccessException: SQL Exception in getFolderContents for type : FOLDER while getting the list : oracle.jdbc.driver.OracleSQLException: ORA-29902: error in executing ODCIIndexStart() routine
    ORA-31001: Invalid resource handle or path name "/cmshome" "
    pls how to setup /cmshome
    thx

    Dan,
    Did you follow the installation instructions in the Install.html file provided in the doc directory?
    While configuring the application, did the following statement go through successfully :
    SQL>@<SAMPLE_HOME>/sql/install.sql
    Else, please post the error message.
    This SQL script creates the '/cmshome' folder.
    Note : This application works with Oracle9i v9.2.0.2 or higher Database Server only.
    Regards
    Pushkala

  • 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?

  • ORA-31001: Invalid resource handle or path name

    I am using Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production.
    I need to read xml contents from a file at D:\ on my windows system.
    File name is test.xml.
    I am using the system account as its a personal server.
    I tried as follows:
    SQL> CREATE DIRECTORY myxml AS 'D:';
    SQL> declare
    2 parser xmlparser.Parser;
    3 begin
    4 xmlparser.parse(parser,'myxml\test.xml');
    5 end;
    6 /
    declare
    ERROR at line 1:
    ORA-31001: Invalid resource handle or path name "myxml\test.xml"
    ORA-06512: at "SYS.XDBURITYPE", line 11
    ORA-06512: at "XDB.DBMS_XSLPROCESSOR", line 142
    ORA-29280: invalid directory path
    ORA-29280: invalid directory path
    ORA-29280: invalid directory path
    ORA-06512: at "XDB.DBMS_XMLPARSER", line 120
    ORA-06512: at line 4
    D: is a FAT32 partition so Windows 7 offers no acl/permission restrictions. I have also tried from other different locations and the error is the same.
    Please help me.

    907985 wrote:
    SQL> CREATE DIRECTORY myxml AS 'D:';
    ORA-29280: invalid directory path
    ORA-06512: at "XDB.DBMS_XMLPARSER", line 120I haven't tried it, but perhaps it's as simple as error message implies. Try with at least one directory e.g. D:\ or D:\somefoldername in the directory object's path name.

  • Fatal Error: missing resource: java.util.PropertyResourceBundle =Urgent

    Hi all,
    In the JSP ,if I include the statement <%@ page import="jack.samples.*" %>
    it is throwing following error:
    This is the Error Message from the Exception:
         Server caught unhandled exception from servlet [BaseServlet]: Server caught
         unhandled exception from servlet [CategoryDisplay]: Server caught unhandled
         exception from servlet [jsp]: Fatal Error: missing resource: java.util.PropertyResourceBundle
         I am using Websphere 3.5 on Windows NT.
         can somebody please help me what is going wrong here ???I am stopped at
         this problem for last 2 days.
    Thanks
    Jack

    Hi,
    Finally I was able to resolve after adding this jar file to the classfile
    path of the application.
    Now,I am trying to access use linkTable.add(new Item(222,"222","333",12.33)) in JSP.
    where linkTable is a LinkedList.
    It fails giving following error:
    This is the Error Message from the Exception:
    Server caught unhandled exception from servlet [BaseServlet]: Server caught unhandled exception from servlet : Server caught unhandled exception from servlet [jsp]: Compilation of "softproduct.jsp" failed: d:\ibm\WAServer\temp\default_host\WCSServlets\_jameco_2F_softproduct_2E_jsp_jsp_2.java:824: No constructor matching Item&#40;int, java.lang.String, java.lang.String, double&#41; found in class jack.samples.Item. linkTab.add&#40;new Item&#40;2222,"222","222",22.33&#41;&#41;&#59; ^ Note: d:\ibm\WAServer\temp\default_host\WCSServlets\_jameco_2F_softproduct_2E_jsp_jsp_2.java uses or overrides a deprecated API. Recompile with "-deprecation" for details. 1 error, 1 warning
    I dont understand why it is failing to add Item object to LinkedList.
    can somebody help me in the forum in this regard.
    Thanks
    Jack

  • Portal Invalid at the top level of the document.  Error processing resource...

    We installed WebLogic Portal.  We were able to bring up the webpage while we were configured on port 80.  As soon as we wired the portal for port 443, it would not display page.  Error:   Invalid at the top level of the document. Error processing resource...
    We are on a VM with Redhat Linux 5.  Oracle Weblogic portal 10.3.5
    Has anyone had this issue in the past and was able to resolve it?

    Did you upgrade your Portal to 10.1.4? Are you using the Web Cache port # or the HTTP Server port #? You can get this error message if you use the HTTP Server port # on Portal 10.1.4.

  • Windows server 2012 failover cluster error: Cluster resource 'Virtual Machine Configuration ... of type 'Virtual machine configuration in clustered role ... failed.

    I have two windows 2012 host server that are clustered using windows failover cluster feature. Each server is hosting four VMs. When migrating from Host2 to Host1, the migration failed with the following error:
    Cluster resource 'Virtual Machine Configuration SCPCSQLSRV01' of type 'Virtual Machine Configuration' in clustered role 'SCPCSQLSRV01' failed. The error code was '0x569' ('Logon failure: the user has not been granted the requested logon type at this computer.').
    When this happens, the VM that I was migrating can no longer be started even on the original host. The only remedy is to restart the host server.
    Any suggestion on resolving this problem?
    Thanks
    Ikad

    Thanks. The article referred to above gives the solution to my issue. There is a group policy that is applied to the OU where the host servers were placed. Doing gpupdate /force temporarily removes the problem. Unfortunately the NT Virtual Machine\Virtual
    Machines account is a special account that cannot be added like other accounts and granted the log on as a service right. The thread
    http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/d56f2eae-726e-409a-8813-670a406593e8 contains how it can be added which is by creating a group and running the command
    Net localgroup VMTest “NT Virtual Machine\Virtual Machines” /add
    to add it to a local group VMTest. VMTest is then assigned the right to log on as a service.
    Ikad

  • XML document must have a top level element. Error processing resource

    Hi,
    I am trying to send a XML file to a web browser from a servlet. I read the contents of the XML file into a string and I am sending it to the brower. Before I do this I set the 'Content-type' header of the httpResponse to "application/xml" . Embedded in the XML file is an xml-stylesheet elemetn indicating which *.xsl stylesheet to use to parse the XML content.
    I get the following error:
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'http://127.0.0.1:8080/testReplyingXML/xml-to-html.xs...
    Now, if I take the stylesheet element out of the XML string I sent, then the browser stores the content into and *.xml file. I manually run the "xml-to-xsl " stylesheet mentioned in the error output above, and there is no problem, the xml content gets successfully transformed in a viewable HTML .
    It is only when I embed the "stylesheet" element into the XML content that I get this error.
    So the browser is receiveing valid XML.
    I am not sure if the above error is complaining about the XML content I send or the stylesshet .
    Does anyone have an idea of what am I doing wrong?
    For your information here are my servlet code and the XML file:
    servlet:-
    package webapps.testReplyingXML;
    import java.io.BufferedReader;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.io.FileReader;
    import java.util.Enumeration;
    import java.util.StringTokenizer;
    import java.io.PrintWriter;
    public class ReplyXML extends HttpServlet {
              static int transactionCount = 0;
              public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException ,IOException {
                   String Q_PARAM = "query";
                   String requestString = req.getQueryString();
                   for ( Enumeration en = req.getParameterNames() ; en.hasMoreElements() ; )
         String k = (String)en.nextElement() ;
         String[] x = req.getParameterValues(k) ;
         String s = null;
         String DATA_PARAM= "";
         for(int i = 0 ; i < x.length ; i++ )
         s = x[i] ;
         //System.out.println("s = " + s);
         if (k.equals("query")){
              try {
                             //res.setHeader("Content-Type", "application/xml");
                             //res.setHeader("Transfer-Encoding", "chunked");
                             //res.setHeader("Cache-Control", "no-cache");
                             //res.setHeader("Server", "Jetty/5.1.10");
                             //res.setHeader("Pragma", "no-cache");
                             //res.setHeader("X-Joseki-Server", "Joseki-3.0-dev");
                             res.setStatus(res.SC_OK);
                             StringBuffer fileData = new StringBuffer(1000);
                        BufferedReader reader = new BufferedReader(new FileReader("sparql_results.xml"));
                        char[] buf = new char[1024];
                        int numRead=0;
                        while((numRead=reader.read(buf)) != -1){
                        String readData = String.valueOf(buf, 0, numRead);
                        fileData.append(readData);
                        buf = new char[1024];
                        reader.close();
                        String xmlMsg= fileData.toString();
                        System.out.println("XMLMSG= " + xmlMsg);
                             PrintWriter outresp = res.getWriter();
                             outresp.println(xmlMsg);
                             outresp.close();
              }catch (Exception e) {
                   e.printStackTrace();
              public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
                   doGet(req, res);
    XML FILE:
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="xml-to-html.xsl"?>
    <sparql
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:xs="http://www.w3.org/2001/XMLSchema#"
    xmlns="http://www.w3.org/2005/sparql-results#" >
    <head>
    <variable name="book"/>
    <variable name="title"/>
    </head>
    <results ordered="false" distinct="false">
    <result>
    <binding name="book">
    <uri>http://example.org/book/book6</uri>
    </binding>
    <binding name="title">
    <literal>Harry Potter and the Half-Blood Prince</literal>
    </binding>
    </result>
    <result>
    <binding name="book">
    <uri>http://example.org/book/book5</uri>
    </binding>
    <binding name="title">
    <literal>Harry Potter and the Order of the Phoenix</literal>
    </binding>
    </result>
    <result>
    <binding name="book">
    <uri>http://example.org/book/book4</uri>
    </binding>
    <binding name="title">
    <literal>Harry Potter and the Goblet of Fire</literal>
    </binding>
    </result>
    <result>
    <binding name="book">
    <uri>http://example.org/book/book3</uri>
    </binding>
    <binding name="title">
    <literal>Harry Potter and the Prisoner Of Azkaban</literal>
    </binding>
    </result>
    <result>
    <binding name="book">
    <uri>http://example.org/book/book2</uri>
    </binding>
    <binding name="title">
    <literal>Harry Potter and the Chamber of Secrets</literal>
    </binding>
    </result>
    <result>
    <binding name="book">
    <uri>http://example.org/book/book1</uri>
    </binding>
    <binding name="title">
    <literal>Harry Potter and the Philosopher's Stone</literal>
    </binding>
    </result>
    </results>
    </sparql>

    Error processing resource http://127.0.0.1:8080/testReplyingXML/xml-to-html.xs...
    Well, if one more character had been deleted from that message then you would have a problem. But as it is, the error message says there's an error processing a resouce whose name ends with "xml-to-html.xs" followed by something. That would be the stylesheet if I'm not mistaken. Most likely the browser can't find it at the URL mentioned in the error message.

  • Resource not available error in servlet

    This is my directory structure C:\Program Files\Apache Software Foundation\Tomcat 4.1\webapps\VSG\WEB-INF and here i have in web-inf my web.xml which looks like this
    <web-app>
    <servlet servlet-name>Myservlet</servlet-name>
    <servlet-class>Myservlet<servlet-class>
    </servlet>
    <servlet-mapping >
    <servlet-name>Myservlet</servlet-name>
    <url-pattern>/myservlet</url-pattern>
    </servlet-mapping>
    </web-app>
    while my class file is at this position C:\Program Files\Apache Software Foundation\Tomcat 4.1\webapps\vsg\WEB-INF\classes
    Now i run my servlet in browser as
    http://localhost:8080/vsg/myservlet
    it gives me error that resource is not available.... any idea on this ???

    ganeshmb wrote:
    Package-less classes are no longer supported .. .. when you use Tomcat 4.1 with Java 1.4 or newer due to a security bugfix. Since Tomcat 5.0 it is been "fixed" by an internal workaround.
    Still, putting classes in a package is highly recommended. You can only access classes from another packages when you explicitly import it. As you cannot import from the default package, the classes in the default package remains unaccessible for classes in another packages (like the application server implementation classes).

  • 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

Maybe you are looking for

  • Best Practice for using multiple models

    Hi Buddies,      Can u tell me the best practices for using multiple models in single WD application?     Means --> I am using 3 RFCs on single application for my function. Each time i am importing that RFC model under     WD --->Models and i did mod

  • Import library and playlists from Windows Media Player without duplicates

    How do I import all the music and playlists from Windows Media Player into iTunes without creating duplicates? I add the folder containing all my music to iTunes and all my music arrives nicely. I begin importing playlists and the playlist comes over

  • Frozen on setting date and time, tried restart and reset.

    Purchased my atv a year ago and I'm having problems with getting it to work. It's stuck on the settings screen, I've tried everything from unplugging, to resetting and restarting. Does anyone have any other ideas.

  • Retina Macbook using iMac sound output?

    Hi I'm currently using a thunderbolt display with my retina macbook pro. I'm thinking about getting an iMac instead of the thunderbolt display. I know you can use the iMac as a secondary display for the rMBP just like the 27" thunderbolt display. But

  • New iPhone won't connect to Cox e-mail

    I have a new iPhone 5S and I cannot get my connection to Cox e-mail.  It says my password or username is not correct but it is.  I am OK connected with my computer and I have other members of the house connected to their accounts of of the main (the