Rexster OrientDB configuration - orientdb

i'm trying to setup Rexster (version 2.5) to work with OrientDB (1.7 rc2). The problem is that i don't know what should i put in the <graph-type> field in the graph configuration. Most recent Rexster documentation (https://github.com/tinkerpop/rexster/wiki/Specific-Graph-Configurations) states that OrientDB support was removed from the package, and therefore one has to copy orientdb-client and orientdb-enterprise jars from OrientDB distribution.
So that's what i did. Then i've setup the <graph> section as follows:
<graph>
<graph-enabled>true</graph-enabled>
<graph-name>test</graph-name>
<graph-type>com.tinkerpop.blueprints.impls.orient.OrientGraphRexsterConfiguration</graph-type>
<graph-location>local:orientdb/databases/test</graph-location>
<extensions>
<allows>
<allow>tp:gremlin</allow>
</allows>
</extensions>
</graph>
I get java.lang.ClassNotFoundException: com.tinkerpop.blueprints.impls.orient.OrientGraphRexsterConfiguration upon Rexster startup.
I've also tried setting up Rexster 2.1, which works just fine when using orientgraph for <graph-type> (as per https://code.google.com/p/orient/wiki/Rexster). This approach fails for 2.5. I feel that i must be missing something obvious. Can someone please point to the solution?
Thanks!

Looks like I didn't get the documentation quite right. The <graph-type> should be:
com.tinkerpop.rexster.OrientGraphConfiguration
You can see the class here:
https://github.com/orientechnologies/orientdb/blob/develop/graphdb/src/main/java/com/tinkerpop/rexster/OrientGraphConfiguration.java
I've corrected the documentation. As the class is still in the develop branch I'm not sure that it has been released yet. I know Luca keeps track of what's going on here in StackOverflow, so perhaps he can offer additional comment on when that will be released. If not you may want to write something to the OrientDB mailing list.

Related

Ballerina Swan Lake an IDEs. How to get sequence diagrams

It's me again!
After getting help with this question here, I managed writing a little microservice in Ballerina. For that I switched to Swan Lake as recommended.
But now I'm having difficulties using IDEs and their plugins. Because all questions related to that are pretty old I'm creating a new post.
I'm writing a paper about Ballerina and cloud native languages and thought it would be cool to show a generated sequence diagram, so I tried setting up a proper project and generating one.
However: The IntelliJ plugin doesn't seem to support Swan Lake yet. I always get an error message that the SDK is invalid. So I switched to VS Code.
Here I have a lot of problems. I can run and build my stuff just fine and I also have syntax highlight, but I don't know how to get a diagram. The documentation tells me to either open it through the project overview or the file overview. But I do not have that. My VS Code Window looks as follows:
If I try to use "Ballerina: Document" it tells me "Current file does not belong to a Ballerina project"
Also notice that the explorer one the left looks completely different compared to the documentation
But how would I set this up correctly? I did everything that the docs tell me to do and I have tried the integrator. Doesn't support Swan Lake yet. And as I said: IntelliJ doesn't work either.
Is it even possible to set this up correctly with Swan Lake at the moment? Am I just to stupid? I have never used VS Code before, so maybe there's a trick?
The sequence diagram view in Ballerina has been removed temporarily in Swan Lake. But this support will be brought back before the GA version. I guess it will be available in the Beta release, which is due in April.
Download the latest Ballerina extension for Visual Studio Code and either navigate to the button showed in num 1 for Ballerina Low-Code or navigate to num 2 to Show Diagram for the diagram view of current ballerina file. Read more from here. Ballerina provides language support through VS Code for Swan Lake but not for IntelliJ yet(Hope Ballerina will provide language support to IntelliJ with Fleet).

How to know which version of CrafterCMS I am using?

Is there a way to know the crafter version from Studio Admin Console/Dashboard?
I am running CrafterCMS 3.0 on my local. But from the content admin's point of view, is there any way to know the exact version/build I am using?
There is a feature being added in support of this. It's under Help > About, but it's not there yet.
You can track progress on the feature here: https://github.com/craftercms/craftercms/issues/813
And here for the UI: https://github.com/craftercms/craftercms/issues/711
You can also try http://localhost:8080/studio/api/1/services/getInfo.json that will give you something like this:
{"version":"3.0.0-SNAPSHOT","id":"33ed8125aa029a8170ed11d9cee62b802f45cd38","uiId":"f5318d804d51eea2501fdf1bc832af4c2ba5e30a","buildDate":"2017-05-09T10:38:21-06:00"}
Note this also work for 2.5.x (since 2.5.6)

Running NavigOwl plugin for Protégé

I'm working on a semantic-web project and I'm looking for real-life ontologies to test a couple of applications an algorithms. What I'm searching for are different sizes and structures, something that will allow me to benchmark the company's solutions, preferably, not home-made mocks, but something that is actually used. Unfortunately, looking at the entire ontology using OntoGraf is a little cumbersome.
I found a Protégé plugin called NavigOwl, which seems to be perfect for the task of viewing an entire ontology at once and judging its general complication and structure. The thing is, I can't get it to work.
I download the plugin from HERE and follow the instructions.
I put the jar in the plugin directory of my Protégé install.
I open protege and load an ontology
I go to Window>Tabs and select NavigOwl
A NavigOwl tab appears but it only contains the class hierarchy view, while the rest of the window is grey. It's simply blank, as shown below:
Clicking any of the classes in the hierarchy view does not change anything.
I googled for a solution and I managed to find this thread on nabble.com. The poster says he fixed the problem but he doesn't know how. Resetting the tab to default state is among the implied solutions but it doesn't work for me. Closing and reopening the tab, as well as Protégé itself changes nothing.
Have you encountered the problem? What could be the cause?
I'm using Protégé 4.1.0 Build 239 with the bundled JRE (1.5.0) on Windows 7 home premium x64.
I've tried both the JAR available here (NavigOwl plugin for Protégé 4.1) and the one mentioned in Protégé wiki at Stanford, here (version 1.1.0) but the situation persists.
I had came across the same problem but when i upgraded the JDK it started working. though i do not propose upgrading was the solution but it is working now.

Java: exception when casting to itself(?)

Im working with Oracle WebLogic, Netbeans 6.9.1.
I have the following lines of code:
Query query=entityManager.createNamedQuery("Items.findById").setParameter("id", Integer.parseInt((String) request.getParameter("id")));
Items it=(Items) query.getSingleResult();
and they throw an exception:
java.lang.ClassCastException: entity.Items cannot be cast to entity.Items
Even if that seem impossible, i saw similar question on SO: here
Author havent published the solution but one of participants made a good asumption about different class loaders.
Meanwhile if i use getResultList and then work with it in JSP, it works fine. But i cant make casting work in servlet code.
How can i fix this in weblogic?
It doesn't solve your problem specifically, but if you're using WebLogic Server 10.3.x or thereabouts, there is a web application provided as part of that distribution that you can use to troubleshooting classloading issues.
You can read more about it here: http://download.oracle.com/docs/cd/E17904_01/web.1111/e13706/classloading.htm#WLPRG495
It should be compatible with earlier versions of WebLogic Server, so you could use that in conjunction with the proposed workarounds to get to a solution.
See this similiar question with a proposed workaround.
This indeed looks like a classloading problem.
This earlier answer of mine explains how to verify this assumption.
Unfortunately, classloading problems are difficult and painful. There is no easy fix, only to try to understand what classloaders are loading what classes in which order, and trying to play around with your classloaders, classes and jars to eliminate the problem. Also, analyse the most recent changes in your app before this error appeared - these can provide the key to understanding the root cause.
I am not familiar with the classloading scheme in WebLogic, so unfortunately I can't give you any more specific advice.

Configure the spark view engine!

I'm looking at launching a new site using the Spark View Engine, I am however having difficulty finding some referance to the set-up of Spark Using VS2010 and MVC2. Can anyone provide a referance to a guide that describes this process?
I've looked at some of the code in the sample but the projects dont convert to VS2010. Before I tear these apart I wonder if there is somthing already out there? I also need to configure Re-Sharper and VS to work with Spark
I have seen - http://sparkviewengine.com/documentation/configuring#AddingtoAspNetMVC
But this it's a pretty basic overview I'm looking for a real world example.
===== Edit
The source provided on DotNetSlackers doesnt run!
Errors with the mismatch of .Net version
"Dynamic view compilation failed.
(0,0): error CS1703: An assembly with
the same identity 'mscorlib,
Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' has
already been imported. Try removing
one of the duplicate references."
If I add the latest DLL's to the DotNetSlackers example I get the following
"Attempted to access an element as a type incompatible with the array."
protected void Application_Start()
{
SparkViewFactory svf = new SparkViewFactory();
PrecompileViews(svf);
**ViewEngines.Engines.Add(svf);**
RegisterRoutes(RouteTable.Routes);
}
On the stared line above.
Your "dynamic view compilation failed" error is because Spark hasn't yet been rebuilt to work with .NET 4.0. Your options at this point are:
1) Target .NET 3.5 instead
2) Wait for a new version of Spark
3) Get the Spark source code and rebuild it yourself against .NET 4.0 - see http://groups.google.com/group/spark-dev/msg/028d0cf129c4b1ff for further info
hmm, there are a whole bunch of introductory screencasts on the website:
http://www.sparkviewengine.com
as well as the reference documentation, which is very helpful:
http://www.sparkviewengine.com/documentation/configuring
are you having a specific problem?
I recently did a screen-cast here. Setting up on MVC2 is in the video at 6min40sec if you want to see how it's done.
http://blog.robertgreyling.com/2010/08/elegant-mvc-with-spark-way-views-were.html
As a side note - The source code has now been moved to VS2010 in the master branch and it will also compile views dynamically to .NET 4.0. avoiding the error you got. You can either download the source and recompile the latest binaries, or for your convenience, we added them to NuPack/NuGet if you'd prefer to reference them that way.
Hope that helps