Print at Dec 20, 2025, 12:35:08 PM View all posts in this thread on one page
Posted by abracadabuda at Nov 5, 2018, 2:49:42 PM
Error when open sh3d: Room points must containt at least two points
Hi,
I have problem opening file that I edited with AdvancedEditing plugin.

I tried to open it with java console, and here is the error:

java.lang.IllegalStateException: Room points must containt at least two points
at com.eteks.sweethome3d.model.Room.<init>(Unknown Source)
at com.eteks.sweethome3d.io.HomeXMLHandler.createRoom(Unknown Source)
at com.eteks.sweethome3d.io.HomeXMLHandler.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at com.eteks.sweethome3d.io.DefaultHomeInputStream.readHomeXML(Unknown Source)
at com.eteks.sweethome3d.io.DefaultHomeInputStream.readHome(Unknown Source)
at com.eteks.sweethome3d.io.HomeFileRecorder.readHome(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.HomeController$34.call(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.HomeController$34.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.ThreadedTaskController$1.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


I tried to remove the plugin from Sweet Home 3D folder, but the error still occurs.

Is it possible to recover the file?

Thanks in advance,
Matus

Posted by Puybaret at Nov 5, 2018, 10:46:40 PM
Re: Error when open sh3d: Room points must containt at least two points
I don’t think it will be difficult to repair your file. If you know XML, you just have to remove the <room> element that contains 2 or less <point> children in the Home.xml entry of your SH3D file. If this sounds too complicated for you, send it to me.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by abracadabuda at Nov 6, 2018, 9:00:46 AM
Re: Error when open sh3d: Room points must containt at least two points
Great it worked!

For others:
You have to unzip the sh3d file, remove the fault <room> element from Home.xml as Emmanuel wrote, and zip it back to sh3d file.

Emmanuel, thanks a lot.
Matus

Posted by Puybaret at Nov 6, 2018, 9:24:43 AM
Re: Error when open sh3d: Room points must containt at least two points
It's great you could achieve it by yourself! cool
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator