ClassCastException with Document

I have an abstract class implements DOM Document.
public abstract class XDataDoc implements Document {
I get ClassCastException when I try to parse and XML.
public XDataDoc xDataDoc ;
factory = DocumentBuilderFactory.newInstance();
parser = factory.newDocumentBuilder();
xDataDoc = parser.parse("http://url");
I have the same problem also with the classes implements Node or NodeList. I need this custom Document to use as a data source.
What am I doing wrong? Is there a better way than creating a class implements Document? (Shall I create an interface extends?)
Any help about extends / implements abstract classes and interfaces will be great useful. (I am still a newbie as you will understand)
Thanks in advance.

I have to prepare too many screens for data entry in a
web application.
I have an Oracle 8i database and servlets creating xml
from database and receiving xml to write to database.
Xml created with servlets have all similar schema as
master row and detail rows as childnode of master.
Idea is to create also custom swing objects (such as
JTextField, JcomboBox, Jlist etc) that can work bound
to DOM document. So creating screens will be easy as
easy as placing swing objects on layout.
I forget to mention also that gives the same
exception:
xDataDoc = (XDataDoc) parser.parse("http://url");
Those requirements you describe have nothing to do with your problem, though, and I don't see where they require you to implement Document. In fact you can't implement Document because the parser has already done it for you. Your code needs to look like this:
Document xDataDoc = parser.parse("http://url");

Similar Messages

  • Problem with documents on iCloud.

    I have a problem with documents on iCloud, I can`t use it with Pages on Mac and iOS too, Pages not view any documents and can not approach to save documents and not save new documents to iCloud. Any idea?
    Thank you for help.

    Hello,
    Winston and Shayari,
    I have also faced this problem with document on iCloud, I couldn't saved the documents to iCloud,
    But I found this article problem posted by Hindi love Shayari San and I found the solution this way:
    I signed out, then singed in again renabled the iCloud and it works.
    I could do this with the instructions of Winston told to Shayari.
    Well, a big thanks from my side.
    Veena

  • S_ALR_87012178 to display with document currency

    Hi Expert,
    I tried to run report S_ALR_87012178 and always got the result with local currency, while I want the result with document currency.
    I see another thread that sap note 769338 will help. I tried and it does work.
    Is there anyone who has the experience of using this report.
    Thanks a lot in advance for your reply.
    Chih-Ming

    Hi
    regarding report on trx S_ALR_87012178:
    when you choose the input parameter
    "Summarization level (0-6)"  : '6'
    program RFDOPR10 will automatically set the other parameters as follows:
    "OI sorted list sorting(1,2)": '1'
    "OI list summarization(0-2)" : '1'.
    Consequently it is not possible to only display foreign currency items when using summarization level 6.
    The reason why the program works as it does is the following:
    when you display foreign currency items it is always necessary to also display the currency.
    Without the currency information the OI total would just not make much sense. Summarization level 6, however,
    forces the output of the data in only one line.
    Since only 132 characters can be printed in one line there is not enough space for additional output of the currency.
    Thus it is technically just not possible to also display the currency.
    The combination of "summarization level" 6 and "OI sorted list sorting" 2 therefore is technically impossible.
    If you want to see the document currency please use summarization level 1.
    Please also take a look at note 769226 for more details on this issue.
    Kind Regards
    davide

  • Office 2013 applications crash with Document Information Panel open

    I am using Office Professional Plus 2013 to work with documents that reside in SharePoint 2010 document libraries.
    The content type(s) in that SharePoint site collection are set to automatically show the Document Information Panel when opened in Office applications.  By opening any of these documents in their desktop app (via browser or Skydrive Pro), I am able
    to check-out and edit content; but the check-in step always crashes the application, giving a pop-up error: "An unknown errors has caused <office program> to stop working."
    By choosing to NOT automatically show the Doc Info Panel for these SharePoint documents, Office 2013 programs can handle everything just fine (editing, versioning, etc.).
    If I don't auto-show the Doc Info Panel, but then manually open the panel once I get inside the program, this crashes the program in the same way as before.
    If I save a local copy of a document and show the Doc Info Panel in any way (auto or manual), Office 2013 crashes.
    I couldn't find any postings on this error and I don't see this incompatibility listed in the
    Office 2013 known issues article and was wondering if anyone has had a similar experience?

    I am having the exact same issue.  I have created a Custom Site Column which is defined as a CHOICE.  I do not want to put in a Default so left it blanl but field must be populated.  I then put this into a Document Library Content Type.  
    With documents that are already been uploaded and in the Library when I pull up in Office Web Apps, I can make changes to the document but when I try to save it crashes.   Also, when I pull up document and say edit in Office Web Apps there is no
    way to change information in the Document Information Panel since this does not appear.   (I forgot to mention that I required DIF to display in Content Type also). 
    This only happens on blank column fields when trying to save.  If I do a Quick EDIT of the list and change my blank Choice columns to something(I created as radio buttons) and then go through the process it works OK and will save.  Not sure
    if this pertains to your issue but, I just prepopulate all columns with what the should be,  when a brand new document from word, excel etc is created it is created from the Desktop version of Word Excel and when IT saves to SharePoint, I get
    a message to choose information to put into properties before it actually saves. 
    Hope this helps a little.   

  • Working with documents via BEx Analyzer not using the portal

    Hello,
    i read that we are able to create (work) with documents (comments) via
    BEx Analyzer. When i want to add a comment how it is described in the
    help we get connected to the portal. We dont want to use the portal for
    that. Therefore we searched a way to skip the portal. We read that in
    BW Versions before 7.0 the portal was not connected but since 7.0 we
    have the portal connectivity, but it should also possible to not use
    the portal and to access directly the BI Server. I searched for the
    Customizing to do so but i could not find it where to switch to the old
    logic.
    And another question is when we use the Portal with the knowledge base . The documents are stored in the document framework (SKWF). Is it the same as the Datawarehousing Workbench --> documents. This storage we want to use.
    Can anyone give me a hint?
    Kind regards,
    Murat

    Hi Murat,
       We are also facing the same issue of when trying to create/access the documents from BEx analyzer it is connecting portal , we need to bypass portal and directly access the document browser in BW server.
      In your thread you mentioned it is done. So can you please let me know how did you enable the old configuration?. It will be very much helpful to us.
    Awaiting for your reply.
    Thanks,
    V.Senthilkumar

  • Account Currency is not matching with document currency

    Hi,
    In Sales A/R Invoice Screen when Iam trying to add a document its giving an error by saying Account Currency is not matching with document currency.
    (Item is an Excisable Item and Currency is BP Currency)
    Pls let me know the reason.
    Thanks&Regards,
    Chakrapani Bandaru
    9849290882

    Hello chakrapani bandaru,
    Please set all the G/L accounts involved in the transactions to Multicurrency accounts (e.g. BP, revenue tax accounts etc.)
    It means BP account, revenue and tax account
    as well, even if there is 0% tax.
    Please check Administration/System Initialisation/Company Details/ Basic Initialisation/Default Account Currency and make sure it is set toMulti Currency.
    The exchange rate difference account should also be set to multi currency.
    hope it helps.
    Wilm Wang
    SAP Business One Forums Team

  • Problem with document splitting

    Hi,
    I am encountering a problem with document splitting, where in while doing clearing of down payment against miro invoice profit center of first line item is over ridding profit center of second line item (line items are two different materials in purchase order).

    Hi Milind,
    Thanks for the reply.
    I've done the below configuration and assigned cost/profit center update. It now works for profit center split. It still does not split accordingly per cost center though.
    SAP Customizing Implementation Guide > Financial Accounting (New) > Financial Accounting Global Settings (New) > Ledgers >Ledger > Assign Scenarios and Customer Fields to Ledgers
    In the below configuration, cost center is not an available option. Unlike the profit center which is available here.
    SAP Customizing Implementation Guide > Financial Accounting (New) > General Ledger Accounting (New) > Business Transactions > Document Splitting > Define Document Splitting Characteristics for General Ledger Accounting
    The profit center split looks fine now, however the cost center split still is only reflected in the expense items and not on the AP item.
    Any ideas on how to actually split the AP line items according to the cost center assignments ?
    Edited by: Patrick on May 9, 2011 7:46 AM

  • Error while using Send With Document service

    Hi,
    I am using the send with document email service, and trying to pass an attachment (a text document). When i invoke the process using java component i get the following error:
    com.adobe.workflow.engine.PEUtil logFailedFaultRouting An exception was thrown with name com.adobe.idp.dsc.email.SendMailFailedException message:Failed to send email to mail server: null:25. Cause: null while invoking service EmailService and operation sendWithDocument and no fault routes were found to be configured.
    Can someone give me an idea of how to resolve this issue?
    Thanks..

    From the exception fragment it is complaining that your email properties are not set correctly. In this case the email server name is resolving to null. Make sure they are all set up correctly. The no fault routes just means you have no route in your workflow to handle any errors/exceptions.

  • Material BOMs with document items using RCSBI010

    Has anyone uploaded material BOMs with document items using RCSBI010?  I set the item category to D, but receive an error in LSMW when I attempt to convert the data.  The error specifies that the document items are not valid material numbers.  They are not material numbers.  They are document info records.

    Found the problem. The document number was being mapped to BOM Component IDNRK instead of document number DOKNR.

  • I've been working with documents in pages and recently downloaded word for mac. i open the pages documents and they appear to be corrupt. at least, a lot of the font is now in weird boxed pictures. what do i do?

    I've been working with documents in Pages and recently downloaded Word for Mac. Upon opening Pages documents with Pages, the documents appear corrupt. Much of the font has been replaced with boxed little pictures - yet they are identified as times new roman. What do I do?

    You got the new iphone?????   I have same problem.  I transferred audiobooks to device to find no audiobooks on device (despite it being in iTunes as if it was).  Have you found a solution?????   I even tried to change import settings on format transfer but hasn't worked. 

  • ECC integration with Document Management System

    Hi,
    Can anybody provide step by step approach for connecting ECC with Document management system(product of EMC).
    Also would appreciate if somebody clarifies the folllowing queries
    1) Do we really need Archivelink if we just want to store documents and access documents from DMS.
    2)  What are the configurations required at DMS side and what are the configurations required at SAP ECC.
    Any solution to my problem will be much appreciated.
    Thanks & Regards
    Prabhat

    If you Google 'Flash SCORM' you should find a good deal of
    info.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Corrupt document gets created in document library with document template using createlistitem workflowaction in visual studio workflow for office 365 solution

    Hi,
    My requirement is to create a document library associated to a custom content type with a document template associated. Also I need to create a document based on the template in this document library when a new item is created in another list by taking the
    reference ID of that new Item , I need to create the document with the name appended by ID. I need to do all this deployment using WSP.
    I have created document library with document template associated to content type by following instructions in below stated blog :http://blogs.msdn.com/b/chaks/archive/2011/05/19/deploying-a-document-template-file-in-content-type-in-a-office365-sandboxed-solution.aspx
    This works perfect for me.
    However, there are few observations, when going to Document Library > Library Settings > Advanced Settings > Document Template section - doesnt shows the Edit template link. When tried to look at the value for the document template using view source
    , it is giving me /Lists/MyDocsListInstance/Forms/template.dotx instead of the actual template file uploaded.
    Ignoring the above observation, when I am trying to create a sandbox based workflow in visual studio to create document in document library when new item is created in another list, I provide the ContentTypeID as the ID associated with the document library
    with template. 
    It creates the corrupt document at end of workflow. 
    I have tried using .docx instead of .dotx files for workflow as per solution provided in some of the post but it isnt resolving my issue.
    Any help is much appreciated.
    Regards,
    Krutika

    OK, I am going to throw out a lot of ideas here so hopefully they get you closer to a diagnosis. Hang on :)
    Does it happen to work for some users but not others? If so, try logging in on the "good" computer with the "bad" username. This will tell you if the problem is related to the end-user's system. Also, once the user downloads a document
    successfully can they open and work on it in Word? Also, does the document library have any custom content types associated with it or does it just use 'Document'?
    I notice that there are other folks on the web that have run into this same problem and the similarity seems to be that they are either on SharePoint 2007 or have upgraded from 2007. Did this doc library start out as a 2007 library?
    What you might want to do is this: Make a site collection from scratch in 2013 (or find one that you know was created in 2013). Choose team site (or whatever you want) for the root web and set up the security the same way you have it on the malfunctioning
    library. Now, use windows explorer to copy and paste some of the documents to the new location. Be sure you recreate any needed content types. Now test it from the troubled user's computer.
    I'm thinking there may be something that is different about the library since it was migrated through various versions and updates since 2007. I've sometimes found that there can be problems (especially with user profiles but that's a different story) with
    things that go through this evolution.

  • Script for Save Options- Save Query Results with document

    Hi,
    Is there any javascript for Save query results with document in save options? If so where can i find that?
    Thanks
    Kalai

    hi guys,
    I found the answer.The following example shows you how to save the results with the query
    section named “SalesQuery”.
    ActiveDocument.Sections["SalesQuery"].SaveResults=true

  • Error while Integrating Experience Server with Document Server

    Hi All ,
    I am following tutorial http://help.adobe.com/en_US/enterpriseplatform/10.0/InstallDEP/adep_install_experience_ser vices.pdf
    Following step resulted into error
    6.1 Integrate Experience Server with Document Server
    http://<host>:<port> and click OSGi Console.
    Log in using admin/admin as the username/password > Click the Document Services Settings tab.  ... click  Configure.
    Please help
    Thanks
    YogLC
    Error occurred while performing last Command [CreateLCAdminUserCommand]
    chainedException: com.adobe.idp.um.api.UMException| [com.adobe.livecycle.usermanager.client.DirectoryManagerServiceClient] errorCode:16385 errorCodeHEX:0x4001 message:Exception wrapped in DSCException is Null or NOT An Instance of UMException chainedException:ALC-DSC-020-000: com.adobe.idp.dsc.InvalidStateException: Service: DirectoryManagerService is not in a RUNNING statechainedExceptionMessage:Service: DirectoryManagerService is not in a RUNNING state chainedException trace:ALC-DSC-020-000: com.adobe.idp.dsc.InvalidStateException: Service: DirectoryManagerService is not in a RUNNING state at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:35) at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60) at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:188) at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60) at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48) at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60) at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:121) at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:131) at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke(AbstractMessageReceiv er.java:329) at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invokeCall(SoapSdkEndpoint. java:139) at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invoke(SoapSdkEndpoint.java :81) at sun.reflect.GeneratedMethodAccessor459.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397) at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186) at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281) at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.adobe.idp.dsc.provider.impl.soap.axis.InvocationFilter.doFilter(InvocationFilter.java :43) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.adobe.idp.um.auth.filter.CSRFFilter.doFilter(CSRFFilter.java:86) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja va:179) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java: 157) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja va:580) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:662)

    Looks like there is some issue on the Docuement Server side. Can you provide logs from the Document Server

  • Problems with Document Connect

    I have a problem with Document Connect. I am unable access office live workspace.
    I have been on the help line with microsoft but they were unable to help.
    Then I went to an apple store and was informed by one of the sales assistance that Document Connect never worked with the apple. Well what was the point in having it then?

    I wish I knew what Document Connect is. I'd bet I could fix it. Not really, but what is it?

Maybe you are looking for

  • Zen Micro Doing Some Weird THINGS PLEASE H

    well i've had my zen for a long time and enjoyed it for along time till one day the screen goes blank but i could still listen to my music. its way out of warranty and i tryed to upgrade the firmware but my device wasnt recognized bye the update. Nap

  • How to dynamically set width of SSRS columns in custom code?

    How can I change the width of a table column based on a parameter value using custom code in SSRS? If the parameter value is "Excel", I'd like the width to be 2 inches. If the parameter value is "Standard", I'd like the width to be 1 inch.

  • LDAP as datasource for SAP EP7.0

    Hi All, I want to configure the LDAP as the datasource for the SAP EP 7.0(have both j2ee + abap stack). I followed many of the documents like: Note 777640 - Using an LDAP Directory as UME Data Source and SAP library. But when I want to change the dat

  • Acrobat cannot open the file attachment because your PDF file attachment settings do not allow......

    I have an email with an attachment that requires a password the open.  I can open the file but embedded in the attachment is another attachment.  When I double click attachment I get the following error message.  Acrobat cannot open the file attachme

  • Best approach to exporting and importing an environment

    Client is on 11.1.0.7. Windows 2008 R1. We have a need to export an environment that is using ASM and import that environment to another server that is not using ASM. Environment name will stay the same. Was hoping to get some advice on best approach