What state gets saved when a JPD goes to frozen state?

Hi,
I need to know what state of JPD gets saved when it goes into frozen state after some error. Is it just the non-transient member variables that get persisted? Or is there any information about the point at which the failure occurs in the JPD's execution flow?
For example, lets say that I have a stateful JPD which does the following:
1) Initialize a BufferedFileReader from the input file path
2) Read the file line-by-line:
for (; (this.currentLine = this.reader.readLine()) != null; )
++this.currentLineIndex;
doWork();
If there's a failure while processing, say line# N, then will I be able to get this 'currentLineIndex' value when I unfreeze the JPD and utilize it to seek the file till that line and start from there? From where will the JPD start execution when I unfreeze it? With what state of member variables and from what method/node/line will it start?
I don't know how it works internally, any information regarding what state/execution-context gets persisted when a JPD freezes will be helpful.
Thanks,
Balwinder

A failure causes the transaction that was processing to rollback, so all state changes are lost since the previous commit point. What get's frozen is the request message that started processing of the current transaction.
When the process is unfrozen, the original request message is dispatched causing a new transaction to start and the request is processed again.

Similar Messages

  • When backing up the Photoshop Elements 11 catalog, what exactly gets saved?

    When backing up the catalog, what exactly gets saved?
    Message title was edited by: Brett N

    Thanks,
    that makes it perfectly clear now and I can plan my storage for photo's and the edited versions.
    Rolf.
    Date: Mon, 1 Jul 2013 09:04:54 -0700
    From: [email protected]
    To: [email protected]
    Subject: Photoshop Elements 11
        Re: Photoshop Elements 11
        created by MichelBParis in Photoshop Elements - View the full discussion

  • What's it mean when my iPhone goes off line?

    What's it mean when the "find iPhone" says your iPhone is of line?

    Thanks for the video link, wjosten. I reseated the RAM modules, but got the same results. Took it to Apple and you were right - it's the RAM. I'm waiting for the sticks to arive.
    The BEST prices were on Amazon.com...they were cheaper than Corsair and Crucial's own web sites + the shipping was FREE!!
    boudreama

  • What gets saved when backing up?

    Hello All.
    When I use i-tunes to back up my music, please can someone tell me if it automatically saves the album artwork as well? I spent a long time ptting missing album covers on and I wouldn't want to lose them all! If it doesn't automatically save them, can you also tell me what I need to do to back up the the covers as well? Many Thanks for taking the time to read this!
    Wayne

    I spent a long time ptting missing album covers on and I wouldn't want to lose them all!
    If you have saved them in the Get Info box, they are part of the song file, so if the file is saved, the art is saved.

  • Firefox slowness issues have been getting worse, when is it going to be re-coded? none of the "FIXES" ever work and my other browsers work just fine.

    My frustrations with firefox continue to mount. All the supposed fixes are a waste of time. There is obviously a major code problem that needs to be addressed. Your solutions that you post just seem to be the same and never work. Users are not programmers and should not be expected to do your troubleshooting. I have been running a comparison lately using four different browsers to play a popular facebook game (Trainstation). (All browsers at the latest version)
    1. Firefox
    2. Internet Explorer
    3. Google Chrome
    4. Opera
    to do the exact same thing in the game firefox was taking 20 to 30 seconds to complete (about half of the time completely freezing for several minutes.) where the next slowest browser (I.E.) was taking 2-3 seconds whilst opera was the fastest at almost instant, chrome almost as fast.
    Firefox is also slow to load any page in general regardless of flash content.
    Frequently I get "not responding" at the top of the window.
    My system is a new Dell Inspiron with Intel Core I5 processor @ 2ghz and 6GB Ram, about 300GB free hard disk space. Windows 8.1
    The game played requires the latest flash version which does not work on LINUX. However the linux firefox version is much faster. Perhaps there is a direct link for conflict with windows 8.1
    Firefox also seems to have a memory leak, resources get dramatically worse if the browser is open for many hours. (this is not a problem with other browsers in general, except I.E. which exhibits this problem as well to a lesser degree. The freezing issue has also been a problem with Thunderbird lately as well, I do not have another e-mail client installed to compare to.

    I have tried that already, I have seen that response in more than one forum in the past and it does not do anything. I also for the test of it, upgraded to the v29 beta version. Still is slow (not just the game i was playing which is on face book but also on the game developers site directly as well (http://portal.pixelfederation.com/trainstation/), using either does not matter as far as performance of the game. All sites and browsing is slower, as is startup loading my home page which is just google.com. I remember when firefox used to be blazing fast compared to others. I have also tried recreating a new profile, didn't help. tried a complete removal (including registry entries and all files, then a new fresh install, didn't help. someone on another forum suggested several tweaks in the about:config area, didn't help. something has changed dramatically in the last four or five versions. FYI:
    Installed plugins
    Java(TM) Platform SE 7 U51
    File: npjp2.dll
    Path: C:\Program Files (x86)\Java\jre7\bin\plugin2\npjp2.dll
    Version: 10.51.2.13
    State: Enabled
    Next Generation Java Plug-in 10.51.2 for Mozilla browsers
    Shockwave Flash
    File: NPSWF32_12_0_0_77.dll
    Path: C:\WINDOWS\SysWOW64\Macromed\Flash\NPSWF32_12_0_0_77.dll
    Version: 12.0.0.77
    State: Enabled
    Shockwave Flash 12.0 r0
    Unity Player
    File: npUnity3D32.dll
    Path: C:\Users\S\AppData\LocalLow\Unity\WebPlayer\loader\npUnity3D32.dll
    Version: 4.3.5.32006
    State: Enabled
    Unity Player 4.3.5f1
    Silverlight Plug-In
    File: npctrl.dll
    Path: c:\Program Files (x86)\Microsoft Silverlight\5.1.30214.0\npctrl.dll
    Version: 5.1.30214.0
    State: Enabled
    5.1.30214.0
    Shockwave for Director
    File: np32dsw_1209149.dll
    Path: C:\WINDOWS\SysWOW64\Adobe\Director\np32dsw_1209149.dll
    Version: 12.0.9.149
    State: Enabled
    Adobe Shockwave for Director Netscape plug-in, version 12.0.9.149
    McAfee SecurityCenter
    File: npMcSnFFPl.dll
    Path: c:\PROGRA~2\mcafee\msc\npMcSnFFPl.dll
    Version: 12.8.934.0
    State: Enabled
    McAfee MSC FF plugin DLL
    Adobe Acrobat
    File: nppdf32.dll,nppdf32.dll
    Path: C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AIR\nppdf32.dll,C:\Program Files (x86)\Adobe\Reader 11.0\Reader\browser\nppdf32.dll
    Version: 11.0.6.70
    State: Enabled
    Adobe PDF Plug-In For Firefox and Netscape 11.0.06
    Intel® Identity Protection Technology
    File: npIntelWebAPIIPT.dll
    Path: C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT\npIntelWebAPIIPT.dll
    Version: 2.1.42.0
    State: Enabled
    Intel web components for Intel® Identity Protection Technology
    Intel® Identity Protection Technology
    File: npIntelWebAPIUpdater.dll
    Path: C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT\npIntelWebAPIUpdater.dll
    Version: 2.1.42.0
    State: Enabled
    Intel web components updater - Installs and updates the Intel web components
    Gamers Unite! Snag Bar v. 1.300.436 addon
    Troubleshooter 1.1a (Firefox data to mozilla)

  • What do I do when my ipod goes through the washing machine?

    my ipod shuffle went through the washing machine, earbuds and all.Can someone tell me how to properly dry it out or care for it?

    When electronics get emersed in liquid, it's not the actual water that causes them to break (although if you spilled something like coke with a bunch of sugar, the sugar would stay in the device even after the liquid of the coke dissolved). What breaks the device is if either it was on when it was emersed in water, or if you turn it on before all the water can evaporate. If so, the water will conduct the electricity between the wires and short circuit the device. If you weren't thick enough to try and turn your device on immediately after you took it out of the washing machine, then it should be fine if you just let the water evaporate. Another technique (to make the water evaporate faster and, on rare occassions, to save a device if you've turned if on while there was still water in it) is to put the device in rice and let it sit overnight. Hope this helps.

  • Here is what to look for when you battery goes bad

    http://gallery.me.com/cid.dennis#100024/Bad%20battery%202
    http://gallery.me.com/cid.dennis#100024/Bad%20battery%203&bgcolor=black
    http://gallery.me.com/cid.dennis#100024/Bad%20battery&bgcolor=black
    Apple support says after your battery will no longer take a change it will start to do this. I have had two batteries do this. The strange thing is the battery did not look like this on friday but it keep expanding even though I took it out of the laptop. I am waiting to see how big it gets.

    Bummer! When the recall was in effect, they considered the swelling and distortion to be the sign of a defective battery. On that theory, some people have been able to get free replacements, but evidently not you. I guess it's just the luck of the draw on whether you get an Apple guy who thinks it should be replaced at no cost to you or one that doesn't.

  • HT1535 What all gets erased when you choose to manually manage your music?

    I got a new laptop not long ago and I currently have the newest version of iTunes installed on it. I also just got the iPhone 5 so I wanted to put more (new) music on it that did not upload with iCloud. Except I want to manually manage my music as opposed to automatically syncing. When I choose the option to manually manage, it says that everything will be erased from my iPhone. Can someone just clarify what exactly will be erased, is it just my music and apps or is it basically everything on my phone as if its gettign restored to its factory settings?
    Thanks

    Hi, welcome to Apple Discussions.
    Unlike most of Apple's iPod devices, the iPhone is resticted to holding content from a single library, even when manually managing that content. If a particular file isn't in the local iTunes library when you update the device (e.g. add or remove a single track) it will be deleted. This makes any potential benefit of manual management pointless. Since this restiction is imposed by iTunes you may prefer to look at 3rd party tools to manage media content on your iPhone. Alternatively stick your library on an extenal drive so that you can manage it from any computer avaiable to you.
    tt2

  • Why didnt my photos get saved when my iPad was restored?

    I left my room for maybe 5 minutes when I returned my iPad some how shut off and went into recovery mood as if I just got it out the box again I pluged it into my pc an opened iTunes and called apple I was told to restore it then it worked again. I told it to restore last back up but it didn't reload my pervious apps, photos, videos, nothing only contacts and photo stream. I was very disappointed with this I had some very impotent photos and videos saved on to it and I lost all of them.

    Had you backed up your iPad recently? Apps and videos are not contained in the backup, only data and photos taken with the device.
    Media should reside on your computer or you can reload purchased apps and videos from the cloud.
    http://support.apple.com/kb/HT4946
    http://support.apple.com/kb/HT1766

  • I get popups when my curser goes over an uderlined link

    Whenever my curser goes over an underlined link I get unwanted popups. This a new phenomenon.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Do a malware check with some malware scanning programs on the Windows computer.<br>
    Please scan with all programs because each program detects different malware.<br>
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender: Home Page:<br>http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Since I installed the latest version, my sessions no longer get saved when I shut Firefox down

    Prior to shutting down a session, I used to be given an option to save my settings, and my settings would be restored for the next session. This no longer happens.

    The session is saved you just are not asked about it.
    If you start from the default home page you will see a big button in the middle of the screen asking you if you wish to restore the previous session, otherwise use '''*Firefox button -> History -> Restore previous session'''

  • Do your photos get saved when you do a full backup?

    I need to restore my phone and I backed it up onto my MacBook Pro, but I need to know if it backed up my pictures as well, since I have all my pictures from my Europe trips on my phone. Help please!

    If you don't delete them from your carrier's voicemail server they can be resynced from it.

  • Does the app data get saved when you trasfer purchases

    can anybody help?

    Are you sure about that?
    I formatted my hd and I don't have a backup and I don't want to lose my data from my iPad or iPhone.

  • BMP question : got javax.ejb.EJBException error Object state not saved

    Could anybody please help me? I could not figure out what i did wrong.
    I got the javax.ejb.EJBException error: Object state not saved
    when i test the getname() method for findByPrimaryKey() and findAll() methods.
    Here is my code:
    package org.school.idxc;
    import javax.sql.*;
    import javax.naming.*;
    import javax.ejb.*;
    import javax.sql.*;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Enumeration;
    import java.util.Vector;
    * Bean implementation class for Enterprise Bean: status
    public class statusBean implements javax.ejb.EntityBean {
         private javax.ejb.EntityContext myEntityCtx;
         private int id;
         private String name;
         private DataSource ds;
         private String dbname = "jdbc/idxc";
         private Connection con;
         * ejbActivate
    public void ejbActivate() {
         * ejbLoad
         public void ejbLoad() {
         System.out.println("Entering EJBLoad");
         try
         Integer primaryKey = (Integer) myEntityCtx.getPrimaryKey();
         String sqlstmt = "select id, name from from status where id =?";
         con = ds.getConnection();
         PreparedStatement stmt = con.prepareStatement(sqlstmt);
         stmt.setInt (1,primaryKey.intValue());
         ResultSet rs = stmt.executeQuery();
         if (rs.next())
              this.id = rs.getInt(1);
              this.name = rs.getString (2).trim();
              stmt.close();
         } // if
         else
              stmt.close();
              throw new NoSuchEntityException ("Invalid id " + id);
         }// else
              } // try
         catch (SQLException e)
         System.out.println("EJBLOad : " + e.getMessage());
              } // catch
         finally
         try
              if (con != null)
              con.close();
              }// try
         catch (SQLException e)
              System.out.println("EJBLOad finally" + e.getMessage());
              } // catch
              }// finally
         * ejbPassivate
         public void ejbPassivate() {
         * ejbRemove
         public void ejbRemove() throws javax.ejb.RemoveException {
         System.out.println ("Entering ejb Removed");
         try
         String sqlstmt = "delete from status where id=" + id;
         con = ds.getConnection();
         Statement stmt = con.createStatement();
         stmt.executeUpdate(sqlstmt);
         stmt.close();
         }// try
         catch (SQLException e)
         System.out.println("Ejb Remove" + e.getMessage());     
         } // catch
         finally
         try
              if (con!=null)
                   con.close();
         }// try
         catch (SQLException e)
              System.out.println ("EJBRemoved " + e.getMessage());
         } // catch
         } // finally
         * ejbStore
         public void ejbStore() {
         System.out.println("Entering the ejbStore");
         try
    String sqlstmt = "update status set id=" + id + ",name='" + name + "' where id=" + id;
         con = ds.getConnection();
         Statement stmt = con.createStatement();
         if (stmt.executeUpdate(sqlstmt) != 1)
              throw new EJBException ("Object state not saved");
    stmt.close();     
         } // try
         catch (SQLException e)
              System.out.println ("EJBStore : " + e.getMessage());
         }// catch
         finally
         try
              if (con != null)
              con.close();
         } // try
         catch(SQLException e)
              System.out.println ("EJBStore finally " + e.getMessage());
         } // catch
         } // finally
         * getEntityContext
         public javax.ejb.EntityContext getEntityContext() {
              return myEntityCtx;
         * setEntityContext
         public void setEntityContext(javax.ejb.EntityContext ctx) {
              myEntityCtx = ctx;
              try
              InitialContext initial = new InitialContext();
              ds = (DataSource)initial.lookup(dbname);
    } // try
              catch (NamingException e)
              throw new EJBException ("set Entity context : Invalid database");     
              }// catch
         * unsetEntityContext
         public void unsetEntityContext() {
              myEntityCtx = null;
         * ejbCreate
         public Integer ejbCreate(Integer key, String name) throws javax.ejb.CreateException {
    this.id = key.intValue();
    this.name = name;
              System.out.println ("Entering ejbCreated!!!");
              try
              String sqlstmt = "insert into status(id,name) values (" + id + ",'" + (name == null ? "" : name) + "')";
              con = ds.getConnection();
              Statement stmt = con.createStatement();
              stmt.executeUpdate(sqlstmt);
              stmt.close();
              }// try
              catch (SQLException e)
              System.out.println("EJBCreate : SQLEXception ");     
              }// catch
              finally
              try
              if (con!=null)
                   con.close();
              }// try
              catch (SQLException e)
              System.out.println ("EJB Created Finally : SQLException");
              e.getMessage();
              } // catch
              }// finally
              this.id = key.intValue();
              this.name = name;
              return key ;
         * ejbPostCreate
         public void ejbPostCreate(Integer id, String name) throws javax.ejb.CreateException {
         * ejbFindByPrimaryKey
         public Integer ejbFindByPrimaryKey(
              Integer key) throws javax.ejb.FinderException {
              try
              String sqlstmt = "select id from status where id=" + key.intValue();
              con = ds.getConnection();
              Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery(sqlstmt);
              if (!rs.next())
              throw new ObjectNotFoundException();     
              } // if
              rs.close();
              stmt.close();
              } // try
              catch (SQLException e)
              System.out.println ("EJBFindBYPrimaryKey " + e.getMessage());     
              } // catch
              finally
              try
              if (con!=null)
                   con.close();
              }// try
              catch (SQLException e)
              System.out.println ("EJB Find by primary key" + e.getMessage());
              }// catch
              }// finally
              return key;
         * @return Returns the name.
         public String getName() {
              return this.name;
         * @return Returns id
         public int getId() {
              return this.id;
         * @param name The name to set.
         public void setName(String xname) {
              this.name = xname;
         * ejbFindByLastnameContaining
         public Enumeration ejbFindAllNamne () throws javax.ejb.FinderException
         try
         String sqlstmt = "select id from status order by id";
         con = ds.getConnection();
         Statement s = con.createStatement();
         ResultSet rs = s.executeQuery(sqlstmt);
         Vector keys = new Vector();
         while (rs.next())
              keys.add(new Integer(rs.getInt(1)));
         }// while
         rs.close();
         s.close();
         con.close();
         return keys.elements();
         } // try
         catch (SQLException e)
              throw new FinderException (e.toString());
         } // catch
    }

    Hi,
    if you look at your error message you will see the problem. In your code you've missed to implement
    public void ejbPassivate {}
    so your code looks like this
    import java.lang.Object;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import java.rmi.RemoteException;
    import java.lang.Math;
    import java.util.Random;
    import java.io.*;
    /** * Title: * Description: * Copyright: Copyright (c) 2001 * Company: * @author * @version 1.0 */
    public class DiceEJB implements SessionBean, Serializable
         public int[] Roll()
              Random rng = new Random();
              int[] diceArray = new int[5];
              for(int i =0; i < diceArray.length;i++)
                   diceArray[i] = (Math.abs (rng.nextInt()) % 6) +1;
              return diceArray;
         public DiceEJB(){}
         public void ejbCreate() {}
         public void ejbRemove() {}
         public void ejbActivate() {}
         public void ejbPassivate() {}
         public void setSessionContext (SessionContext sc)
         private void writeObject(ObjectOutputStream oos) throws IOException
              oos.defaultWriteObject();
         private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException
              ois.defaultReadObject();
    bye

  • Getting problem when connecting to SMTP server through java code

    Hi all,
    I am getting problem when i am going to connect with "Kerio SMTP server" through java code. The error what i am getting is :
    "[16/Sep/2008 15:59:09] Sent: Queue-ID: 48cf8a73-000000f9, Recipient: <[email protected]>, Result: failed, Status: 5.3.2 554 5.0.0 Too many hops (101, max 100), message looping" when sending an email from [email protected]

    Looks like something is set up wrong on your server that's causing messages
    to be forwarded around a loop too many times without ever reaching the destination.
    For instance, if server A forwards to server B, and server B forwards to server A,
    this would happen.

Maybe you are looking for