Storing an object to be read in by a shell command

Hm, sorry if i got the subject wrong bcos i seriously duno how to phrase it..
I got a java application with a GUI as a configuration manager
i got a shell command running in the back ground
the shell will read in my java class... (which will contain a file path which my java application configures)
How do i keep the file path in the class file so that i dun get null pointer
my shell program is not allowed to have any user input

Hello Alexandra,
That option is not available in the recent versions of Muse anymore and has been replaced by layers, as shown in this screenshot: http://prntscr.com/2hrncq
More details on the layers feature can be found in the links below:
http://helpx.adobe.com/muse/tutorials/layers-muse.html
http://tv.adobe.com/watch/muse-feature-tour/adobe-muse-layers-panel-may-2013
http://tv.adobe.com/watch/learn-adobe-muse-cc/working-with-layers-in-muse-cc
Hope this helps.
Cheers
Parikshit

Similar Messages

  • How to print the image data stored in object of 'java.io.File' Class in jsp

    I have created a file object for the image file in the system temporary directory.Now I want to display it in my page. please tell,How to print the image data stored in object(in my program it is imgr) of 'java.io.File' Class in jsp

    Create a servlet which gets an InputStream of the file and writes it to the OutputStream of the response and call this servlet in `src` attribute. That's basically all.
    Here's an example which covers the most of the minimum needs: [http://balusc.blogspot.com/2007/04/imageservlet.html].

  • Getting invalid packages when installing support for stored java objects

    I am getting invalid packages notices when installing support for stored java objects in Forms 9i that can with the Oracle 9iDS Suite. In the post installation notes it says to locate a few SQL files, PLB files and a JAR file and run them. On executing the SQL package that will install the rest , I am logged in as SYSTEM as the instructions stated, I get an error when it tries to load the PLB files ( which are encrypted from Oracle). Any one else have this problem or know of a solution?
    If you need more information please let me know and I will try to respond promptly.
    Thanks
    Chad Leath

    The PLB package is called ORA_DE_REFLECTION. I forgot to mention this in the previous post.

  • Storing Java objects into a Derby db

    Hi, Im new to Apache Derby, Id like to know how store a Java Object into a db field.
    Im working with the JPCap library and the Packet class has many attributes and values, it will be easier if I could save the complete object in a just one field.
    Thanks in advantage.

    DB script:
    "Create Table APP.PACKETS (ID INTEGER not null primary key, PACKET LONG VARCHAR FOR BIT DATA)"
    Test:
    import jpcap.packet.TCPPacket;
    import java.io.ByteArrayOutputStream;
    import java.io.ObjectOutputStream;
    import java.io.ByteArrayInputStream;
    import java.io.ObjectInputStream;
    import java.io.IOException;
    private static int increment;
    public static void addPacket() {
    System.out.println("Inserting...");
    TCPPacket packet = new TCPPacket(12, 8080, 56, 78, false, false, false, false, true, true, true, true, 10, 10);
    try {
    ByteArrayOutputStream byteOutStream = new ByteArrayOutputStream();
    ObjectOutputStream objOutStream = new ObjectOutputStream(byteOutStream);
    objOutStream.writeObject(packet);
    objOutStream.flush();
    objOutStream.close();
    byteOutStream.close();
    PreparedStatement pstmt = conn.prepareStatement("Insert Into APP.PACKETS Values(?, ?)");
    pstmt.setInt(1, ++increment) ;
    pstmt.setBytes(2, byteOutStream.toByteArray());
    pstmt.execute();
    conn.commit() ;
    System.out.println("Inserted!");
    } catch(IOException e) {
    e.printStackTrace();
    } catch(SQLException e) {
    e.printStackTrace();
    public static void showPackets() {
    String query = "Select * From APP.PACKETS ";
    Statement st = null;
    ResultSet rs = null;
    int id = -1;
    byte[] data = null;
    try {
    st = conn.createStatement();
    rs = st.executeQuery(query);
    while (rs.next()) {
    id = rs.getInt("id") ;
              data = rs.getBytes("packet") ;
    ByteArrayInputStream byteInStream = new ByteArrayInputStream(data);
    ObjectInputStream objInStream = new ObjectInputStream(byteInStream);
    Object obj = objInStream.readObject();
    objInStream.close();
    byteInStream.close();
    if (obj instanceof TCPPacket) {
    TCPPacket p = (TCPPacket)obj;
    System.out.println(p.dst_port); // Print anything
    } else {
    System.out.println("No Found!");
    } catch(IOException e) {
    e.printStackTrace();
    } catch (ClassNotFoundException e) {
    e.printStackTrace();
    } catch(SQLException e) {
    e.printStackTrace();
    Thats one of several ways to insert Java Objects...

  • Only first object set being read by XML reader

    Hello,
    The XML file reads only object group when I use an accompanying XSD file.  
    Without the XSD file all XML object groups are read.
    I have verified this by enumerating the created table and have also done this is c#...so I think I am having an issue with the .net
    Originally there were other datatypes (int ect) but I took them out to test.
    Here is the XSD file:
    <?xml version="1.0" standalone="yes"?>
    <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
    <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element name="Products">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="ProductID" type="xs:string" minOccurs="0" />
    <xs:element name="ProductName" type="xs:string" minOccurs="0" />
    <xs:element name="SupplierID" type="xs:string" minOccurs="0" />
    <xs:element name="CategoryID" type="xs:string" minOccurs="0" />
    <xs:element name="QuantityPerUnit" type="xs:string" minOccurs="0" />
    <xs:element name="UnitPrice" type="xs:string" minOccurs="0" />
    <xs:element name="UnitsInStock" type="xs:string" minOccurs="0" />
    <xs:element name="UnitsOnOrder" type="xs:string" minOccurs="0" />
    <xs:element name="ReorderLevel" type="xs:string" minOccurs="0" />
    <xs:element name="Discontinued" type="xs:string" minOccurs="0" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    PowerShell
    $dsXml = new-object "System.Data.DataSet" "dsServers"
    $dsXml.ReadXmlSchema('C:\temp\ProdSchema.xsd')
    $dsXml.ReadXml("C:\temp\Products1000.XML")
    $xmlProducts = $dsXml.Tables[0]
    foreach ($Row in $dsXml.Tables[0].Rows)
    write-host "value is : $($Row[1])"
    XML
    <Products>
    <row>
    <ProductID>1</ProductID>
    <ProductName>Bardudollantor</ProductName>
    <SupplierID>1</SupplierID>
    <CategoryID>1</CategoryID>
    <QuantityPerUnit>plurissimum transit.</QuantityPerUnit>
    <UnitPrice>338.3698</UnitPrice>
    <UnitsInStock>23645</UnitsInStock>
    <UnitsOnOrder>-7654</UnitsOnOrder>
    <ReorderLevel>26584</ReorderLevel>
    <Discontinued>1</Discontinued>
    </row>
    <row>
    <ProductID>4</ProductID>
    <ProductName>4Bardudollantor</ProductName>
    <SupplierID>1</SupplierID>
    <CategoryID>1</CategoryID>
    <QuantityPerUnit>plurissimum transit.</QuantityPerUnit>
    <UnitPrice>338.3698</UnitPrice>
    <UnitsInStock>23645</UnitsInStock>
    <UnitsOnOrder>-7654</UnitsOnOrder>
    <ReorderLevel>26584</ReorderLevel>
    <Discontinued>1</Discontinued>
    </row>
    </Products>
    I am sure I must be misusing the .net elements....

    I see now. YOU have no reference to the schema in the datafile.  Adding the reference to the dataset does not tell it how the file is structured.Try it this way:
    $dsXml = new-object "System.Data.DataSet" "dsServers"
    $dsXml.ReadXml("C:\test\Products1000.XML",'InferSchema')
    $dsXml.Tables[0].Rows|ft -auto
    This will give you all records.  If you want strong typing reference the schema in the data file or embed the schema in the data file.
    ¯\_(ツ)_/¯
    This works for basic xml documents...thanks....will post again for complex......the tables don't load like I expected.

  • [SOLVED]Why does .bash_profile seem tobe read in non-login shells too?

    ~/.bash_profile:
    . $HOME/.bashrc
    ~/.bashrc:
    export PATH=$PATH:$HOME/code/shell
    (irrelevant lines left out)
    (I have no ~/.profile, ~/.bash_login or * ~/.bash_logout. I have also never edited /etc/profile or /etc/bash.bashrc.)
    I've read that in a login shell (e.g. TTY1) only the former is read, which in my case sources the latter. Running "export -p" in TTY1 gives a result consistent with this:
    declare -x PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl:/home/lazar/code/shell" (/home/lazar/code/shell is only listed once)
    I've also read that in a non-login shell (e.g. xterm) only the latter is read. However, when I run "export -p" in xterm or urxvt I get an unexpected result:
    declare -x PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl:/home/lazar/code/shell:/home/lazar/code/shell" (/home/lazar/code/shell is listed twice!)
    This implies that ~.bashrc is read twice, perhaps because .bash_profile is read in non-login shells too, even though it shouldn't be, should it? It doesn't seem to matter really, but I can't help but wonder why...
    [EDIT]
    I've found the answer. Exports from .bash_profile are done at boot time and *remain* active while X is active. Opening a non-login shell will cause .bashrc to export as well. Hence the duplication. My solution:
    ~/.bash_profile:
    export PATH=$PATH:$HOME/code/shell
    . $HOME/.bashrc
    ~/.bashrc:
    (lines other than export commands)
    Last edited by Lazar (2011-02-14 07:57:56)

    As I wondered, I think it's a problem with passwd. I don't have a dbus entry and must have missed it when I was copying things around between my version and the .pacnew. Downloading an install disc now since I can't seem to change it from the recovery console due to mounting root read-only.
    I'd love to know of a way to boot that avoids starting dbus and other things that might break while still having read/write access to root. Will mark solved once I update /etc/passwd and reboot.

  • Clarification on writing an object to and reading from a database

    I am trying to write an object to a relational database, sql server type nvarchar.
    Here is my code;
    /*create ObjectOutputStream
    and ByteArrayOutputStream
    ObjectOutputStream formulaOut;
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    formulaOut = new ObjectOutputStream(out);
    /* write my object to the ObjectOutputStream
    formulaOut.writeObject(formula);
    rq.parameters[0][0] = Integer.toString(formula.getFormulaID());
    rq.parameters[1][0] = Integer.toString(formula.getFormulaNumber());
    rq.parameters[2][0] = Integer.toString(formula.getInvoiceID());
    rq.parameters[3][0] = Integer.toString(formula.getLineItemID());
    * place my byteArray into a string array which is a parameter for my stored procedure
    rq.parameters[4][0] = out.toString();
    out.close();
    // the stored procedure complets successfull and I get data in the database
    //Here is the code to read the object:
    // read a string into an input Byte Array
    ByteArrayInputStream in = new ByteArrayInputStream(((String)rowInstance.get(4)).getBytes());
    try{
    //I get a StreamCorrupted Exception: Caught EOF while reading the stream
    objectInput = new ObjectInputStream(in);
    singleObject = (LineItemFormula)objectInput.readObject();
    catch(Exception e){
    System.out.println(this.getClass().getName() + " Class:");
    e.printStackTrace();
    Any Ideas?

    I was able to find a solution: My problem was caused from a loss of data when trying to save it to the databse. I eneded up placing a byte[] into a "|" delimited string and then saving it to the database. I could have probably used Java encoding and decoding but I was loosing time.
    Any thoughts on how to save a serialized object to a MSSQL database?
    What data type should the database use?
    What is the best way to the class to the database without loosing data?

  • Storing XMLType object as a Workflow Attribute - is it possible?

    Dear Experts,
    I have an XML document stored as a PL/SQL 'XMLType' object and I wish to store it in a Workflow Attribute. Is this possible and if so, under what 'Type' option shall I store it as?
    Many thanks,
    Mark

    Hi,
    You can store the payload as a CLOB inside a Workflow Event attribute type (WF_EVENT_T).
    If the XML is guaranteed to be short, you could store it in a text attribute of up to 4000 characters, but I'd be inclined to store it in the event.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://thoughts.workflowfaq.com ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Interactive objects disappear in Reader 9.

    I don't know if anyone else is having this problem and I can't seem to find anything when I google it. I'm using Indesign CS3 to create a form with interactive objects such as checkboxes and pop-up windows. I then use Acrobat Pro 8 to add text fields and enable usage rights so that the form data can be saved. As long as I don't enable usage rights in Acrobat I can open the form in Reader 9 and all the text fields, checkboxes, and pop-ups are fine ... i just can't save any data that is input. If I do enable usage rights then when I open the form in Reader 9 I see the interactive objects for a split second and then they disappear. Reader 7 & 8 don't seem to have this issue so I'm not sure if this is a bug or I'm just missing something in the export options.
    I've uninstalled and reinstalled everything and have tested this on multiple computers so I'm at brick wall now. I would appreciate any advice anyone can give.
    Thank you

    >my department is dealing with thousands of students that need to be able to save what they type on the pd
    Better be careful with that. You could very possibly be violating the End User License Agreement.
    Enabling forms with Acrobat is for low usage amounts. You wouldn't want to get your school in hot water.

  • Possible?Multi-Entity View Object with one Entity Object that is Read-only.

    I know this sounds crazy, but I would like to create a multi-entity view object, where one entity object is based on a table in my application (we'll call it "Users", which basically stores the primary key for the person from the institutional people database), and the other table is a entity object based on a view of the institutional people database table (read only access), which we can call "People".
    I know that since no updates will be done to the People table, it really should be a read-only View Object, but I would lose the ability to sort on attributes like Last Name, Hire date, etc, since those would be transient attributes in my ViewObject for the Users. By having People as an entity object, I can then create a multi entity view object and have the ability to join Users to People and be able to sort on the above mentioned fields (like Last Name).
    The problem is that when I use the JDev (I'm currently using 10.1.2.1) AppModule BC4J tester, when I click on the multi-entity view object that I added to the AppModule it gives me an error:
    oracle.jbo.RowCreateException) JBO-25017: Error while creating a new entity row for People.
    ----- LEVEL 1: DETAIL 0 -----
    (java.lang.InstantiationException) null
    I have tried to change all the attributes to updateable in my entity object, but no create method, and I have tried to make them all read-only, but no effect, I get the same error (probably because the People view is read-only in my schema).
    Is there a way to change the entity object so that it will not try to create a new row when it runs the Tester? So that the multi entity view object behaves more like a view link, but gives me the added bonus of being able to sort on the Last Name column from the People table?
    Thanks for any help on this subject...at worst, I will have to use the view link method to get the job accomplished, but it would be "cooler" if this would work!
    Jeremy.

    Steve, thanks for your quick response to my question.
    To answer your questions, I was trying to create the Multi-entity View Object to give me more flexibility when working with my User table, and my People view. The flexibility I desired was that I would be able to sort my Users based on attributes in the People view. This is not possible when the there is only one Entity in my VO, and the People view data are all transient attributes, because they are not in the SQL statement.
    Ultimately, after working with one of my colleagues, we decided to use the approach that you mentioned by creating a read-only VO with the SQL query we want to display to the user (contains both User and People data fields), and then use a different ViewObject when performing other actions on the User Table (such as inserts/updates/deletes). By using the setWhereClauseParam() method in the handleLifeCycle() for the JSP page, we should be able to navigate between the different View Objects, so that the user does not see any difference.
    Thanks! Oh, and by the way, I have read your article you included before, and I have used it many times before to tune my View Objects! Thanks!

  • 3D Object in PDF (Reader for iOS)

    I have an embedded U3D object in a PDF. When I open the PDF in Adobe Reader for iOS, the model is seen, but I cannot rotate it or zoom in on it. Are 3d models embedded in a PDF supported?
    Thanks!

    Not supported.

  • Storing cursor object in data base side

    I have laks of records in oracle database .how can retrieve all those records in our serverside with out getting java heap area exception.By calling stored procedure only once(stored procedure out parameter is cursor).

    sreenu1234 wrote:
    I have laks of records in oracle database .how can retrieve all those records in our serverside with out getting java heap area exception.By not doing it in the first place of course.
    Your architecture and/or design is flawed if you think that you need to retrieve so many records at one time that you run out of memory (presuming you know that you can increase the heap.)

  • XML stored as object relational fails

    We are looking at implementing a system to store Universal Business Language (UBL) 1.0 XML invoices in an XMLType column in 10g. I've registered all the requisite schemas (the UBL invoice comprises a rather complicated hierarchy of 19 individual namespaces), but when I come to create the table:
    CREATE TABLE UBLInvoices (
    invoice_id NUMBER,
    invoice_spec XMLTYPE)
    XMLTYPE invoice_spec STORE AS OBJECT RELATIONAL
    XMLSCHEMA "Invoice-1.0"
    ELEMENT "Invoice";
    I get an error message to the effect that a table with more than 1000 columns cannot be created. I can create the table using CLOB storage (STORE AS CLOB) without any problems. Is there a limit to the complexity of typed XMLType column schema? Is there any workaround?

    As A Non says, why is it unacceptable?
    It's only unacceptable to you, but it's not unacceptable XML. The standard of XML does not require a display format as the purpose of XML is to define a structure of data, not to present itself nicely to you on the screen.
    If you want to prettify your XML, that's up to you, but optimised XML data does not have formatting, which takes up additional and unnecessary storage space.

  • Storing two objects per index in a list?

    I want to make a list that I can add and remove items from. Each item would contain a PrintWriter and a String. I don't really know how I would do this.. I can store the String in an arraylist but I need the PrintWriter aswell :P. Any ideas?
    Cheers.

    tom14201 wrote:
    I need to remove them once they have been used Remove it from the list, and then use it, then (presumably) close the writer and throw the whole object away.
    and have a way of telling whether there is any to use if that makes sense.Do you mean whether there are any objects in the List? Use yourList.size()

  • Storing an object in Session, is that a good practice

    Hi,
    In application, I have a class that is very much important class, that is very much important for every backing bean class. So I am initializing at the time of login and keeping that object in the session and every time when ever the application requires it takes from the session and uses, So now my doubt is, is that a correct procedure to keep that such a valueble object in the session, in the security point of view will it makes any problem?
    actually previously I have written like, every backing bean extends this important class so after that I thought for very time it initiates the parent object for every view so I thought to reduce the heap size at runtime I kept this object in the session and when ever the application gets the requirement it gets from the session and it uses with the object
    Please any one give the valid suggestion...

    No balu sir I didn't ask, in which scope I have to keep my object.
    I am having a class, which is useful for used session wide, shared among all requests of the same user (session) throughout all subrequests/windows/tabs. so Thats why I am creating this object once per the session and keeping that object in the Httpsession, in the constructor I am passing that Object ref into the baking bean's instance variable and using through out the page.
    You can ask me why and how I am doing that!
    Actually will take an example, I have a class App class this has some methods and some instance variables, those methods are communication methods between client and server modules. So this App class provides basic behavior, passing and getting application data from server. So In the previous architecture I am extending this class for every page's backing bean class, So when I run the profile in the NetBeans the more App class objects are getting created because for every user for every page request it is creating object. thats why I thought there should only one object should serve across the user session. In my application there we can't predict, which page will be the user's first page, because we can't put a common welcome page. Thats why I am creating an object and keeping that in the Http server side session.
    I am implimented in this way,
    In every pages constructor first line, I am calling a method, that method first checks whether the HttpSession has any Object value against AppObj key if it is there it will pass to the Page's backing bean's instance variable otherwise it will create a new object and it will keep that object in the HttpSession on the key name of AppObj and then it will pass the ref to the Page's backing bean's instance .
    Actually I don't have Home Page otherwise I can create this object there in the welcome page and I can use across the usersession.
    Now My question is, If I implement in this way, will my Application gets any security problem in the future?

Maybe you are looking for