1
I Use This!
Inactive

News

Analyzed about 19 hours ago. based on code collected 1 day ago.
Posted over 7 years ago by Ondrej Zizka
Windup 3.0 will be a web application. It can still be used as command line application, but on top of that, you can deploy Windup to a JBoss WildFly (or EAP) and scan your applications from a nice web UI.   Look at Windup Migration Platform and try ... [More] migrating your application to the newest Java EE.   From the developers perspective, the frontend stack is Angular 2, TypeScript, ReactJS, Keycloak for security, and few other libraries. It's a bit pain for me to learn the new paradigm and to leave the very comfortable Java ecosystem, but on the other hand, looks like all the JavaScript-centered craziness is going to stay around for a couple of decades and eventually settle down, so why not embrace it (thinking, "Banzaaaii!!" ) Look at GitHub - windup/windup-web: Windup as a Web Service  if interested in code.   Enjoy! [Less]
Posted over 7 years ago by Ondrej Zizka
Windup 3.0 will be a web application. It can still be used as command line application, but on top of that, you can deploy Windup to a JBoss WildFly (or EAP) and scan your applications from a nice web UI.   Look at Windup Migration Platform and try ... [More] migrating your application to the newest Java EE.   From the developers perspective, the frontend stack is Angular 2, TypeScript, ReactJS, Keycloak for security, and few other libraries. It's a bit pain for me to learn the new paradigm and to leave the very comfortable Java ecosystem, but on the other hand, looks like all the JavaScript-centered craziness is going to stay around for a couple of decades and eventually settle down, so why not embrace it (thinking, "Banzaaaii!!" ) Look at GitHub - windup/windup-web: Windup as a Web Service  if interested in code.   Enjoy! [Less]
Posted almost 8 years ago by Ondrej Zizka
When coding against Titan graph database, you may encounter the exception below. In our case, we are using Tinkerpop Frames, and one frame was using the same value for an edge label as other for a property. @Adjacency(label="project") ... ... [More] @Property("project") ... To fix that, simply use different values. Caused by: java.lang.IllegalArgumentException: Querying for edges but including a property key: project   at com.thinkaurelius.titan.graphdb.query.vertex.BasicVertexCentricQueryBuilder.constructQuery(BasicVertexCentricQueryBuilder.java:428)   at com.thinkaurelius.titan.graphdb.query.vertex.VertexCentricQueryBuilder.execute(VertexCentricQueryBuilder.java:62)   at com.thinkaurelius.titan.graphdb.query.vertex.VertexCentricQueryBuilder.titanEdges(VertexCentricQueryBuilder.java:79)   at com.thinkaurelius.titan.graphdb.query.vertex.VertexCentricQueryBuilder.edges(VertexCentricQueryBuilder.java:98)   at com.thinkaurelius.titan.graphdb.vertices.AbstractVertex.getEdges(AbstractVertex.java:184)   at com.tinkerpop.blueprints.util.wrappers.event.EventVertex.getEdges(EventVertex.java:21)   at com.tinkerpop.frames.annotations.AdjacencyAnnotationHandler.removeEdges(AdjacencyAnnotationHandler.java:100)   at com.tinkerpop.frames.annotations.AdjacencyAnnotationHandler.processVertex(AdjacencyAnnotationHandler.java:67)   at com.tinkerpop.frames.annotations.AdjacencyAnnotationHandler.processElement(AdjacencyAnnotationHandler.java:26)   at com.tinkerpop.frames.annotations.AdjacencyAnnotationHandler.processElement(AdjacencyAnnotationHandler.java:15)   at com.tinkerpop.frames.FramedElement.invoke(FramedElement.java:140)   at com.sun.proxy.$Proxy111.setProject(Unknown Source) [Less]
Posted almost 8 years ago by Ondrej Zizka
Windup has another version out - 2.7.0.Final. Download at the Windup website. What's new? The main addition is the rules for EAP 5 to EAP 7 rules. Use the --target eap:7 parameter to use them. Thanks Marek for all the hard work and all who ... [More] contributed the knowledge.   Enjoy!   PS: There's one little, tiny, bug which was not found until a live demo, so if you hit that, please wait for next release or fix with the jar in the attachment. [Less]
Posted almost 8 years ago by Ondrej Zizka
Windup has another version out - 2.7.0.Final. Download at the Windup website. What's new? The main addition is the rules for EAP 5 to EAP 7 rules. Use the --target eap:7 parameter to use them. Thanks Marek for all the hard work and all who ... [More] contributed the knowledge.   Enjoy!   PS: There's one little, tiny, bug which was not found until a live demo, so if you hit that, please wait for next release or fix with the jar in the attachment. [Less]
Posted almost 8 years ago by Ondrej Zizka /people/ozizka [email protected]
Posted almost 8 years ago by Ondrej Zizka
On Friday, Windup 2.6.0.Final was released. Download at the Windup website.   There are 2 particular things to highlight:   Mavenization. Windup 2.6 can create a basic Maven project structure for your application. When you execute Windup with the ... [More] --mavenize flag, Windup analyzes the structure of your application and creates POM files with the appropriate dependencies for each of your application modules.   Shared archives If a big application contains same libraries or modules multiple times appear in multiple places in your input applications, and adjusts incident counts and effort estimates to avoid double-counting. If you analyze multiple applications together, Windup bundles information about the shared archives to present you with information on the common libraries shared across your applications.   Besides that, like always - performance improvement, bug fixes, design improvements, additional rules & rules fixes.   Enjoy! [Less]
Posted almost 8 years ago by Ondrej Zizka
On Friday, Windup 2.6.0.Final was released. Download at the Windup website.   There are 2 particular things to highlight:   Mavenization. Windup 2.6 can create a basic Maven project structure for your application. When you execute Windup with the ... [More] --mavenize flag, Windup analyzes the structure of your application and creates POM files with the appropriate dependencies for each of your application modules.   Shared archives If a big application contains same libraries or modules multiple times appear in multiple places in your input applications, and adjusts incident counts and effort estimates to avoid double-counting. If you analyze multiple applications together, Windup bundles information about the shared archives to present you with information on the common libraries shared across your applications.   Besides that, like always - performance improvement, bug fixes, design improvements, additional rules & rules fixes.   Enjoy! [Less]
Posted almost 8 years ago by Ondrej Zizka /people/ozizka [email protected]
Posted almost 8 years ago by Ondrej Zizka
When you validate a XML file, and this has a XSD URL for some namespace, and this XSD URL redirects to another URL, then the default EntityResolver2 takes that as a failure. Jess noticed (and fixed) this when debugging WINDUP-997.   So for instance ... [More] , this XML was not valid, because some of the URLs (perhaps in the linked XSD's) is behind a redirect:              So here's a fixed implementation. It follows only a single redirect, but change the if to a for and it will follow more (don't forget to prevent infinite loop).   package org.jboss.windup.rules.apps.xml.xml; import java.io.IOException; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLConnection; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import org.xml.sax.ext.EntityResolver2; /** * This is an {@link EntityResolver2} that has been enhanced to support URL redirection. * * @author Jesse Sightler */ public class EnhancedEntityResolver2 implements EntityResolver2 {   @Override   public InputSource getExternalSubset(String name, String baseURI) throws SAXException, IOException   {   return null;   }   @Override   public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException   {   return resolveEntity(null, publicId, null, systemId);   }   @Override   public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws SAXException, IOException   {   URL url = baseURI != null ? new URL(new URL(baseURI), systemId) : new URL(systemId);   URLConnection connection = url.openConnection();   // Not a HTTP connection... skip redirection logic   if (!(connection instanceof HttpURLConnection))   return new InputSource(connection.getInputStream());   HttpURLConnection httpConnection = (HttpURLConnection)connection;   int status = httpConnection.getResponseCode();   if ((status != HttpURLConnection.HTTP_OK) &&   (status == HttpURLConnection.HTTP_MOVED_TEMP   || status == HttpURLConnection.HTTP_MOVED_PERM   || status == HttpURLConnection.HTTP_SEE_OTHER))   {   String newUrl = httpConnection.getHeaderField("Location");   httpConnection = (HttpURLConnection) new URL(newUrl).openConnection();   }   InputSource inputSource = new InputSource(httpConnection.getInputStream());   inputSource.setSystemId(url.toString());   inputSource.setPublicId(publicId);   return inputSource;   } } [Less]