Problem while generating PDF using iText
Hi:
I have generated PDF using iText, where i have written all code in sequential flow.
<code>
com.lowagie.text.Document document = new com.lowagie.text.Document(PageSize.A4, 55, 5, 20, 20);
OutputStream outputstream = response.getOutputStream();
PdfWriter.getInstance(document,outputstream);
</code>
And i have added all fields in the document.
But my problem is how to display total pagecount on all pages e.g.1\20 (because i have generated PDF sequentially)
Also i want to add watermark on all pages.
So, can any body help me to solve this problem?
Thank You,
Balaji
sabre150 wrote:
Maybe http://itext-general.2136553.n4.nabble.com/
Nice pron link in there :/
Similar Messages
-
InvalidPDFHeaderSignature Exception while opening pdf using itext jar
Hi,
I am getting InvalidPDFHeader while opening pdf file using itext jar.
How to overcome this?
Thanks,
VeeraPlease continue in your previous thread: Sample code to dynamically append bytes to pdf
Mod: I'm locking up. -
New to Lifecycle, Error while generating PDF using Output service
Hi All,
I am using LC 8.x for weblogic. I am using the code given in the documents to generate PDF given XDP and XML data, using Output Service. I am getting the following error,
Exception in thread "Main Thread" com.adobe.idp.DocumentError: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: Failed to load class com.adobe.idp.DocumentFileID (see the server-side log for details)
at com.adobe.idp.DocumentManagerClient.clientSidePush(DocumentManagerClient.java:181)
at com.adobe.idp.Document.passivateInitData(Document.java:865)
at com.adobe.idp.Document.passivate(Document.java:704)
at com.adobe.idp.Document.passivate(Document.java:661)
at com.adobe.idp.Document.writeObject(Document.java:500)
Any help is greatly appreciated.
Thanks
RaghuHi
I am also doing a similar activity. and getting a IllegalStateException.
com.adobe.livecycle.output.exception.OutputException: java.lang.IllegalStateException
at com.adobe.livecycle.output.client.OutputClient.generatePDFOutput(OutputClient.java:141)
at CreatePDFDocument.main(CreatePDFDocument.java:56)
Caused by: java.lang.IllegalStateException
at com.adobe.idp.dsc.clientsdk.ServiceClientFactory$1.handleThrowable(ServiceClientFactory.j ava:67)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:220)
at com.adobe.livecycle.output.client.OutputClient.invokeRequest(OutputClient.java:436)
at com.adobe.livecycle.output.client.OutputClient.generatePDFOutput(OutputClient.java:124)
... 1 more
Caused by: java.lang.NoClassDefFoundError: org/apache/axis/soap/SOAPConstants
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.adobe.idp.dsc.clientsdk.ServiceClientFactory.createMessageDispatcher(ServiceClientFac tory.java:586)
at com.adobe.idp.dsc.clientsdk.ServiceClientFactory.getMessageDispatcher(ServiceClientFactor y.java:543)
at com.adobe.idp.dsc.clientsdk.ServiceClient.getMessageDispatcher(ServiceClient.java:239)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:205)
... 3 more
Please give a solution for this problom.
regards
Ullas -
Problem while generating hindi pdfs
Hi,
This is Dasaradh. I have one problem while generating pdfs in HIndi. Here i have used two properties files, one is English and another one is Hindhi. If the user selects English PDF is generates Suceesfully. But if the user selects hindhi then pdf is generated but in that pdf all the charcaters are in diferent format but not in hindi.Actually my hindhi properties file and that pdfgerneration jsp both are in UTF-8 format. Here i have used PDFWriter class for generating pdfs.
Can any one pls help for generating the hindhi pdfs.
Thanking You,
Dasaradh.PMake sure that you use the correct and the same encoding thoroughout the complete process.
1) Save the propertiesfile with in that encoding. Even the most simplest texteditor (notepad) offers you an option list of charset encodings to be used during 'Save As'.
2) Read values from the propertiesfile with that encoding. Use a Reader where you specify the encoding in the constructor. Otherwise either the platform's default encoding (e.g. CP1252 in Windows) or the API's default encoding (e.g. ISO 8859-1 in java.util.Properties) will be used.
3) Display the values with that encoding. Specify the charset encoding in a <meta> tag in the HTML head.
A must-read: [http://www.joelonsoftware.com/articles/Unicode.html]. -
Creating PDF using ITEXT API's - error
Hi,
In my WebDynpro Application I want to generate a PDF (using ITEXT API's) out of the data retrieved from back end system .
I used this source code.
Document document = new Document(PageSize.A4);
document.open();
PdfPTable table = new PdfPTable(1);
PdfPCell cell;
cell = new PdfPCell(new Paragraph("ONE"));
table.addCell(cell);
cell = new PdfPCell(new Paragraph("TWO"));
table.addCell(cell);
document.add(table);
document.close();
byte[] b = new byte[100 * 1024];
b = document.toString().getBytes("UTF-8");
IWDCachedWebResource pdfRes = WDWebResource.getPublicCachedWebResource(b, WDWebResourceType.PDF, WDScopeType.CLIENTSESSION_SCOPE, wdThis.wdGetAPI().getComponent().getDeployableObjectPart(),"FileNameHelloText"));
I have used Window Manager to create a external window with the URL from pdfRes.getUrl() method.
After execution i get a pop up window with out PDF document.
Please let me know your thoughts & solutions to the above mentioned problem.
Thanks
SenthilHello Folks,
Use the following snippet of the code to generate PDF using ITEXT API.
Document document = new Document(PageSize.A4);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
PdfWriter.getInstance(document, bos);
document.open();
PdfPTable table = new PdfPTable(1);
PdfPCell cell;
cell = new PdfPCell(new Paragraph("ONE"));
table.addCell(cell);
cell = new PdfPCell(new Paragraph("TWO"));
table.addCell(cell);
document.add(table);
document.close();
byte [] byteContent = bos.toByteArray();
IWDCachedWebResource cachedResource =
WDWebResource.getPublicCachedWebResource(
byteContent,
WDWebResourceType.PDF,
WDScopeType.CLIENTSESSION_SCOPE,
wdThis
.wdGetAPI()
.getComponent()
.getDeployableObjectPart(),
"TestPDF");
IWDWindow externalWindow =
wdComponentAPI
.getWindowManager()
.createExternalWindow(cachedResource.getURL(), "PDF Window",true);
externalWindow.open();
Thanks and Regards,
Gopi -
Scrollbar appearing while creating pdf using AlivePDF
Hi,
I am facing a problem while creating pdf using AlivePDF.
I have a VBox on which I am adding multiple pages. If the content overflows it shows scrollbar. All this is working fine.
[PHP]
<mx:VBox x="0" y="80" width="705" height="560" id="content"></mx:VBox>
[/PHP]
When I create the pdf using the following code it shows scrollbar in generated pdf (attached screenshot) while I want all the content without scrollbar
[PHP]
var pg:DisplayObject;
pg = content.getChildAt(i);
var pdf:PDF;
pdf = new PDF (Orientation.PORTRAIT, Unit.POINT, Size.LETTER);
pdf.setDisplayMode(Display.FULL_WIDTH);
pdf.addPage();
pdf.addImage(pg, new Resize(Mode.FIT_TO_PAGE, Position.CENTERED ),0, 0, 0, 0, 0, 1,true,'PNG',100);
[/PHP]
Please suggest what changes should I make to fix this.If the report didn't change, then perhaps the data did. Check
to make sure the data being supplied to the report is as expected.
I have run into mysterious errors where an expected value was of
the wrong type or a required value was now blank. It is also
possible to have existing logical errors in an iif() or other
dynamic evaluation expression that was not previously examined;
until now. So, is there any unexpected or exceptional data the
report cannot handle? -
Error while generating PDF - in Bex Web
Hi Experts,
I am currently having the issue that I receive the error "Error while generating PDF" when using the "Print Version" functionality. This problem only occurrs for the Bex Web Query. I know that the ADS service is configured correctly- The webservice test is successful and other applications (Guided Procedures, MSS) also use it successfully.
Please see below the excerpt from the default trace:
A message was generated:
ERROR
Error while generating PDF
com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode PageExportRenderingRootNode_0001
Message: 28
Stack trace: java.lang.ArrayIndexOutOfBoundsException: 28
at com.sap.ip.bi.export.xfa.impl.SizeCalculator.getColumnSizes(SizeCalculator.java:178)
at com.sap.ip.bi.export.impl.ExportController.setSizes(ExportController.java:220)
at com.sap.ip.bi.export.impl.ExportController.calculateAndSetSizes(ExportController.java:611)
at com.sap.ip.bi.export.impl.ExportController.doExportPrep(ExportController.java:408)
at com.sap.ip.bi.export.impl.ExportController.convert(ExportController.java:336)
at com.sap.ip.bi.export.controller.ExportResult.createExport(ExportResult.java:58)
at com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode.createPDF(PageExportRenderingRootNode.java:453)
at com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode.doExport(PageExportRenderingRootNode.java:105)
at com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode.processRendering(PageExportRenderingRootNode.java:252)
at com.sap.ip.bi.webapplications.runtime.impl.Page.buildRenderingTree(Page.java:3809)
at com.sap.ip.bi.webapplications.runtime.impl.Page.processRenderingRootNode(Page.java:3867)
at com.sap.ip.bi.webapplications.runtime.impl.Page.processRendering(Page.java:3510)
at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:3470)
at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:2489)
at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.doProcessRequest(Controller.java:892)
at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.processRequest(Controller.java:813)
at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:456)
at com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:21)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
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)
If you have any idea or clue it would be greatly appreciated.
Thanks in advance for every support,
JanHi Jan,
Most possible causes for encountering this issue are:
Possible cause:
- The ADS is installed on a plattform, that is currently not supported by SAP for ADS. Please check the avaliablity at: Product Availability Matrix
- Mixing of different Netweaver releases (NW04 and NW04s) -> This is unfortunatelly not possibble the J2EE engine release has to match with the ABAP stack release in order connect them properly.
- The ADS SP level does not match the J2EE engine SP level. -> Please update the software components to have the same support package level.
Hope this helps!!
Regards,
Arafat -
"error while generating PDF" in WAD
Hi All,
I created Web Template BI7. In the requirement I have to export the report in PDF. I used Button group. When I have run the template and click to the PDF switch I am getting the export dialog after I click to 'ok' I am getting the error error while generating PDF". Please help me how to resolve this error. I am in between the development.
Thanks in Advance
RaviHi Ravi,
First make sure you on the latest patch level for the service pack. Forward the error to the Basis team and ask them to look into the logs. We had a same problem and doing the above 2 steps fixed it.
Thanks,
Ram. -
Custom Purchase Order template causes Error while generating PDF
The standard XSLFO works, my custom one errors:
History of the world:
1) I downloaded the XML Publisher thing for Word, installed it no problems
2) Downloaded the XML data definition for the Standard Purchase Order from XML Publisher Administrator
3) Created a blank word document and created the purchase order layout from scratch using the XML Publisher plug-in
4) Previewed it as a PDF in word - it looked fine (well, it was a start)
5) Exported the XSLFO
6) In XML Publisher created a new template and uploaded the XSLFO
7) Assigned the new template to the document in Purchasing
All good... the new template is defintately the one being used by the PO Output for Communication program. The problem of course is that it throws a useless error message :) - namely:
PoPrintingUtil.getBlobPDF(input,input) - After initializing the FOProcessor
PoPrintingUtil.getBlobPDF(input,input) - After setting the i/o stream and output format
PoPrintingUtil.getBlobPDF(input,input) - Error while generating the PDForacle.apps.xdo.XDOException
genDoc() : Exceptionjava.lang.Exception: Error while generating PDF :null
java.lang.Exception: Error while generating PDF :null
java.lang.Exception: Error while generating PDF :null
at oracle.apps.po.communicate.PoGenerateDocument.genDoc(PoGenerateDocument.java:2011)
at oracle.apps.po.communicate.PoGenerateDocumentCP.runProgram(PoGenerateDocumentCP.java:421)
at oracle.apps.fnd.cp.request.Run.main(Run.java:148)
When I run POXPOPDF in Debug I get:
getArchiveOn(): APPROVE
After calling genDocThu May 18 12:50:05 EST 2006
Adding the blob to vector
java.lang.NullPointerException
java.lang.NullPointerException
at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:89)
at oracle.apps.po.communicate.PoGenerateDocumentCP.runProgram(PoGenerateDocumentCP.java:304)
at oracle.apps.fnd.cp.request.Run.main(Run.java:148)
I know no one can magically fix this for me (I wish!) but does anyone have any suggestions on what to do next? I have no conditional formatting or any other more complex functionality, just a really boring PO layout with a logo.
Any suggestions welcome, in the meantime I will keep trawling through Metalink in search of a clue ;)
Thanks
JoHi Jo,
The first version for which the Template Builder was released is 5.0
Well, I guess I am one of the few who has a backported 4.5 version of the template builder. I did that for testing exactly your case. I just replaced our xdocore.jar file with the 4.5 version and it worked. The core.jar is not easily available. The files are part of the 4.5 patch, but I think it is too much work to get them out.
However, I would strongly recommend to upgrade to a later version of XML Publisher. We made huge improvements, since 4.5 - performance, translation, RTF template capabilities....
I just checked the process of converting an RTF template to FO and uploading it to EBS with 5.6.2 and it still worked. So it seems you can go straight to the latest version.
Hope that helps,
Klaus -
Finder crashes while generating PDFs in preview
Hi guys,
i've got a little problem.
Everytime i browse with the finder to PDFs it chrashes, while generating PDFs in preview.
Also it takes ages to generate the preview for a PDFs with about 1MB.
any hints and tipps about that problem ?
thanks in advance.
cheersHello sponger:
If no one posts a fix for you, I would consider an archive and install (NOT an erase and install):
http://docs.info.apple.com/article.html?artnum=107120
Be sure you have a good backup/retreat strategy before you proceed. In my case, I make bootable clones of my iMacs on an external firewire drive using a little program called SuperDuper (www.shirt-pocket.com).
Barry -
Adding text to PDF using iText instead of CFPDF
Hi,
I know this may seem a bit off topic being posted here but i'm asking this board since i'm a complete JAVA noob and i figure some of you CF folk might have had to do this before.
Anyway, about my question...i'm already adding a watermark image to a pdf using iText (CF8) thanks to the help of fellow poster (=cfSearching=). What i'm looking for is the best way to go about adding some text to this same pdf. I need to add 4 lines of text (with specific font and size) and center it underneath the added image. Does anyone have a site they could point me to as to how to add formatted text and how to get the width of that text so as to align it correctly? I've search Google and looked at a lot of JAVA code but being a JAVA noob it's tough to figure out exactly which libs and methods can be used to do this.
Any help would be greatly appreciated!
-MichaelHi again!
Well, the merged image is an idea but i'd rather have it be actual text so that it is at least copy/paste-able if viewed on a computer.
The four lines of text are dynamic (company name, broker name, phone number, email address) and limited to 40 characters. Right now they are being added via CFPDF and DDX and use the following code in the DDX file to add it to the PDF.
<PDF result="DestinationFile">
<PDF source="SourceFile">
<Watermark
rotation="0"
opacity="100%"
horizontalAnchor="#horzAnchor#"
horizontalOffset="#horzOffset#"
verticalAnchor="#vertAnchor#"
verticalOffset="#vertOffset#"
alternation="OddPages"
>
<StyledText text-align="center">
<p font="#font#" color="#color#" >#left(dCompany,maxlinechars)#</p>
<p font="#font#" color="#color#" >#left(dName,maxlinechars)#</p>
<p font="#font#" color="#color#" >#left(dPhone,maxlinechars)#</p>
<p font="#font#" color="#color#" >#left(dEmail,maxlinechars)#</p>
</StyledText>
</Watermark>
</PDF>
</PDF>
Then using the created pdf from above, i use a slightly modified version of the cfscript code ( that uses iText) you provided me previously to add a logo image just above this text. The only changes i made to it were resizing of the image and adding where to place it. Here is that code:
<cfscript>
fullPathToInputFile = "#tempdestfilepath#";
writeoutput("<br>fullPathToInputFile=#fullPathToInputFile#");
fullPathToWatermark = osFile("#request.logofilepath##qord.userlogo_file#",request.os);
writeoutput("<br>fullPathToWatermark=#fullPathToWatermark#");
fullPathToOutputFile = "#destfilepath#";
writeoutput("<br>fullPathToOutputFile=#fullPathToOutputFile#");
ppi = 72; // points per inch
watermark_x = ceiling(#qord.pdftemplate_logo_x# * ppi); // from bottom left corder of pdf
watermark_y = ceiling(#qord.pdftemplate_logo_y# * ppi); // from bottom left corder of pdf
fh = ceiling(0.75 * ppi);
fw = ceiling(1.75 * ppi);
if( not fileexists(fullPathToInputFile) )
savedErrorMessage = savedErrorMessage & "<li>Input file pdf for logo add does not exist<br>#fullPathToInputFile#</li>";
else
try {
// create PdfReader instance to read in source pdf
pdfReader = createObject("java", "com.lowagie.text.pdf.PdfReader").init(fullPathToInputFile);
totalPages = pdfReader.getNumberOfPages();
// create PdfStamper instance to create new watermarked file
outStream = createObject("java", "java.io.FileOutputStream").init(fullPathToOutputFile);
pdfStamper = createObject("java", "com.lowagie.text.pdf.PdfStamper").init(pdfReader, outStream);
// Read in the watermark image
img = createObject("java", "com.lowagie.text.Image").getInstance(fullPathToWatermark);
w = img.scaledWidth();
h = img.scaledHeight();
//$is[0] = w
//$is[1] = h
if( w >= h )
orientation = 0;
else
orientation = 1;
fw = max_h;
fh = max_w;
if ( w > fw || h > fh )
if( ( w - fw ) >= ( h - fh ) )
iw = fw;
ih = ( fw / w ) * h;
else
ih = fh;
iw = ( ih / h ) * w;
t = 1;
else
iw = w;
ih = h;
t = 2;
// adding content to each page
i = 0;
//while (i LT totalPages) {
i = i + 1;
content = pdfStamper.getOverContent( javacast("int", i) );
img.setAbsolutePosition(javacast("float", watermark_x), javacast("float", watermark_y));
if(t==1)
img.scaleAbsoluteWidth( javacast("float", iw) );
img.scaleAbsoluteHeight( javacast("float", ih) );
content.addImage(img);
WriteOutput("Watermarked page "& i &"<br>");
//WriteOutput("Finished!");
catch (java.lang.Exception e) {
savedErrorMessage = savedErrorMessage & "<li>#e#</li>";
// closing PdfStamper will generate the new PDF file
if (IsDefined("pdfStamper")) {
pdfStamper.close();
if (IsDefined("outStream")) {
outStream.close();
</cfscript>
The above code resized the image to a certain width/height if needed and adds it to the pdf.
I just figured they might be a way to tap into one of the java objects that would allow adding the text. Ideally, adding the text and image to some sort of 'bounding box' that would allow centering of the image and text in relation to that bounding box. Or if there is no way to add to a bounding box, a way to get the horizontal length of the longest line of text so i could calculate a common centerline for the image and text.
I've attached the following pdf to show how the image and text would look together. This example is not to scale but a similar image and text would be added to a separate pdf.
Thanks for you help. -
Error while generating PDF ( BEx Web Analyzer )
Hi,
Is there any limit to the number of pages we can print using ADS? We always get
" Error while generating PDF" Error when we try to print reports with more than 500 lines.
Thanks
NivedaGreat. It worked.
Points assigned.
Niveda -
Error while generating webservices using Date
I am facing the following problem while generating a web service which is having Date as one its members.
I have serialized a class with the following DataStructure
private String rowId1;
private Date created;
private String name;
private String quoteNum;
private String revNum;
private String curcyCd;
private String activeFlg;
private Number discntAmt;
private Number discntPercent;
When i tried to expose this as webservice, If I use the class oracle.jbo.domain.Date for Date type, the webservice is not generated properly. It is not including the method which contains this call. ie) This method is not present in the WSDL file as well as in the proxy.
When I used java.util.Date instead of oracle.jbo.domain.Date, I am able to expose the method and webservice got generated properly. But When i tried to generate the proxy for the WSDL in the consumer, I go the following error.
oracle.jdeveloper.webservices.model.GenerationException: Proxy generation failed for the following reason:
at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator.doGeneration(ProxyGenerator.java:608)
at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator.generateImpl(ProxyGenerator.java:365)
at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator.mav$generateImpl(ProxyGenerator.java:77)
at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator$1ThrowingRunnable.run(ProxyGenerator.java:206)
at oracle.jdeveloper.webservices.model.GeneratorUI$GeneratorAction.run(GeneratorUI.java:446)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.RuntimeException: generator error: no encoder for type "{http://www.w3.org/2001/XMLSchema}dateTime" and Java type "java.lang.String"
at oracle.j2ee.ws.common.processor.Processor.runActions(Processor.java:105)
at oracle.j2ee.ws.tools.wsa.AssemblerTool.run(AssemblerTool.java:99)
at oracle.j2ee.ws.tools.wsa.WsdlToJavaTool.createProxy(WsdlToJavaTool.java:354)
at oracle.j2ee.ws.tools.wsa.Util.createProxy(Util.java:838)
at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator.doGeneration(ProxyGenerator.java:549)
... 6 more
Caused by: generator error: no encoder for type "{http://www.w3.org/2001/XMLSchema}dateTime" and Java type "java.lang.String"
at oracle.j2ee.ws.common.processor.generator.GeneratorBase.doGeneration(GeneratorBase.java:181)
at oracle.j2ee.ws.common.processor.generator.GeneratorBase.perform(GeneratorBase.java:137)
at oracle.j2ee.ws.common.processor.Processor.runActions(Processor.java:97)
... 10 more
I am referring to "Entity and view objects based on web service " in the following URL
http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#93
Thanks and Regards,
JamesHi all,
I have applied the consolidated JRI fixes - patch 17191279 .
Then, when generating Jar, received keypass is tampered error.
re-generated the key using $ adjkey -initialize.
Now, its working fine.
Regards,
Krish. -
Hello Guru's,
I have done the ADS configuration setup and checked all configuration settings.It seems everything is working fine but when i select the option "Print Verison" ( I have executed a query using the query designer) i am getting above error.
FYI: Its a BI 700 system and we are at Suport pack10 level (both ABAP+Java). By the way i should let you know that it is a copy of Production.
Here is the log:
Error while generating PDF
com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode PageExport1
Error while generating PDF
com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode PageExport#
Any thoughts as to what the messages above might be pointing me to?I should appreciate your help.
Thanks,
Ravi.Hello Dezso,
I have executed the test report FP_TEST_00 and i got a form containing several lines on two pages.I have checked all the configuration checks and got the correct results as mentioned in the ADS document. But when i try to print a query using the query analyzer,i am getting that PDF error. I have no issues with my other BI 700 system.
Ravi. -
How to write special characters in PDF using iText
How to write special characters encoded with UTF-8 in PDF using iText.
Regards,
Pandharinath.I don't know what your problem is but that's almost certainly the wrong question to ask about it. Java (including iText) uses only Unicode characters. (You may consider some of them to be "special" if you like but Unicode doesn't.) And when it does that, they aren't encoded in UTF-8 or any other encoding.
So can you describe your problem? That question doesn't make sense.
Maybe you are looking for
-
Adobe photoshop, registering serial number
help, I can't register serial number. The computer will only take numbers and not letters. what am I doing wrong ??
-
My weekday morning Wake-Up Alarms are not working. I have 2 alarms set for 5:00AM and 5:20AM, both set to only go off on Weekdays. I am wondering if it is because of the Do Not Disturb from 11PM - 6 AM feature, that is on, but it worked fine on iOS
-
I have a PS2 and bought eye toy with it my friend says that you can use it as a web cam and he got it to work on his PC but i can't get it to work on my mac is there any way to make it work as a web cam for iChat or any other video chat app.? ibook G
-
Surcharge should be automated in pricing when order value is less
Dear all, There is a client requirement where in if the order value is less than 1000 Rs. then a min surcharge of 2% has to be calculated in the pricing procedure automatically. Right now they are giving this condition manually. There is a cond type
-
Search in Inbox - IC WEBCLIENT
Dear Experts, While searching Categories In the Inbox tab in IC Webclient, the search should only display the complaints created by a particular user only. This is possible when Assigned to "ME" dropdown is selected. Acc, to our business scenario, th