FileReference File Upload java API
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=5534a12f
Has anyone got the above Java API and upload working ?
I keep getting a 404 error when testing the API.
Hi SAM,
This example may help you.
http://shigeru-nakagaki.com/flex_samples/FileReference/FileUploadExample/srcview/index.htm l
Rgds
Johnny
Please rate answers.
Similar Messages
-
My file upload java application working fine in tomcat 7 but not working in weblogic 11
Hi All,
My file upload java application successfully run in tomcat 7 . But I could not run it in Weblogic 11. Getting following error message . Please help.
Please contact your administrator.org.springframework.beans.NullValueInNestedPathException: Invalid property 'fileData[0]' of bean class [com.techm.util.UploadItem]: Cannot access indexed value in property referenced in indexed property path 'fileData[0]': returned null
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:681)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:651)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
at org.springframework.validation.DataBinder.applyPropertyValues(DataBinder.java:587)
at org.springframework.validation.DataBinder.doBind(DataBinder.java:489)
at org.springframework.web.bind.WebDataBinder.doBind(WebDataBinder.java:149)
at org.springframework.web.bind.ServletRequestDataBinder.bind(ServletRequestDataBinder.java:110)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter$ServletHandlerMethodInvoker.doBind(AnnotationMethodHandlerAdapter.java:566)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveHandlerArguments(HandlerMethodInvoker.java:213)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:132)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:326)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:313)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)What version of spring are you using in tomcat?
What version of WLS are you using.
What JDK are you using in both environments?
Is the issue random? or can you reproduce it at will?
Thanks
Luz -
Opening a template indd file using java API
How do I open a template indd file using java API and use it for laying out graphics and text ?
Thanks in advanceSample code:
VariableType vtDocument = myApp.open(VariableTypeUtils.createFile("c:\\myfile.indd"));
myDocument = DocumentHelper.narrow(vtDocument.asObject());
Thanks
-arun -
File Uploader Java Applet cannot be run
I have a website that I need to upload PDFs to, but since ugrading to Lion, I cannot do it any more. I have downloaded the separte Java app, but it still does not work.
This is the error message I get:
File Uploader Java Applet cannot be run. Make sure that Java is installed on your PC and Java applets are permitted in browser settings. Use this link to download and install appropriate version of Java:Thank you etresoft - that did not solve the problem. However, I did fix it by changing something in Java Preferences (which is located in the Utilities Folder).
I first deleted the cache files as you suggested in the Network tab. Then I quit and restarted Firefox. I still got the same error message when I tried to upload.
Then, I went back into Java Preferences and checked the box, "Enable Appplet Plug-in and Webstart Applications" located in the General Tab. I then quit and restarted Firefox. Now I am able to upload documents as I could before Lion.
Thank you!! -
MDM 7.1 SCA files +MDM java apis required
Hi experts,
I have installed MDM 7.1 but now i want to deploy the SCA files so that i can integrate EP with MDM 7.1
i searched over market place but cpould not able to find SCA files/MDM java apis for MDM 7.1
any pointer in this regards shall be highly aprreciated.
regards
narendraHi Narendra,
Go to https://websmp210.sap-ag.de/bosap-support
in that select downloads tab ->
Support Packages and Patches - Entry by Application Group -> SAP NetWeaver -> SAP MDM -> SAP NETWEAVER MDM 7.1
Here you will find all suporting files including your required MDM Java & .sca files.
You need a valid Service market place user ID to access these contents.
Regards,
Abhijeet
Edited by: abhijeet more on Apr 15, 2009 2:27 PM -
File upload java errors...HEEELPPP!
All was working fine for months, now getting java errors in my ADDT. Mostly related to file uploads, or image uploads. I found that I don't get these errors in older sites that I've worked with, but I've created a new site and started from scratch and I'm still getting them.
Here are the errors and what I'm doing:
*I go insert record form wizard (in ADDT)
*One field is a date, others are text, one is an integer, one is a file field
That works ok up to here.
*Then I choose ADDT > File upload. I get the following error immediately: "While executing canApplyserverBehavior in kb_FileUpload.htm, a javascript error occured."
*I click ok, the wizard box attempts to load and it give me the error: "While executing onLoad in kb_FileUpload.htm, the following javascript errors occured:
At line 354 of the file "Macintosh HD:Applications:Adobe Dreamweaver CS3:Configuration:Shared:DeveloperToolbox:classes:triggerUtil.js":
TypeError: hash[transactionColumn[k]].push is not a fuction.
I'm totally tearing my hair out, not to mention not hitting deadlines with this... can anyone help. I've tried removing the fileCache, rebuilding the site cache, removing and rebuilding the includes folder, removing and reinstalling ADDT. HEEEEEELLLLLPPP.Hi
Please look into this about the destination
Pathname of directory in which to upload the file. If not an
absolute path (starting a with a drive letter and a colon, or a
forward or backward slash), it is relative to the ColdFusion
temporary directory, which is returned by the GetTempDirectory
function. -
Print different format files using java API
Hi All,
I need to print documents ( MS-DOC, PDF, Plain Text ) using Java API. I do not need window for configuring number of pages to be print etc etc.. Whatever the file specified should be printed.
I checked with printerJob.print(); from java API and able to print simple text. I need to approach same for files of different formats.
Any other API's ? How do i approach?
Any help will be appreciated.
Thanks,
PraveenWhich of the LiveCycle products are you looking at? (there is no Java API to Acrobat)
-
How to achieve conversion of PDF to PDF/A files using Java API?
Hi,
We are required to convert existing pdf files to pdf/a files. Is there a way to programatically achive this using any of the Java APIs?
ThanksWhich of the LiveCycle products are you looking at? (there is no Java API to Acrobat)
-
Integrating font-files in java-api-alls - configuration?
Hello!
I have some integration of the BI-Publisher-API. Now we would like to manage some specials fonts. Since I have no controll-center like the EBS to say: this is my font-file, include this! So I am looking to get a smoother way.
While searching the board I found this thread:
barcode using api
There is some similar issue. But I do not understand where to put this configure-file and how to implement this into the API-calls.
Can anyone help me?
My current procedure to process the document looks like this:
private void processPDFOutput(InputStream xmlDataInputStream, InputStream xslTemplateInputStream) throws XDOException {
pdfOutputStream = new ByteArrayOutputStream();
FOProcessor foProcessor = new FOProcessor();
foProcessor.setData(xmlDataInputStream);
foProcessor.setTemplate(xslTemplateInputStream);
foProcessor.setOutput(pdfOutputStream);
foProcessor.setOutputFormat(FOProcessor.FORMAT_PDF);
Properties cfgProps = new Properties();
cfgProps.put("xslt._XDOTIMEZONE", "'Europe/Berlin'");
foProcessor.setConfig(cfgProps);
foProcessor.generate();
}In addition I can not find a documentation whats all conmfigurable. Finding the right config for the TIMEZONE took very long time. I am interressted in what is also configurable?
Best Regards
and thank you for your help.
AlexanderHi
The config file is just an XML file that holds configuration information for the FO engine. All you need do is place it some where accessible so that your API code can access it. You would then call:
foProcessor.setConfig(<<cfg location>>);
Alternatively drop the config file into <JRE_TOP>/jre/lib and the api will go look for it automatically.
As to what can go into the config file, lots of properties and of course the font configurations. The latest release of BIP hides the config file with some UI but if you check the following doc you can see the properties.
http://www.oracle.com/technology/products/xml-publisher/docs/XMLPEnterprise562UserGuide.pdf
Page 245
Tim -
How to print PDF files using java print API
Hi,
I was goign throw lot of discusion and reading lot of forums related to print pdf files using java api. but nothing seems to be working for me. Can any one tell me how to print pdf files using java api.
Thanks in advanceMike,
Can't seem to get hold of the example described in your reply below. If you could let us have the URL to get then it would be great.
My GUI application creates a pdf document which I need to print. I want to achieve this using the standard Java class PrinterJob (no 3rd party APIs I'm afraid, commercial restraints etc ..). I had a stab at it using the following code. When executed I get the pretty printer dialog then when I click ok to print, nothing happens!
boolean showPrintDialog=true;
PrinterJob printJob = PrinterJob.getPrinterJob ();
printJob.setJobName ("Contract.pdf");
try {
if (showPrintDialog) {
if (printJob.printDialog()) {
printJob.print();
else
printJob.print ();
} catch (Exception PrintException) {
PrintException.printStackTrace();
Thank you and a happy new year.
Cheers,
Chris -
File Upload Pluggable Java Component / Java Bean
Dear Colleague,
I integrated the File Upload java bean into one of my Forms 9i forms. I also had it up and running (!!!), but after I rebooted the machine, I no longer receive the File Upload dialog window as I did originally. When I press the button which starts the File Upload, it never displays the window to select a file. My trigger is as follows:
begin
/* Initialize the Java Bean */
FileUploader.init('DOCU_BLOCK.FILE_UPLOADER','LOAD_CALLBACK_TRIGGER');
/* Make sure the file is compressed on upload */
FileUploader.setCompressed(true);
/* Do the load to the c:\rolic\RKMS_documents\ directory on the server */
FileUploader.UploadFile (:PARAMETER.file_destination);
/* Error Handling */
exception
when FileUploader.FileUploaderEx then
message (FileUploader.GetError);
end;
I have the "uploadclient.jar" file in my folder: C:\oracle9iDS\forms90\java
I list the "uploadclient.jar" file in the forms config file, formsweb.cfg as follows:
archive_jini=f90all_jinit.jar, uploadclient.jar, RKMS_images.jar
and I reference the uploadserver.jar in the default.env file as part of the CLASSPATH as follows:
CLASSPATH=c:\oracle9iDS\jlib\debugger.jar;c:\oracle9iDS\jlib\ewt3.jar;c:\oracle9iDS\jlib\share.jar;c:\oracle9iDS\jlib\utj90.jar;C:\oracle9iDS\forms90\java\UploadServer.jar
=========================================================
- Why did this work before I rebooted and now no longer???
- Any tips? Ideas?
=========================================================
The uploadclient.jar file also successfully loads as shown in the Java Console:
Oracle JInitiator: Version 1.3.1.9
Using JRE version 1.3.1.9 Java HotSpot(TM) Client VM
User home directory = C:\Dokumente und Einstellungen\Randy
Proxy Configuration: no proxy
JAR cache enabled
Location: C:\Dokumente und Einstellungen\Randy\Oracle Jar Cache
Maximum size: 50 MB
Compression level: 0
Loading http://quantum:8888/forms90/java/f90all_jinit.jar from JAR cache
Loading http://quantum:8888/forms90/java/uploadclient.jar from JAR cache
Loading http://quantum:8888/forms90/java/RKMS_images.jar from JAR cache
connectMode=HTTP, native.
Forms Applet version is : 90290HI,
I'm facing nearly same problem.
When i press a button in my form to enable client to select image from there local computer, following code executes ( WHEN-BUTTON-PRESSED)
declare
exSetup EXCEPTION;
hButton ITEM := Find_Item('UPLOAD.SELECT');
begin
if (:upload.output_dir is null) then
MsgBox.Show(MsgBox.STOP_ALERT,FileUploader90,'Error: A output directory on the middle tier must be specified');
raise exSetup;
end if;
FileUploader.UploadFile(:UPLOAD.output_dir);
/* (:UPLOAD is a control block and output directory is a text field char 1000 having initial property = D:\IMAGE) */
exception
When FileUploader.FileUploaderEx then
MsgBox.Show(MsgBox.STOP_ALERT,FileUploader90,'Error During Upload: '||FileUploader.getError);
When exSetup then
null;
end;
There is no compiliation error.
Runtime error is " Error During Upload: Desitnation directory does not exists or is not writeable ".
Infact destination directory D:\IMAGE exists and is readable/writable to any one ??
Any Help possible -
Java API from ABAP program.
Hi
I have a requirement to call a Java API from ABAP program.
We are using a third party component for encrypting the files
using Java API The component consist of ".jar" files. I need to
know exactly where we need to copy the ".jar" files on application server,
so that I can call the API methods in my ABAP code and process the file in SAP,
and how to establish a connect with there server for the encryption.
Thanks
Regards
LalithLInk is:
/people/puru.govind/blog/2006/12/20/let-abap-speak?page=last&x-maxdepth=0 -
Friends,
I want to gzip a file in unix using my java program, can I use Runtime.exec() method and run the gzip command to achieve this ?
Is there any other way to zip/compress a file using java api ?
ThanksUse [url http://java.sun.com/j2se/1.5.0/docs/api/java/util/zip/GZIPOutputStream.html]java.util.zip.GZIPOutputStream along with [url http://java.sun.com/j2se/1.5.0/docs/api/java/io/FileOutputStream.html]java.io.FileOutputStream
-
Hi,
Currently I am getting inputs from another composite, lets say Composite A and in composite B I need to pass the input values ( approx 40 elements are coming from composite A) to Java API ( end system). I have jar file for java API which has 20 different classes. Can you guys suggest me how to map the input values that are coming from composite A to Java API.
I developed a Bpel process which receives the input from Composite A. Please suggest me for next steps and procedure to follow.
Thanks.I would look into using the Spring component and wrapping your java api in a simple sprint bean class. SOA will then generate WSDL's and do marshalling/unmarshalling of the data between your BPEL and the spring component automatically. It will just look like another service call from within the BPEL but will actually invoke your spring component.
Thanks,
Adam DesJardin -
Does anyone else have a problem with the FileReference file
upload event handlers when the file size is too small? I've
registered most of the event handlers with the FileReference
object, but after select, none of them are caught. This only
happens with I use a small file, about 50-60 kb. On a larger file
it doesn't seem to be a problem. My app really needs to know when a
file has been uploaded. Any suggestions?On this same subject, I neglected to change sampling rates correctly when going from 48k DAT tape to computer for iTunes. The music is now at 44.1 which I want, but the speeds are too fast.
I found that if I modify the sampling rate to 40,200 and let the pitch and time change with it, I can match the original and resave. (I subtracted the same amout from 44.1 as that is from 48).
Is there a better, easier way that makes more sense? I have the ability to just change the pitch and remain at 44.1 but I don't know by how much.
Maybe you are looking for
-
Unable to expand CSS Designer Panel.
The only options on top dropdown box are extract, design, code. How do I expand the panel? Thanks.
-
Hi experts, I am changing the Sales Pricing of a Project *****,by entering manual entry and updated by using the pricing type 'C'.It is working fine.But my requirement is to get the changed price to be reflected in Billing request for resource rel
-
I just got a iPad mini and I want to delete a app I downloaded and it is still in purchased section because oficloud Can anyone tell me how to get rid ofit
-
How to maintain a table without authorization
Hi Can anyone let me know how to maintain a ztable without authrozation Thanks Venkat
-
I'm trying to update Firefox on my Macbook Pro, and it says I don't have sufficient priviledges, and I don't know how to fix that!