Skip to content

Instantly share code, notes, and snippets.

View manstis's full-sized avatar

Michael Anstis manstis

  • Red Hat
  • England
View GitHub Profile
@Override
public void acquireLock() {
if ( lockTarget == null ) {
return;
}
if ( isLockedByCurrentUser() ) {
fireChangeTitleEvent();
return;
}
13:45:25,761 ERROR [org.dashbuilder.exception.ExceptionManager] (http-127.0.0.1:8080-3) Error parsing data set JSON definition: 13d4fe13-6198-4e4e-a557-87348532a202.dset: java.lang.Exception: Error parsing data set JSON definition: 13d4fe13-6198-4e4e-a557-87348532a202.dset
at org.dashbuilder.dataset.DataSetDefRegistryCDI.loadDataSetDef(DataSetDefRegistryCDI.java:273) [dashbuilder-dataset-cdi-0.5.0-SNAPSHOT.jar:0.5.0-SNAPSHOT]
at org.dashbuilder.dataset.DataSetDefRegistryCDI$Proxy$_$$_WeldClientProxy.loadDataSetDef(DataSetDefRegistryCDI$Proxy$_$$_WeldClientProxy.java) [dashbuilder-dataset-cdi-0.5.0-SNAPSHOT.jar:0.5.0-SNAPSHOT]
at org.dashbuilder.dataset.service.DataSetDefVfsServicesImpl.get(DataSetDefVfsServicesImpl.java:66) [dashbuilder-services-0.5.0-SNAPSHOT.jar:0.5.0-SNAPSHOT]
at org.dashbuilder.dataset.service.DataSetDefVfsServicesImpl$Proxy$_$$_WeldClientProxy.get(DataSetDefVfsServicesImpl$Proxy$_$$_WeldClientProxy.java) [dashbuilder-services-0.5.0-SNAPSHOT.jar:0.5.0-SNAPSHOT]
at sun.reflect.NativeM
@Inject
private Caller<VFSService> vfsServices;
private Path path = null;
private final static String FILE_URI = "default://uftasks/tasks.json";
public void save() {
String content = "blah blah";
if (path==null) {
vfsServices.call(new RemoteCallback<Path>() {
@Override
<profile>
<id>standard-extra-repos</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>jboss-origin-repository-group</id>
<name>JBoss.org Public Repository Group</name>
<url>https://origin-repository.jboss.org/nexus/content/groups/ea/</url>
first save
----------
<?xml version="1.0" encoding="UTF-8"?>
<metadata modelVersion="1.1.0">
<groupId>mortgages</groupId>
<artifactId>mortgages</artifactId>
<version>0.0.1-SNAPSHOT</version>
<versioning>
<snapshot>
<timestamp>20160330.132722</timestamp>
@manstis
manstis / gist:e0409931824669e54cc7
Created March 23, 2016 11:11
Asset Management processes - kie-drools-wb 7.0.0-SNAPSHOT on EAP6.4 JDK1.8.0_72
11:09:50,066 INFO [org.jbpm.console.ng.asset.backend.server.AssetMgmtDeploymentUnitProvider] (MSC service thread 1-8) Found guvnor asset management deployment unit org.guvnor:guvnor-asset-mgmt-project:7.0.0-SNAPSHOT [strategy=SINGLETON] attempting to deploy it
11:09:50,091 WARN [org.eclipse.aether.internal.impl.DefaultUpdatePolicyAnalyzer] (MSC service thread 1-8) Unknown repository update policy '', assuming 'never'
11:09:50,092 WARN [org.eclipse.aether.internal.impl.DefaultUpdatePolicyAnalyzer] (MSC service thread 1-8) Unknown repository update policy '', assuming 'never'
11:09:51,366 ERROR [stderr] (MSC service thread 1-8) ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider com.sun.script.javascript.RhinoScriptEngineFactory not found
11:09:52,594 ERROR [org.drools.compiler.kie.builder.impl.AbstractKieModule] (MSC service thread 1-8) Unable to build KieBaseModel:defaultKieBase
Process Compilation error : Process org.jbpm.BuildProject(guvnor-asset-management.BuildProject)
org
package org.jboss.errai.ui.client.local.spi;
import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.ClientBundle.Source;
import com.google.gwt.resources.client.TextResource;
import org.jboss.errai.ui.shared.MessageBundle;
public class TranslationServiceImpl extends TranslationService { public interface org_kie_workbench_common_screens_examples_client_resources_i18n_ExamplesScreenConstants_properties extends MessageBundle, ClientBundle { @Source("org/kie/workbench/common/screens/examples/client/resources/i18n/ExamplesScreenConstants.properties") public TextResource getContents(); }
public TranslationServiceImpl() {
[INFO] --- gwt-maven-plugin:2.8.0-beta1:compile (gwt-compile) @ drools-wb-webapp ---
[INFO] Compiling module org.drools.workbench.DroolsWorkbench
[INFO] Computing all possible rebind results for 'org.jboss.errai.marshalling.client.api.MarshallerFactory'
[INFO] Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory
[INFO] Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator
[INFO] Generating Marshallers Bootstrapper...
[INFO] Checking ErraiApp.properties for configured types ...
[INFO] 2016-03-01 20:19:55,564 [pool-5-thread-6] ERROR could not create Vfs.Dir from url. ignoring the exception and continuing
[INFO] org.jboss.errai.reflections.ReflectionsException: could not create Dir using org.jboss.errai.reflections.vfs.Vfs$DefaultUrlTypes$2 from url file:/home/manstis/workspaces/git/manstis/forks/drools-wb/drools-wb-webapp/file:/home/manstis/.m2/repository/org/kie/workbench/screens/kie-wb-common-examples-screen-client/7.0.0-SNAPSHOT/kie
private LockInfo retrieveLockInfo( org.uberfire.backend.vfs.Path path ) {
final org.uberfire.java.nio.file.Path lockPath = Paths.convert( PathFactory.newLock( path ) );
synchronized ( lockPath ) {
if ( !configIOService.exists( lockPath ) ) {
return new LockInfo( false,
"",
path );
}
final String lockedBy = configIOService.readAllString( lockPath );
@manstis
manstis / gist:538d005bd5d601ba1e99
Created February 16, 2016 11:56
kie-wb-7.0.0-SNAPSHOT
11:53:08,748 ERROR [org.drools.compiler.kie.builder.impl.AbstractKieModule] (MSC service thread 1-14) Unable to build KieBaseModel:defaultKieBase
Process Compilation error : Process org.jbpm.BuildProject(guvnor-asset-management.BuildProject)
org/jbpm/Process_org$u46$jbpm$u46$BuildProject529190251.java (15:789) : Type mismatch: cannot convert from boolean to Object
org/jbpm/Process_org$u46$jbpm$u46$BuildProject529190251.java (21:1065) : Type mismatch: cannot convert from boolean to Object
org/jbpm/Process_org$u46$jbpm$u46$BuildProject529190251.java (33:1713) : Type mismatch: cannot convert from boolean to Object
org/jbpm/Process_org$u46$jbpm$u46$BuildProject529190251.java (39:2010) : The operator && is undefined for the argument type(s) boolean, Boolean
org/jbpm/Process_org$u46$jbpm$u46$BuildProject529190251.java (45:2317) : Type mismatch: cannot convert from boolean to Object
org/jbpm/Process_org$u46$jbpm$u46$BuildProject529190251.java (63:3086) : Type mismatch: cannot convert from boolean to Object
or