Help - User help - Problem open examples

Count of members 80 members
Connected : (nobody)
Snif !!!
 

Help - Help
User help - User help

active  Topic # 260

10/01/2024 19:19
by Krister

Krister



When trying to open any of the examples project I get the following error.
oStorybook version 2.61 on MacOS 14.2.1.

H2File.open() SQLException: File not found: "script.sql in /Users/ks/Downloads/PrideAndPrejudice.osbk"; SQL statement: RUNSCRIPT FROM '/Users/xxx/Downloads/PrideAndPrejudice.osbk' COMPRESSION ZIP [90124-200] Exception Message: File not found: "script.sql in /Users/xxx/Downloads/PrideAndPrejudice.osbk"; SQL statement: RUNSCRIPT FROM '/Users/ks/Downloads/PrideAndPrejudice.osbk' COMPRESSION ZIP [90124-200] Stack Trace: org.h2.message.DbException.getJdbcSQLException(DbException.java:505) org.h2.message.DbException.getJdbcSQLException(DbException.java:429) or g.h2.message.DbException.get(DbException.java:205) org.h2.message.DbException.get(DbException.java:181) org.h2.command.dml.ScriptBase.openInput(Scri ptBase.java:175) org.h2.command.dml.RunScriptCommand.update(RunScriptCommand.java:45) org.h2.command.CommandContainer.update(CommandContainer.java:1 98) org.h2.command.Command.executeUpdate(Command.java:251) org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:228) org.h2.jdbc.JdbcStatem ent.execute(JdbcStatement.java:201) storybook.model.H2File.open(H2File.java:263) storybook.App.openFile(App.java:656) storybook.App.openFile(App.ja va:607) storybook.ui.MainMenu.lambda$menuFileInit$41(MainMenu.java:739) java.desktop/javax.swing.AbstractButton.fireActionPerformed(Abstract Button.java:1972) java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313) java.desktop/javax.swing.DefaultButt onModel.fireActionPerformed(DefaultButtonModel.java:405) java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262) java.de sktop/javax.swing.AbstractButton.doClick(AbstractButton.java:374) java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:10 29) java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1073) java.desktop/java.awt.Component.process MouseEvent(Component.java:6620) java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3398) java.desktop/java.awt.Component.processE vent(Component.java:6385) java.desktop/java.awt.Container.processEvent(Container.java:2266) java.desktop/java.awt.Component.dispatchEventImpl(Compon ent.java:4995) java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324) java.desktop/java.awt.Component.dispatchEvent(Component.java:4 827) java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948) java.desktop/java.awt.LightweightDispatcher.processMouseEve nt(Container.java:4575) java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516) java.desktop/java.awt.Container.dispatchEvent Impl(Container.java:2310) java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780) java.desktop/java.awt.Component.dispatchEvent(Component.j ava:4827) java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775) java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720) j ava.desktop/java.awt.EventQueue$4.run(EventQueue.java:714) java.base/java.security.AccessController.doPrivileged(AccessController.java:399) java .base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) java.base/java.security.ProtectionD omain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97) java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747) j ava.desktop/java.awt.EventQueue$5.run(EventQueue.java:745) java.base/java.security.AccessController.doPrivileged(AccessController.java:399) java .base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) java.desktop/java.awt.EventQueue.di spatchEvent(EventQueue.java:744) java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) java.desktop/java.aw t.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatc hThread.java:113) java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) java.desktop/java.awt.EventDispatchThread.pumpE vents(EventDispatchThread.java:101) java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) Please report this exception to the development team.
Post an answer Top  

Answer n° 2
--------
10/01/2024 22:13
by favdb

favdb

Administrator
Administrator
Administrator
Administrator


Where did you find this sample file? Try downloading this one instead: http://ostorybook.eu/exemples/PrideAndPrejudice.osbk
Post an answer Top  
Answer n° 3
--------
10/01/2024 23:18
by favdb

favdb

Administrator
Administrator
Administrator
Administrator


For your information, the OSBK file is compressed and contains a single file named "script.sql". This is a transactional SQL file. You don't need to decompress it; the program takes care of that.
Post an answer Top  
Answer n° 4
--------
11/01/2024 16:49
by Krister

Krister



I followed the instruction on http://ostorybook.eu/v5/en/exemples.html and right click and saved the file. On examination now it's the wrong file size on them and I get file not found when looking at the other example files now so it was probably that and not a bug.
Post an answer Top  
Answer n° 5
--------
11/01/2024 21:15
by favdb

favdb

Administrator
Administrator
Administrator
Administrator


In fact, I hadn't set the right links. Now it's back on. Does it work correctly?
Post an answer Top  
Answer n° 6
--------
13/01/2024 10:44
by Krister

Krister



It works now. Thanks.
There are some links on http://ostorybook.eu/v5/en/developers.html (download libraries) and http://ostorybook.eu/v5/en/documentation.html (top two links) that are not working either.
Post an answer Top  
Answer n° 7
--------
15/01/2024 12:43
by favdb

favdb

Administrator
Administrator
Administrator
Administrator


Thanks, I'll check it out. These errors are the result of the recent site migration.
Post an answer Top  
Answer n° 8
--------
16/01/2024 16:46
by Krister

Krister



I see that you have made changes.
I mad a quick check and saw that the links are not woking on http://ostorybook.eu/v5/en/translation.html and http://ostorybook.eu/v5/en/how-to-contribute.html.
Post an answer Top  
active topic active   closed topic closed   Important! Important!   New New message
Correct Correct message   Close Close topic   Make sticky Make sticky  
Forum Topic  Help