Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Lyo » Error when running stock quote example
Error when running stock quote example [message #1755157] Tue, 28 February 2017 14:38 Go to next message
Mohammad Noorani Bakerally is currently offline Mohammad Noorani BakerallyFriend
Messages: 5
Registered: February 2017
Junior Member
When running the Stock Quote Example, I am getting the following error,

WARNING: System property 'org.eclipse.lyo.oslc4j.client.registryuri' not set. Using calculated value 'http://fayol-bakerally:8080/OSLC4JRegistry/catalog/singleton'
Feb 28, 2017 3:38:17 PM org.eclipse.lyo.oslc4j.client.ServiceProviderRegistryURIs <clinit>
WARNING: System property 'org.eclipse.lyo.oslc4j.client.uiuri' not set. Using calculated value 'http://fayol-bakerally:8080/OSLC4JUI'
Feb 28, 2017 3:38:18 PM org.eclipse.lyo.oslc4j.stockquote.servlet.ServletListener$RegistrationTask run
SEVERE: Unable to register with service provider catalog
org.eclipse.lyo.oslc4j.core.exception.OslcCoreRegistrationException: OSLC013: Error registering Service Provider OSLC Stock Quote Service Provider. Returned error code is: 404; error message is: ServiceProviderCatalog
at org.eclipse.lyo.oslc4j.client.ServiceProviderRegistryClient.registerServiceProvider(ServiceProviderRegistryClient.java:110)
at org.eclipse.lyo.oslc4j.stockquote.servlet.ServletListener$RegistrationTask.run(ServletListener.java:151)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)


Any Help ?
Re: Error when running stock quote example [message #1755179 is a reply to message #1755157] Tue, 28 February 2017 17:35 Go to previous messageGo to next message
Andrii BerezovskyiFriend
Messages: 24
Registered: May 2016
Junior Member
Hello Mohammad,

Thank you for trying Lyo. I just tried to run the sample and hit the same error. Here is what I found:

* pom.xml indicated that it depends on the WAR file from org.eclipse.lyo.oslc4j.registry. It means you need to run "mvn clean package" in the org.eclipse.lyo.oslc4j.registry directory first.
* org.eclipse.lyo.oslc4j.stockquote app depends on org.eclipse.lyo.oslc4j.stockquote.common so you need to run "mvn clean install" in org.eclipse.lyo.oslc4j.stockquote.common as well.
* you need to run "mvn clean jetty:run-exploded" inside org.eclipse.lyo.oslc4j.stockquote as opposed to "mvn clean jetty:run"

The issues I found with the application are filed under https://bugs.eclipse.org/bugs/show_bug.cgi?id=512831.

May I ask you why did you start with this application? I recommend you to use apps in lyo.docs repository and go through the tutorials on the wiki: https://wiki.eclipse.org/Lyo#Tutorials_and_Documentation

-- Andrew


Best regards,
Andrew
Eclipse Lyo project lead & OSLC Core TC voting member

[Updated on: Thu, 02 March 2017 21:01]

Report message to a moderator

Re: Error when running stock quote example [message #1755182 is a reply to message #1755179] Tue, 28 February 2017 17:44 Go to previous messageGo to next message
Mohammad Noorani Bakerally is currently offline Mohammad Noorani BakerallyFriend
Messages: 5
Registered: February 2017
Junior Member
Hello Andrii,

the pleasure is mine, from a first perspective, I find Eclipse Lyo a nice tool for LDP, I'm current a PhD Student and we are looking for such a framework for a kinda big implementation which is going to host quite lots of data, so i'm kinda having a look at LDP Implementations which support at least all types of containers,

thank you for the hints about the error, i'll try to use the hints and see if the problem continues, thanks for the links for the documentation and tutorials

Noor
Re: Error when running stock quote example [message #1755188 is a reply to message #1755182] Tue, 28 February 2017 19:09 Go to previous messageGo to next message
Mohammad Noorani Bakerally is currently offline Mohammad Noorani BakerallyFriend
Messages: 5
Registered: February 2017
Junior Member
ok great, it works Wink
Re: Error when running stock quote example [message #1755280 is a reply to message #1755182] Wed, 01 March 2017 22:58 Go to previous messageGo to next message
Andrii BerezovskyiFriend
Messages: 24
Registered: May 2016
Junior Member
Hi Mohammad,

I am glad you like it. I would like to point out that we do not have LDP support for the whole OSLC 3 spec. LDP is used in TRS but otherwise not much support is in the framework. There is a repo with the early attempt to estimate the implementation effort (http://git.eclipse.org/c/lyo/org.eclipse.lyo.ldp.git) but the repository has not been maintained.

There is an LDP4j library, but its integration may prove nontrivial.

We will be glad, however, if you'll be interested in adding LDP support to Lyo beyond TRS.

If you are interested, feel free to open a bug on Bugzilla and we can look at different options. Right now we think that is may prove sufficient to copy the LDP implementation done for TRS across the rest of the framework (but it won't give us full LDP support of all types of containers and non-must features).

-- Andrew


Best regards,
Andrew
Eclipse Lyo project lead & OSLC Core TC voting member
Re: Error when running stock quote example [message #1755317 is a reply to message #1755280] Thu, 02 March 2017 10:24 Go to previous messageGo to next message
Mohammad Noorani Bakerally is currently offline Mohammad Noorani BakerallyFriend
Messages: 5
Registered: February 2017
Junior Member
I have not well understood your reply, some questions:

1. Take a simple case, suppose I have an RDF dataset, will I be able to use it and build an LDP using Eclipse Lyo
2. Do you have experience using LDP4j, I do not find documentation on how to use it, if you have any, can you post it,

thanks
Noor
Re: Error when running stock quote example [message #1755398 is a reply to message #1755317] Thu, 02 March 2017 21:00 Go to previous messageGo to next message
Andrii BerezovskyiFriend
Messages: 24
Registered: May 2016
Junior Member
Hi Noor,

1. First, LDP is a very recent standard (as for a standard). I hope we are talking about the same thing: https://www.w3.org/TR/ldp-primer/. Eclipse Lyo does not yet support LDP. Current Eclipse Lyo provides support OSLC 2. OSLC 2 is not built on top of LDP, but was created to solve similar problems when LDP did not yet exist. OSLC 3 is a work in progress and builds on top of LDP. We are evaluating possible ways to bring OSLC 3 support in Lyo.
2. I just did a brief tutorial (http://www.ldp4j.org/tutorials/eswc2015/) on LDP4j (http://www.ldp4j.org/#/).

If you already have a perfectly well-formed native RDF dataset and you just want to put its resources into LDP containers, you might want to use http://marmotta.apache.org/. Lyo, however, provides you with support for bringing (in a typical case) non-RDF data (our common use-case is a set of ALM/PLM tools) into linked RDF datasets available over REST. For more details take a look at https://www.youtube.com/watch?v=qQRZtd4EC7E&t=342s

-- Andrew


Best regards,
Andrew
Eclipse Lyo project lead & OSLC Core TC voting member

[Updated on: Thu, 02 March 2017 21:01]

Report message to a moderator

Re: Error when running stock quote example [message #1756090 is a reply to message #1755398] Fri, 10 March 2017 19:49 Go to previous message
Mohammad Noorani Bakerally is currently offline Mohammad Noorani BakerallyFriend
Messages: 5
Registered: February 2017
Junior Member
I don't understand, you say Eclipse Lyo don't support LDP and on the implementation report of W3C for Eclipse Lyo says that it support LDP, here is the link https://dvcs.w3.org/hg/ldpwg/raw-file/default/tests/reports/ldp.html#test-subjects
Previous Topic:Snapshot artefacts of 2.1.2 are now available!
Next Topic:OslcClient hangs while updating ChangeRequest
Goto Forum:
  


Current Time: Tue Apr 16 11:41:01 GMT 2024

Powered by FUDForum. Page generated in 0.31559 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top