Error when install ZK Studio on Eclipse Kepler - eclipse

I've install eclipse kepler Java Developer EE and install ZK Studio throung Market place. But Errors Appear :
An error occurred while collecting items to be installed session
context was
:(profile=epp.package.jee, phase=org. eclipse. equinox. internal. p2.
engine.phases.Collect, operand=, action=). Unable to read repository
at studio. zkoss
.org/resource/plugins/eclipse42/plugins/org.zkoss.eclipse.editor2.0.1.v201312091448.jar.
Premature end of Content-Length delimited message body (expected:
5833581; received: 5816781 Unable to read repository at
http://studio.zkoss.org/resource/plugins/eclipse42/plugins/org.zkoss.eclipse.pack2.0.1.v201312091448.jar.
Premature end of Content-Length delimited message body (expected:
7912681; received: 7874881 Unable to read repository at
http://studio.zkoss.org/resource/plugins/eclipse42/plugins/org.zkoss.eclipse.setting2.0.1.v201312091448.jar.
Premature end of Content-Length delimited message body (expected:
779524; received: 778124 Unable to read repository at
http://studio.zkoss.org/resource/plugins/eclipse42/plugins/org.zkoss.eclipse.zks2.0.1.v201312091448.jar.
Premature end of Content-Length delimited message body (expected:
2501827; received: 2496227
What should I do to solve this problem and continue install ZK Studio?

I've solved the problem. I check my firewall it turn out the firewall is enabled. so I disabled the firewall and continue install zk.
Thanks,
Dian

Related

Nuget Package Manager: "...is not a valid JSON object"

I setup a Nexus repo recently. I see the expected result if I type the URL into a browser:
I've successfully added this nuget server as a source to my VS2022 package manager on one machine. On my other machine, however (also with VS2022 installed), I get an error when trying to browse this repo in the package manager:
Error [sourcename] Unable to load the service index for source [url].
The content at '[url]' is not a valid JSON object.
Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
It looks like the package manager is expecting JSON, but the nuget server is sending XML. How can I fix this?
On Windows in configuration AppData/Roaming/Nuget/Nuget.config remove protocol version or change to 2 for your feed. Probably you have protocolVersion="3".

GNS3 Error while deleting project Internal server error

Error while deleting project: Internal server error http://localhost:3080/v2/compute/projects/b43390b8-f92a-41b6-ad82-1ab7e907f8db/cloud/nodes
I did a few time repeately delete and install GNS3 Although I can't solve this problem ... somebody have the solution or answer ~~~~? ;(

Drools KIE workbench 7: error when saving kmodule.xml file in 'Knowledge Base Settings' page

In drools KIE workbench 7, for a project 'testRemoteKJar', I use 'Knowledge Base Settings:Knowledge bases an sessions' to edit its kmodule.xml, as in below screen shot.
Screen Shot--Knowledge Base Settings.
When I click button 'save' to save kmodule.xml, the console of the KIE workbench print below error message.
08-Jul-2017 19:29:00.161 INFO [Thread-12] org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder.updateResource Incremental build request received for: default://master#repo-demorules/testRemoteKJar/src/main/resources/META-INF/kmodule.xml (updated).
08-Jul-2017 19:29:00.317 INFO [Thread-607] org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder$3.execute Incremental build request being processed: PathImpl{uri='default://master#repo-demorules/testRemoteKJar', fileName='testRemoteKJar', attrs={}} (updated).
08-Jul-2017 19:29:00.325 SEVERE [Thread-13] org.kie.workbench.common.screens.impl.LibraryIndexer.fillIndexBuilder Unable to index default://master#repo-demorules/testRemoteKJar/src/main/resources/META-INF/kmodule.xml: package could not be resolved.
08-Jul-2017 19:29:00.726 SEVERE [Thread-607] org.drools.compiler.kie.builder.impl.AbstractKieModule.buildKnowledgePackages Unable to build KieBase, could not find include: kbase1
And if I download the jar file 'testRemoetKJar' from KIE workbench, the content of the kmodule.xml in that jar is just one line:
<kmodule xmlns="http://www.drools.org/xsd/kmodule" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
The error log contains words 'package could not be resolved', but the project 'testRemoteKJar' does have package 'org_care.crm.testremotekjar' (the package name is used in the screenshot above). So the error log should have other meaning.
How to fix the error? Thanks a lot.

Streamparse wordcount example

I have been wanting to use Apache Storm to stream from Kafka. I am more comfortable with Python, so I decided to use streamparse (https://github.com/Parsely/streamparse). The word count example is the introductory example. I have been trying to get it to work on my local machine. I have the following version of JDK, lein and storm installed:
Leiningen 2.6.1 on Java 1.8.0_73 Java HotSpot(TM) 64-Bit Server VM
I run the following steps after following streamparse:
sparse quick start wordcount
cd wordcount
sparse run
I get the following error:
Retrieving org/apache/storm/storm-core/0.10.1/storm-core-0.10.1.pom from central
Retrieving org/apache/storm/storm/0.10.1/storm-0.10.1.pom from central
Retrieving org/apache/storm/storm-core/0.10.1/storm-core-0.10.1.jar from central
Could not transfer artifact com.parsely:streamparse:pom:0.0.4-SNAPSHOT from/to clojars (https://clojars.org/repo/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Could not transfer artifact clojure-complete:clojure-complete:pom:0.2.4 from/to clojars (https://clojars.org/repo/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
This could be due to a typo in :dependencies or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
My project.clj file reads like this :
(defproject wordcount "0.0.1-SNAPSHOT"
:source-paths ["topologies"]
:resource-paths ["_resources"]
:target-path "_build"
:min-lein-version "2.6.1"
:jvm-opts ["-client"]
:dependencies [[org.apache.storm/storm-core "0.10.1"]
[com.parsely/streamparse "0.0.4-SNAPSHOT"]
]
:jar-exclusions [#"log4j\.properties" #"backtype" #"trident" #"META-INF" #"meta-inf" #"\.yaml"]
:uberjar-exclusions [#"log4j\.properties" #"backtype" #"trident" #"META-INF" #"meta-inf" #"\.yaml"]
)
So, my lein and storm core versions are set correctly. I'm not sure where I am going wrong . Could somebody help me out?
-Thanks
This is because java is not recognizing root certificate authority (CA) SSL certificate of https://clojars.org/repo.
Solution is to add that certificate to java cacerts file so that it got permanently accepted.
Step 1 : Get root certificate of https://clojars.org
Open https://clojars.org in a chrome browser.
locate Lock symbol just besides your address bar and click on it.
view Details
Click on top most certificate on hierarchy and confirm it is tailed with Root CA phrase.
drag and drop that image which you saw written certificate on desktop.
Thats it! you got your root certificate!
Step 2 : Get that certificate added to java cacerts file.
use keytool.exe inside your jre bin folder.
fire following command to place your certificate inside cacerts file
keytool –import –noprompt –trustcacerts –alias ALIASNAME -file
/PATH/TO/YOUR/DESKTOP/CertificateName.cer -keystore
/PATH/TO/YOUR/JDK/jre/lib/security/cacerts -storepass changeit
That is it! you got your problem resolved.
PLEASE NOTE
Do confirm that the jre which is giving you this PKIX error(JRE used by KAFKA) that is where you are performing STEP 2. If you would try with another jre problem would be as it is.
Do use only one jre which is inside JDK it decreases chance to have issues.
If you are using debian or ubuntu you can execute:
$ sudo update-ca-certificates -f

Confirmation was required to visit untrusted URL

Hi Im using eclipse-jee-galileo-win32 for development. I tried to install GWT using eclipse plugin for following link gwt - http://dl.google.com/eclipse/plugin/3.5. But it will displayed following error. How can i solve this problem.
[WARN] Confirmation was required to visit untrusted URL: 'http://gwt.google.com/missing-plugin
[WARN] reason: http://gwt.google.com/missing-plugin is not in the whitelist
whitelist:
blacklist:
To fix: add regex matching URL to -whitelist command line argument
Example: -whitelist=" ^http[:][/][/]gwt[.]google[.]com"
Example: -whitelist=" ^http[:][/][/]gwt[.]google[.]com"
To reject automatically: add regex matching URL to -blacklist command line argument
Example: -blacklist=" ^http[:][/][/]gwt[.]google[.]com"
Example: -blacklist=" ^http[:][/][/]gwt[.]google[.]com"
Unknown module requested 'missingplugin'; all active GWT modules must be specified in the command line arguments
This is caused due to your browser not having the necessary plugin to talk to GWT/Eclipse. Visit that page (http://gwt.google.com/missing-plugin) in your browser, install the plugin, restart the browser, retry the (local?) GWT page.