Modify objects in file

Hi guys...i am new to java and i face problem with an assignment. I am totally stack with the part where i have to modify objects in a file. Well i know how to write objects i know how to read them but i have no clue how to write again in the same file new objects without overwrite the file. Can u give me some help i wud appreciate it.

I'm not sure exactly what it is you're trying to do. However, the objects in a serialization stream depend on each other; you can't just snip an object out of it or meddle with it freely without incurring side effects. It sounds like the simplest way to do what you want is to open the stream, read objects and write them to a new file, and change the object you want to change when it comes along.
If you wanted to have a really delightful time of it, you could learn to interpret the serialization format used by ObjectOutputStream and manipulate it yourself using a RandomAccessFile or whatever... but that sounds like it's beyond the scope of your assignment.
Does that help? If not, what exactly is it you need to do?

Similar Messages

  • Copy & paste embeded object to file system

    Cross-post at:
    http://stackoverflow.com/questions/27685791/copy-paste-embeded-object-to-file-system
    Background:
    I wrote a large piece of VBA code in an Excel workbook to help handle a lot of repeating jobs. I found it is painful to maintain and modify the code by using the "pool" VBA Editor. Then, I decided to move those VBA code to C# solutions, which I
    suppose I can benefit from the modern editor - Visual Studio.
    Problem:
    Although I don't know too much about VBA, I know even less about C#. Hence I got some problem when I try to "translate" my VBA code to C#, and here is one of them:
    I create a document-level solution for Excel. I need to embed some files (.cab, .exe) into the solution, so when I run a method (e.g. by clicking a button), those files will be copied to the file system, and do some job.
    In VBA, I embedded those files in the Excel workbook, then I can copy the embedded objects to the clipboard by using the following VBA code:
    Sheet1.OLEObjects("obj_cab").COpy
    And then I can paste the object to the file system by using the following VBA code:
    CreateObject("Shell.Application").Namespace("C:\Sample\").Self.InvokeVerb "Paste"
    In the C# solution, I can use the following equivalent method to copy the embedded object to the clipboard:
    Microsoft.Office.Interop.Excel.OLEObject OLEobj = (Microsoft.Office.Interop.Excel.OLEObject)sheet1.OLEObjects("obj_cab");
    OLEobj.Copy();
    Then I stuck here, I don't know how to get this object from clipboard and put it to the file system. The 'CreateObject' method does not exist in C#.
    Anyone can help? Either a better way to embed those files or a working way to paste those objects (files) from clipboard to the file system?
    Thanks a lot!

    Hi FantaC,
    It's possible to save the oleobject to the disk. But it's not very simple. Because when you call the Copy method of OLEObject to clipboard, it's actually not the exact the oleobject file itself, it's actually a wrapper of the file, it means that it has different
    file headers and some other information from the original oleobject file.
    To save oleobject on the disk, you need to analyze the byte array by yourself, this would be a little complicated. You could check the answer in this thread for the code sample:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/1ab7a178-8021-4c67-a14b-5031a254fd9c/saving-oleobject-content-to-a-file
    The original poster of this thread also write a blogpost about this, you can check it here:
    Saving OLEObject Content To File
    Detailed information and code samples are provided in this blogpost.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can I modify a pdf file containing a signature field prior to download?

    I have a pdf file I use as a template and in my .net application I fill in a few fields using pdfstamper, iTextsharp, etc.  I'm new to this.
    That all works.
    I also have a signature field in my document.
    After I modify the fields, with the person's name, etc., I download it to the client machine, open it in Adobe Reader X, and ask the user to sign the document.
    I get an error saying "This document enabled extended features in Adobe Reader. The doc hsa been changed since it was created and the extended features are no longer available......"
    Is there a way for me to do what I'm trying to do?  I hope this is somewhat clear.  It appears that modifying the fields with itextsharp is what's causing the error to occur.

    Thank you for the replies.
    More specifically, here's what I'm doing.  There's a desk where people come to pick up a gift card.  When someone picks one up, a clerk runs this .net program, selects the persons name form a dropdown list, I modify a pdf file (using iTextSharp), by adding the person's name, the serial number of the giftcard, etc, download this file to the client desktop, where the person signs using an ePad.  Then the clerk saves that pdf file.
    The clerk will not be able to go into the menus and remove and/or save Reader Usage Rights.  Is there a way through code that I can add Reader Usage Rights after I modify the file.  It sounds from your replies that that's what I need to do.
    Also, I don't really care about the official "signature", security, certificates, etc.  I just want someone to be able to scribble onto the document using a signature pad. 
    I do have Acrobat Pro X and LiveCycle.  (I assume that means I have LCR Extensions.)
    Dave

  • CS5 is opening raw files as a smart object to files im currently working

    I just bough new CS 5 and find this big error. When i open raw file in Camera Raw and i have opened some jpg in CS5, it always opened as a smart object to this small jpg i have opened before. The same is doing my CS 5 when i drag some file from desktop, it always ended as a smart object in file im currently working with. Normaly it has to open as a new file not as a smart object in this file im already working with.

    How are you opening your RAW files? If you are dragging and dropping them onto Photoshop, on top of an already opened file's workspace -  all files will be placed as smart objects. If you drag the files to anywhere else in the interface, for instance the grey area on top of the workspace, they should open as usual. If you are opening them via Bridge or by double-clicking them in Explore, they should open as normal.

  • How do I move files from my iMac to my Airport without getting 'AirPort can not be modified' message. File sharing is enabled and I'm not getting asked for a password. Thanks

    How do I move files from my iMac to my Airport without getting 'AirPort can not be modified' message. File sharing is enabled and I'm not getting asked for a password. Thanks

    What OS are you running.. this is usually only a problem in Mavericks.
    If so I recommend you mount the hard disk manually..
    Use Go, Connect to server.
    Type in the IP address if static.. eg
    AFP://10.0.1.1
    Or the name.. but you will have issues unless the name is short, no spaces and pure alphanumeric.. if you are using bad names.. fix it by a full factory reset in airport utility and give it all names that comply to the above.
    Type in
    AFP://TCname.local Where TCname is replaced with the actual name.
    You will be asked for the password the first time which is public unless you changed it.. please remember to save this in the keychain.
    Copy files then to a new directory you create on the TC.. do not place files inside the TM sparsebundle. Nor directly under the main directory.

  • Net.sf.jasperreports.engine.JRException: Error loading object from file : C

    I started using JasperReports for my web application report generation. I'm using JSPs for web development.
    I created a .jrxml file using iReport and used the following code to generate the report.
    try {
              JasperDesign jasperDesign = JRXmlLoader.load("C:\\tomcat\\webapps\\web\\JSP\\reports\\samples\\pmm-final.jrxml");
              JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
    // Second, create a map of parameters to pass to the report.
              Map parameters = new HashMap();
              parameters.put("Title", "JasperReport");
    // Third, get a database connection
              Connection conn = null;
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              conn=DriverManager.getConnection("jdbc:odbc:driver={Microsoft Access Driver (*.mdb)};DBQ=C:/tomcat/webapps/db1/db1.mdb");
    // Fourth, create JasperPrint using fillReport() method
              JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,
                                  parameters, conn);
    // You can use JasperPrint to create PDF
              //JasperExportManager.exportReportToPdfFile(jasperPrint, "C:\\tomcat\\webapps\\web\\JSP\\reports\\TestReport.pdf");
              JasperExportManager.exportReportToHtmlFile(jasperPrint, "C:\\tomcat\\webapps\\web\\JSP\\reports\\TestPMM.html");
              JRXlsExporter exporter = new JRXlsExporter();
              exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
              exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, "C:\\tomcat\\webapps\\web\\JSP\\reports\\TestPMM.xls");
              exporter.exportReport();
    // Or to view report in the JasperViewer
              //JasperViewer.viewReport(jasperPrint);
    } catch (JRException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
    } catch (SQLException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
    The above pmm-final.jrxml uses a subreport 'top.jasper'. Error being thrown while loading top.jasper file. Error is as follows.
    java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; lo
    cal class incompatible: stream classdesc serialVersionUID = 604, local class ser
    ialVersionUID = 606
    at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
    at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
    at java.io.ObjectInputStream.readClassDesc(Unknown Source)
    at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
    at java.io.ObjectInputStream.readClassDesc(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:86
    at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLo
    ader.java:236)
    at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubre
    port.java:295)
    at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:
    340)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageBand(JRVert
    icalFiller.java:1224)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVe
    rticalFiller.java:353)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRV
    erticalFiller.java:205)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVertic
    alFiller.java:119)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
    613)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
    483)
    at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:77
    at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillMa
    nager.java:248)
    at org.apache.jsp.JSP.UserGuide_jsp._jspService(org.apache.jsp.JSP.UserG
    uide_jsp:74)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:325)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
    95)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:214)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:148)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
    va:675)
    at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:684)
    at java.lang.Thread.run(Unknown Source)
    NESTED BY :
    java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; lo
    cal class incompatible: stream classdesc serialVersionUID = 604, local class ser
    ialVersionUID = 606
    at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
    at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
    at java.io.ObjectInputStream.readClassDesc(Unknown Source)
    at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
    at java.io.ObjectInputStream.readClassDesc(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:86
    at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLo
    ader.java:236)
    at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubre
    port.java:295)
    at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:
    340)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageBand(JRVert
    icalFiller.java:1224)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVe
    rticalFiller.java:353)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRV
    erticalFiller.java:205)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVertic
    alFiller.java:119)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
    613)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
    483)
    at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:77
    at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillMa
    nager.java:248)
    at org.apache.jsp.JSP.UserGuide_jsp._jspService(org.apache.jsp.JSP.UserG
    uide_jsp:74)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:325)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
    95)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:214)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:148)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
    va:675)
    at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:684)
    at java.lang.Thread.run(Unknown Source)
    NESTED BY :
    net.sf.jasperreports.engine.JRException: Error loading object from file : C:\tom
    cat\webapps\web\JSP\reports\samples\top.jasper
    at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:90
    at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLo
    ader.java:236)
    at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubre
    port.java:295)
    at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:
    340)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageBand(JRVert
    icalFiller.java:1224)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVe
    rticalFiller.java:353)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRV
    erticalFiller.java:205)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVertic
    alFiller.java:119)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
    613)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
    483)
    at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:77
    at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillMa
    nager.java:248)
    at org.apache.jsp.JSP.UserGuide_jsp._jspService(org.apache.jsp.JSP.UserG
    uide_jsp:74)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:325)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
    95)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:214)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:148)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
    va:675)
    at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:684)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBas
    eReport; local class incompatible: stream classdesc serialVersionUID = 604, loca
    l class serialVersionUID = 606
    at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
    at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
    at java.io.ObjectInputStream.readClassDesc(Unknown Source)
    at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
    at java.io.ObjectInputStream.readClassDesc(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:86
    ... 33 more
    Anyone pls help. It's bit urgent. Thanks.

    I was using iReport v0.5.0 and it uses jasperreports-0.6.7.jar (v0.6.7) of
    JasperReports. I compiled and i deployed my application in BEA weblogic server. I got the error listed below. Only after i saw your
    response explaining that iReport was the issue, i checked the iReport lib directory and found this version of jasperreport jar.
    iReport creates a java source file which is used to a jasper file.
    iReport will link in the v0.6.7 version of jasperReports. When you
    deploy your web application it will recognize this version through the compiled jasper file and give you the InvalidClassException, even
    though you only have one jasperReport jar deployed with your war file.
    The way i fixed this problem was to create my web application with the
    jasperreport jar comes with iReport.
    Thanks for mentioning iReport.
    Christopher
    Error:
    Caused by: java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBas
    eReport; local class incompatible: stream classdesc serialVersionUID = 607, local class serialVersionUID = 10002
    at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:463)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
    ...

  • I keep getting the error "zotero could not be installed because firefox cannot modify the needed file". Any suggestions on how to fix this?

    After downloading Zotero (a plug in that is in theory custom-designed for firefox), I get an error message that says "zotero could not be installed because firefox could not modify the needed file". That's all the detail I have.

    You get this error if you install an extension that needs to be unpacked in order to work properly, but this isn't happening. The default is to copy the file to the extensions folder and rename the file part to the ID of the extension.
    *https://developer.mozilla.org/En/Updating_extensions_for_Firefox_4.0#XPI_unpacking
    You can try to set the extensions.alwaysUnpack pref(s) on the <b>about:config</b> page to true.
    It is possible that there is a problem with the file(s) that store the extensions registry.
    Delete the extensions.* files (e.g. extensions.sqlite, extensions.ini) and compatibility.ini in the Firefox profile folder to reset the extensions registry.
    *https://support.mozilla.org/kb/Profiles
    New files will be created when required.
    See "Corrupt extension files":
    *http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    *https://support.mozilla.org/kb/Unable+to+install+add-ons
    If you see disabled or not compatible extensions in "Firefox/Tools > Add-ons > Extensions" then click the Tools button at the left end side of the Search Bar to check if there is a compatibility update available.
    If this hasn't helped then also delete the addons.sqlite file if present.

  • Error: "FT DeepDark 11.3.1 could not be installed because Firefox cannot modify the needed file." What does this mean?

    In an earlier version (Firefox v.31) on this, and (presently) on two other PC's, I was/am able to run add-on FT DeepDark 11.3.1 without any problems. It was only recently - after updating to v.32.0.3 on this PC that this situation started. The PC in question is a Dell Dimension 8400 Intel P4 running Windows 7, though I'm thinking it may have something to do with the newer version of Firefox. Could anyone help me with this? I like this add-on because it is easier in my eyes when browsing the internet. Thanks
    PS: Attempted to install the troubleshooter, and again I received a similar error: "Troubleshooter could not be installed because Firefox cannot modify the needed file."

    This error has been reported before in this bug:
    https://bugzilla.mozilla.org/show_bug.cgi?id=730040#c21
    Please read that bug I linked you to and let me know if the last comment in the bug solves your problem. Apparently the problem is about the addon .xpi file being read-only. Try right-clicking it, going to Properties and unchecking the "Read-only" attribute box at the bottom of the dialog. Click Apply, then OK.

  • How to find out a list of modified objects in an SAP system

    Hi all, not sure if this is the right place to ask.
    In preparation for an upcoming upgrade of a SAP 4.6c system, I have been asked to generate a list of SAP objects that have been modified over the years.
    Is there a table or a report that I can use to find this out? Thanks!

    Hi,
    Please check the table TADIR. From that table u can get the modified object details.
    thanks,
    Senthil Kumar.C

  • When attempting to install add-ons, Firefox generates a message saying it is unable to install add-on because Firefox cannot modify the necessary file. To what file is this referring, and how do I fix this problem?

    When I download an add-on such as Colorful Tabs and start the installation process, I receive a message that Firefox cannot install the add-on because it cannot modify the necessary file. To what file is this referring?

    That is usually caused by Firefox not unpacking the extension.
    You can try to set the Boolean pref <b>extensions.alwaysUnpack</b> to <i>true</i> on the <b>about:config</b> page.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default via the right-click context menu if they are user set
    *Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean)

  • Distribute eps objects with file list and quantity

    Hello everyone,
    Here's a script i wrote so I share it for the contribution.
    Here's my purpose. Every year, for a customer of our company, we have to print several description plates for their products. They give us about 30 or more texts, traduced in about 7 languages, and an excel file with quantities that each retail seller of each country do want to receive.
    We print these aluminium plates on a uv cured ink printing machine which have a table dimension of about 60x40cm. Preparing manually every files of 60x42cm to print was way too much time devouring, so i wrote that script.
    Before running this script you have to create a folder with your text files in eps, and create a new document with the dimension you want.
    Don't hesitate if you want more precisions with the process.
    #target illustrator
    #targetengine session
    This script allows you to import EPS files as linked files. It distributes them and centers the all according to the dimension of the artboard of your document, then it saves the file.
    You can define everything in the start list : target folder, basename of the destination files, how much objects per sheet you want, the roation if necessary, spacing between each objects, number of culumn for the distribution.
    If you want to distribute a number of objects that is bigger thant the limit of objects per sheet, the script reports the remaining in a new sheet after saving the previous one.
    The first 2 arrays contains the filenames to use in the source folder and their respective quantity.
    var doc = app.activeDocument;
    doc.rulerOrigin = [0,0];
    var xtimes = 0;
    var countName;
    var folder;
    var folder2;
    //var folder = 'C:\\Documents and Settings\\Administrateur\\Bureau\\BBB\\';
    // array for filenames
    var listEx=new Array (
    "File1.eps",
    "File2.eps",
    "File3.eps",
    // array for quantity for each filenames
    var listqte=new Array (
    15,
    8,
    19,
    //-------------UI CODE------------
    var win = new Window ("dialog");
    win.alignChildren = "left";
    // ------Folders selection panel
    var foldPanel = win.add("panel");
    foldPanel.alignChildren = "right";
    // source folder for files
    var panelGrp1 = foldPanel.add("group");
    var btnSource = panelGrp1.add("button",undefined,"Source Folder :");
    var txtSource = panelGrp1.add("edittext",undefined);
    txtSource.characters = 40;
    btnSource.onClick = function()
        folder2 = Folder.selectDialog ("Select Source folder..."); // get the source folder
        txtSource.text = folder2.fsName; // show the file Path here
    // destination folder
    var panelGrp2 = foldPanel.add("group");
    var btnSave = panelGrp2.add("button",undefined,"Save Folder :");
    var txtSave = panelGrp2.add("edittext",undefined);
    txtSave.characters = 40;
    btnSave.onClick = function()
        folder = Folder.selectDialog ("Select Destination folder..."); // get the source folder
        txtSave.text = folder.fsName; // show the file Path here
    // Base name for destination files
    var panelGrp3 = foldPanel.add("group");
    panelGrp3.alignment = "left";
    var bfn = panelGrp3.add("statictext",undefined,"Basename of target file :");
    var txtbfn = panelGrp3.add("edittext",undefined,"Description plates - UK");
    txtbfn.characters = 20;
            // other parameters
            var grp = win.add("group");
            grp.alignChildren = "left";
            grp.orientation = "column";
            // counter
            var wincount = grp.add("group");
            var textcount = wincount.add("edittext",undefined,0);
            textcount.characters=2;
            wincount.add("statictext",undefined,"Start count");
            //Limit number of placeditems to distribute in one file
            var winlimit = grp.add("group");
            var textlimit = winlimit.add("edittext",undefined,0);
            textlimit.characters=2;
            winlimit.add("statictext",undefined,"Limit");
            //number of Columns for the distribution
            var wincolon = grp.add("group");
            var textcolon = wincolon.add("edittext",undefined,0);
            textcolon.characters=2;
            wincolon.add("statictext",undefined,"Nb of columns");
            // Spacing values between each objects in mm
            var winspace = grp.add("panel",undefined,"Spacing in mm");
            winspace.orientation = "row";
            winspace.add("statictext",undefined,"X");
            var Xspace=winspace.add("edittext",undefined,0);
            Xspace.characters=7;
            winspace.add("statictext",undefined,"Y",undefined,0);
            var Yspace=winspace.add("edittext");
            Yspace.characters=7;
            // rotation angle
            var winrotate = grp.add("group");
            var textangle = winrotate.add("edittext",undefined,0);
            textangle.characters=3;
            winrotate.add("statictext",undefined,"Rotation in °");
    // Dropdownlist of presets   
    var winPreset =grp.add ("dropdownlist", undefined, [ "Description plates","Trapezes plates","-","Perso"]);
    winPreset.onChange = function ()
        switch (winPreset.selection.text)
                    case "Description plates":
                            textlimit.text=8;
                            textcolon.text=4;
                            Xspace.text=6.4;
                            Yspace.text=27;
                            textangle.text=0;
                            break;
                    case "Trapezes plates":
                            textlimit.text=18;
                            textcolon.text=6;
                            Xspace.text=9;
                            Yspace.text=9;
                            textangle.text=0;
                            break;
                    case "Perso":
                            textlimit.text=0;
                            textcolon.text=0;
                            Xspace.text=0;
                            Yspace.text=0;
                            textangle.text=0;
                            break;
    //winPreset.selection=1;
    var runBT=grp.add("button",undefined,"Run !");
    runBT.onClick = function()
        win.close();
        moteur();
    win.show();
    //--------------------End of UI CODE----------------
    //---------------------------------fonction  Placement of objects
    function place()
        var paddingx = parseFloat(Xspace.text)*2.834;        //spacing in mm between each column (for a value in points just suppress the *2.834)
        var paddingy = parseFloat(Yspace.text)*2.834;        //spacing in mm between each line
        var gridCols = textcolon.text;                            // number of columns
        var newGroup = doc.groupItems.add();
        var sel = doc.placedItems;
        // set the position of the first element, assuming that the group of all elements are centered  in X and Y  in the artboard
        var originX = (doc.width - ((doc.width - ((sel[0].width * gridCols) + (paddingx) * (gridCols-1)))/2))-sel[0].width
        var originY =((doc.height - (( sel[0].height * (textlimit.text/gridCols) ) +  (  paddingy*( (textlimit.text/gridCols)-1 )  )))/2)+sel[0].height
        var currentX= originX
        var currentY = originY
        for(var e=0, slen=sel.length;e<slen;e++)       
                //   :::SET POSITIONS:::
                sel[e].top = currentY;
                sel[e].left = currentX;
                //  :::DEFINE X POSITION:::
                currentX += -(sel[e].width + paddingx);
                if((e % gridCols) == (gridCols - 1))
                        currentX =  originX
                        //  :::DEFINE Y POSITION:::
                        currentY  += sel[e].height+paddingy;
                // ::Add to group
                sel[e].moveToBeginning (newGroup );
                redraw()
    //----------------------function Save
    function sauve()
        var fich =  txtbfn.text;    //Basename of the destination file
        // embed elements (for my case these are eps placeditem files)   
        for (var i = doc.placedItems.length-1; i >= 0; i-- )
                app.activeDocument.placedItems[i].embed();
        // draw a rectangle with the dimensions of the artboard and centered to it, with no fill color neither stroke color
        doc.rulerOrigin = [0,0];  // rulers to the origin
        var artboardRef = doc.artboards[0];
        // read dimensions oh the artboard to position therectangle
        var top=artboardRef.artboardRect[1] ;
        var left=artboardRef.artboardRect[0];
        var width=artboardRef.artboardRect[2]-artboardRef.artboardRect[0];
        var height=artboardRef.artboardRect[1]-artboardRef.artboardRect[3];
        var rect = doc.pathItems.rectangle (top, left, width, height);   
        rect.stroked = false;
        rect.filled = false;
        countName ++;
        // when several files are saved, the ten first files are numbered like this : 01, 02, 03... instead of 1,2,3
        var countName2 = countName;
        if (countName<=9) { countName2 = ("0" + countName)};
        if (xtimes != 0) // saves in eps, basename of file + number of times to repeat if necessary (it's to avoid to save several but identical files. For ex. if i have an object to print 100 times and i place 50 objects per file, the mention "2 times" will be mentionned in the name of the destination file )
                var dest= new File(folder + '/' + fich + ' ' + countName2 + ' - ' + xtimes + ' times' + '.eps');
        else
                var dest= new File(folder+ '/' + fich + ' ' + countName2 + '.eps') ;
        var options = new EPSSaveOptions();
        options.preview  = EPSPreview.None;
        //options.compatibility = Compatibility.ILLUSTRATOR14;
        //options.overprint = PDFOverprint.DISCARDPDFOVERPRINT
        //options.embedAllFonts = false;
        //options.includeDocumentThumbnails = false
        doc.saveAs(dest, options);
    //-------------------- function moteur
    function moteur()
        var limite = textlimit.text;            // max number of objects to distribute in one sheet
        var couchangl = textangle.text;    // rotation angle of the element
        //--------------Searches and signals if there is missing files in the source folder. If so, the script stops and displays which files are missing
        var miss=new Array();
        for (var i=0,len1=listEx.length;i<len1;i++)
            var myfile = new File(folder2+'/'+listEx[i]);
            if (myfile.exists==false)
                    miss.push(listEx[i]);
        if (miss.length != 0)
                alert (miss.length+" missing files : "+"\r"+miss.join(", "+"\r")+"\r"+"\r"+" Please correct and try again");
                return;
        //--------------end of  verification
    var start = new Date();        // starts chrono
    countName = textcount.text;    // start of the counter to number the name of the file to save
        //-------------disctribution of the object on the sheet
        for (var i=0,howmuch = 0,len1=listEx.length;i<len1;i++)
            for (var j =0; j<listqte[i];j++)
                    if (howmuch==0)
                            if ((listqte[i]-j)/limite>=2) //activate "xtimes" if quantity is twice or more bigger than "limit"
                                    xtimes = parseInt ((listqte[i]-j)/limite);
                                    j += limite*(xtimes-1);
                    myfile = new File(folder2+'/'+listEx[i]);
                    var  thisPlacedItem = doc.placedItems.add();
                    thisPlacedItem.file = myfile;
                    // rotate if necessary
                    if (couchangl !=0) thisPlacedItem.rotate(couchangl);
                    howmuch ++;
                    if (howmuch == limite)
                            place();
                            sauve();
                            doc.pageItems.removeAll();
                            howmuch = 0;
                            xtimes = 0;
    place();
    sauve();
    redraw();
    alert("time spent : "+((new Date() - start)/1000)+" secondes");

    Hello,
    The Windows Desktop Perfmon and Diagnostic tools forum is to discuss performance monitor (perfmon), resource monitor (resmon), and task manager, focusing on HOW-TO, Errors/Problems, and usage scenarios.
    As the question is off topic here, I am moving it to the
    Where is the Forum... forum.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • How do I modify a PDF file that I created

    I'm using Adobe Acrobat Pro X with Windows 7 Professional 64 bit.
    From Adobe I selected 'Create' and choose 'PDF from File' and I selected a Word document. 
    Adobe converted the Word document to a PDF and it look great!!!!!
    I want to modify the PDF file and change the 'text', but it will not let me.
    Will I have to convert the Word document to a PDF everytime I want to change 'text'?
    Thanks!

    If you are saying you created a form from the DOC file, that may be a bit of an issue. First, you would generally edit the label in just the way that was mentioned with the text edit tool. However, it may depend on how you created the form. The creation process is important and that may be the problem. If it was created with the Designer tool, then you can not edit anything in Acrobat. Designer creates a XML form that is not compatible with the Acrobat tools. You may be able to edit it in Designer, but not Acrobat. You should still be able to go back to WORD and recreate the PDF.
    If you created the form manually and don't want to deal with recreating the fields, the print the WORD doc to a new PDF using the Adobe PDF printer. Then open your form and use Replace pages to put the revised document behind the fields. The fields will remain intact.
    Again, if the form was created in Designer, you may have to do such changes in Designer.

  • How to edit or modify a .swf file?

    I am trying to edit a .swf file and make some changes in the css styles.How to edit or modify a .swf file?

    You need the fla file that created the swf.  You edit the fla and publish the swf.  Swf's don't usually involve css styles.

  • How to change the width for adf shuttle without modify the skin file

    Dear Professionals
    I haven an ADF Shuttle component in my jsp screen , How can i change the width for the two boxes without modify the skin files.(I know i can do that by skin but what i want to change one shuttle just in one screen not change all shuttles on other screens).
    Regards
    Wish79

    Okay, I didnt try with the trinidad selectmanyshuttle, but this worked for me on the af:selectmanyshuttle..
            <af:selectManyShuttle label="Label 1" styleClass="mycustcss">
              <af:selectItem label="Label1" value="value1"/>
              <af:selectItem label="Label2" value="value2"/>
            </af:selectManyShuttle>
            <af:selectManyShuttle label="Label 1">
              <af:selectItem label="Label1" value="value1"/>
              <af:selectItem label="Label2" value="value2"/>
            </af:selectManyShuttle>        And in my css file, I have
    af|selectManyShuttle.mycustcss::content { width: 800.0px;}
    The first selectManyShuttle came up very wide and the second one came up in the default width..
    Julian.

  • Problem when modifying the jar file of a portal component

    I get the umelogonbase.jar from the com.sap.portal.runtime.logon component, extract it with winzip, do not make any changes to the source code, then re-create the jar file and add it back to the component. Now, when I deploy the component to the Portal I get the following error:
    "Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    com/sap/security/core/logonadmin/IAccessToLogic.
    Exception id: 10:30_08/08/07_0012_15067450
    See the details for the exception ID in the log file"
    any idea what I am doing wrong here?
    I am doing this because I need to change the texts in the umelogonbase.jar, so this is the first step to see that the component still runs once I modify the jar file.
    Note: I create the jar file by creating a jar-type project in NWDS and then exporting the project as jar.

    Do you have JDK installed? If not then please install it by downloading from http://java.sun.com/j2se/1.4.2/download.html. Install it in your local machine. Then inside the installation folder\bin folder you will find the jar.exe.
    Also create the environment parameter named JAVA_HOME and set the value as the installation directory of JDK for example JAVA_HOME=C:\j2sdk1.4.2_13. Also add the following to your Path environment variable
    C:\j2sdk1.4.2_13\bin;C:\j2sdk1.4.2_13\lib;
    these path names should vary depending upon your actual JDK installation folder name.
    Regards,
    Shubho

Maybe you are looking for