Edit input/output of a reusable workflow

Hello all, is possible to change the input and output variables of an already existing reusable workflow?
We need to delete one of the variables used as output of the process but we cannot find the interface that permits his operation.
Is this operation possible?

DSpider wrote:
When you say input/output, what exactly do you mean? Read/write speeds, network, upload speed, what?
Because you can probably SSH and run iotop. It's just like top but for disk writes.
You can also tail a log file and see the changes being made as they happen (if the game server provides logs, of course).
By input/output, I meant that of a specific program. I've figured this out with screen - it does just what I want. However, now I'm having another problem. My /etc/rc.local contains this to start the game server:
#!/bin/bash
# /etc/rc.local: Local multi-user startup script.
su - huskehn -c "cd /home/huskehn/minecraft/server/; screen -S minecraft java -Xms1G -Xmx1G -jar minecraft_server.jar nogui"
The purpose of the script is to cd to the game server's directory and create a new screen, as my user and not as root, and execute the game server within the screen (that's the java command and everything after it). If I run this script by logging in and typing /etc/./rc.local, it works just as I want it to and the game server starts. However, on system boot, it doesn't seem to run. The game server never starts. Is there some kind of log I can view that could tell me why this is happening?
Last edited by Huskehn (2012-04-24 00:06:02)

Similar Messages

  • Can't acces to internal laptop hard disc - input/output error

    Sometimes when I use my i can't acces to any file on my hdd and i get input/output error when i type commands in console(i even can't halt or reboot). This is used to happen suddenly after few hour of work in one session (not always, it happend three times during last week)
    When i get this error the hdd control led  is on (I have ibm x60s with ssd hard disc, and normaly this diod only blink sometimes, bbut when i get this error , diod is  the whole time floodlite. I didn't any similar problem in google so i posted it here.

    Welcome to the forums.
    Not exactly alot of info to go on here. Try reading up on the "How to post" article on the wiki.
    As for the trouble at hand. With the limited info given, I'd say start off with running some health checks on your disk (smartctl, fsck,...).
    Last edited by Gcool (2012-03-29 05:23:32)

  • Disk utility 'input/output error' message?

    I am "creating an image" of a DVD using disk utility (prior to making a copy on a blank DVD disk).   Why am I now rec'ing an 'input/output error' message?   I have already copied several other DVDs from the same author (with her permission, they are not copywrited.) w/o a problem.
    What's going on?  original damaged? an incorrect step on my part?  some sort of space problem?  ( I have tons of room on my iMac.)
    Thanks for your help.

    Take a look at Cinematize 2, I've used it with iMovie 06 and iDVD 08. It has several modes of converting the data. One mode is called "lossless".
    For the job you're doing you may prefer to use iMovie 06 instead of iMovie 08 (I would).
    iMovie 06 and iDVD 08 is a terrific combination.
    Your workflow would go something like this.
    Use Cinematize 2 to create a Quicktime file from the DVD.
    http://www.miraizon.com/products/products.html
    Important that file into iMovie 06.
    From iMovie 06, share to iDVD 08 (assuming you want a DVD).

  • [Solved] CUPS: Unable to write print data: Input/output error

    I'm filling this for the benefit of those poor googlers that can reach here.
    Symptoms: After trying to print a "complex" image the printer made too much breaks, and failed.
    The problem is, it then didn't came up. I mean, I restarted the printer, cupsd, the whole system, and nothing.
    I was unable to print again, it showed "Unable to write print data: Input/output error" and refused to print anything.
    I then saw that in /etc/cups I had printers.conf and printers.conf.O files, which differed (other than in StateTime), that printers.conf.O had
    State Idle
    but printers.conf had:
    State Stopped
    StateMessage Unable to write print data: Input/output error
    Reason paused
    Probably due to the ErrorPolicy being stop-printer.
    So seeing I followed the following steps:
    Stop cups
    Replace printers.conf with printers.conf.O (I could also had manually edited it)
    Start cups
    It then went working flawlessly.
    There was probably an option in the web interface combobox for doing that. The problem is that I didn't realise it was stopped, so didn't know how to make it work. Moreover, some posts in the web recommended reinstalling the printer (which would skip the problem by creating a new printer).

    I think that I had this same problem, and fixed it by reinstalling the printer.  Thank you for your post.

  • Error inserting acpi_cpufreq: Input/output error?

    Hi,
    I'm trying to set up frequency scaling on my Intel i5 760 as per the wiki.
    The only problem is I can't seem to load the acpi_cpufreq module!
    # modprobe acpi_cpufreq
    FATAL: Error inserting acpi_cpufreq (/lib/modules/2.6.39-ARCH/kernel/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.ko.gz): Input/output error
    There is no additional output in dmesg from this error.
    I'm running x86_64 btw, and I notice that it's trying to load an x86 module, could this have anything to do with it?
    Thanks!

    Hi
    Did you find a solution? I'm having exactly the same problem with acpi-cpufreq. (eeepc 900). I tried modprobing the p4_clockmod as well, which some older posts say is required for my machine, but I got the same error.
    Both modules appear to be available -
    ls /lib/modules/$(uname -r)/kernel/arch/x86/kernel/cpu/cpufreq/
    acpi-cpufreq.ko.gz     gx-suspmod.ko.gz  mperf.ko.gz        powernow-k6.ko.gz  speedstep-ich.ko.gz
    cpufreq-nforce2.ko.gz  longhaul.ko.gz    p4-clockmod.ko.gz  powernow-k7.ko.gz  speedstep-lib.ko.gz
    e_powersaver.ko.gz     longrun.ko.gz     pcc-cpufreq.ko.gz  powernow-k8.ko.gz  speedstep-smi.ko.gz
    Last edited by belbo (2011-06-11 11:07:50)

  • SOLVED: Getting an Input/Output error when accessing certain files

    My system started failing a few days ago because of sudden Input/Output errors when trying to access certain files. It was running fine until various applications started crashing like for example Pidgin (in retrospect probably because of DBus crashing). I decided to reboot and now can't login anymore because the DBus module fails to load which in turn means that HAL doesn't load either and so I can't use my keyboard to login.
    The error message I get from DBus is that it can't access the file /etc/dbus-1/system.d/org.freedesktop.PolicyKit.conf because of an Input/Output error. I tried to fix/see what was wrong using the arch livecd. Because I thought my problem had to do with a pacman update that had failed before I'd rebooted, I updated my system and I noticed that when pacman tried to access other files it came back with the same error message. The files seemed pretty random, one of them was fakeroot.conf and then several library files like libfaad (sorry this is kind of vague but I'm away from home right now and can't go online very often so I'm writing this from memory).
    I'm guessing its a hard drive problem because checking the filesystem for errors came back with nothing. I was just wondering whether anyone had any other ideas before I go and reinstall. I'm going back home tomorrow so I'll be able to follow any advice/reinstall then.
    Last edited by siell (2010-04-08 17:01:37)

    UPDATE
    It seems to be fixed! The second run of e2fsck fixed some more issues and the files that were causing the problems earlier seemed to have bad inodes. Boots fine now and I can get into my system. I checked and I still have a reasonable amount of free space so I don't think that was the reason ... I have no idea how the filesystem got so corrupted out of nowhere.
    A few things are different, for example, it asked me to unlock the keyring and I couldn't mount my external encrypted drive anymore and had to do it manually with cryptsetup. e2fsck made quite a few changes so I imagine it's due to that. Shouldn't be to hard to fix though.
    Thanks for your help!

  • How can i make the input/output field to a multiple lines in ModulePool...

    hi all...
    can any one please let me know, is there any possibility thru Module Pool program where i can make the input/output field to a multiple lines...
    say, when we drag & drop the input/output field on the screen - it'll come with single line display. so, how to make the same field to multiple lines field.
    rather i can say my question like, how to increase the height of the input/output field.
    Desired Functionality:
    • The user wants to display a long text.
    • now the input/output field should not display the record as a single line, now the field has to display the text in multiple lines (something like wrap option in ms excel).
    hope u got my question...
    please help me in this regards...

    hi Rengith, i'm not using Text Field, i'm using Inpu/Output Field to display the long text.
    If u mean text field as input/output field then can u let me know the process for this, how to do the same thru module pool program...
    Edited by: murashali on Mar 18, 2008 1:36 PM

  • Failed to execute default file manager (Input /Output Error) [SOLVED]

    I'm having an issue in XFCE where the default Terminal, Browser and File Manager launch correctly - but with this error:
    Failed to execute default [file manager] [terminal emulator] [browser]
    Input /Output Error
    I have the requisite  "Preferred Application" set as Chrome/Thunar/xfce4-terminal.
    If I run
    exo-open --launch FileManager
    From terminal, it says:
    [1]    4281 segmentation fault (core dumped)  exo-open --launch FileManager
    Remember, it launches the app successfully - and the apps themselves launch correctly, it's only exo-open that I have a problem with!  Everything else works great on this system.
    Last edited by yochaigal (2015-04-28 11:10:06)

    demolitions wrote:
    I got the same problem, I observed the problem appearing with those lines in "dmesg", the same library (libpthread-2.21.so) is also present in other software errors (critical and not) since my last update (friday 24th).
    I'll try downgrading glibc, see if that works around the problem.
    [ 587.042204] traps: xfce4-terminal[1022] general protection ip:7f6500100150 sp:7ffe14c978d8 error:0 in libpthread-2.21.so[7f65000ee000+18000]
    [ 592.113288] traps: xfce4-terminal[1026] general protection ip:7fbf1c97a150 sp:7ffe2f916188 error:0 in libpthread-2.21.so[7fbf1c968000+18000]
    [ 620.913826] traps: xfce4-notifyd[494] general protection ip:7fa4859a2150 sp:7fff84dd7708 error:0 in libpthread-2.21.so[7fa485990000+18000]
    [ 974.008983] traps: xfce4-terminal[1384] general protection ip:7f519df84150 sp:7ffe3573e4f8 error:0 in libpthread-2.21.so[7f519df72000+18000]
    [ 974.850083] traps: xfce4-terminal[1387] general protection ip:7f6ed57f8150 sp:7ffec58369c8 error:0 in libpthread-2.21.so[7f6ed57e6000+18000]
    [ 975.521687] traps: xfce4-terminal[1390] general protection ip:7f5e91d00150 sp:7ffd70179d18 error:0 in libpthread-2.21.so[7f5e91cee000+18000]
    [ 979.179030] traps: exo-open[1393] general protection ip:7fbdd2a24150 sp:7ffe9e0c5608 error:0 in libpthread-2.21.so[7fbdd2a12000+18000]
    [ 984.286944] traps: exo-helper-1[1395] general protection ip:7fd5d8473150 sp:7ffd53706a08 error:0 in libpthread-2.21.so[7fd5d8461000+18000]
    [ 1012.318773] traps: xfce4-terminal[1502] general protection ip:7ffb62b1b150 sp:7fffd5c986f8 error:0 in libpthread-2.21.so[7ffb62b09000+18000]
    [ 1101.456187] traps: xfce4-terminal[1521] general protection ip:7f3285cf2150 sp:7fff3c6df158 error:0 in libpthread-2.21.so[7f3285ce0000+18000]
    [ 1102.120447] traps: xfce4-terminal[1525] general protection ip:7fdd50c3a150 sp:7ffe96656ce8 error:0 in libpthread-2.21.so[7fdd50c28000+18000]
    [ 1103.246180] traps: xfce4-terminal[1529] general protection ip:7f93f2b49150 sp:7ffc539d34e8 error:0 in libpthread-2.21.so[7f93f2b37000+18000]
    [ 1103.976302] traps: xfce4-terminal[1532] general protection ip:7f6a55204150 sp:7ffd13eb77f8 error:0 in libpthread-2.21.so[7f6a551f2000+18000]
    [ 1118.718286] traps: xfce4-terminal[1953] general protection ip:7efc94fb9150 sp:7ffd6f5fbed8 error:0 in libpthread-2.21.so[7efc94fa7000+18000]
    [ 1160.851856] traps: xfce4-terminal[1992] general protection ip:7f39aaddb150 sp:7ffdb4478aa8 error:0 in libpthread-2.21.so[7f39aadc9000+18000]
    [ 1165.279367] traps: xfce4-terminal[2004] general protection ip:7f3a50756150 sp:7ffd743c07b8 error:0 in libpthread-2.21.so[7f3a50744000+18000]
    [ 1173.696850] traps: xfce4-terminal[2008] general protection ip:7f0930b98150 sp:7ffc5cd54e78 error:0 in libpthread-2.21.so[7f0930b86000+18000]
    [ 1177.567234] traps: xfce4-terminal[2011] general protection ip:7f5ea2222150 sp:7ffd81d4e898 error:0 in libpthread-2.21.so[7f5ea2210000+18000]
    Tried downgrading glibc from 2.21-3 to 2.21-2 as this is the package which contains libpthread.so, and on my other arch workstations I don't have the issue, but to no avail, same error box pops up when using exo-open, and my IDEs are not starting.
    I'll try comparing installed packages versions on both workstations.

  • Can't retrieve approval status in Globally Reusable Workflow (Approval - Sharepoint 2010)

    For day's i am trying to implement the following in one of the standard, out of the box, Globally Reusable Workflow with Sharepoint Designer 2010:
    If Current Item:Approval Status not equals 0:#Approved Start Approval Workflow Task process on Current Item with Parameter:Approvers Else //Nothing
    This is to prevent that a workflow is started if the item is already approved! The strange thing is, a buddy of mine has also Sharepoint 2010 and he can select in the DropDown list -Current Item: -> Approval Status..
    But the only things I can select are the following:
    Content Type
    Created By
    ID
    Modified
    Modified By
    Title
    I don't understand what is going wrong! What am i forgetting to configure or bind or set?

    I have found the solution!
    I have setup an test environment, Sharepoint 2013 on MS Server 2008R2 and installed Sharepoint Designer 2013. When I now edit the default out of the box "Approval - Sharepoint 2010", if you enter the condition "if current item field equals value", you can
    now select "Approval Status"!!
    So this means that it IS available after all! After a lot of trying, searching, this is the solution in a Sharepoint 2010 environment, installed on MS Server 2008R2:
    Edit the (global or copied version if you want) workflow.
    Add the condition "if current item field equals value" as a step.
    Select from the item field: Content Type
    Click on "equals" and change it to "not equals"
    Then click on the condition and enter manually the following: 0;#Approved
    Move the task "Start Approval Workflow Task..." up so it is a part of the condition "If.. "
    Add an Else condition
    Enter here your custom action or log to show the user that the Task is not performed.
    Save the workflow.
    We now have to manually edit the Workflow Rules file.
    In Sharepoint Designer 2010, click at the left side of the ribbon on "All Files".
    If you have created a custom workflow, you can find the "Workflow.xoml.rules" file, in the folder
    Workflows/"Your custom workflow"/"CustomWorkflow.xoml.rules".
    If you are using the global, out of the box Workflow, you can find the .rules file in:
    _catalogs/wfpub/Approval - SharePoint 2010/ReviewApproval_1033.xoml.rules
    Click on the file, then in the next screen click on "Edit file" under Customization. 4.Search for the string "ContentType" 5.When you have found the string, it looks a bit like this:
    ns1:String xmlns:ns1="clr-namespace:System;Assembly=mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">ContentType ns1:String
    (When you look a few lines below this line, you see your added condition 0;#Approved)!
    6.Replace the string ContentType with: _ModerationStatus 7.Save the file! 8.Open in the current directory the "Workflow.xoml" file (this is the workflow itself) 9. Click on the Save button, it will give you a notice:
    A more recent version of _catalogs/wfpub/Approval - SharePoint 2010/ReviewApproval_1033.xoml.rules has been saved to the server by "user" on 1/5/2014 10:50 AM.
    Do you want to replace this with your file?
    Click NO! (Important, otherwise it will replace it with the default rules file, and nothing has changed!)
    Close Sharepoint Designer 2010, reopen SPD2010 and go to the workflow.
    Edit the workflow and you'll see the following now:
    "If Current Item: equals 0;#Approved"
    The field Content Type is now gone! This is correct so don't worry!
    Publish the workflow and you are done!
    Check now on a library that has a link to the edited workflow, when you start a new Workflow on a Approved-Major version of the document, what the outcome is:
    The workflow is discarded because of the condition and nothing happened, so your document stays on the most recent Approved-Major version and is not published back to a previous version number!!
    Conclusion: I think that the Sharepoint 2010 Designer, is missing that specific "Approval Status" field, but with the solution i have just given, you can solve this!
    C# for the win!

  • [SOLVED] Input/Output error, read and writing ..

    This is my brand new Seagate 500GB disk making troubles, it is formatted with NTFS for easier accessing trough Windows because it is sometimes plugged into an external case.
    [dezza@dezza ~]$ sudo rm -rf store/BADDIR/
    rm: cannot remove `store/BADDIR/tonsi-tonsi.r09': Input/output error
    I don't hope this means it's broken Cause I filled it to the limit with valuable stuff ..
    I tried remounting and rebooting ..
    Last edited by dezza (2008-05-14 14:21:54)

    Well, it's happened on this new disk a bought a few weeks ago, can I check it to be certain that it is a bad disk somehow?

  • Input/Output And Method Not Found Problem

    Ok so firstly I think I should apologise on two fronts.
    Firstly, 'cause this is probably posted in the wrong board but I'm not sure this was suitable for the Swing board just 'cause I've been using Swing? And secondly 'cause the code I'm gonna post is so shoddy I would think this constitutes as flaim-bait. >_>
    In my defense this is purely for a little class project to give something to write some documentation on so I'm really not too bothered about the efficiency or ace-mazingness of the end result. I just want it to work.
    To the problem at hand.
    I'm trying to write a program that asks the user a question and then outputs their answer to a file, from which a tally of answers can later be made for the purpose of displaying "results".
    My problem is I've been having problems with the input/output of saving the answers given to the program.
    I'm still learning and input/output is probably my weakest subject (other than, y'know, being good at Java). I've had a bash at it in the following code but all it does it overwrite what is in the file with a single answer so no list of results accumulate. I generally don't have an idea what to try for that one so any pointers would be appreciated.
    Also, my second problem is, in trying to gather results by tallying what is contained in the file, I've run across a problem with the charAt() method not being found and I'm not sure why. Isn't that method a part of java.lang?
    Here's the code thus far:
    //libraries
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.text.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.text.*;
    import java.io.*;
    class CaseStudy {
         public static void main(String args[]) {
              GUI maininterface = new GUI();
              maininterface.setupMenu();
              maininterface.display();
    class GUI {
         //for the actionlisteners
         int whatframe = 0;
         //creates mainframe and border content panel
         JFrame mainframe = new JFrame("Survey Client");
         JPanel borderpanel = new JPanel(), bottompanel = new JPanel();
         JButton quizbutton = new JButton("Take the quiz"), tallybutton = new JButton("Show Results"), submitbutton = new JButton("Submit Results"), menubutton = new JButton("Return To Menu");
         QuizQuestions toppanel = new QuizQuestions();
         QuizResults toppanel2 = new QuizResults();
         GUI() {
              //sets border in borderpanel, this spaces the main content in from the sides of the window
              borderpanel.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              //sets up the frame and panels and adds on borders
              mainframe.setDefaultCloseOperation(mainframe.EXIT_ON_CLOSE); // exits java when clicking on close on main frame
              mainframe.getContentPane().add(borderpanel); // adds the panel as a component to the frame, the panel can hold stuffs
              borderpanel.setLayout(new BoxLayout(borderpanel, BoxLayout.PAGE_AXIS));// page_axis means it'll layout vertically
              bottompanel.setLayout(new BoxLayout(bottompanel, BoxLayout.LINE_AXIS));// line_axis means it'll layout horizontally
              //gives button an action
              quizbutton.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        setupQuiz();
              tallybutton.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        if(whatframe == 1) setupResults();
                        else {
                             int rusure = JOptionPane.showConfirmDialog(null, "Are you sure you wish to show results? Any current quiz answers won't be saved.", "Please Choose One", JOptionPane.YES_NO_OPTION);
                             if(rusure == JOptionPane.YES_OPTION) setupResults();
              menubutton.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        setupMenu();
              submitbutton.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        toppanel.doQuiz();
              borderpanel.add(bottompanel);
         public void setupMenu() {
              if(whatframe == 3) {
                   bottompanel.remove(menubutton);
                   borderpanel.remove(toppanel2);
              whatframe = 1;
              //adds components and lays them out
              bottompanel.add(quizbutton);
              bottompanel.add(Box.createRigidArea(new Dimension(0,10)));
              bottompanel.add(tallybutton);
              display();
         public void setupQuiz() {
              bottompanel.remove(quizbutton);
              bottompanel.remove(Box.createRigidArea(new Dimension(0,10)));
              bottompanel.remove(tallybutton);
              whatframe = 2;
              bottompanel.add(submitbutton);
              bottompanel.add(Box.createRigidArea(new Dimension(0,10)));
              bottompanel.add(tallybutton);
              borderpanel.add(toppanel);
              display();
         public void setupResults() {
              if(whatframe == 1) {
                   bottompanel.remove(quizbutton);
                   bottompanel.remove(Box.createRigidArea(new Dimension(0,10)));
                   bottompanel.remove(tallybutton);
              else {
                   bottompanel.remove(submitbutton);
                   bottompanel.remove(Box.createRigidArea(new Dimension(0,10)));
                   bottompanel.remove(tallybutton);
                   borderpanel.remove(toppanel);
              whatframe = 3;
              bottompanel.add(menubutton);
              borderpanel.add(toppanel2);
              display();
         public void display() {
              //sets the size of the frame around it's components and then shows it
              mainframe.pack();
              mainframe.setVisible(true);
              mainframe.validate(); //makes referenced container relayout it's components
    class QuizQuestions extends JPanel {
         LoadingSaving loadsave = new LoadingSaving();
         JPanel popm = new JPanel(), pop1 = new JPanel(), pop2 = new JPanel(), pop3 = new JPanel(), pop4 = new JPanel();
         JFormattedTextField ques = new JFormattedTextField(), op1 = new JFormattedTextField(), op2 = new JFormattedTextField(), op3 = new JFormattedTextField(), op4 = new JFormattedTextField();
         JButton bop1 = new JButton("1"), bop2 = new JButton("2"), bop3 = new JButton("3"), bop4 = new JButton("4");
         char answer;
         QuizQuestions() {
              popm.setLayout(new BoxLayout(popm, BoxLayout.PAGE_AXIS));
              pop1.setLayout(new BoxLayout(pop1, BoxLayout.LINE_AXIS));
              pop2.setLayout(new BoxLayout(pop2, BoxLayout.LINE_AXIS));
              pop3.setLayout(new BoxLayout(pop3, BoxLayout.LINE_AXIS));
              pop4.setLayout(new BoxLayout(pop4, BoxLayout.LINE_AXIS));
              this.add(popm);
              popm.add(ques);
              popm.add(pop1);
              popm.add(pop2);
              popm.add(pop3);
              popm.add(pop4);
              pop1.add(op1);
              pop1.add(bop1);
              pop2.add(op2);
              pop2.add(bop2);
              pop3.add(op3);
              pop3.add(bop3);
              pop4.add(op4);
              pop4.add(bop4);
              //sets up question text fields
              ques.setEditable(false);
              op1.setEditable(false);
              op2.setEditable(false);
              op3.setEditable(false);
              op4.setEditable(false);
              bop1.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        answer = 'a';
              bop2.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        answer = 'b';
              bop3.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        answer = 'c';
              bop4.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        answer = 'd';
              Question1();
         public void doQuiz() {
              loadsave.save(answer);
         public void Question1() {
              ques.setValue("Who's your favourite X-Men character?");
              op1.setValue("Cyclops");
              op2.setValue("Xavier");
              op3.setValue("Wolverine");
              op4.setValue("Rogue");
    class QuizResults extends JPanel {
         LoadingSaving loadsave = new LoadingSaving();
         JPanel popm = new JPanel();
         JFormattedTextField op1 = new JFormattedTextField(), op2 = new JFormattedTextField(), op3 = new JFormattedTextField(), op4 = new JFormattedTextField();
         int[] answerarray = new int[4];
         QuizResults() {
              popm.setLayout(new BoxLayout(popm, BoxLayout.PAGE_AXIS));
              this.add(popm);
              popm.add(op1);
              popm.add(op2);
              popm.add(op3);
              popm.add(op4);
              op1.setEditable(false);
              op2.setEditable(false);
              op3.setEditable(false);
              op4.setEditable(false);
              answerarray = loadsave.load();
              op1.setValue(answerarray[0]);
              op2.setValue(answerarray[1]);
              op3.setValue(answerarray[2]);
              op4.setValue(answerarray[3]);
    class LoadingSaving {
         public void save(char answer) {
              FileReader fr;
              FileWriter fw;
              BufferedReader br;
              String s;
              try {
              //ERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERROR
                   fr = new FileReader("casestudyoutput.txt");
                   fw = new FileWriter("casestudyoutput.txt");
                   br = new BufferedReader(fr);
                   if (br.readLine() == null) s = "x";
                   else s = br.readLine();
                   s = s + answer;
                   fw.write(s);
                   fr.close();
                   fw.close();
              //ERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERROR
              catch(FileNotFoundException exc) {
                   JOptionPane.showMessageDialog(null, "File not found.");
                   return;
              catch(IOException exc) {
                   JOptionPane.showMessageDialog(null, "Something bad happened.");
                   return;
         public int[] load() {
              FileReader fr;
              BufferedReader br;
              int[] answerarray = new int[3];
              String s;
              long length;
              int a = 0, b = 0, c = 0, d = 0;
              answerarray[0] = 0;
              answerarray[1] = 0;
              answerarray[2] = 0;
              answerarray[3] = 0;
              try {
                   fr = new FileReader("casestudyoutput.txt");
                   br = new BufferedReader(fr);
                   if (br.readLine() == null) return answerarray;
                   else s = br.readLine();
                   length = s.length();
                   for(int i = 0; i < length; i++) {
                        char ch = charAt(i); //ERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERROR
                        switch(ch) {
                             case 'a':
                                  a++;
                                  break;
                             case 'b':
                                  b++;
                                  break;
                             case 'c':
                                  c++;
                                  break;
                             case 'd':
                                  d++;
                                  break;
                   answerarray[0] = a;
                   answerarray[1] = b;
                   answerarray[2] = c;
                   answerarray[3] = d;
                   fr.close();
              catch(FileNotFoundException exc) {
                   JOptionPane.showMessageDialog(null, "File not found.");
                   return answerarray;
              catch(IOException exc) {
                   JOptionPane.showMessageDialog(null, "Something bad happened.");
                   return answerarray;
         return answerarray;
    }Any pointers/tips/solutions/angry posts to tell me to stop trying to learn Java would be greatly appreciated.
    Thanks in advance!
    Oh, and in trying to work with it a bit further I realised I'm having a few problems with runtime errors due to exceptions. The first was due to the array being assigned out of bounds (fixed in the above code). But the second reads the following:
    Exception in thread "main" java.lang.NullPointerException
         at Loadingsaving.load(CaseStudy.java:330)
         at QuizResults.(init)(CaseStudy.java.259)
         at GUI.(init)(CaseStudy.java:34)
         at CaseStudy.main(CaseStudy.java:15)Not quite sure what this one means or how to handle it. =\
    Edited by: ThePermster on May 19, 2008 8:08 AM

    A NullPointerException means a method has been called on a null object, or a variable that isn't pointing to any object. Your Exception points to line 330, which is:
    length = s.length();A NPE on that line means that s is null. So let's look at where s is set:
    if (br.readLine() == null) return answerarray;
    else s = br.readLine();s gets it's value from br.readLine(), so that method must be returning null. You have a logical error here. Look at your If-Else. It reads a line, makes sure it isn't null...then it reads another line. Well what if that line is null? You are performing 2 reads here instead of 1.
    Since your If condition returns a value, there's no need for an Else. The code will continue on until it reaches another return. Try this:
    s = br.readLine();
    if (s == null) return answerarray;

  • Form error in reusable workflow

    Hi all
    I have taken a copy of the 'Approval - SharePoint 2010' workflow, and plan to customise it as a reusable list workflow.  After publishing the workflow, and adding it to a list in my site, i am trying to start the workflow with an approver and recieve
    the following error:
    It seems that the error is related to the Approvers field as it disappears when the error pops up.  I've noticed that if the Approvers field is left blank, then the form submits without error (i would expect the opposite to be happening).  I've
    also tested the 'Approval - SharePoint 2010' workflow on my list and this works fine.
    The form and workflow have not been customised in any way at this point.
    The error log reports:
    07/17/2012 09:55:26.42  w3wp.exe (0x2A58)                        0x3878 InfoPath Forms Services       
    Runtime - Business Logic       82g1 Critical There was a form postback error. (User: ****************, Form Name: Template, IP: , Request: *********************/_layouts/IniWrkflIP.aspx?List={d316b0ca-6659-46ea-86cb-db02f047704f}&ID=24&TemplateID={3983d8f1-b720-4175-bda7-d9bd74341446}&Source=*************/Lists/ChangeList/AllItems.aspx,
    Form ID: urn:schemas-microsoft-com:office:infopath:workflowInitAssoc:-AutoGen-2012-07-17T08:51:21:140Z, Type: SchemaValidationException, Exception Message: Schema validation found non-datatype errors.) ac07586b-01da-4fcc-bc30-be11fd21964d
    Can someone shed any light on this?
    Thanks
    Asher
    Fast, Cheap, Good. Choose any Two!

    Just so we are on the same page, I followed what you did exactly. I created a new site collection and root web using the (Team Site Template). I took a copy of the "Approval - SharePoint 2010" Workflow using a machine with the KB2553322 Patch. It created
    a Reusable Workflow called "Workflow 1". I attached it to the default Documents Library. And, as expected, I encountered the same issue. "The form cannot be submitted because of an error."
    I then opened the Workflow in the Virtual Machine I created to test this patch (After installing InfoPath I had to remove the update again even though it was still a pending update). Turns out there are 2 updates under KB2553322 one for Office Professional
    Plus and one for SharePoint Designer, you need to remove both.
    To verify that it is the same problem. In SharePoint Designer, open the site, go to All Files, Workflows, the Name of the Workflow ("Workflow 1" for me) and Open WorkflowName.xoml.wfconfig.xml, then click Edit. Now, in the XML Path, WorkflowConfig ->
    Initiation-> DefaultData -> dfs:myFields -> dfs:dataFields -> d:SharePointListItem_RW, the node will look like
    <d:Approvers>
    <d:Assignment>
    <d:Assignee xsi:nil="true"/>
    <d:Stage xsi:nil="true"/>
    <d:AssignmentType>Serial</d:AssignmentType>
    </d:Assignment>
    </d:Approvers>
    When it should look like:
    <d:Approvers>
    <d:Assignment>
    <d:Assignee/>
    <d:Stage xsi:nil="true"/>
    <d:AssignmentType>Serial</d:AssignmentType>
    </d:Assignment>
    </d:Approvers>
    So, how do you fix it? and also without SharePoint yelling at you. I also tried just publishing both workflow and InfoPath form with no success.
    Open the Workflow in SharePoint Designer
    In the Ribbon click Initiation Form Parameters
    Click OK without changing anything
    Republish the workflow, It will warn you that the infopath form has been customized.
    Open the Form that says needs update, it will prompt you that the workflow has changed and InfoPath will update the form.
    Save and Publish the Form
    Publish the Workflow, again
    After that, if you check the .xoml.wfconfig.xml file, it will be updated to the proper version. If you run the workflow in SharePoint, it will still have any customization you had before, with the added bonus that it will work.

  • .dmg problem input/output error

    hi,
    i have a copy of adobe cs3 from my college, and i am having problems installing. i skipped the verification. and then i noticed it would only install about 3 components, not illus. photoshop, or flash, then i let the verify run, and then it came up with an error of "input/output error" how is it possible to save the files on the dvd, what are my options?
    also, another sidenote, i have had a weird problem with i tunes, since 7.6.2 and my software is all up to date. if i run i tunes, it could be 10 secs or after about 10 mins. the pinwheel comes up and wont go away, how can i check in system monitor if theres somehting fishy, has anyone heard of this problem ? i was thinking to downgrade since i have not had problems until i upgraded

    HI Gene,
    "This usually works fine but now and then I get an error that says " Unable to create disk1s10.dmg Input/output error." Have you downloaded and installed any 3rd party software or changed any preference files since you've successfully done this before ??
    If your profile is correct, you might try updating from 10.4.8 to 10.4.11. If you do, make sure and Repair Disk Permissions when it's finished.
    Suggestion here for using Console: http://forums.macosxhints.com/showthread.php?t=67302
    Carolyn
    Message was edited by: Carolyn Samit

  • Specifying input/output schemas

    In 10g, the input/output schemas could be specified via BPEL Project Creation Wizard in JDev; but I don't see a comparable option in 11g (when I create a new app using the "Composite
    from Oracle BPA" template). What am I missing?

    What I meant was there is no option to choose the input/output schemas when I create a composite using the "composite from oracle bpa" template.
    Unlike the case when I use the "composite with bpel" template as seen here ... where I can click on the "browe schema" option for Input and Output.
    (This is 10g, but listed for illustration).
    Creating BPEL Process
    The first step is to use JDeveloper to create an Asynchronous process initiated by a request message with a payload containing an element of type mailMessage (defined in Mail.xsd installed as part of BPEL PM).
    To do this use the BPEL Project Creation wizard to create a BPEL Process in the normal way. After entering the process name and specifying the process template to be asynchronous, select "Next".
    This will take you to the next step in the wizard where you specify the Input and Output Schema Elements, click on the flash light for the input schema and select Mail.xsd (located in <SOA_HOME>\bpel\system\xmllib) as shown in the figure 1 below.
    Edited by: user756777 on Jul 1, 2009 12:45 PM

  • Audio Input Output on MacBook Pro 13 inch

    I want to buy a MacBook Pro 13 inch but the problem is the audio input output port.
    I usually need to use both jacks because in one I record my guitar and in the other I use my headphones.
    Is it possible to get a splitter and to make from one jack, two, input and output or do I need to buy USB headphones?
    A splitter would be the best solution

    From the manual:
    +"*Audio out port.* Connect external speakers, headphones (including iPhone), or digital audio equipment. You can specify audio analog line in functionality, to support line-level microphones and audio equipment, by selecting Audio In in the Sound pane of System Preferences."+
    +"Choose Apple () > System Preferences, and open Sound preferences. Specify whether you want the port to be used for audio input or audio output."+
    This means you must choose whether you want the single audio port on the 13" MBP to be input or output. It mentions iPhone headphones, but those will work only as headphones, not as a combined mic/headset when connected to the MBP.
    (As in, "Oh, now I get it!")
    Thinking on your comment, I see what you mean by 'an extra port' - the iMic has both in and out, meaning you'd actually have three counting the internal port on the MBP.
    Looking back at your first post, you mention USB headphones. That would be fine as well - set the MBP's audio port to be used for input, and connect the USB headphones and use those for output. No 'extra' port that way, and USB headphones are cheaper than an iMic.
    EDIT: The caveat there is that the audio in on the MBP (true for all MBPs, not just the 13") is a line-level input, not a microphone input. So, the MBP is expecting a line-level signal, meaning preamplified audio. If your guitar puts out a line-level signal or you're using a powered mic, fine. Else, you may need the iMic, which can take either line-level or microphone (non-preamplified) input.

Maybe you are looking for

  • Reports 6i and Spatial?

    Can we use spatial functions in queries with Reports 6i or does it still use 8.0.5 SQL? Thanks Dave

  • Similar report for Account Balance display which could be scheduled in the background

    Hi SAP gurus, As we know to display GL Account Balance Display we have std report "FAGL_ACCOUNT_BALANCE" But we can not run this in background as it is ALV report. So I would like to know a similar report which could be scheduled in the background. T

  • Forward Workitem to Next Agent if workitem is not processed

    Hi all,    My requirement is,i want to forward the workitem to next agent if it is not procssed within 5 minutes. i am using latest End Tab to specify the time and next agent to whom the work item is to be send. but the problem is ,if the workitem is

  • In and Out Marks

    Hi, This certainly a day for questions. If I want to remove a clip, I often don't highlight it, but instead mark and 'in & out', and then ripple delete. I've noticed that the 'in' will always be on the frame I wanted but the 'out' is always the next

  • Can't find type wsrc_runtime_attr_varray for wwsrc_api API

    hi, I manage to build a custom search portlet in PL SQL that can search for items and filter on their attributes. everything works lovely and I'm at the final stage : performing the search ! I plan to use the wwsrc_api.item_search procedure and speci