Core dump while trying to access attributes in a node using SAX

I'm running the 10g xdk with Solaris 8 and was able to get the SAX examples working. However when I tried to add some code to the example code in order to access/print out attributes, I get a core dump.
code snippet:
void MyHandler::startElementNS ( oratext* qname, oratext* local, oratext* ns_URI, NodeListRef<xmlnode>* attrs_refp)
printf( " Element: %s\n", qname);
if (attrs_refp)
for (int i=0; i<attrs_refp->getLength(); i++) <-- core dumps with getLength() call
xmlnode* node = attrs_ref->item(i);
Am I not accessing the attributes correctly? Is there an easier way to do this that I have overlooked?

I have very similar code for the parser and ran in to two problems. I am currently using 10.1.0.2.0 on Windows.
Problem 1:
Can the original poster of the following code tell me what you have under the ... section? I am trying to iterate through the attributes in attrs_refp
void MyHandler::startElementNS ( oratext* qname, oratext* local, oratext* ns_URI, NodeListRef<xmlnode>* attrs_refp)
printf( " Element: %s\n", qname);
if (attrs_refp)
for (int i=0; i<attrs_refp->getLength(); i++) <-- core dumps with getLength() call
xmlnode* node = attrs_ref->item(i);
In the ... section, I have the following line:
oratext* a = node->getname();
However, the compiler gives the following error:
error C2027: use of undefined type 'xmlnode'
Anyone have any clues as to why xmlnode is undefined?
Problem 2:
If I comment out the line oratext* a = node->getname();, I can successfully compile my program but I get a link error stating that both the methods item() and getLength() are unresolved external symbols. This lead me to believe these methods are not implemented in the Oracle XDK. user457758 seems to have gotten past this stage as he is getting a run time error so the compilation appears to be successful. I assume user457758 is using the latest 10.1.0.3.0 available on Solaris instead of 10.1.0.2.0 that I am currently using on Windows. Did anyone experience similar compilation errors?
Thanks for any help/info in advance.

Similar Messages

  • 500 error while trying to access a jsp which makes use of tiles tags

    Hi all,
    when im trying to access a jsp which makes use of tiles tags, im getting the following error.
    status 500:
    org.apache.jasper.JasperException: The absolute uri: http://struts.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application
    what might be the problem?
    Thanks in advance.

    Hi all,
    sorry...got the reason for the above error..missed to include the tld file in WEB-INF.

  • Error occurred while trying to access desktop

    Dear friends, <br><br>
    I'm working with Composition Environment 7.1 trial version.<br><br>
    I read some other related posts, but they don't apply to our situation.<br><br>
    The problem is: while trying to login into the Portal (with any user) the following error message is displayed:<br><br>
    Error occurred while trying to access desktop: "portal_content/every_user/general/defaultDesktop". The object does not exist or you are not authorized to access it. If this problem persists, contact your system administrator.<br><br>
    The problem began when I deleted an Iview (generated with Visual Composer).<br><br>
    When I go to the NWA developer traces I find the following stack trace:<br><br>
    Exception when calling ObjectFactory for portal_content/administrator/super_admin/main_rules
    [EXCEPTION]
    javax.naming.NamingException
    at com.sap.portal.pcm.GeneralSemanticsSrv.getDefaultContext(GeneralSemanticsSrv.java:194)
    at com.sapportals.portal.resolving.sl.RulePcmObjectFactory.initialize(RulePcmObjectFactory.java:169)
    at com.sapportals.portal.resolving.sl.RulePcmObjectFactory.getObjectInstance(RulePcmObjectFactory.java:68)
    at com.sap.tc.pcd.proxies.JndiProxy.getObjectInstance(JndiProxy.java:69)
    at com.sapportals.portal.pcd.gl.PcdGlContext.getSemanticObject(PcdGlContext.java:962)
    at com.sapportals.portal.pcd.gl.PcdGlContext.getSemanticObject(PcdGlContext.java:742)
    at com.sapportals.portal.pcd.gl.PcdGlContext.lookup(PcdGlContext.java:121)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.lookup(PcdProxyContext.java:1821)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.lookup(PcdProxyContext.java:1807)
    at com.sapportals.portal.resolving.sl.PcmRuleStorage$Loader.load(PcmRuleStorage.java:465)
    at com.sapportals.portal.resolving.sl.PcmRuleStorage.load(PcmRuleStorage.java:160)
    at com.sapportals.portal.resolving.CResolverService.getRulesInternal(CResolverService.java:314)
    at com.sapportals.portal.resolving.CResolverService.resolve(CResolverService.java:208)
    at com.sap.portal.desktop.DesktopService.getDesktopUrl(DesktopService.java:835)
    at com.sap.portal.desktop.DesktopService.getDesktopUrl(DesktopService.java:682)
    at com.sap.portal.desktop.DesktopService.getAndHangDesktop(DesktopService.java:494)
    at com.sap.portal.desktop.DesktopService.getTheme(DesktopService.java:1414)
    at com.sapportals.portal.prt.service.laf.LAFService.getCurrentTheme(LAFService.java:1074)
    at com.sapportals.portal.prt.service.laf.LAFService.getCurrentRuntimeTheme(LAFService.java:1132)
    at com.sapportals.portal.prt.service.laf.LAFService.getThemeToUseIdAndVersion(LAFService.java:1720)
    at com.sapportals.portal.prt.service.laf.LAFService.getThemePartURL(LAFService.java:987)
    at com.sapportals.portal.htmlb.HTMLBService.onHeadTagBegin(HTMLBService.java:138)
    at com.sapportals.portal.htmlb.HTMLBService.doDocumentHook(HTMLBService.java:126)
    at com.sapportals.portal.prt.service.document.DocumentHookMulticaster.doDocumentHook(DocumentHookMulticaster.java:111)
    at com.sapportals.portal.prt.service.document.DocumentHookMulticaster.doDocumentHook(DocumentHookMulticaster.java:111)
    at com.sapportals.portal.prt.service.document.DocumentHookMulticaster.doDocumentHook(DocumentHookMulticaster.java:111)
    at com.sapportals.portal.prt.service.document.DocumentHookService.doDocumentHook(DocumentHookService.java:133)
    at com.sapportals.portal.prt.service.document.DocumentHookServiceNew.doDocumentHook(DocumentHookServiceNew.java:290)
    at com.sapportals.portal.prt.connection.PortalHook.doDocumentHook(PortalHook.java:828)
    at com.sap.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:613)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:203)
    at com.sap.portal.prt.dispatcher.DispatcherServlet.service(DispatcherServlet.java:133)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:140)
    at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:37)
    at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:144)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:140)
    at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doCached(RequestDispatcherImpl.java:517)
    at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:356)
    at com.sap.portal.navigation.Gateway.service(Gateway.java:145)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:162)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:81)
    at com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:73)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:441)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:291)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:396)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:385)
    at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:48)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:76)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:240)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:78)
    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:43)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:425)
    at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:250)
    at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:45)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:109)
    at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:314<br><br>
    I'll appreciate any comments or suggestions.<br><br>
    Have a nice day,<br>
    Manuel
    Edited by: manudubinsky on Sep 23, 2009 4:30 PM
    Edited by: manudubinsky on Sep 23, 2009 4:55 PM
    Edited by: manudubinsky on Sep 23, 2009 5:15 PM

    Hello there,
    Another option is to create a sap* user( then no other user can login) create another user and try login.
    The steps are given here
    http://wiki.sdn.sap.com/wiki/display/EP/ToResetAdministratorPasswordthroughConfigTool
    But I guess CE dont have config tool. so you will have to do the same steps at NWA.
    If all these fail, I am afraid only option is to reinstall the Portal.
    Regards,
    Vivek Nidhi

  • EDA Error while trying to access the personal details.

    Hi All,
    A new user(employee) is assigned with EDA responsibility to view/update his personal details and bank details.
    The user is able to view & update the bank details. But he is not able to open the personal details page. He is getting the following error while trying to access the personal detail link.
    HR_BASIC_DETAILS_WEB.GET_READ_ONLY_INFORAMTION: ORA-20002: 3123: Duplicate attribute 'DISPLAY_MARITAL_STATUS' could not be created for item 'HRSSA/28012061'.
    All users except the new user, dont have this issue.
    Oracle Application Version : 11.5.9
    Could someone help me on this.

    Hi Girish,
    Do you find out the solution to this issue? We having a similar issue with our Enterprise Portal using Apache and Siteminder Agent?

  • An error occurred while trying to access the service?

    I'm trying to convert a PDF into Excel but I get the message 'an error occurred while trying to access the service'.
    I have tried logging into my Adobe account online and doing it within there, but once I have exported the file and pressed 'convert' it simply says 'conversion failure' with no explanation.
    My subscription is still valid, so I don't see why the problems?  Has anyone else had this issue and managed to fix it?  I get the error message regardless of whether I'm trying to convert to Word or Excel.
    Any ideas greatly appreciated!!
    Thanks
    Sophie

    Hi SHurcs,
    I'm sorry that you're having such trouble with your ExportPDF subscription. Does this error occur for one particular file, or with any file that you try to convert? What operating system and browser are you using?
    To get us started, here are a few things that you can try:
    In Reader, sign out, and then sign back in.
    Use a supported web browser:  http://www.adobe.com/acom/systemreqs/
    Clear the browser cache.
    If you're using a networked computer, make sure that there are no firewall/proxy settings that prevent you from uploading files to the Internet.
    Make sure that the files you're trying to convert are within the file-size limits for ExportPDF (100 MB).
    If the problem persists, please let us know, and tell us a bit more about the files that you're converting.
    Best,
    Sara

  • An error occured while trying to access the service

    i'm continually having issues with trying to convert my files from PDF to excel.  I keep on getting the error message "An error occured while trying to access the service" with no real explanation as to what is wrong.  I've tried several times on several different computers, logging on and off, changing users...same message everytime.  I have a time sensitive project to complete, and can't get it done if this conversion can't be done.  HELP!

    Hi J,
    Here are a couple documents that may assist you:
    'Getting started' guide
    FAQ
    Let me know if those help!
    Kindest regards, Stacy

  • Im trying to convert a PDF into an excel document and I keep getting an error message that reads "An error has occurred while trying to access the service". WHat am I doing wrong?

    Im trying to convert a PDF into an excel document and I keep getting an error message that reads "An error has occurred while trying to access the service". WHat am I doing wrong?

    it seems my subscription had expired so I signed up again.. It was still having trouble so I repeated the sign up process again.. Then it worked perfectly.. Unfortunately, I think I just subscribed twice and need to cancel one of them. Ugh. Such a pain when I'm trying to get this project completed. I'll be canceling at least one of the subscriptions in the morning. Adobe is not my favorite company right now. None of this was intuitive. And trying to get help was an absolute waste of an hour.
    Regards,
    Nathaniel
    [removed by moderator]

  • "error while trying to access the service"

    I am trying to convert a pdf file to an excel file.  I get a completely unhelpful message that says  "error while trying to access the service" .
    What does this mean and how do i fix it?

    Hi sd433m,
    Thank you for posting on the Adobe forums. If you are already subscribed to the service, kindly try the steps mentioned below.
    1) Open Adobe Reader  Edit>preferences
    2) Go to Adobe Online services>change the email address to the one you have subscribed the service with
    3) Go to identity> change the email address there as well
    4) Click OK
    5) Restart the Adobe Reader and try to access the service again.
    If you have not subscribed to the service please do that as, we do not offer trial for Create PDF.
    Thanks,
    Vikrantt Singh

  • MSS error while trying to access Adobe forms

    Hi all
    We are using EP 7 sp14. Delpoyed ESS/MSS BP SP 14. while trying to access certain functionalities in MSS which make use if standerd Adobe interactive forme through portal its coming up with the following error.
    com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.
    I had done few settings in Visual Admin in
    1. server >services>web services security>web services clients>sap.com>tcwdpdfobject>com.sap.tc.webdynpro.adsproxy.Adsproxy*configPort_Document.
    2. In default URL gave : http://portalserver:port/AdobeDocumentServices/Config
    3. Authentication:Basic Authentication : gave username:ADSUSERpwd which is set in the backend.
    4. In Deploy stopped and started the application.
    Also in Destinations -> Created a new HTTP and set the URL pointing to the backend.
    Is there any additional configuration to be set on the Portal side.
    Regards,
    Sasha.

    Got corrected with changing data-type for a property in the definition file.

  • Error occurred while trying to access framework

    Did some changes to master rule collection u2013 switched from default desktop to light desktop u2013 and when trying to go back, something went wrong!!!
    Error occurred while trying to access framework page: "pcd:portal_content/com.sap.pct/every_user/general/defaultAjaxframeworkContent/com.sap.portal.afpDesktop/frameworkPages/com.sap.portal.AFPpage",The object does not exist or you are not authorized to access it.If this problem persists, contact your system administrator.
    Activated SAP* user and logged in, but still the same issue!
    Tried also the following url
    http://myhost:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fevery_user!2fgeneral!2fcom.sap.portal.frameworkpage
    with the response:
    Error component failed , reason : Access is denied: pcd:portal_content/com.sap.pct/every_user/general/com.sap.portal.frameworkpage - user: Guest, Original Exception : Access is denied: pcd:portal_content/com.sap.pct/every_user/general/com.sap.portal.frameworkpage - user: Guest,
    What next to do?

    Dear Customer,
    Try to access the Default Framework using the following paterns:
    Default framework page: /irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fevery_user!2fgeneral!2fcom.sap.portal.frameworkpage
    Desktop & Display rules: /irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fadministrator!2fsystem_admin!2fsystem_admin_role!2fcom.sap.portal.system_admin_ws!2fcom.sap.portal.themes!2fcom.sap.portal.portalDisplayRules
    This can be used whenever the desktop assignment to the user which you are logging on with has been removed somehow. If this occurs, the user won't be able to see any content after logging on to the portal and the following error will be shown: "Error occurred while trying to access desktop: "portal_content/themes/sap_chrome". The object does not exist or you are not authorized to access it. If this problem persists, contact your system administrator."
               If this occurs, you can use the address above to restore the desktop rules at least for your user so that you can log on to the portal again with no problems.
    Best Regards,
    Fabio Sarmento

  • While trying to access  i phone through pc (windows 7 ) showing error 'you do not have permission to access this device '

    while trying to access  i phone through pc (windows 7 ) showing error 'you do not have permission to access this device '
    And while trying  to unlock screen after lock , slide not working 'slide to unlock'

    Hello there, charialji.
    The following Knowledge Base article offers some great steps for troubleshooting your issue:
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/ts3281
    Resolution
    If a single application is not responding or stops responding when it opens, you can force it to close.
    If the device is unresponsive or if certain controls aren't working as expected, restart your device.
    If the device remains unresponsive or does not turn on (or power on), reset your device.
    If there is no video or if the screen remains black, verify that the device has enough charge to turn on:
    If you are using an iPad, ensure that it's connected to the USB Power Adapter supplied with the device.
    Let it charge for at least twenty minutes, then see if it starts normally.
    If there is no image on the screen, press the Sleep/Wake button to attempt to wake the device.
    If the screen displays a red battery icon, continue charging the device until the battery is fully charged. Learn more about charging iPhone and iPod touch, or iPad.
    If the above steps do not resolve the issue, or the if the screen remains black or shows a persistent Apple logo, try restoring with iTunes:
    Connect the device to your computer and open iTunes.
    If the device appears in iTunes, select and click Restore on the Summary pane. Learn more aboutrestoring iOS software.
    If the device doesn't appear in iTunes, try to force the device into recovery mode, and then restore it.
    If the above steps do not resolve the issue, contact Apple.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • I am using Adobe Reader with paid up service through May 2015.  When I attempt to convert a file from PDF or to PDF, I get the message "An error occured while trying to access the service.  What do I need to do to access the service paid for?

    I am using Adobe Reader with paid up service through May 2015.  When I attempt to convert a file either to PDF or from PDF, I get the error message, "An error occurred while trying to access the service".  What do I need to do to get access to the service I have paid for?

    Hi DeaconTomColorado,
    Please see "Error occurred when trying to access this service" when logging on to Acrobat.com.
    Adobe has just released an update to Adobe Reader, so if you're accessing the service via Reader, please let us know whether the update helps resolve the issue.
    Best,
    Sara

  • I keep getting the message"an error occurred while trying to access the service".  does anyone know what i need to do to resolve this problem.  I am trying to convert apdf file for msword?

    I keep getting the message"an error occurred while trying to access the service".  does anyone know what i need to do to resolve this problem.  I am trying to convert a PDF file for ms word?

    Adobe Reader is free; but you may have paid for the ExportPDF service.
    Contact Adobe Customer Care and click on the Still need help? button to chat with an agent.
    [topic moved to ExportPDF forum]

  • I am trying to convert PDF to word. With my PC  I get a message  "Error occurred while trying to access the service.   It worked fine for a long time.  Has been doing this for days now with all files i try to convert.

    I am trying to convert PDF to Word with Adobe Export PDF on my PC.  I get the message " error occurred while trying to access service".  Has worked fine in past.  Has been doing this for a few days now on all files i try to convert.    Any ideas?? Thanks

    Hi bert090909,
    Are you trying to convert your files from within Adobe Reader? If so, please make sure that you have the most current version by choosing Help > Check for Updates. Earlier versions of Reader could cause the specific error that you're reporting.
    Please let us know how it goes.
    Best,
    Sara

  • I cannot convert my pdf files to word. I keep getting an error message that "an error occurred while trying to access the service"?

    I cannot convert my pdf files to word. I keep getting an error message that "an error occurred while trying to access the service"?

    See if anything in here helps: https://forums.adobe.com/docs/DOC-1831
    [topic moved to ExportPDF forum]

Maybe you are looking for

  • No result /report when weu00B4re running a risk analysis in background

    Dear forum, We are running several risk analysis in background (from configuration tab) and we cannot see any result in the column called "result". However, when we run a offline analysis (from informer tab) we can see that the column "result" is con

  • StorE steel 640GB - data error (cyclic redundancy check) message

    Hi I have had the StorE drive for a few months, so lots of data on it. Today windows detects it as a local drive and when I attempt to access it I get a message telling me the disk needs to be formatted, when I select no, I get a message saying *data

  • How to implement 'less than' in choosing functions depending on numeric input

    I have a 1D array and I want to split what happens with different values I made it so that the array outputs an element, with a scroll bar to change the element The array is random  When the element is < 512 I want A to happen When the element is > 5

  • I CAN'T OPEN THE "CONTACTS" APP

    Hello, Since I bought my iPad2 I can't open the "Contacts" app, when I try to open it just closes. And because of that I'm having problems to send emails. I just updated the software for the iOS 5.1, but the problem continues. Could you help me? Than

  • Applications Desktop Integrator release 7.2(latest) for Windows

    Dear all, We have installed oracle Apps 11i (11.5.10)under Redhat Linux AS 3.0. Now we need Applications Desktop Integrator release 7.2 (latest)for Windows. Where we can get ADI. Please give us the exact download URL. Regards Mahtab