Archi Forum

Archi => General Archi Discussion => Topic started by: prgee on November 17, 2015, 18:22:37 PM

Title: Cheat Sheet Development
Post by: prgee on November 17, 2015, 18:22:37 PM
Hi,

I have been looking at the "cheat sheets" that are included with Archi and wonder if there is some way to develop additional ones.

Thanks and Regards,
Peter
Title: Re: Cheat Sheet Development
Post by: Phil Beauvoir on November 17, 2015, 18:40:48 PM
Hi Peter,

I always hoped someone would say this. :-) The two cheat sheets that ship with Archi were only really meant to be proof of concept.

The code is in the com.archimatetool.help package. A cheat sheet requires a combination of declaring a cheatsheet extension in the MANIFEST.MF file, an XML file and some code.

See http://blog.architexa.com/2010/12/eclipse-cheat-sheets-a-hands-on-tutorial/

Phil
Title: Re: Cheat Sheet Development
Post by: prgee on November 17, 2015, 20:18:33 PM
Thanks Phil!  I'll check out the tutorial.

Peter
Title: Re: Cheat Sheet Development
Post by: Phil Beauvoir on November 17, 2015, 20:19:11 PM
Peter, check out how it's done in the Archi code.
Title: Re: Cheat Sheet Development
Post by: prgee on November 20, 2015, 16:17:20 PM
Hi Phil,

I just tried to import the Archi code to Eclipse and received the attached error message. I was able to import it successfully when I set up my Eclipse environment a few months ago but wanted to re-import the current version of Archi. I can still access https://github.com/archimatetool/archi.git (https://github.com/archimatetool/archi.git) thru my browser. Has anything changed on GITHUB that may affect this??

Thanks,
Peter
Title: Re: Cheat Sheet Development
Post by: Phil Beauvoir on November 20, 2015, 18:07:36 PM
Hi,

https://github.com/archimatetool/archi.git looks OK to me.

What's the error log say? Perhaps a bad connection?

Phil
Title: Re: Cheat Sheet Development
Post by: prgee on November 20, 2015, 18:44:30 PM
Here is the error log - seems to be an SSL problem??

Peter

eclipse.buildId=4.4.2.M20150204-1700
java.version=1.8.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.standard.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.standard.product

org.eclipse.egit.ui
Error
Fri Nov 20 14:37:20 AST 2015
https://github.com/archimatetool/archi.git: cannot open git-upload-pack

org.eclipse.jgit.api.errors.TransportException: https://github.com/archimatetool/archi.git: cannot open git-upload-pack
   at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:196)
   at org.eclipse.egit.core.op.ListRemoteOperation.run(ListRemoteOperation.java:99)
   at org.eclipse.egit.ui.internal.clone.SourceBranchPage$8.run(SourceBranchPage.java:324)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/archimatetool/archi.git: cannot open git-upload-pack
   at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:521)
   at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:309)
   at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:175)
   ... 3 more
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
   at sun.security.ssl.Alerts.getSSLException(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
   at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
   at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
   at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
   at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
   at sun.security.ssl.Handshaker.processLoop(Unknown Source)
   at sun.security.ssl.Handshaker.process_record(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
   at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
   at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
   at java.net.HttpURLConnection.getResponseCode(Unknown Source)
   at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
   at org.eclipse.jgit.transport.http.JDKHttpConnection.getResponseCode(JDKHttpConnection.java:98)
   at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:168)
   at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:475)
   ... 5 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
   at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
   at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
   at sun.security.validator.Validator.validate(Unknown Source)
   at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
   at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
   at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
   ... 22 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
   at sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)
   at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
   at java.security.cert.CertPathBuilder.build(Unknown Source)
   ... 28 more

Title: Re: Cheat Sheet Development
Post by: prgee on November 20, 2015, 20:33:21 PM
I'm not sure what happened but I just re-installed Eclipse 4.4.1and all is well ???
Title: Re: Cheat Sheet Development
Post by: Phil Beauvoir on November 20, 2015, 22:14:25 PM
Good to hear. Might have been a login problem.