Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not initialize class org.aksw.autosparql.tbsl.gui.vaadin.model.ExtendedTBSL #24

Open
ziodave opened this issue Sep 14, 2014 · 18 comments

Comments

@ziodave
Copy link

ziodave commented Sep 14, 2014

When I try to access http://localhost:8080/autosparql-lite/, I get a server error:

javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.aksw.autosparql.tbsl.gui.vaadin.model.ExtendedTBSL
    at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.handleServiceException(AbstractApplicationServlet.java:1010)
    at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:548)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:769)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1125)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1059)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    at org.eclipse.jetty.server.Server.handle(Server.java:497)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:248)
    at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:610)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:539)
    at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.aksw.autosparql.tbsl.gui.vaadin.model.ExtendedTBSL
    at org.aksw.autosparql.tbsl.gui.vaadin.TBSLManager.<init>(TBSLManager.java:80)
    at org.aksw.autosparql.tbsl.gui.vaadin.UserSession.<init>(UserSession.java:26)
    at org.aksw.autosparql.tbsl.gui.vaadin.TBSLApplication.init(TBSLApplication.java:54)
    at com.vaadin.Application.start(Application.java:551)
    at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.startApplication(AbstractApplicationServlet.java:1219)
    at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:484)
    ... 21 more

I compiled with ./compile, I will run now with ./createcompilelog in order to attach the logs.

@ziodave
Copy link
Author

ziodave commented Sep 14, 2014

This is the compilelog:

AutoSPARQL TBSL compile log for error reporting
<><><> module autosparql <><><>
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building autosparql-parent 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ autosparql-parent ---
[INFO] Installing /Users/david/Developer/AutoSPARQL/pom.xml to /Users/david/.m2/repository/org/aksw/autosparql/autosparql-parent/1.0-SNAPSHOT/autosparql-parent-1.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.709s
[INFO] Finished at: Sun Sep 14 09:22:05 IDT 2014
[INFO] Final Memory: 5M/123M
[INFO] ------------------------------------------------------------------------
<><><> module commons <><><>
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building commons 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ commons ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 54 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ commons ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 70 source files to /Users/david/Developer/AutoSPARQL/commons/target/classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING : 
[INFO] -------------------------------------------------------------
[WARNING] /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/diadem/WordFrequencyCounter.java: /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/diadem/WordFrequencyCounter.java uses or overrides a deprecated API.
[WARNING] /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/diadem/WordFrequencyCounter.java: Recompile with -Xlint:deprecation for details.
[WARNING] /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/nlp/pling/FinalSet.java: Some input files use unchecked or unsafe operations.
[WARNING] /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/nlp/pling/FinalSet.java: Recompile with -Xlint:unchecked for details.
[INFO] 4 warnings 
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/sparql/SparqlQueriable.java:[7,44] cannot find symbol
  symbol:   class CacheCoreEx
  location: package org.aksw.jena_sparql_api.cache.extra
[ERROR] /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/sparql/SparqlQueriable.java:[8,44] cannot find symbol
  symbol:   class CacheCoreH2
  location: package org.aksw.jena_sparql_api.cache.extra
[ERROR] /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/sparql/SparqlQueriable.java:[9,44] cannot find symbol
  symbol:   class CacheEx
  location: package org.aksw.jena_sparql_api.cache.extra
[ERROR] /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/sparql/SparqlQueriable.java:[10,44] cannot find symbol
  symbol:   class CacheExImpl
  location: package org.aksw.jena_sparql_api.cache.extra
[ERROR] /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/sparql/SparqlQueriable.java:[29,33] cannot find symbol
  symbol:   class CacheCoreEx
  location: class org.aksw.autosparql.commons.sparql.SparqlQueriable
[ERROR] /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/sparql/SparqlQueriable.java:[29,60] cannot find symbol
  symbol:   variable CacheCoreH2
  location: class org.aksw.autosparql.commons.sparql.SparqlQueriable
[ERROR] /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/sparql/SparqlQueriable.java:[30,33] cannot find symbol
  symbol:   class CacheEx
  location: class org.aksw.autosparql.commons.sparql.SparqlQueriable
[ERROR] /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/sparql/SparqlQueriable.java:[30,61] cannot find symbol
  symbol:   class CacheExImpl
  location: class org.aksw.autosparql.commons.sparql.SparqlQueriable
[INFO] 8 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.743s
[INFO] Finished at: Sun Sep 14 09:22:12 IDT 2014
[INFO] Final Memory: 29M/372M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project commons: Compilation failure: Compilation failure:
[ERROR] /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/sparql/SparqlQueriable.java:[7,44] cannot find symbol
[ERROR] symbol:   class CacheCoreEx
[ERROR] location: package org.aksw.jena_sparql_api.cache.extra
[ERROR] /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/sparql/SparqlQueriable.java:[8,44] cannot find symbol
[ERROR] symbol:   class CacheCoreH2
[ERROR] location: package org.aksw.jena_sparql_api.cache.extra
[ERROR] /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/sparql/SparqlQueriable.java:[9,44] cannot find symbol
[ERROR] symbol:   class CacheEx
[ERROR] location: package org.aksw.jena_sparql_api.cache.extra
[ERROR] /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/sparql/SparqlQueriable.java:[10,44] cannot find symbol
[ERROR] symbol:   class CacheExImpl
[ERROR] location: package org.aksw.jena_sparql_api.cache.extra
[ERROR] /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/sparql/SparqlQueriable.java:[29,33] cannot find symbol
[ERROR] symbol:   class CacheCoreEx
[ERROR] location: class org.aksw.autosparql.commons.sparql.SparqlQueriable
[ERROR] /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/sparql/SparqlQueriable.java:[29,60] cannot find symbol
[ERROR] symbol:   variable CacheCoreH2
[ERROR] location: class org.aksw.autosparql.commons.sparql.SparqlQueriable
[ERROR] /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/sparql/SparqlQueriable.java:[30,33] cannot find symbol
[ERROR] symbol:   class CacheEx
[ERROR] location: class org.aksw.autosparql.commons.sparql.SparqlQueriable
[ERROR] /Users/david/Developer/AutoSPARQL/commons/src/main/java/org/aksw/autosparql/commons/sparql/SparqlQueriable.java:[30,61] cannot find symbol
[ERROR] symbol:   class CacheExImpl
[ERROR] location: class org.aksw.autosparql.commons.sparql.SparqlQueriable
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
<><><> module algorithm-tbsl <><><>
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building algorithm-tbsl 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ algorithm-tbsl ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 32 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ algorithm-tbsl ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 199 source files to /Users/david/Developer/AutoSPARQL/algorithm-tbsl/target/classes
[WARNING] /Users/david/Developer/AutoSPARQL/algorithm-tbsl/src/main/java/org/aksw/autosparql/tbsl/algorithm/learning/TBSL.java: Some input files use or override a deprecated API.
[WARNING] /Users/david/Developer/AutoSPARQL/algorithm-tbsl/src/main/java/org/aksw/autosparql/tbsl/algorithm/learning/TBSL.java: Recompile with -Xlint:deprecation for details.
[WARNING] /Users/david/Developer/AutoSPARQL/algorithm-tbsl/src/main/java/org/aksw/autosparql/tbsl/algorithm/util/MultithreadedSPARQLQueryExecutor.java: Some input files use unchecked or unsafe operations.
[WARNING] /Users/david/Developer/AutoSPARQL/algorithm-tbsl/src/main/java/org/aksw/autosparql/tbsl/algorithm/util/MultithreadedSPARQLQueryExecutor.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ algorithm-tbsl ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 29 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ algorithm-tbsl ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 22 source files to /Users/david/Developer/AutoSPARQL/algorithm-tbsl/target/test-classes
[WARNING] /Users/david/Developer/AutoSPARQL/algorithm-tbsl/src/test/java/org/aksw/autosparql/tbsl/algorithm/IndexEvaluation.java: Some input files use or override a deprecated API.
[WARNING] /Users/david/Developer/AutoSPARQL/algorithm-tbsl/src/test/java/org/aksw/autosparql/tbsl/algorithm/IndexEvaluation.java: Recompile with -Xlint:deprecation for details.
[WARNING] /Users/david/Developer/AutoSPARQL/algorithm-tbsl/src/test/java/org/aksw/autosparql/tbsl/algorithm/TemplateSerializationTest.java: /Users/david/Developer/AutoSPARQL/algorithm-tbsl/src/test/java/org/aksw/autosparql/tbsl/algorithm/TemplateSerializationTest.java uses unchecked or unsafe operations.
[WARNING] /Users/david/Developer/AutoSPARQL/algorithm-tbsl/src/test/java/org/aksw/autosparql/tbsl/algorithm/TemplateSerializationTest.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ algorithm-tbsl ---
[INFO] Surefire report directory: /Users/david/Developer/AutoSPARQL/algorithm-tbsl/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.aksw.autosparql.tbsl.algorithm.knowledgebase.DBpediaKnowledgebaseTest
Using cache directory /var/folders/t6/k8ng2fzs5l5bzl1tkm1lyy3m0000gn/T/
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.194 sec - in org.aksw.autosparql.tbsl.algorithm.knowledgebase.DBpediaKnowledgebaseTest
Running org.aksw.autosparql.tbsl.algorithm.knowledgebase.OxfordKnowledgebaseTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.759 sec - in org.aksw.autosparql.tbsl.algorithm.knowledgebase.OxfordKnowledgebaseTest
Running org.aksw.autosparql.tbsl.algorithm.TBSLTest
WordNetUnpacker.getUnpackedWordNetDir: using code source /Users/david/.m2/repository/org/aksw/autosparql/commons/1.0-SNAPSHOT/commons-1.0-SNAPSHOT.jar
unpacking jarfile /Users/david/.m2/repository/org/aksw/autosparql/commons/1.0-SNAPSHOT/commons-1.0-SNAPSHOT.jar
loading wordnet from /var/folders/t6/k8ng2fzs5l5bzl1tkm1lyy3m0000gn/T/wordnet178558556719
Running template generation...
Entity: Dan Brown
DBpedia URI: http://dbpedia.org/resource/Dan_Brown
Types: DBpedia:Writer,DBpedia:Artist,DBpedia:Person,Schema:Person,Freebase:/award/award_winner,Freebase:/award,Freebase:/book/author,Freebase:/book,Freebase:/film/producer,Freebase:/film,Freebase:/people/person,Freebase:/people,Freebase:/film/person_or_entity_appearing_in_film,Freebase:/film/film_story_contributor,Freebase:/music/artist,Freebase:/music,Freebase:/film/writer,Freebase:/fictional_universe/fictional_character_creator,Freebase:/fictional_universe,DBpedia:TopicalConcept
Generated 2 templates:
>> QUERY: SELECT ?y { ?y0 ?p0 ?y. } 
>> SLOTS: y0: RESOURCE {dan brown}p0: PROPERTY {books}
>> QUERY: SELECT ?y { ?y rdf:type ?p1. ?y0 ?p0 ?y. } 
>> SLOTS: y0: RESOURCE {dan brown}p0: SYMPROPERTY {written}p1: CLASS {books}
Running entity disambiguation...
Found 4 entities for slot y0: RESOURCE {dan brown}: [http://dbpedia.org/resource/Inferno_(Dan_Brown_novel)(Inferno_(Dan_Brown_novel)), http://dbpedia.org/resource/Dan_Brown(Dan_Brown), http://dbpedia.org/resource/Dan_W._Brown(Dan_W._Brown), http://dbpedia.org/resource/Dan_Brown_(YouTube)(Dan_Brown_(YouTube))]
Found 1 entities for slot p0: PROPERTY {books}: [http://dbpedia.org/ontology/author(author)]
Found 4 entities for slot y0: RESOURCE {dan brown}: [http://dbpedia.org/resource/Inferno_(Dan_Brown_novel)(Inferno_(Dan_Brown_novel)), http://dbpedia.org/resource/Dan_Brown(Dan_Brown), http://dbpedia.org/resource/Dan_W._Brown(Dan_W._Brown), http://dbpedia.org/resource/Dan_Brown_(YouTube)(Dan_Brown_(YouTube))]
Found 1 entities for slot p0: SYMPROPERTY {written}: [http://dbpedia.org/ontology/author(author)]
Found 1 entities for slot p1: CLASS {books}: [http://dbpedia.org/ontology/Book(Book)]
Running template instantiation...
Running ranking...

Running template generation...
Entity: Persons
DBpedia URI: http://dbpedia.org/resource/Person
Types: 
Entity: born
DBpedia URI: http://dbpedia.org/resource/Max_Born
Types: DBpedia:Scientist,DBpedia:Person,Schema:Person,Freebase:/book/author,Freebase:/book,Freebase:/award/award_winner,Freebase:/award,Freebase:/education/academic,Freebase:/education,Freebase:/people/deceased_person,Freebase:/people,Freebase:/people/person
Entity: Berlin
DBpedia URI: http://dbpedia.org/resource/Berlin_%28band%29
Types: DBpedia:Band,DBpedia:Organisation,Schema:Organization,Schema:MusicGroup,Freebase:/music/artist,Freebase:/music,Freebase:/broadcast/artist,Freebase:/broadcast,Freebase:/music/musical_group
[Templator.java] 'Give me all Persons born in Berlin.' could not be parsed.
Running template generation...
Entity: houses
DBpedia URI: http://dbpedia.org/resource/House
Types: Freebase:/book/book_subject,Freebase:/book,Freebase:/architecture/building_function,Freebase:/architecture,DBpedia:TopicalConcept
Entity: bedrooms
DBpedia URI: http://dbpedia.org/resource/Bedroom
Types: 
Generated 2 templates:
>> QUERY: SELECT ?y (COUNT(?y0) AS ?c) { ?y ?p1 ?y0. ?y rdf:type ?p0. FILTER(?c > 3). } GROUP BY ?y 
>> SLOTS: p0: CLASS {houses}p1: OBJECTPROPERTY {bedrooms}
>> QUERY: SELECT ?y { ?y ?p1 ?y0. ?y rdf:type ?p0. FILTER(?y0 > 3). } 
>> SLOTS: p0: CLASS {houses}p1: DATATYPEPROPERTY {bedrooms}
Running entity disambiguation...
Found 1 entities for slot p0: CLASS {houses}: [http://diadem.cs.ox.ac.uk/ontologies/real-estate#House(house)]
Found 0 entities for slot p1: OBJECTPROPERTY {bedrooms}: []
Found 1 entities for slot p0: CLASS {houses}: [http://diadem.cs.ox.ac.uk/ontologies/real-estate#House(house)]
Found 1 entities for slot p1: DATATYPEPROPERTY {bedrooms}: [http://diadem.cs.ox.ac.uk/ontologies/real-estate#bedrooms(number of bedrooms)]
Running template instantiation...
Running ranking...

Running template generation...
Entity: houses
DBpedia URI: http://dbpedia.org/resource/House
Types: Freebase:/book/book_subject,Freebase:/book,Freebase:/architecture/building_function,Freebase:/architecture,DBpedia:TopicalConcept
Entity: bedrooms
DBpedia URI: http://dbpedia.org/resource/Bedroom
Types: 
Generated 2 templates:
>> QUERY: SELECT ?x0 { ?x0 ?p0 ?y. ?x0 rdf:type ?p1. FILTER(?y > 2). } 
>> SLOTS: p0: DATATYPEPROPERTY {bedrooms}p1: CLASS {houses}
>> QUERY: SELECT ?x0 (COUNT(?y) AS ?c) { ?x0 ?p0 ?y. ?x0 rdf:type ?p1. FILTER(?c > 2). } GROUP BY ?x0 
>> SLOTS: p0: OBJECTPROPERTY {bedrooms}p1: CLASS {houses}
Running entity disambiguation...
Found 1 entities for slot p0: DATATYPEPROPERTY {bedrooms}: [http://diadem.cs.ox.ac.uk/ontologies/real-estate#bedrooms(number of bedrooms)]
Found 1 entities for slot p1: CLASS {houses}: [http://diadem.cs.ox.ac.uk/ontologies/real-estate#House(house)]
Found 0 entities for slot p0: OBJECTPROPERTY {bedrooms}: []
Found 1 entities for slot p1: CLASS {houses}: [http://diadem.cs.ox.ac.uk/ontologies/real-estate#House(house)]
Running template instantiation...
Running ranking...

Tests run: 5, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 18.843 sec <<< FAILURE! - in org.aksw.autosparql.tbsl.algorithm.TBSLTest
testDBpediaDanBrown(org.aksw.autosparql.tbsl.algorithm.TBSLTest)  Time elapsed: 10.195 sec  <<< ERROR!
java.lang.RuntimeException: connection could not be initialized.
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:579)
    at java.net.Socket.connect(Socket.java:528)
    at java.net.Socket.<init>(Socket.java:425)
    at java.net.Socket.<init>(Socket.java:241)
    at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
    at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
    at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
    at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
    at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
    at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
    at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
    at java.sql.DriverManager.getConnection(DriverManager.java:571)
    at java.sql.DriverManager.getConnection(DriverManager.java:215)
    at org.aksw.autosparql.commons.metric.SPARQLEndpointMetrics.getDefaultReadOnlyConnection(SPARQLEndpointMetrics.java:94)
    at org.aksw.autosparql.commons.metric.SPARQLEndpointMetrics.getDbpediaMetrics(SPARQLEndpointMetrics.java:68)
    at org.aksw.autosparql.tbsl.algorithm.learning.ranking.SimpleRankingComputation.createFeatureExtractors(SimpleRankingComputation.java:131)
    at org.aksw.autosparql.tbsl.algorithm.learning.ranking.SimpleRankingComputation.computeRanking(SimpleRankingComputation.java:78)
    at org.aksw.autosparql.tbsl.algorithm.learning.TBSL.answerQuestion(TBSL.java:198)
    at org.aksw.autosparql.tbsl.algorithm.learning.TBSL.answerQuestion(TBSL.java:156)
    at org.aksw.autosparql.tbsl.algorithm.TBSLTest.testDBpediaDanBrown(TBSLTest.java:41)

testDBpediaLorenzBuehmann(org.aksw.autosparql.tbsl.algorithm.TBSLTest)  Time elapsed: 4.296 sec  <<< ERROR!
org.aksw.autosparql.tbsl.algorithm.learning.NoTemplateFoundException: null
    at org.aksw.autosparql.tbsl.algorithm.learning.TBSL.answerQuestion(TBSL.java:168)
    at org.aksw.autosparql.tbsl.algorithm.learning.TBSL.answerQuestion(TBSL.java:156)
    at org.aksw.autosparql.tbsl.algorithm.TBSLTest.testDBpediaLorenzBuehmann(TBSLTest.java:31)

testOxford(org.aksw.autosparql.tbsl.algorithm.TBSLTest)  Time elapsed: 0.785 sec  <<< ERROR!
java.lang.RuntimeException: connection could not be initialized.
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:579)
    at java.net.Socket.connect(Socket.java:528)
    at java.net.Socket.<init>(Socket.java:425)
    at java.net.Socket.<init>(Socket.java:241)
    at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
    at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
    at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
    at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
    at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
    at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
    at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
    at java.sql.DriverManager.getConnection(DriverManager.java:571)
    at java.sql.DriverManager.getConnection(DriverManager.java:215)
    at org.aksw.autosparql.commons.metric.SPARQLEndpointMetrics.getDefaultReadOnlyConnection(SPARQLEndpointMetrics.java:94)
    at org.aksw.autosparql.commons.metric.SPARQLEndpointMetrics.getDbpediaMetrics(SPARQLEndpointMetrics.java:68)
    at org.aksw.autosparql.tbsl.algorithm.learning.ranking.SimpleRankingComputation.createFeatureExtractors(SimpleRankingComputation.java:131)
    at org.aksw.autosparql.tbsl.algorithm.learning.ranking.SimpleRankingComputation.computeRanking(SimpleRankingComputation.java:78)
    at org.aksw.autosparql.tbsl.algorithm.learning.TBSL.answerQuestion(TBSL.java:198)
    at org.aksw.autosparql.tbsl.algorithm.learning.TBSL.answerQuestion(TBSL.java:156)
    at org.aksw.autosparql.tbsl.algorithm.TBSLTest.testOxford(TBSLTest.java:65)

testOxfordMoreThanTwoBedrooms(org.aksw.autosparql.tbsl.algorithm.TBSLTest)  Time elapsed: 3.22 sec  <<< ERROR!
java.lang.RuntimeException: connection could not be initialized.
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:579)
    at java.net.Socket.connect(Socket.java:528)
    at java.net.Socket.<init>(Socket.java:425)
    at java.net.Socket.<init>(Socket.java:241)
    at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
    at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
    at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
    at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
    at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
    at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
    at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
    at java.sql.DriverManager.getConnection(DriverManager.java:571)
    at java.sql.DriverManager.getConnection(DriverManager.java:215)
    at org.aksw.autosparql.commons.metric.SPARQLEndpointMetrics.getDefaultReadOnlyConnection(SPARQLEndpointMetrics.java:94)
    at org.aksw.autosparql.commons.metric.SPARQLEndpointMetrics.getDbpediaMetrics(SPARQLEndpointMetrics.java:68)
    at org.aksw.autosparql.tbsl.algorithm.learning.ranking.SimpleRankingComputation.createFeatureExtractors(SimpleRankingComputation.java:131)
    at org.aksw.autosparql.tbsl.algorithm.learning.ranking.SimpleRankingComputation.computeRanking(SimpleRankingComputation.java:78)
    at org.aksw.autosparql.tbsl.algorithm.learning.TBSL.answerQuestion(TBSL.java:198)
    at org.aksw.autosparql.tbsl.algorithm.learning.TBSL.answerQuestion(TBSL.java:156)
    at org.aksw.autosparql.tbsl.algorithm.TBSLTest.testOxfordMoreThanTwoBedrooms(TBSLTest.java:75)

Running org.aksw.autosparql.tbsl.algorithm.util.SolrServerTest
[http://dbpedia.org/resource/Premier, http://dbpedia.org/resource/Premier_of_Quebec, http://dbpedia.org/resource/Premier_Leech, http://dbpedia.org/resource/Premier_Hazard, http://dbpedia.org/resource/Premier_Padmini, http://dbpedia.org/resource/Eagle_Premier, http://dbpedia.org/resource/Premier_America, http://dbpedia.org/resource/Premier_Exhibitions, http://dbpedia.org/resource/Primer_Premier, http://dbpedia.org/resource/The_Premier_Hits]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.844 sec - in org.aksw.autosparql.tbsl.algorithm.util.SolrServerTest

Results :

Tests in error: 
  TBSLTest.testDBpediaDanBrown:41 » Runtime connection could not be initialized.
  TBSLTest.testDBpediaLorenzBuehmann:31 » NoTemplateFound
  TBSLTest.testOxford:65 » Runtime connection could not be initialized.
  TBSLTest.testOxfordMoreThanTwoBedrooms:75 » Runtime connection could not be in...

Tests run: 9, Failures: 0, Errors: 4, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 34.725s
[INFO] Finished at: Sun Sep 14 09:22:48 IDT 2014
[INFO] Final Memory: 39M/368M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project algorithm-tbsl: There are test failures.
[ERROR] 
[ERROR] Please refer to /Users/david/Developer/AutoSPARQL/algorithm-tbsl/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
<><><> module autosparql-tbsl <><><> compile
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.aksw.autosparql:autosparql-tbsl:war:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.eclipse.jetty:jetty-maven-plugin is missing. @ line 99, column 12
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building AutoSPARQL Lite 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ autosparql-tbsl ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 57 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ autosparql-tbsl ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 36 source files to /Users/david/Developer/AutoSPARQL/autosparql-tbsl/target/classes
[WARNING] /Users/david/Developer/AutoSPARQL/autosparql-tbsl/src/main/java/org/aksw/autosparql/tbsl/gui/vaadin/TBSLManager.java: /Users/david/Developer/AutoSPARQL/autosparql-tbsl/src/main/java/org/aksw/autosparql/tbsl/gui/vaadin/TBSLManager.java uses or overrides a deprecated API.
[WARNING] /Users/david/Developer/AutoSPARQL/autosparql-tbsl/src/main/java/org/aksw/autosparql/tbsl/gui/vaadin/TBSLManager.java: Recompile with -Xlint:deprecation for details.
[WARNING] /Users/david/Developer/AutoSPARQL/autosparql-tbsl/src/main/java/org/aksw/autosparql/tbsl/gui/vaadin/view/MainView.java: /Users/david/Developer/AutoSPARQL/autosparql-tbsl/src/main/java/org/aksw/autosparql/tbsl/gui/vaadin/view/MainView.java uses unchecked or unsafe operations.
[WARNING] /Users/david/Developer/AutoSPARQL/autosparql-tbsl/src/main/java/org/aksw/autosparql/tbsl/gui/vaadin/view/MainView.java: Recompile with -Xlint:unchecked for details.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.702s
[INFO] Finished at: Sun Sep 14 09:22:57 IDT 2014
[INFO] Final Memory: 35M/369M
[INFO] ------------------------------------------------------------------------
<><><> module autosparql-tbsl <><><> gwt:compile
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.aksw.autosparql:autosparql-tbsl:war:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.eclipse.jetty:jetty-maven-plugin is missing. @ line 99, column 12
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building AutoSPARQL Lite 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- gwt-maven-plugin:2.3.0:compile (default-cli) @ autosparql-tbsl ---
[INFO] auto discovered modules [org.aksw.autosparql.tbsl.gui.vaadin.CustomWidgetset]
[INFO] org.aksw.autosparql.tbsl.gui.vaadin.CustomWidgetset is up to date. GWT compilation skipped
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.174s
[INFO] Finished at: Sun Sep 14 09:23:05 IDT 2014
[INFO] Final Memory: 19M/226M
[INFO] ------------------------------------------------------------------------
<><><> module autosparql-tbsl <><><> jetty:run
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.aksw.autosparql:autosparql-tbsl:war:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.eclipse.jetty:jetty-maven-plugin is missing. @ line 99, column 12
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building AutoSPARQL Lite 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> jetty-maven-plugin:9.2.3.v20140905:run (default-cli) @ autosparql-tbsl >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ autosparql-tbsl ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 57 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ autosparql-tbsl ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 36 source files to /Users/david/Developer/AutoSPARQL/autosparql-tbsl/target/classes
[WARNING] /Users/david/Developer/AutoSPARQL/autosparql-tbsl/src/main/java/org/aksw/autosparql/tbsl/gui/vaadin/TBSLManager.java: /Users/david/Developer/AutoSPARQL/autosparql-tbsl/src/main/java/org/aksw/autosparql/tbsl/gui/vaadin/TBSLManager.java uses or overrides a deprecated API.
[WARNING] /Users/david/Developer/AutoSPARQL/autosparql-tbsl/src/main/java/org/aksw/autosparql/tbsl/gui/vaadin/TBSLManager.java: Recompile with -Xlint:deprecation for details.
[WARNING] /Users/david/Developer/AutoSPARQL/autosparql-tbsl/src/main/java/org/aksw/autosparql/tbsl/gui/vaadin/view/MainView.java: /Users/david/Developer/AutoSPARQL/autosparql-tbsl/src/main/java/org/aksw/autosparql/tbsl/gui/vaadin/view/MainView.java uses unchecked or unsafe operations.
[WARNING] /Users/david/Developer/AutoSPARQL/autosparql-tbsl/src/main/java/org/aksw/autosparql/tbsl/gui/vaadin/view/MainView.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ autosparql-tbsl ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/david/Developer/AutoSPARQL/autosparql-tbsl/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ autosparql-tbsl ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to /Users/david/Developer/AutoSPARQL/autosparql-tbsl/target/test-classes
[INFO] 
[INFO] <<< jetty-maven-plugin:9.2.3.v20140905:run (default-cli) @ autosparql-tbsl <<<
[INFO] 
[INFO] --- jetty-maven-plugin:9.2.3.v20140905:run (default-cli) @ autosparql-tbsl ---
[INFO] Configuring Jetty for project: AutoSPARQL Lite
[INFO] webAppSourceDirectory not set. Trying src/main/webapp
[INFO] Reload Mechanic: automatic
[INFO] Classes = /Users/david/Developer/AutoSPARQL/autosparql-tbsl/target/classes
[INFO] Context path = /autosparql-lite
[INFO] Tmp directory = /Users/david/Developer/AutoSPARQL/autosparql-tbsl/target/tmp
[INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] web.xml file = file:/Users/david/Developer/AutoSPARQL/autosparql-tbsl/src/main/webapp/WEB-INF/web.xml
[INFO] Webapp directory = /Users/david/Developer/AutoSPARQL/autosparql-tbsl/src/main/webapp
Initializing global settings...
WordNetUnpacker.getUnpackedWordNetDir: using code source /Users/david/.m2/repository/org/aksw/autosparql/commons/1.0-SNAPSHOT/commons-1.0-SNAPSHOT.jar
unpacking jarfile /Users/david/.m2/repository/org/aksw/autosparql/commons/1.0-SNAPSHOT/commons-1.0-SNAPSHOT.jar
loading wordnet from /var/folders/t6/k8ng2fzs5l5bzl1tkm1lyy3m0000gn/T/wordnet178558556719
...done.
[INFO] Started Jetty Server

@KonradHoeffner
Copy link
Contributor

AutoSPARQL TBSL is under rework at the moment. A demo can be used at http://linkedspending.aksw.org/tbsl. I will keep you up to date when the rework is finished.

@ziodave
Copy link
Author

ziodave commented Sep 24, 2014

Thanks Konrad!

@arunprasathe
Copy link

hi i am getting the same issue any chance its fixed. This happened when we did mvn jetty:run .

@KonradHoeffner
Copy link
Contributor

Please post your error log arunprasathe, there seems to be a Maven issue at the moment which I am investigating right now.

@Protino
Copy link

Protino commented Mar 18, 2016

Any updates on this issue?

@KonradHoeffner
Copy link
Contributor

Due to lack of resources we unfortunately cannot maintain TBSL anymore. I recently made sure that it at least compiles, though, but I receive a similar error on running:


javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/aksw/jena_sparql_api/cache/extra/CacheEx
    at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.handleServiceException(AbstractApplicationServlet.java:1010)
    at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:548)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:835)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1158)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1090)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
    at org.eclipse.jetty.server.Server.handle(Server.java:517)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)
    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
    at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)
    at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)
    at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
    at java.lang.Thread.run(Thread.java:745)

@Protino
Copy link

Protino commented Mar 18, 2016

There is no CacheEx class in the jena_sparql_api/cache/extra package anymore. But something is trying to access this class. I digged a lot but couldn't find anything.
May be you could try this link that explains NoClassDefFoundError Link.

Anyways thanks for taking your time.

@RicardoUsbeck
Copy link

Maybe @Aklakan can help?

@CarlHoo
Copy link

CarlHoo commented Aug 28, 2016

You can download jena-sparql-api-core-2.10.0-22.jar and add into your project, it's the latest version include class CacheEx.

@Cassendra4
Copy link

I also get this error. can you please help me.
Problem accessing /autosparql-lite/. Reason:

Server Error

Caused by:

javax.servlet.ServletException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.aksw.autosparql.tbsl.gui.vaadin.model.ExtendedTBSL
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:138)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:549)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:318)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:265)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:97)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:122)
at org.eclipse.jetty.util.thread.strategy.ExecutingExecutionStrategy.invoke(ExecutingExecutionStrategy.java:58)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:201)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:133)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.aksw.autosparql.tbsl.gui.vaadin.model.ExtendedTBSL
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.handleServiceException(AbstractApplicationServlet.java:1010)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:548)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:830)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:551)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1586)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1221)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:486)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1549)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1134)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:118)
... 14 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.aksw.autosparql.tbsl.gui.vaadin.model.ExtendedTBSL
at org.aksw.autosparql.tbsl.gui.vaadin.TBSLManager.(TBSLManager.java:80)
at org.aksw.autosparql.tbsl.gui.vaadin.UserSession.(UserSession.java:26)
at org.aksw.autosparql.tbsl.gui.vaadin.TBSLApplication.init(TBSLApplication.java:54)
at com.vaadin.Application.start(Application.java:551)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.startApplication(AbstractApplicationServlet.java:1219)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:484)
... 27 more
Caused by:

javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.aksw.autosparql.tbsl.gui.vaadin.model.ExtendedTBSL
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.handleServiceException(AbstractApplicationServlet.java:1010)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:548)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:830)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:551)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1586)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1221)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:486)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1549)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1134)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:118)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:549)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:318)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:265)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:97)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:122)
at org.eclipse.jetty.util.thread.strategy.ExecutingExecutionStrategy.invoke(ExecutingExecutionStrategy.java:58)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:201)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:133)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.aksw.autosparql.tbsl.gui.vaadin.model.ExtendedTBSL
at org.aksw.autosparql.tbsl.gui.vaadin.TBSLManager.(TBSLManager.java:80)
at org.aksw.autosparql.tbsl.gui.vaadin.UserSession.(UserSession.java:26)
at org.aksw.autosparql.tbsl.gui.vaadin.TBSLApplication.init(TBSLApplication.java:54)
at com.vaadin.Application.start(Application.java:551)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.startApplication(AbstractApplicationServlet.java:1219)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:484)
... 27 more
Caused by:

java.lang.NoClassDefFoundError: Could not initialize class org.aksw.autosparql.tbsl.gui.vaadin.model.ExtendedTBSL
at org.aksw.autosparql.tbsl.gui.vaadin.TBSLManager.(TBSLManager.java:80)
at org.aksw.autosparql.tbsl.gui.vaadin.UserSession.(UserSession.java:26)
at org.aksw.autosparql.tbsl.gui.vaadin.TBSLApplication.init(TBSLApplication.java:54)
at com.vaadin.Application.start(Application.java:551)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.startApplication(AbstractApplicationServlet.java:1219)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:484)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:830)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:551)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1586)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1221)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:486)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1549)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1134)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:118)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:549)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:318)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:265)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:97)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:122)
at org.eclipse.jetty.util.thread.strategy.ExecutingExecutionStrategy.invoke(ExecutingExecutionStrategy.java:58)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:201)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:133)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590)
at java.lang.Thread.run(Thread.java:745)

@nmvijay
Copy link

nmvijay commented Sep 30, 2016

The jena-sparql-api-core-2.10.0-22.jar contains the org/aksw/jena_sparql_api/cache/extra/CacheEx, but if you update your pom with 2.10.0-22, then you get Caused by: java.lang.ClassNotFoundException: org.aksw.jena_sparql_api.cache.extra.CacheFrontend, which is there in 2.13.0-5

So this is chicken and egg problem

@KonradHoeffner
Copy link
Contributor

I got a different error, namely that the artifacts jena-arq and com.googlecode.concurrentlinkedhashmap were not found, which I fixed by increasing jena-arq version to 2.13.0 and com.googlecode.concurrentlinkedhashmap to 1.4.2. Can you try again after git pull?

@CarlHoo
Copy link

CarlHoo commented Mar 18, 2017

The issue still open?!
@nmvijay I just import the jena-sparql-api-core-2.10.0-22.jar into my project directly, not update the pom, then set the order lower than maven lib, get both chicken and egg!

@chuanwise
Copy link

The issue still open?! @nmvijay I just import the jena-sparql-api-core-2.10.0-22.jar into my project directly, not update the pom, then set the order lower than maven lib, get both chicken and egg!

I met the same problem, what's 'import the jena-sparql-api-core-2.10.0-22.jar into my project directly'? I tried to import it to a idea project and it still error

@KonradHoeffner
Copy link
Contributor

This repository should probably be archived as it hasn't been maintained for a long time but I don't currently have the rights to do that.
@chuanwise: Can you tell us about your use case for using AutoSPARQL? If it is critical for you maybe someone can find some time to investigate.
@JensLehmann @GezimSejdiu @mohnish-rygbee I recommend archiving, can you chime in whether you agree and if necessary make the change?

@chuanwise
Copy link

This repository should probably be archived as it hasn't been maintained for a long time but I don't currently have the rights to do that. @chuanwise: Can you tell us about your use case for using AutoSPARQL? If it is critical for you maybe someone can find some time to investigate. @JensLehmann @GezimSejdiu @mohnish-rygbee I recommend archiving, can you chime in whether you agree and if necessary make the change?

I cloned the repo and tried to run mvn jetty:run but it doesn't work. With the help of this issue, I downloaded jena-sparql-api-core-2.10.0-22.jar and tried to import it by adding system-scoped dependency to pom.xml or adding it to library setting in jetbrains idea project structure, but it still error.

I didn't input anything because AutoSPARQL hadn't launched successfully.

@KonradHoeffner
Copy link
Contributor

I mean, can you please explain why you need to use a more than 10 year old tool in 2023 that hasn't been maintained in many years especially in such an area of rapid progress.
If you tell us about your use case, we may be able to suggest an alternative tool that is more up to date, or if it is indeed a use case where another existing tool does not suffice we may allocate resources to fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants