Aide - Aide à l'utilisation - Problem open examples

Nombre de membres 50 membres
Connectés : ( personne )
Snif !!!
 

Aide - Aide
Aide à l'utilisation - Aide à l'utilisation

actif  Sujet n° 260

le 10/01/2024 19:19
par 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.
Poster une réponse Haut  

Réponse n° 2
--------
le 10/01/2024 22:13
par favdb

favdb

Administrateur
Administrateur
Administrateur
Administrateur


Where did you find this sample file? Try downloading this one instead: http://ostorybook.eu/exemples/PrideAndPrejudice.osbk
Poster une réponse Haut  
Réponse n° 3
--------
le 10/01/2024 23:18
par favdb

favdb

Administrateur
Administrateur
Administrateur
Administrateur


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.
Poster une réponse Haut  
Réponse n° 4
--------
le 11/01/2024 16:49
par 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.
Poster une réponse Haut  
Réponse n° 5
--------
le 11/01/2024 21:15
par favdb

favdb

Administrateur
Administrateur
Administrateur
Administrateur


In fact, I hadn't set the right links. Now it's back on. Does it work correctly?
Poster une réponse Haut  
Réponse n° 6
--------
le 13/01/2024 10:44
par 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.
Poster une réponse Haut  
Réponse n° 7
--------
le 15/01/2024 12:43
par favdb

favdb

Administrateur
Administrateur
Administrateur
Administrateur


Thanks, I'll check it out. These errors are the result of the recent site migration.
Poster une réponse Haut  
Réponse n° 8
--------
le 16/01/2024 16:46
par 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.
Poster une réponse Haut  
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message
Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter  
Catégories de discussion  Aide