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
Error STORAGE IS NULL
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
garatti.ca...@gmail.com  
View profile   Translate to Translated (View Original)
 More options Aug 26 2012, 4:27 pm
From: garatti.ca...@gmail.com
Date: Sun, 26 Aug 2012 13:27:02 -0700 (PDT)
Local: Sun, Aug 26 2012 4:27 pm
Subject: Error STORAGE IS NULL

Hi all,

i have a very :) simple program:

public static void main(String[] args) throws Exception {

        IWorkbook workbook =
org.xmind.core.Core.getWorkbookBuilder().loadFromPath("pronti.xmind");
        ISheet defSheet = workbook.getPrimarySheet();
        ITopic rootTopic = defSheet.getRootTopic();

....

When runnig i receive the following error:

xception in thread "main" java.lang.IllegalArgumentException: Storage is
null
    at
org.xmind.core.internal.AbstractWorkbookBuilder.loadFromStream(Unknown
Source)
    at
org.xmind.core.internal.AbstractWorkbookBuilder.doLoadFromFile(Unknown
Source)
    at org.xmind.core.internal.AbstractWorkbookBuilder.loadFromFile(Unknown
Source)
    at
org.xmind.core.internal.AbstractWorkbookBuilder.doLoadFromPath(Unknown
Source)
    at org.xmind.core.internal.AbstractWorkbookBuilder.loadFromPath(Unknown
Source)
    at org.xmind.core.internal.AbstractWorkbookBuilder.loadFromPath(Unknown
Source)
    at Start.main(Start.java:15)

Obiouvsly, the xmind file is present and is ok ( generated by xmind program
itself)

Any help??

Thanks in advance

Carlo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
denis.komarc...@gmail.com  
View profile  
 More options Feb 7, 7:17 am
From: denis.komarc...@gmail.com
Date: Thu, 7 Feb 2013 04:17:38 -0800 (PST)
Local: Thurs, Feb 7 2013 7:17 am
Subject: Re: Error STORAGE IS NULL

Had the same problem. Here is the solution:

   *File doc_file = new File(file_path);
*
*   File temp_file = new File(file_path + ".tmp");*
* *
*   IWorkbookBuilder builder = Core.getWorkbookBuilder();*
*   IStorage storage = new DirectoryStorage(temp_file);*
* *
*   IWorkbook workbook = builder.loadFromFile(doc_file, storage, null);*

Hope will help someone.

Denis.

понедельник, 27 августа 2012 г., 0:27:02 UTC+4 пользователь
garatt...@gmail.com написал:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »