AKSW / OntoWiki

Semantic data wiki as well as Linked Data publishing engine
https://ontowiki.net
205 stars 51 forks source link

Using store.backend=sparql lets you run into exceptions (hard exit) #410

Closed k00ni closed 8 years ago

k00ni commented 8 years ago

After i changed store.backend in OntoWiki's config.ini to sparql i ran into the following exceptions:

Notice: Undefined index: serviceUrl in /var/www/ontowiki/vendor/aksw/erfurt/library/Erfurt/Store/Adapter/Sparql.php on line 44
Call Stack
#   Time    Memory  Function    Location
1   0.0000  237368  {main}( )   ../index.php:0
2   0.0903  11049496    Zend_Application->run( )    ../index.php:144
3   0.0903  11049616    Zend_Application_Bootstrap_Bootstrap->run( )    ../Application.php:384
4   0.0903  11051480    Zend_Controller_Front->dispatch( )  ../Bootstrap.php:105
5   0.0906  11053672    Zend_Controller_Plugin_Broker->routeShutdown( ) ../Front.php:923
6   0.0906  11055024    OntoWiki_Controller_Plugin_SetupHelper->routeShutdown( )    ../Broker.php:260
7   0.0906  11056280    Erfurt_Event->trigger( )    ../SetupHelper.php:127
8   0.0906  11056280    Erfurt_Event_Dispatcher->trigger( ) ../Event.php:180
9   0.0906  11056904    invoke ( )  ../Dispatcher.php:184
10  0.0906  11057064    OntoWiki_Extension_Manager->onRouteShutdown( )  ../Dispatcher.php:184
11  0.0906  11057392    OntoWiki_Extension_Manager->_loadHelper( )  ../Manager.php:426
12  0.0907  11058200    QueriesHelper->__construct( )   ../Manager.php:459
13  0.0908  11060672    OntoWiki_Menu_Registry::getInstance( )  ../QueriesHelper.php:24
14  0.0908  11060944    OntoWiki_Menu_Registry->__construct( )  ../Registry.php:43
15  0.0908  11062464    OntoWiki_Menu_Registry->_getApplicationMenu( )  ../Registry.php:109
16  0.0909  11062608    Erfurt_App->isActionAllowed( )  ../Registry.php:126
17  0.0909  11063496    Erfurt_Ac_Default->isActionAllowed( )   ../App.php:1019
18  0.0909  11064888    Erfurt_Ac_Default->_init( ) ../Default.php:354
19  0.0909  11065408    Erfurt_App->getStore( ) ../Default.php:709
20  0.0910  11067928    Erfurt_Store->__construct( )    ../App.php:917
21  0.0911  11082336    Erfurt_Store_Adapter_Sparql->__construct( ) ../Store.php:261
Notice: Undefined index: graphs in /var/www/ontowiki/vendor/aksw/erfurt/library/Erfurt/Store/Adapter/Sparql.php on line 45
Call Stack
#   Time    Memory  Function    Location
1   0.0000  237368  {main}( )   ../index.php:0
2   0.0903  11049496    Zend_Application->run( )    ../index.php:144
3   0.0903  11049616    Zend_Application_Bootstrap_Bootstrap->run( )    ../Application.php:384
4   0.0903  11051480    Zend_Controller_Front->dispatch( )  ../Bootstrap.php:105
5   0.0906  11053672    Zend_Controller_Plugin_Broker->routeShutdown( ) ../Front.php:923
6   0.0906  11055024    OntoWiki_Controller_Plugin_SetupHelper->routeShutdown( )    ../Broker.php:260
7   0.0906  11056280    Erfurt_Event->trigger( )    ../SetupHelper.php:127
8   0.0906  11056280    Erfurt_Event_Dispatcher->trigger( ) ../Event.php:180
9   0.0906  11056904    invoke ( )  ../Dispatcher.php:184
10  0.0906  11057064    OntoWiki_Extension_Manager->onRouteShutdown( )  ../Dispatcher.php:184
11  0.0906  11057392    OntoWiki_Extension_Manager->_loadHelper( )  ../Manager.php:426
12  0.0907  11058200    QueriesHelper->__construct( )   ../Manager.php:459
13  0.0908  11060672    OntoWiki_Menu_Registry::getInstance( )  ../QueriesHelper.php:24
14  0.0908  11060944    OntoWiki_Menu_Registry->__construct( )  ../Registry.php:43
15  0.0908  11062464    OntoWiki_Menu_Registry->_getApplicationMenu( )  ../Registry.php:109
16  0.0909  11062608    Erfurt_App->isActionAllowed( )  ../Registry.php:126
17  0.0909  11063496    Erfurt_Ac_Default->isActionAllowed( )   ../App.php:1019
18  0.0909  11064888    Erfurt_Ac_Default->_init( ) ../Default.php:354
19  0.0909  11065408    Erfurt_App->getStore( ) ../Default.php:709
20  0.0910  11067928    Erfurt_Store->__construct( )    ../App.php:917
21  0.0911  11082336    Erfurt_Store_Adapter_Sparql->__construct( ) ../Store.php:261
Call Stack
#   Time    Memory  Function    Location
1   0.0000  237368  {main}( )   ../index.php:0
2   0.0903  11049496    Zend_Application->run( )    ../index.php:144
3   0.0903  11049616    Zend_Application_Bootstrap_Bootstrap->run( )    ../Application.php:384
4   0.0903  11051480    Zend_Controller_Front->dispatch( )  ../Bootstrap.php:105
5   0.0906  11053672    Zend_Controller_Plugin_Broker->routeShutdown( ) ../Front.php:923
6   0.0906  11055024    OntoWiki_Controller_Plugin_SetupHelper->routeShutdown( )    ../Broker.php:260
7   0.0906  11056280    Erfurt_Event->trigger( )    ../SetupHelper.php:127
8   0.0906  11056280    Erfurt_Event_Dispatcher->trigger( ) ../Event.php:180
9   0.0906  11056904    invoke ( )  ../Dispatcher.php:184
10  0.0906  11057064    OntoWiki_Extension_Manager->onRouteShutdown( )  ../Dispatcher.php:184
11  0.0906  11057392    OntoWiki_Extension_Manager->_loadHelper( )  ../Manager.php:426
12  0.0907  11058200    QueriesHelper->__construct( )   ../Manager.php:459
13  0.0908  11060672    OntoWiki_Menu_Registry::getInstance( )  ../QueriesHelper.php:24
14  0.0908  11060944    OntoWiki_Menu_Registry->__construct( )  ../Registry.php:43
15  0.0908  11062464    OntoWiki_Menu_Registry->_getApplicationMenu( )  ../Registry.php:109
16  0.0909  11062608    Erfurt_App->isActionAllowed( )  ../Registry.php:126
17  0.0909  11063496    Erfurt_Ac_Default->isActionAllowed( )   ../App.php:1019
18  0.0909  11064888    Erfurt_Ac_Default->_init( ) ../Default.php:354
19  0.0909  11065408    Erfurt_App->getStore( ) ../Default.php:709
20  0.0910  11067928    Erfurt_Store->__construct( )    ../App.php:917
21  0.0911  11082336    Erfurt_Store_Adapter_Sparql->__construct( ) ../Store.php:261
Fatal error: Maximum function nesting level of '100' reached, aborting! in /var/www/ontowiki/vendor/aksw/erfurt/library/Erfurt/Event.php on line 88
Call Stack
#   Time    Memory  Function    Location
1   0.0000  237368  {main}( )   ../index.php:0
2   0.0903  11049496    Zend_Application->run( )    ../index.php:144
3   0.0903  11049616    Zend_Application_Bootstrap_Bootstrap->run( )    ../Application.php:384
4   0.0903  11051480    Zend_Controller_Front->dispatch( )  ../Bootstrap.php:105
5   0.0906  11053672    Zend_Controller_Plugin_Broker->routeShutdown( ) ../Front.php:923
6   0.0906  11055024    OntoWiki_Controller_Plugin_SetupHelper->routeShutdown( )    ../Broker.php:260
7   0.0906  11056280    Erfurt_Event->trigger( )    ../SetupHelper.php:127
8   0.0906  11056280    Erfurt_Event_Dispatcher->trigger( ) ../Event.php:180
9   0.0906  11056904    invoke ( )  ../Dispatcher.php:184
10  0.0906  11057064    OntoWiki_Extension_Manager->onRouteShutdown( )  ../Dispatcher.php:184
11  0.0906  11057392    OntoWiki_Extension_Manager->_loadHelper( )  ../Manager.php:426
12  0.0907  11058200    QueriesHelper->__construct( )   ../Manager.php:459
13  0.0908  11060672    OntoWiki_Menu_Registry::getInstance( )  ../QueriesHelper.php:24
14  0.0908  11060944    OntoWiki_Menu_Registry->__construct( )  ../Registry.php:43
15  0.0908  11062464    OntoWiki_Menu_Registry->_getApplicationMenu( )  ../Registry.php:109
16  0.0909  11062608    Erfurt_App->isActionAllowed( )  ../Registry.php:126
17  0.0909  11063496    Erfurt_Ac_Default->isActionAllowed( )   ../App.php:1019
18  0.0909  11064888    Erfurt_Ac_Default->_init( ) ../Default.php:354
19  0.0909  11065408    Erfurt_App->getStore( ) ../Default.php:709
20  0.0924  11081352    Erfurt_Store->checkSetup( ) ../App.php:921
21  0.0929  11082408    Erfurt_Store->getNewModel( )    ../Store.php:426
22  0.0934  11092592    Erfurt_Store->getModel( )   ../Store.php:1151
23  0.0934  11092592    Erfurt_Store->checkSetup( ) ../Store.php:1031
24  0.0935  11093256    Erfurt_Store->getNewModel( )    ../Store.php:426
25  0.0936  11093744    Erfurt_Store->getModel( )   ../Store.php:1151
26  0.0936  11093744    Erfurt_Store->checkSetup( ) ../Store.php:1031
27  0.0937  11094408    Erfurt_Store->getNewModel( )    ../Store.php:426
28  0.0937  11094896    Erfurt_Store->getModel( )   ../Store.php:1151
29  0.0937  11094896    Erfurt_Store->checkSetup( ) ../Store.php:1031
30  0.0938  11095560    Erfurt_Store->getNewModel( )    ../Store.php:426
31  0.0938  11096048    Erfurt_Store->getModel( )   ../Store.php:1151
32  0.0938  11096048    Erfurt_Store->checkSetup( ) ../Store.php:1031
33  0.0939  11096712    Erfurt_Store->getNewModel( )    ../Store.php:426
34  0.0940  11097200    Erfurt_Store->getModel( )   ../Store.php:1151
35  0.0940  11097200    Erfurt_Store->checkSetup( ) ../Store.php:1031
36  0.0940  11097864    Erfurt_Store->getNewModel( )    ../Store.php:426
37  0.0941  11098352    Erfurt_Store->getModel( )   ../Store.php:1151
38  0.0941  11098352    Erfurt_Store->checkSetup( ) ../Store.php:1031
39  0.0941  11099016    Erfurt_Store->getNewModel( )    ../Store.php:426
40  0.0942  11099504    Erfurt_Store->getModel( )   ../Store.php:1151
41  0.0942  11099504    Erfurt_Store->checkSetup( ) ../Store.php:1031
42  0.0942  11100168    Erfurt_Store->getNewModel( )    ../Store.php:426
43  0.0943  11100656    Erfurt_Store->getModel( )   ../Store.php:1151
44  0.0943  11100656    Erfurt_Store->checkSetup( ) ../Store.php:1031
45  0.0944  11101320    Erfurt_Store->getNewModel( )    ../Store.php:426
46  0.0944  11101808    Erfurt_Store->getModel( )   ../Store.php:1151
47  0.0944  11101808    Erfurt_Store->checkSetup( ) ../Store.php:1031
48  0.0945  11102472    Erfurt_Store->getNewModel( )    ../Store.php:426
49  0.0945  11102960    Erfurt_Store->getModel( )   ../Store.php:1151
50  0.0945  11102960    Erfurt_Store->checkSetup( ) ../Store.php:1031
51  0.0946  11103624    Erfurt_Store->getNewModel( )    ../Store.php:426
52  0.0946  11104112    Erfurt_Store->getModel( )   ../Store.php:1151
53  0.0946  11104112    Erfurt_Store->checkSetup( ) ../Store.php:1031
54  0.0947  11104776    Erfurt_Store->getNewModel( )    ../Store.php:426
55  0.0947  11105264    Erfurt_Store->getModel( )   ../Store.php:1151
56  0.0947  11105264    Erfurt_Store->checkSetup( ) ../Store.php:1031
57  0.0948  11105928    Erfurt_Store->getNewModel( )    ../Store.php:426
58  0.0948  11106416    Erfurt_Store->getModel( )   ../Store.php:1151
59  0.0949  11106416    Erfurt_Store->checkSetup( ) ../Store.php:1031
60  0.0950  11107080    Erfurt_Store->getNewModel( )    ../Store.php:426
61  0.0951  11107568    Erfurt_Store->getModel( )   ../Store.php:1151
62  0.0951  11107568    Erfurt_Store->checkSetup( ) ../Store.php:1031
63  0.0953  11108232    Erfurt_Store->getNewModel( )    ../Store.php:426
64  0.0954  11108720    Erfurt_Store->getModel( )   ../Store.php:1151
65  0.0954  11108720    Erfurt_Store->checkSetup( ) ../Store.php:1031
66  0.0954  11109384    Erfurt_Store->getNewModel( )    ../Store.php:426
67  0.0955  11109872    Erfurt_Store->getModel( )   ../Store.php:1151
68  0.0955  11109872    Erfurt_Store->checkSetup( ) ../Store.php:1031
69  0.0955  11110536    Erfurt_Store->getNewModel( )    ../Store.php:426
70  0.0956  11111024    Erfurt_Store->getModel( )   ../Store.php:1151
71  0.0956  11111024    Erfurt_Store->checkSetup( ) ../Store.php:1031
72  0.0957  11111688    Erfurt_Store->getNewModel( )    ../Store.php:426
73  0.0957  11112176    Erfurt_Store->getModel( )   ../Store.php:1151
74  0.0957  11112176    Erfurt_Store->checkSetup( ) ../Store.php:1031
75  0.0958  11112840    Erfurt_Store->getNewModel( )    ../Store.php:426
76  0.0958  11113328    Erfurt_Store->getModel( )   ../Store.php:1151
77  0.0958  11113328    Erfurt_Store->checkSetup( ) ../Store.php:1031
78  0.0959  11113992    Erfurt_Store->getNewModel( )    ../Store.php:426
79  0.0959  11114480    Erfurt_Store->getModel( )   ../Store.php:1151
80  0.0959  11114480    Erfurt_Store->checkSetup( ) ../Store.php:1031
81  0.0960  11115144    Erfurt_Store->getNewModel( )    ../Store.php:426
82  0.0960  11115632    Erfurt_Store->getModel( )   ../Store.php:1151
83  0.0960  11115632    Erfurt_Store->checkSetup( ) ../Store.php:1031
84  0.0961  11116296    Erfurt_Store->getNewModel( )    ../Store.php:426
85  0.0961  11116784    Erfurt_Store->getModel( )   ../Store.php:1151
86  0.0961  11116784    Erfurt_Store->checkSetup( ) ../Store.php:1031
87  0.0962  11117448    Erfurt_Store->getNewModel( )    ../Store.php:426
88  0.0962  11117936    Erfurt_Store->getModel( )   ../Store.php:1151
89  0.0962  11117936    Erfurt_Store->checkSetup( ) ../Store.php:1031
90  0.0963  11118600    Erfurt_Store->getNewModel( )    ../Store.php:426
91  0.0963  11119088    Erfurt_Store->getModel( )   ../Store.php:1151
92  0.0963  11119088    Erfurt_Store->checkSetup( ) ../Store.php:1031
93  0.0964  11119752    Erfurt_Store->getNewModel( )    ../Store.php:426
94  0.0965  11120416    Erfurt_Store->addStatement( )   ../Store.php:1147
95  0.0965  11121920    Erfurt_Event->trigger( )    ../Store.php:382
96  0.0965  11121920    Erfurt_Event_Dispatcher->trigger( ) ../Event.php:180
97  0.0965  11122352    Erfurt_Event->getDefault( ) ../Dispatcher.php:218
98  0.0965  11122520    Erfurt_Event->__get( )  ../Dispatcher.php:99
99  0.0965  11122520    Erfurt_Event->__isset( )    ../Event.php:61
white-gecko commented 8 years ago

The feature to also support a remote SPARQL endpoint as back-end is only supported in the feature/remoteSparqlEndpoint branch (https://github.com/AKSW/OntoWiki/tree/feature/remoteSparqlEndpoint)

k00ni commented 8 years ago

Is there a plan to support that in the near future? I assumed its a system functionality and not "optional", but ok.