Error IPP printing - can someone help me out?
Environment - WinXP
Code:
package xmlp;
import java.io.*;
import oracle.apps.xdo.delivery.*;
public class xpdeltest {
public static void main(String[] args) {
try {
DeliveryManager deliverymanager1 = new DeliveryManager();
System.out.println("done new delivery manager");
DeliveryRequest deliveryrequest1 =
deliverymanager1.createRequest(DeliveryManager.TYPE_IPP_PRINTER);
System.out.println("done set output type");
deliveryrequest1.addProperty("HOST:String", "http://lrappdev1/printers/");
System.out.println("done set host");
deliveryrequest1.addProperty("IPP_PRINTER_NAME:String",
"IBMInfoP/.printer");
System.out.println("done printer name");
deliveryrequest1.addProperty(DeliveryPropertyDefinitions.IPP_DOCUMENT_FORMAT,DeliveryPropertyDefinitions.IPP_DOCUMENT_FORMAT_PLAINTEXT);
System.out.println("done doc format");
//deliveryrequest1.addProperty("IPP_USE_FULL_URL:String", "true");
//deliveryrequest1.addProperty("IPP_USE_CHUNKED_BODY:String", "true");
deliveryrequest1.setDocument("test.txt");
System.out.println("done getting file");
deliveryrequest1.submit();
System.out.println("done submitting");
int i = deliveryrequest1.getStatus();
String s12 = deliveryrequest1.getStatusMessage();
System.out.println("Status is " + i + "Status Message is " + s12);
deliveryrequest1.close();
} catch (Exception e) {
e.printStackTrace();
Error
done new delivery manager
done set output type
done set host
done printer name
done doc format
oracle.apps.xdo.delivery.DeliveryException: File does not exist : test.txt
at oracle.apps.xdo.delivery.AbstractDeliveryRequest.setDocument(AbstractDeliveryRequest.java:315)
at xmlp.xpdeltest.main(xpdeltest.java:26)
Hi Shaun
Thanks for quick reply.Reason why i was referring code snippets is "we are not using XML publisher enterprise edition,we are using Oracle XML Publisher plain version which is without enterprise enhancement. So we can not apply PDF filter in configuration page".
Steps which u r refering is applicable to enterprise edition.I will insert snippet of code first which i get it from Oracle® XML Publisher 5.6.1 Guide.
// create delivery manager instance
DeliveryManager dm = new DeliveryManager();
// create a delivery request
DeliveryRequest req = dm.createRequest(DeliveryManager.TYPE_I
PP_PRINTER);
// set IPP printer host
req.addProperty(DeliveryPropertyDefinitions.IPP_HOST, "myhost
// set IPP printer port
req.addProperty(DeliveryPropertyDefinitions.IPP_PORT, "631");
// set IPP printer name
req.addProperty(DeliveryPropertyDefinitions.IPP_PRINTER_NAME,
"/printers/myprinter");
// set the document format
req.addProperty(DeliveryPropertyDefinitions.IPP_DOCUMENT_FORM
AT,
DeliveryPropertyDefinitions.IPP_DOCUMENT_FORMAT_POSTSCRIPT)
// set the document
req.setDocument("/document/invoice.ps");
// submit the request
req.submit();
// close the request
req.close();
-- Now here Printer can only understand .ps file ,it will not understand .pdf file,so i have to convert PDF into .ps first ,Before following line in above code
req.setDocument("/document/invoice.ps");
So do u know ,how i can convert PDF to PS in Java Program ,any utility or any Java API ,which will convert PDF to PS
Thanks
Darshan
Similar Messages
-
I'm trying to open an iTunes account and was asked to provide one of each:credit card details or gift card details.i provided a gift card details and yet I'm being asked to contact the support team!!! Pls can someone help me out on this as I cant enjoy my new iPad 3 without buying apps
Brenda, the easiest way to contact the support team is thru the iTunes Customer Service website:
http://www.apple.com/support/itunes/contact/ -
Im trying to update my apps. And it telling me i purchased them once i go to sign in to update them, i sign in and it goes straight to my account and all im trying to do is update my apps. Can someone help me out to updare my apps . Thanks
Sweetsusieq wrote:
... i sign in and it goes straight to my account ...
And... What seems to be the problem...? -
During the restore from iTunes I get, almost at the end of the restore, the message that iTunes could not restore my iPhone due to an unknown error (1). Can someone help?
error 1 means hardware failure.
Is your phone jailbroken? -
Hi! keep seeing this message on my computer, could not connected to the itunes store unknown error occurred (3212) can someone help please?
Perhaps try the Errors 3000 through 3999 section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
iTunes: Advanced iTunes Store troubleshooting -
please can someone help me out. I initial configure my bluetooth stereo ear piece with my iphone 4 and it was working but I mistakenly forget the bluetooth device and I cannot reconfigure it again with my iphone 4?
place the device in pairing mode and re-pair.
If you don't know how to do this, go to the manufacturer's website and download the user guide for your device. -
I want to erase my hard drive and reinstall lion server. Can someone help me out?
i have a mac mini running lion server. I want to erase all the date and start fresh. When i try to reinstall Lion it does not show anything about lion server but jut Lion. I want to make sure I do it properly. It is also asking me in which hard drive to install Lion but im unsure.
can someone help me out?Check in the app store under purchases both lion and server should show up there to download again.
No need to erase both drives for a clean install just the drive you are using for the OSX. Though if you are truly starting a fresh then erase and reformat both.
As for Upgrades. Yosemite is the only upgrade now available through the app store as is Server 4.0 for Yosemite. I have not tested the latest server yet and can not comment on it's reliability.
Any server you set up should be thoroughly tested on a closed network before going live.
Hope this helps.
PJRS -
I received telling me that my icloud storage is almost full. I need to upgrade my storage. Can someone help me out with this. I understand that the 20 GB is only .99 per month. Just hoping this would be enough for me. I back up 2 ipads and my iphone on the same computer. Any help you can give me would be appreciated. Thank you.
Okay.
I responded as I did because you wrote, "I have 2 ipads and my iphone that I back up on one computer"
No worries here.
But hopefully you get/got it sorted.
Any issues, post back. -
when signing in i get the following error message --- activation server error -- code:E_Auth_not_ready - can someone help?
Please follow the instructions in the link below:
https://helpx.adobe.com/digital-editions/kb/error-e_act_not_ready.html
I hope this will help.
-Chirag -
My MacBook Pro's screen had just gone white while working.Can someone help me out?
I am Using a MacBook Pro 13", While i was working my scree has just gone white. I tried restarting my MacBook. But still the screen is just showing a white color. Can someone help me out?
"However, at a LAN party a few months ago, a friend pointed out some issues with my screen on the left hand side."
So um..... you never saw these flaws until this friend pointed them out?
Apple Stores are not the only place to have Macs repaired. You can take your comp to your local AASP. First you should call AppleCare like the previous poster stated.
http://docs.info.apple.com/article.html?artnum=304398 How to find your nearest Apple Authorized Service Provider (AASP) -
i have dought if my iphone 4 will not work properly, as i heard it become slow after update ios7 , can someone help me out what to do.. ?
Hello there, morganbailey02.
The following Knowledge Base article provides some great steps for troubleshooting your issue:
iOS: Unable to update or restore
http://support.apple.com/kb/HT1808
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro -
Error 1015 apears can someone help please
eror 1015 apears on my iphone when i try to restore it can someone help please
Thank youThere are 4 possible causes of error 1015:
The activation server truly is unavailable. Rare, usually fixed within minutes.
Your antivirus or firewall or router's firewall is blocking access to
gs.apple.com on ports 80 and 443.
Your iPhone is jailbroken or otherwise hacked.
The computer you connected to during the restore/update was
used to hack/jailbreak some other iOS device, and its
network database was corrupted during the process.
(Thanks to Lawrence Finch for the wording in
https://discussions,apple.com/thread/4793244?start=90 ) -
Can someone help figure out why I can't make a duplicate version of a photo in Aperture?
Can someone help me figure out why I can't make a duplicate version of a photo in Aperture?
I will request your query to be transferred to the Aperture forum where knowledgeable Aperture users will be able to assist you.
Ciao. -
As stated above - I am having a really big problem with the iTunes 10.6 installer.
First tells me 2 DLL files are missing and then that a program needed for the install isn't there.
I never had a problem withiTunes last year when I had an iPad.
I deleted the iTunes from then because I found the iPad to heavy - I have very severe arthritis
in my wrists. I might as well send my iPhone back to the retailer I got it from if this issue can't be solved.
I'm using Windows XP Pro with SP3 so it should work.
Please can someone help?
Cheers
KnitWit46 in UKBOB we need you urgently
Perhaps Bob will see this thread, he is the professor in these cases.
You do not use a WEP password but wpa/wpa2 on router and equipment.
All equipment connects to WiFi, but for your iPad.
Even with all other equipment WiFi off, you cannot connect your iPad.
Your iPad connects to other WiFi nets correctly.
All resets etc done on iPad and Router.
Still I am not sure it is your router for sure, frustrating...
I want to test 2 other things:
1. in your iPad, set everything OFF in Settings/Cellular, turn off/then/on your WiFi, and see whether it will still not connect...
2. If that does not do it: disconnect the router as well as the modem from the power, for 15 seconds, then reconnect the modem, let it fully start, then reconnect the routet let it fully start, turn of your WiFi in iPad, then on, and see whether it will connect. -
just installed the new update 10.5.2 and now my itunes wont access the itunes store. can any1 help me out?
I have had this same problem since uprading to 10.5.1. I just checked 10.5.2 and it's still broken.
Are you behind a proxy server that requires authenication? I am and I was fine with 10.5.1 until I had to change my proxy server password.
Previous versions of iTunes used to prompt for new proxy credentials but the 10.5.x versions don't.
Maybe you are looking for
-
3 times in a 4 hr period iTunes has stopped working.
I was listening 2 some of my music when in a period of 4 hrs iTunes stops working 3 times. I get the message the app has stopped working.
-
Recovering information from OST files
Hi, I did a Exchange server change and before I did an copy of each mailbox to an pst file. As it turned out one off the out pst files is correupted. I found the original outlook.ost file. Is there any tool for revering the information to an pst file
-
Error in LabView.exe after each start
I installed LabView 7.0 in an older computer (Pentium III, 500 MHz, 512M RAM, Windows 2k sp4) along with GPIB and E-series PCI cards. Each time I open LabView it crashes and says "LabView.exe has generated errors and will be closed by Windows. An err
-
Glossy screen vs. standard screen
I've read the pros and cons on both but wondering what the consensus is out there about which is preferable, especially for editing video? Any help is appreciated. I'm about to purchase a Macbook Pro.
-
Hi. i have a troble with my computer, a virus called "bagle". then i hope to resolve it, but now my pc suite doesn't work.... when i connect my mobile it said to me that no connection are available..(not Irda, not bluetooth, not USB)...i try to didin