I wonder if the Windows crash results from (or cause) some kind of corruption 
of the hard disk. All source files are kept in the archive's "source" 
directlry. The files are named using sequential numbers. If you take a peek 
into the project and "file" xml files, you should be able to determine which 
exact source file is the latest version of the file you're trying to get. Once 
you figure this out, try copying this file somewhere, renaming it with the 
proper extension, and opening it, just to see if the file is corrupted.

Or, you could just try to randomly open any of the "source" files using a text 
editor. If you're mostly storing code in SJ then most of your files will be 
plain text, and so most of the previous version files will be diffs stored as 
plaintext. 

Anyway, doing something like this might help you figure out what's going on.

One question for you. Do you have your SJ archive backed up somewhere?

--Rob

----- Original Message ----
From: Alex Wang <[EMAIL PROTECTED]>
To: sourcejammer-users@lists.sourceforge.net
Sent: Tuesday, February 20, 2007 8:49:11 PM
Subject: [SourceJammer-users] Urgent help needed. Error:IOException.invalid 
stream header

Hi,
  Running 1.2.0, after a Windows crash, trying to vew/get files will generate
  this error. Currently can see the file structure but can't access any files.
  Restarting server wouldn't work. Thanks.
  
  Serverside  trace:
  
  org.sourcejammer.project.model.FileAccessException: IOException. invalid 
stream
  header java.io.StreamCorruptedException: invalid stream header
          at 
org.sourcejammer.project.controller.ProjectController.getFileLatestVe
  rsion(ProjectController.java:564)
          at 
org.sourcejammer.project.view.MasterControlProgram.getFileLatestVersi
  on(MasterControlProgram.java:620)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.apache.soap.server.RPCRouter.invoke(RPCRouter.java:146)
          at 
org.apache.soap.providers.RPCJavaProvider.invoke(RPCJavaProvider.java
  :129)
          at 
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.
  java:287)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
  05)
 
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
          at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
  )
          at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.
  java:806)
          at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:752
  )
          at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
  n(HttpConnectionHandler.java:213)
          at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
  416)
          at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
  :501)
          at
 java.lang.Thread.run(Unknown Source)
  java.io.StreamCorruptedException: invalid stream header
          at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
          at java.io.ObjectInputStream.<init>(Unknown Source)
          at 
org.sourcejammer.util.FileUtil.readObjectFromFileSys(FileUtil.java:17
  5)
          at 
org.sourcejammer.util.TempDirectoryManager.getNextID(TempDirectoryMan
  ager.java:81)
          at 
org.sourcejammer.util.TempDirectoryManager.makeNewTempFile(TempDirect
  oryManager.java:100)
          at 
org.sourcejammer.project.controller.ProjectController.getFileLatestVe
  rsion(ProjectController.java:535)
          at
 org.sourcejammer.project.view.MasterControlProgram.getFileLatestVersi
  on(MasterControlProgram.java:620)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.apache.soap.server.RPCRouter.invoke(RPCRouter.java:146)
          at 
org.apache.soap.providers.RPCJavaProvider.invoke(RPCJavaProvider.java
  :129)
          at 
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.
  java:287)
          at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
  05)
          at org.apache.tomcat.core.Handler.service(Handler.java:287)
          at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
  )
          at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.
  java:806)
          at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:752
  )
          at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
  n(HttpConnectionHandler.java:213)
 
         at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
  416)
          at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
  :501)
          at java.lang.Thread.run(Unknown Source)
  java.io.StreamCorruptedException: invalid stream header
          at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
          at java.io.ObjectInputStream.<init>(Unknown Source)
          at 
org.sourcejammer.util.FileUtil.readObjectFromFileSys(FileUtil.java:17
  5)
          at 
org.sourcejammer.util.TempDirectoryManager.getNextID(TempDirectoryMan
  ager.java:81)
          at
 org.sourcejammer.util.TempDirectoryManager.makeNewTempFile(TempDirect
  oryManager.java:100)
          at 
org.sourcejammer.project.controller.ProjectController.getFileLatestVe
  rsion(ProjectController.java:535)
          at 
org.sourcejammer.project.view.MasterControlProgram.getFileLatestVersi
  on(MasterControlProgram.java:620)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.apache.soap.server.RPCRouter.invoke(RPCRouter.java:146)
 
         at 
org.apache.soap.providers.RPCJavaProvider.invoke(RPCJavaProvider.java
  :129)
          at 
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.
  java:287)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
  05)
          at org.apache.tomcat.core.Handler.service(Handler.java:287)
          at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
  )
          at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.
 
 java:806)
          at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:752
  )
          at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
  n(HttpConnectionHandler.java:213)
          at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
  416)
          at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
  :501)
          at java.lang.Thread.run(Unknown Source)
  
  
  
  
  
  
   


Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! 
Games.-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
SourceJammer-users mailing list
SourceJammer-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sourcejammer-users







 
____________________________________________________________________________________
Looking for earth-friendly autos? 
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
SourceJammer-users mailing list
SourceJammer-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sourcejammer-users

Reply via email to