Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion macid: corrupted state

Received: by 10.142.109.16 with SMTP id h16mr359027wfc.25.1245350066186;
        Thu, 18 Jun 2009 11:34:26 -0700 (PDT)
Return-Path: <sse...@gmail.com>
Received: from mail-pz0-f194.google.com (mail-pz0-f194.google.com [209.85.222.194])
        by gmr-mx.google.com with ESMTP id 24si142262pzk.5.2009.06.18.11.34.25;
        Thu, 18 Jun 2009 11:34:25 -0700 (PDT)
Received-SPF: pass (google.com: domain of sse...@gmail.com designates 209.85.222.194 as permitted sender) client-ip=209.85.222.194;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of sse...@gmail.com designates 209.85.222.194 as permitted sender) smtp.mail=sse...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by pzk32 with SMTP id 32so6354pzk.33
        for <HAppS@googlegroups.com>; Thu, 18 Jun 2009 11:34:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:sender:received:in-reply-to
         :references:from:date:x-google-sender-auth:message-id:subject:to
         :content-type;
        bh=j20VXCSal/gAe2RCjhpEmW78R+XRvIFz4XqgEaxssEo=;
        b=lbsp/SpXvh2xqWNH+T2qUXwyvh/EubsqtTi4DHL1/A/Hxkdyp5hKaWFkslWlrXhz26
         5LSPBdJHFM/458SaI9PJa/PH3fZbNnBbshUNzWgKz2FHeu+QQnqUzHj5t1o+69UaHM4w
         XCdJywQdrOG4yYL8hBwIlARMbrnqRiDzNxnJ0=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:sender:in-reply-to:references:from:date
         :x-google-sender-auth:message-id:subject:to:content-type;
        b=byYahSyyYr0LChRa7iMpTV1JOIQIEAT89OPc5+uIYViGrNKVTjSXALAKqHnUfhhcsz
         WtSMtxwiJUT0acq3xKJBYsg1hxe35d3sbOxE2c5DhC5ERDtSB2vpJ97A7xn5SpBzP3X3
         1oawazT1nNp2yqYP5UxCzJz2kw4fQTE5xbh6Q=
Mime-Version: 1.0
Content-Type: multipart/alternative;
	boundary="001636e90cd8401ed4046ca3a889"
Sender: sse...@gmail.com
Received: by 10.143.3.4 with SMTP id f4mr1081788wfi.177.1245350065085; Thu, 18 
	Jun 2009 11:34:25 -0700 (PDT)
In-Reply-To: <ac11b03b0906181125q2f5977f0l324cc244a398d5b4@mail.gmail.com>
References: <c5ae93e3-74dc-47a2-ab1b-536be7bf6...@z7g2000vbh.googlegroups.com> 
	<ac11b03b0906181125q2f5977f0l324cc244a398d...@mail.gmail.com>
From: Matthew Elder <m...@mattelder.org>
Date: Thu, 18 Jun 2009 11:34:05 -0700
Message-ID: <987d172d0906181134j5bfabab9l27d030e91bc26...@mail.gmail.com>
Subject: Re: macid: corrupted state
To: HAppS@googlegroups.com

--001636e90cd8401ed4046ca3a889
Content-Type: text/plain; charset=UTF-8

there is an open ticket for this to have a more meaningful error message.

On Thu, Jun 18, 2009 at 11:25 AM, MightyByte <mightyb...@gmail.com> wrote:

>
> Usually when this has happened to me it's because the data that was in
> state changed.  If you are using this as state:
>
> data MyState = MyState Word16
>
> And then decide that you need support for decimal numbers, you might
> change it to this:
>
> data MyState = MyState Double
>
> The state system will try to read the binary representation for Word16
> as if it were a Double.  If you need to make a change like this, you
> either need to delete your old state and start empty, or you need to
> migrate your old data.
> http://nhlab.blogspot.com/2008/12/data-migration-with-happs-data.html
> describes how to do a migration.
>
> On Thu, Jun 18, 2009 at 1:40 PM, Kamil
> Dworakowski<ka...@dworakowski.name> wrote:
> >
> > the error on start:
> >
> > too few bytes. Failed reading at byte position 25
> >
> > I deleted the last events file, and then it loaded fine.
> >
> > It happens on windows, I'll check it later on my linux box at home. I
> > closed the console window that was running the process. Other
> > important bit is that the state in the app must have been last
> > modified a couple of hourse before I closed the window. I can
> > reproduce it easily. Any thoughts?
> > >
> >
>
> >
>


-- 
Need somewhere to put your code? http://patch-tag.com
Want to build a webapp? http://happstack.com

--001636e90cd8401ed4046ca3a889
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

there is an open ticket for this to have a more meaningful error message.<b=
r><br><div class=3D"gmail_quote">On Thu, Jun 18, 2009 at 11:25 AM, MightyBy=
te <span dir=3D"ltr">&lt;<a href=3D"mailto:mightyb...@gmail.com">mightybyte=
@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Usually when this has happened to me it&#39;s because the data that was in<=
br>
state changed. =C2=A0If you are using this as state:<br>
<br>
data MyState =3D MyState Word16<br>
<br>
And then decide that you need support for decimal numbers, you might<br>
change it to this:<br>
<br>
data MyState =3D MyState Double<br>
<br>
The state system will try to read the binary representation for Word16<br>
as if it were a Double. =C2=A0If you need to make a change like this, you<b=
r>
either need to delete your old state and start empty, or you need to<br>
migrate your old data.<br>
<a href=3D"http://nhlab.blogspot.com/2008/12/data-migration-with-happs-data=
.html" target=3D"_blank">http://nhlab.blogspot.com/2008/12/data-migration-w=
ith-happs-data.html</a><br>
describes how to do a migration.<br>
<div><div></div><div class=3D"h5"><br>
On Thu, Jun 18, 2009 at 1:40 PM, Kamil<br>
Dworakowski&lt;<a href=3D"mailto:ka...@dworakowski.name">kamil@dworakowski.=
name</a>&gt; wrote:<br>
&gt;<br>
&gt; the error on start:<br>
&gt;<br>
&gt; too few bytes. Failed reading at byte position 25<br>
&gt;<br>
&gt; I deleted the last events file, and then it loaded fine.<br>
&gt;<br>
&gt; It happens on windows, I&#39;ll check it later on my linux box at home=
. I<br>
&gt; closed the console window that was running the process. Other<br>
&gt; important bit is that the state in the app must have been last<br>
&gt; modified a couple of hourse before I closed the window. I can<br>
&gt; reproduce it easily. Any thoughts?<br>
&gt; &gt;<br>
&gt;<br>
<br>
<br>
</div></div></blockquote></div><br><br clear=3D"all"><br>-- <br>Need somewh=
ere to put your code? <a href=3D"http://patch-tag.com">http://patch-tag.com=
</a><br>Want to build a webapp? <a href=3D"http://happstack.com">http://hap=
pstack.com</a><br>



--001636e90cd8401ed4046ca3a889--