NoSuchMethodError: WDInteractiveFormHelper.getContextDataAsStream
Hi,
i'd like to create a PDF file programmatically using the IDWPDFObject interface.
I use the following code snippet to accomplish this:
IWDPDFObject pdfObject = new PDFObject();
IWDInteractiveForm iaf = (IWDInteractiveForm) view.getElement("InteractiveForm12");
pdfObject.setData(WDInteractiveFormHelper.getContextDataAsStream(wdContext.nodeDataSource()));
The last line raises the following exception:
java.lang.NoSuchMethodError: com.sap.tc.webdynpro.clientserver.adobe.api.WDInteractiveFormHelper.getContextDataAsStream(Lcom/sap/tc/webdynpro/progmodel/api/IWDNode;)Ljava/io/ByteArrayOutputStream;
My NWDS version is 2.0.14 SPS 1, build number 200604050416.
Our portal ist at:
Web Dynpro Runtime Vendor: SAP, Build ID: 6.4014.00.0000.20050905165427.0000 (release=630_VAL_REL, buildtime=2005-09-20:20:24:49[UTC], changelist=366934, host=PWDFM026)
J2EE Engine 6.40 patchlevel 98256.313
Java VM Java HotSpot(TM) Server VM, version:1.4.2_07-b05, vendor: Sun Microsystems Inc.
Operating system Windows 2003, version: 5.2, architecture: x86
I think there is an incompatible library on the server. Do we have to apply a patch to our WAS? If so which one?
Any help is appreciated!
regards
Dirk
Hi Ajay,
Let's understand why this problem: you are passing an HTTP url as the template source. This URL then woould be passed on to ADS (which i guess is a different server for you) which will try to access this template and that fails because of authentication issue (most likely) as ADS does not have access to your server.
Solution: There are two ways you can solve this issue:
1. Use pdfContext.setTemplate(byte[] template) method instead of URL. Read the binary on your own and pass the binary itself.
2. Configure a destination on ADS and pass the destination URL instead of HTTP url with the setTemplate method.
Kind Regards,
Krish
Similar Messages
-
Generate Adobe Interactiveform pdf using Web Dynpro Java API.
I created pdf form by using standard "InteractiveFormElement" and it is displaying correctly in browser.
Now there is a requirement to provide url link to the same pdf that is displayed with InteractiveFormElement. To generate pdf, I was doing something the below.
//Copied XDP file from the srcconfigurationcomponents<package><file>.xdp
//to srcmimiescomponents<package><file>.xdp
try {
templateUrl = WDURLGenerator.getWebResourceURL(
wdComponentAPI.getDeployableObjectPart(),
"CompView_InteractiveForm.xdp");
} catch (WDURLException e) {
IWDPDFDocumentCreationContext pdfContext =
WDPDFDocumentFactory.getDocumentHandler().getDocumentCreationContext();
pdfContext.setData(
WDInteractiveFormHelper.getContextDataAsStream(wdContext.nodeDataNode()));
pdfContext.setTemplate(templateUrl);
IWDPDFDocument pdf = null;
try {
pdf = pdfContext.execute();
} catch (WDPDFDocumentRenderException e) {
wdComponentAPI.getMessageManager().reportException(
"pdfContext.execute() " + e.getLocalizedMessage(), false);
IWDPDFDocument.execute() is raising exeception "Template used in PDF render
operation is invalid or cannot be found". template url is indeed correct. I checked by
assigning to that url to linkToUrl Element and opening the xdp file.
Please help me to identify the issue. Thank you.Hi Ajay,
Use getResourcePath instead of getWebResourceURL
templateUrl = WDURLGenerator.getResourcePath(
wdComponentAPI.getDeployableObjectPart(),
"CompView_InteractiveForm.xdp");
Thanks
Ram -
Create a pdf without showing it in the UI?
Hello!
I'm trying out Interactive Forms for Java for the first time, so please bear with me if this is obvious.
Is there a way to create a pdf and not display it in the ui? If I for example just want to download or email it.
I've tried setting visibility to None and Blank but that prevents the PDF from being generated at all.
It sort of works if I use FireFox and choose DisplayType activeX since FireFox can't display ActiveX. Our customer runs IE so that is not an option however.
Thank you for any input!
Kind regards,
Richard Linnander
Edited by: Richard Linnander on Jun 18, 2010 1:49 PM
Edited by: Richard Linnander on Jun 18, 2010 1:52 PMHi Richard,
You can create a pdf without displying it in UI.
Follow the below steps :
1. Copy your xdp file under mimes folder.
2. create a pdfsource context and DataSource node for pdf.
3. Create a File Download UI element in Ui and bind the data property with pdf source context.
4. Now copy the below code in wdDoInit() which is genrating the pdf from xdp.
wdContext.getNodeInfo().getAttribute("pdfSource").getModifiableSimpleType();
ByteArrayInputStream pdfInputStream = null;
String templateUrl = null;
try {
templateUrl = WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(),"Name of XDP with extension");
} catch (WDAliasResolvingException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
try {
IWDPDFDocumentHandler pdfDocumentHandler = WDPDFDocumentFactory.getDocumentHandler();
IWDPDFDocumentCreationContext pdfDocumentCreationContext = pdfDocumentHandler.getDocumentCreationContext();
pdfDocumentCreationContext.setData(WDInteractiveFormHelper.getContextDataAsStream(wdContext.nodeDataSource()));
pdfDocumentCreationContext.setTemplate(getByteArrayFromResourcePath(templateUrl));
//pdfDocumentCreationContext.setDynamic(true);
IWDPDFDocument pdfDocument = pdfDocumentCreationContext.execute();
pdfInputStream = (ByteArrayInputStream)pdfDocument.getPDFAsStream();
wdContext.currentContextElement().setPdfSource(pdfDocument.getPDF());
} catch (WDPDFDocumentRenderException e) {
wdComponentAPI.getMessageManager().reportException("An error occured: "+e.toString(), true);
}catch(Exception e){
wdComponentAPI.getMessageManager().reportException("An error occured: "+e.toString(),true);
5. create a another method in global section
private byte[] getByteArrayFromResourcePath(String resourcePath)
throws FileNotFoundException, IOException {
FileInputStream in = new FileInputStream(new File(resourcePath));
ByteArrayOutputStream out = new ByteArrayOutputStream();
int length;
byte[] part = new byte[10 * 1024];
while ((length = in.read(part)) != -1) {
out.write(part, 0, length);
in.close();
return out.toByteArray(); -
Issue with emailing dynamically generated PDF (InteractiveForm UI element)
Hi Experts ,
I have a requirement according to which i need to generate PDF dynamically using webdynpro java and email the dynamically generated PDF.
I am facing issue while emailing the dynamically genarated pdf.
It gives me an exception :
nested exception is: javax.mail.MessagingException: IOException while sending message; nested exception is: java.io.IOException: no data
This is because its unable to get the binary data (byte array) of the dynamically generated PDF which is required to send mail.
Could some one suggest me how to fetch the binary data of the dynamically generated PDF.
For dynamic PDF generation i am using dynamic generation of UI element InteractiveForm UI Element
In case of static PDF (i.e. the PDF genarated by inserting the InteractiveFrom Ui element on the view using the insert child option) we do set the pdf source property of Interactive Form UI element to a context variable attribute of type binary but my problem is ,how to set the PDF source of a dynamically generated Interactive form UI element to a context variable attribute of type binary ..
Any help would be highly appreciated.
Regards ,
NavyaHi Frank ,
the code to generate PDF dynamically is written in the WdDoModifyView section of the view as the PDF need to be generated dynamically., i.e. by adding InteractiveForm UI elements at runtime.
I tried the code suggested by you but i gave mean exception.
errorjava.io.FileNotFoundException:
(The system cannot find the path specified)
Kindly let me know where i am going wrong .
Below is the code that i had written in a separate method m_mail().
This would take as input the name of the dynamically generated data node and is called from the wdDoModifyView section of the view
public void m_mail( java.lang.String p_dynamicnodeName )
ByteArrayOutputStream templateSourceOutputStream = new ByteArrayOutputStream();
// This would need to have the Templatefile in the Mimes-Directory of the Webdynpro-Component
String templateUrl = WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(), "AdobeView1_InteractiveForm.xdp");
InputStream templateSourceInputStream = new FileInputStream(templateUrl);
IOUtil.write(templateSourceInputStream, templateSourceOutputStream);
IWDPDFDocumentCreationContext pdfContext = WDPDFDocumentFactory.getDocumentHandler().getDocumentCreationContext();
pdfContext.setData(WDInteractiveFormHelper.getContextDataAsStream(wdContext
.nodeCtx_vn_dynmcnd()
.getChildNode(p_dynamicnodeName, IWDNode.NO_SELECTION)));
pdfContext.setTemplate(templateSourceOutputStream);
pdfContext.setInteractive(false);
IWDPDFDocument pdf = pdfContext.execute();
if (pdf != null) {
pdfArray = pdf.getPDF();
Kindly let me know where am i going wrong.
Regards ,
Navya -
Generate Adobe Interactive Form in background and setpdfSource value.
Hi,
Is there any way to create Adobe Interactive Form in the background assigning R/3 data (without displaying) and assign pdfSource binary information in context attribute and later, display Adobe Interactive Form using pdfSource context attribute in a new window?
if Adobe Interactive Form is in Visible state, I'm also able to display Adobe Interactive Form in a new window using pdfSource binary context attribute, .
But, unable to create Adobe Interactive form in the background when Adobe Interactive Form Visibility is NONE and unable to assign binary data to pdfSource attribute in context and hence unable to display Adobe Interactive Form in a new window. Kindly help me if this process is possible.
Thank you in advance.
Regards
PrasadHi Prasad,
This is certainly possible. First populate the dataSource context node with the data (e.g. coming from R/3). Then use <a href="http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/adobe/api/WDInteractiveFormHelper.html">WDInteractiveFormHelper.getContextDataAsStream</a> to obtain the data.xml as a byte[] by calling toByteArray() on the ByteArrayOutputStream. The next step is to obtain the xdp template as a byte[] (I don't know exactly how to do this, but it's certainly possible using some API, just as you would read other resources deployed within your Web Dynpro). When you have both the template and the data, you can use the <a href="http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/adobe/pdfdocument/api/package-summary.html">PDFDocument</a> API to render a PDF, something as <i>WDPDFDocumentFactory.getDocumentHandler().getDocumentContext().getDocumentCreationContext()</i>; set the data and the template and other options like interactive, call execute and retrieve the pdf byte[] from the returned object. Eventually you can assign the pdf byte[] to the pdfSource context attribute. In case you use NW04, you must use the <a href="http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/pdfobject/api/package-summary.html">PDFObject</a> instead.
Besides, why would you want to create the PDF before displaying it?
Kind regards,
Sigiswald -
IWDPDFDocumentCreationContext Interface - no static text rendered
WebDynPro java. Netweaver 2004s
Adobe LiveCycleDesigner 7.1 I believe (how can I confirm?)
I am using the IWDPDFDocumentCreationContext to render a non-interative PDF form. When the pdf is rendered, none of the static text, horizontal lines, page headers are displayed. They ARE displayed in the PDF Preview tab of the interactive LiveCycleDesigner. The data layout that is taken from the context node is displayed correctly.
I am using the following code:
InputStream xdpStream = new FileInputStream(xdpFilename);
ByteArrayOutputStream templateSourceOutputStream = new ByteArrayOutputStream();
IOUtil.write(xdpStream, templateSourceOutputStream);
IWDPDFDocumentCreationContext pdfContext = WDPDFDocumentFactory.getDocumentHandler().getDocumentCreationContext();
pdfContext.setTemplate(templateSourceOutputStream);
pdfContext.setData(WDInteractiveFormHelper.getContextDataAsStream(wdContext.nodeOrderTemplate()));
IWDPDFDocument pdf = pdfContext.execute(); //the PDF is created
ByteArrayOutputStream pdfOutputStream = new ByteArrayOutputStream();
IOUtil.write(pdf.getPDFAsStream(), pdfOutputStream);
String pdfFileName = "OrderTemplate.pdf";
FileWriter fileWriter = new FileWriter(pdfFileName);
fileWriter.write(pdfOutputStream.toString());
fileWriter.close();Once again thanks Steven,
I don't think I've explained my self in the right way.
In GeneratorText_en.properties I can see these definitions:
SAVE_BUTTON_LABEL = &Save
could you please explain if "&Save" is the end value (in that case what means the "&") or a reference to a variable where the global definition of "&Save" is defined. If its a reference one could only change the value once instead of changing it several times.
SELECT_TITLE = Select {0}
Whats the porpoise of {0} ?
Regards, -
Query based taxonomy from scratch gives NoSuchMethodError...
I'm trying to create a query based taxonomy following the instuctions specified in the help docs: KM Platform -> Admin Guide -> Content Mgmt -> Taxonomies and Classification -> Creating a QBT -> from scratch. I created an index on a newly created (hence empty) folder in the 'documents' repository. So, essentially, the data source points to that folder. Also, I selected 'TREX Classification' on the 'Service' drop-down while creating the index. I left the crwler profile as blank. Then I went on to create a new 'Query Based Taxonomy'. I was able to create it alright, but as soon as I click on it to add folder and the such, I get this error:
java.lang.NoSuchMethodError
at com.sapportals.wcm.repository.manager.taxonomy.TaxonomyNamespaceManager.getDocumentTaxRMRids(TaxonomyNamespaceManager.java:1876)
at com.sapportals.wcm.repository.manager.taxonomy.TaxonomyNamespaceManager.getTaxonomyClassResources(TaxonomyNamespaceManager.java:1831)
at com.sapportals.wcm.repository.manager.taxonomy.TaxonomyNamespaceManager.addChildDocuments(TaxonomyNamespaceManager.java:1942)
at com.sapportals.wcm.repository.manager.taxonomy.TaxonomyNamespaceManager.getChildren(TaxonomyNamespaceManager.java:368)
at com.sapportals.wcm.repository.CollectionImpl.internalGetChildren(CollectionImpl.java:966)
at com.sapportals.wcm.repository.CollectionImpl.getChildren(CollectionImpl.java:179)
Any help in solving this is highly apprecaited.
We run EP6 SP2.
I did NOT create a 'crawler profile' for this set up.
thanks,
Biju.Hi Biju,
re. your NW'04 SP stack 4 migration intention:
NW'04 is still in ramp-up (SP stack 4 is the current shipment bundle of it) so at the current point in time, only participating ramp-up customers can use it.
A migration from EP6.0 SP2 to NW'04 will be possible (but not during the ramp-up phase).
From a Knowledge Management & Collaboration perspective, we will port most of the NW'04 SP stack 4 functions to EP6.0 SP2 as well. These functions will be shipped as EP6.0 SP2 Patch 5 (planned shipment date beginning of Q4 / 2004) so for mid-term, you can also plan to stay on EP6.0 SP2 if you have no other pressing reasons for going to NW'04 (e.g. enhanced Web AS functions).
This feature porting from NW -> EP6.0 SP2 is an 'only-once' action, however, and NetWeaver will be the release for new features in the future.
Regards,
Joerg -
Hi,
I develop application on Jdeveloper 10.1.3.2 and it's working when I run on OC4J in Jdeveloper. But when I deploy on Oracle Application Server 10.1.3, I got error message like this
java.lang.NoSuchMethodError: oracle.adf.share.perf.StateTracker.isActive()Z
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:94)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Thanks in advance.I already install. The others application can run on this AS but it's develop on other version of Jdeveloper such as 10.1.3.1.
Actually, I used JAZN on my project but when I deploy on AS I got problem that user cannot log-in to the application (look like login is invalid but I already generate janzn-data.xml and orion-application.xml). I think the reason is AS will authen through OID. So, I remove JAZN from my project. After that when I deploy on AS, I got this error. -
I have several applications that were created in 10.1.3. Some are JHS, some not. After migrating them from 10.1.3 to 10.1.3.1 I get a no such method error. See below.
I have already tried replacing the jsf-impl.jar file.
Any suggestions?
Thanks,
Jim
java.lang.NoSuchMethodError: void oracle.adf.view.faces.webapp.UploadedFileProcessor.init(java.lang.Object) at oracle.adfinternal.view.faces.webapp.ConfigParser.parseConfigFile(ConfigParser.java:117) at oracle.adfinternal.view.faces.context.AdfFacesContextFactoryImpl._getBean(AdfFacesContextFactoryImpl.java:40) at oracle.adfinternal.view.faces.context.AdfFacesContextFactoryImpl.createContext(AdfFacesContextFactoryImpl.java:29) at oracle.adfinternal.view.faces.webapp.AdfFacesFilterHelperImpl.startFilter(AdfFacesFilterHelperImpl.java:87) at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:110) at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:106) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17) at gov.llnl.auth.authentication.servlet.AuthFilter$1.run(AuthFilter.java:245) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at gov.llnl.auth.authentication.servlet.AuthFilter.doFilterAuthenticated(AuthFilter.java:158) at gov.llnl.auth.authentication.servlet.AuthFilter.doFilter(AuthFilter.java:132) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595)Hi,
replace adf-faces-impl.jar and jsf-impl.jar in your view project as shown below
Copy adf-faces-impl.jar from jdeveloper_10131_3984\jlib to <workspace name>\ViewController\public_html\WEB-INF\lib
Copy jsf-impl.jar from jdeveloper_10131_3984\jsf-ri to <workspace name>\ViewController\public_html\WEB-INF\lib
Frank -
Java.lang.NoSuchMethodError while invoking web service method
Hi, I have a web service which has two methods exposed as
A and B.
I deployed it on weblogic server (7.0 SP4) and fired teh request when I got this error:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Header/>
<env:Body>
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring/>
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">java.lang.NoSuchMethodError
I tried deploying the web service on another instance and there the method A was invoked but I got the same error when I tried invoking B.
I tried it on third instance and there both the methods were successfully invoked.
The methods A and B name start with capital letter (someone told me that method name should not start with capital letter but that does not hold good here)
Any idea why this starnge behavior of web service?Hi Guys,
I have solved the above issue by applying the PATCH 1 & PATCH 2 of the
BPEL 10.1.2 version .
Thanks
Kalyan -
Java.lang.NoSuchMethodError while running the Application on MI client
Hi Experts
During development I run my application through NWDS and worked perfect. But when I run my application only through MI client. It through error on my programmed methods: java.lang.NoSuchMethodError:
Any advice is highly appreciated!
MichalThanks for your reply!
I use MI 2.5 SP20 and that trace is:
Internal Servlet Error:
java.lang.NoSuchMethodError: com.sap.myApp.bean.TableViewBean.setAll(Ljava/lang/String;)V
Thanks for any advice -
Hello,
Im having trouble running a Web Dynpro Application. When running, the application is showing me the following exception,
java.lang.NoSuchMethodError: com.sap.tc.webdynpro.model.webservice.gci.WSTypedModel.<init>(Ljava/lang/String;Ljava/lang/String;Ljavax/xml/namespace/QName;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Lcom/sap/tc/webdynpro/model/webservice/gci/IWSTypedModelInfo;Ljava/util/Map;Ljava/util/Map;)V
at pe.com.minsur.wd_po_ws.wd_po_ws_model.Wd_po_ws_Model.<init>(Wd_po_ws_Model.java:124)
at pe.com.minsur.wd_po_ws.wd_po_ws_app.comp.Wd_po_ws_Comp.wdDoInit(Wd_po_ws_Comp.java:120)
at pe.com.minsur.wd_po_ws.wd_po_ws_app.comp.wdp.InternalWd_po_ws_Comp.wdDoInit(InternalWd_po_ws_Comp.java:195)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:160)
This is in the DoInit() method, In the line,
Wd_po_ws_Model wd_po_ws_ModelModel = new Wd_po_ws_Model();
It could be the METADATA or MODELDATA destination configuration?
Thanks
SUHello,
The problem is solved following these steps,
"NWDS IDE is in SP04 whereas the WebDynpro Runtime is in SP01. So yo have to upgrade your WebDynpro in WebAS to SP04.
All WebDynpro for Java patches are available on SAP Service Marketplace.Note 330793 explains how to download patches from SAP Service Marketplace. Note 1395865 explains how to find the Web Dynpro for Java related SCAs.
Update your system via JSPM.
Please refer the link to the official documentation for JSPM
http://help.sap.com/saphelp_nwpi711/helpdata/en/1f/c45b4211aac353e10000000a1550b0/frameset.htm
From WebDynpro perspective, we recommend you to apply both WD-RUNTIME.SCA and FRAMEWORK.SCA. So if any one of the archive is not mentioned in the 'SP Patch Level' tab, it is recommended to apply the same which is available in the service market place."
Regards
SU -
Hello,
I have SAP EH1 for SAP NWCE 7.1 and NWDS with the recent upgrade pack of WD. When I run my WD application the following exception ocurr,
java.lang.NoSuchMethodError: com.sap.tc.webdynpro.model.webservice.gci.WSTypedModel.(Ljava/lang/String;Ljava/lang/String;Ljavax/xml/namespace/QName;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Lcom/sap/tc/webdynpro/model/webservice/gci/IWSTypedModelInfo;Ljava/util/Map;Ljava/util/Map;)V
at pe.com.minsur.wd_test_esr.wdtestesr_model.Wdtestesr_Model.<init>(Wdtestesr_Model.java:240)
at pe.com.minsur.wd_test_esr.wdtestesr_app.comp.Wdtestesr_Comp.wdDoInit(Wdtestesr_Comp.java:111)
at pe.com.minsur.wd_test_esr.wdtestesr_app.comp.wdp.InternalWdtestesr_Comp.wdDoInit(InternalWdtestesr_Comp.java:445)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:160)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:227)
My DoInit Method only have this code,
public void wdDoInit()
Wdtestesr_Model model = new Wdtestesr_Model();
Any ideas?
Regards
MGThe problem is that the logical destinations are not well configured.
-
NoSuchMethodError in XSL Transformation
I am trying to run this piece of code to transform an xml file to html.
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document docData = builder.parse("orders.xml");
DOMSource sourceDom = new DOMSource(docData.getDocumentElement());
Document docResult = builder.newDocument();
Result resultDom = new DOMResult(docResult);
//stylesheet
Source srcStyle = new StreamSource("Orders.xsl");
TransformerFactory transFactory = TransformerFactory.newInstance();
Transformer transformer = transFactory.newTransformer(srcStyle);
// This is the line giving the error
transformer.transform(sourceDom, new StreamResult(System.out));
I get the following error :
java.lang.NoSuchMethodError
at org.apache.xml.dtm.ref.dom2dtm.DOM2DTM.addNode(DOM2DTM.java:262)
at org.apache.xml.dtm.ref.dom2dtm.DOM2DTM.<init>(DOM2DTM.java:151)
at org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.java:189)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:630)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1088)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1066)
at tryJavaXml.main(tryJavaXml.java:42)I already fixed this one..but thanks all the same..n yes, the classpath contained references to jars used by Weblogic which in turn contained the same class files. Removing these from the classpath solved the problem..
-
Java.lang.NoSuchMethodError using beans and JSP
Hi,
I get a
java.lang.NoSuchMethodError: Unit.UnitBean.execSQL(Ljava/lang/String; Ljava/sql/ResultSet;
when i try to call that method from my jsp page. I can call all other methods in teh bean but I can't understand why it can't find execSQL when it finds every thing else.
Any help would be greatly appreciated.
Mike
Heres a copy of my java bean code:
package Unit;
import java.sql.*;
import java.io.*;
public class UnitBean
Connection con;
String error;
public boolean connect() throws ClassNotFoundException,SQLException
String StudentNumber = "xxx";
String strHost = "xxxx";
String strConnectURL = ("jdbc:postgresql://" + strHost + "/");
String strUser = "xxxx";
String strPassword = "xxxxx";
Class.forName("org.postgresql.Driver");
con = DriverManager.getConnection(strConnectURL, strUser, strPassword);
return true;
public void disconnect() throws SQLException
con.close();
public ResultSet execSQL(String sql)throws SQLException
Statement s = con.createStatement();
ResultSet rs = s.executeQuery(sql);
return rs;
public String test()
String Mike="HIHIHIHIHI";
return Mike;
}And the jsp code:
<%@ page language="java" contentType="text/html"%>
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<jsp:useBean id="Unit" class="Unit.UnitBean" scope="page"/>
<html>
<head>
<title>Test My Bean!!!!???!!?!</title>
</head>
<body>
<%
String SQL ="Select * from unit where unitid='CMPS2B26'";
ResultSet rs =null;
try
Unit.connect();
rs = Unit.execSQL(SQL);
while(rs.next())
out.println(rs.getString("unitid"));
Unit.disconnect();
catch(Exception e)
out.println("<p>Problem with jsp code" +e);
%>
This is a jsp page.
<p><a href = "http://stuweb3.cmp.uea.ac.uk/~xxxx/index.html">Click here for home page</a>
</body>
</html>Yeah, that worked great, thanks a lot. I thought that JSP compiled when you changed it and then visited it, but i've tried that. I just ran ant stop start on my server and it's all working.
Thanks again :)
Mike
Maybe you are looking for
-
Stop and start the system via the SAP GUI
........ although I don't know the answer! We have SAP running on an iSeries/DB2 format. And we of course have stopped and started our SAP systems many times before via an iSeries screen. One thing we have never had to do, is stop and start the syste
-
I get the message "The credit card information is not valid. Please check your entries carefully." but when I use my card it works fine, I've checked Paypal and the detatils are correct(which considering I used paypal to buy something from another si
-
The backup disk image "/Volumes/Data/JP's iMac.sparsebundle" is already in use. Latest successful backup: 10 January 2014 what should i do ?
-
Reading Metadata From File Resets the Setting
I am using Lightroom 4 on MAC OS X Yosemite. I have done some editing on a picture in DNG format and then clicked "Save Metadata to File". I checked the XMP file with textedit and found that the change is indeed saved. But when I click "Read Metadat
-
Indivual error recording in Merge Statement !!!!
Is it possible to record indivudual error in MERGE statement (Update / Insert). I am unable to record those error. instead of MERGE if I update table in the cursor loop then I am able to record individual error but the process is time consuming. Than