Internal form mapping is undefined for "task1" - bonita

I'm trying to build a simple process,
I've created the process, a form for the the pool and the human task:
"clicked on the pool -> application -> PageFlow -> Add" and
"clicked on the human Task -> application -> PageFlow -> Add"
But I'm facing this error:
Internal form mapping is undefined for Étape1.
org.bonitasoft.studio.designer.core.bar.FormMappingBarResourceProvider.isValid(FormMappingBarResourceProvider.java:147)
org.bonitasoft.studio.designer.core.bar.FormMappingBarResourceProvider.addFormMapping(FormMappingBarResourceProvider.java:83)
org.bonitasoft.studio.designer.core.bar.FormMappingBarResourceProvider.newFormMappingModel(FormMappingBarResourceProvider.java:76)
org.bonitasoft.studio.designer.core.bar.FormMappingBarResourceProvider.addResourcesForConfiguration(FormMappingBarResourceProvider.java:68)
org.bonitasoft.studio.engine.export.BarExporter.createBusinessArchive(BarExporter.java:117)
org.bonitasoft.studio.engine.export.BarExporter.createBusinessArchive(BarExporter.java:91)
org.bonitasoft.studio.engine.export.BarExporter.createBusinessArchive(BarExporter.java:165)
org.bonitasoft.studio.engine.operation.ExportBarOperation.exportBar(ExportBarOperation.java:118)
org.bonitasoft.studio.engine.operation.ExportBarOperation.run(ExportBarOperation.java:106)
org.bonitasoft.studio.engine.ui.wizard.ExportBarWizardPage$7.run(ExportBarWizardPage.java:405)
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

Related

I need to build Chromium after I include some dependencies

I am simply building Chromium windows. It builds perfectly and works in every configuration I try. When I modify the source code, to include, in select_file_picker_win.cpp
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#include "content/public/browser/navigation_controller.h"
doesn't work.
The problem is that it can't link to the object generated.
Unresolved symbol browser.create
I tried different linkers, different compilers, different gn gen configurations, and same.
Where do I need to tell gn or ninja about this, to add this object when linking this file?
Something changes when i modify the ninja file inside the out folder, related to selectfile.. the error becomes a cyclic redundancy problem, and the file gets overwritten anyway so i know it is not the right solution.
lld-link: ←[0;31merror: ←[0mundefined symbol: public: __cdecl
Browser::CreateParams::CreateParams(enum Browser::Type, class Profile
*, bool)
Edit:
I modified BUILD.gn to add this:
deps = [
"//base",
"//base:i18n",
"//build:chromeos_buildflags",
"//skia",
"//ui/base",
"//ui/strings",
"//url",
"//chrome/browser",
]
allow_circular_includes_from = [
"//chrome/browser",
]
but the BUILD.gn from chrome/browser includes the previous, so I expected a cyclic redundancy. I have it:
ERROR Dependency cycle: //content:content ->
//content/gpu:gpu_sources -> //content/child:child ->
//content/common:common -> //ui/shell_dialogs:shell_dialogs ->
//chrome/browser:browser -> //apps:apps ->
//components/keyed_service/content:content ->
//content/public/browser:browser -> //content:content
FAILED: build.ninja
so I added this:
allow_circular_includes_from = [
"//chrome/browser/devtools",
"//chrome/browser/profiling_host",
"//chrome/browser/ui",
"//chrome/browser/ui/webui/bluetooth_internals",
"//chrome/browser/storage_access_api:permissions",
"//chrome/browser/safe_browsing",
"//chrome/browser/safe_browsing:verdict_cache_manager_factory",
"//chrome/browser/safe_browsing:advanced_protection",
"//chrome/browser/safe_browsing:metrics_collector",
"//ui/shell_dialogs",
[0/1] Regenerating ninja files
ERROR Dependency cycle:
//content:content ->
//content/gpu:gpu_sources ->
//content/child:child ->
//content/common:common ->
//ui/shell_dialogs:shell_dialogs ->
//chrome/browser:browser ->
//apps:apps ->
//components/keyed_service/content:content ->
//content/public/browser:browser ->
//content:content
FAILED: build.ninja
../../buildtools/win/gn.exe --root=../.. -q --ide=vs --regeneration gen .
ninja: error: rebuilding 'build.ninja': subcommand failed
Edit:
https://github.com/skopf/minimal-gn-project
this does not work, complains about gn.exe missing, but gn is both in the path and current dir,
When component build = false,
//content/browser:browser -> //content/common:common ->
//ui/shell_dialogs:shell_dialogs -> //chrome/browser:browser ->
//apps:apps -> //components/keyed_service/content:content ->
//content/public/browser:browser ->
//content/public/browser:browser_sources ->
//content/browser:browser
the dependencies are different, same error.
I tried adding
allow_circular_includes_from = [
"//ui/shell_dialogs",
"//content/common",
]
but does not solve anything, in any of the files.
C:\q\src>gn gen out/q
ERROR Dependency cycle: //content/browser:browser ->
//content/common:common -> //ui/shell_dialogs:shell_dialogs ->
//chrome/browser:browser -> //apps:apps ->
//components/keyed_service/content:content ->
//content/public/browser:browser ->
//content/public/browser:browser_sources ->
//content/browser:browser

Mozilla extension issue developing using AngularJS 1

When using the AngularJS to create mozilla browser extension, when requesting for the service call using $http that time when response come an error encountered.
This is what I was getting when I am requesting using $http :
Error: 'setTimeout' called on an object that does not implement
interface Window.
Browser/self.defer#resource://gre/modules/ExtensionContent.jsm -> moz-extension://cb6087c3-cd93-43d0-b239-0681ece93f36/dotAlign_Project/app/lib/angular/angular.js:6241:17
$RootScopeProvider/this.$get</Scope.prototype.$evalAsync#resource://gre/modules/ExtensionContent.jsm -> moz-extension://cb6087c3-cd93-43d0-b239-0681ece93f36/dotAlign_Project/app/lib/angular/angular.js:17719:11
$QProvider/this.$get</<#resource://gre/modules/ExtensionContent.jsm -> moz-extension://cb6087c3-cd93-43d0-b239-0681ece93f36/dotAlign_Project/app/lib/angular/angular.js:16291:7
scheduleProcessQueue#resource://gre/modules/ExtensionContent.jsm -> moz-extension://cb6087c3-cd93-43d0-b239-0681ece93f36/dotAlign_Project/app/lib/angular/angular.js:16399:5
qFactory/<.$$resolve#resource://gre/modules/ExtensionContent.jsm -> moz-extension://cb6087c3-cd93-43d0-b239-0681ece93f36/dotAlign_Project/app/lib/angular/angular.js:16432:11
qFactory/<.resolve#resource://gre/modules/ExtensionContent.jsm -> moz-extension://cb6087c3-cd93-43d0-b239-0681ece93f36/dotAlign_Project/app/lib/angular/angular.js:16415:9
simpleBind/<#resource://gre/modules/ExtensionContent.jsm -> moz-extension://cb6087c3-cd93-43d0-b239-0681ece93f36/dotAlign_Project/app/lib/angular/angular.js:16368:7
resolvePromise#resource://gre/modules/ExtensionContent.jsm -> moz-extension://cb6087c3-cd93-43d0-b239-0681ece93f36/dotAlign_Project/app/lib/angular/angular.js:11843:10
resolveHttpPromise#resource://gre/modules/ExtensionContent.jsm -> moz-extension://cb6087c3-cd93-43d0-b239-0681ece93f36/dotAlign_Project/app/lib/angular/angular.js:11824:11
done#resource://gre/modules/ExtensionContent.jsm -> moz-extension://cb6087c3-cd93-43d0-b239-0681ece93f36/dotAlign_Project/app/lib/angular/angular.js:11830:11
completeRequest#resource://gre/modules/ExtensionContent.jsm -> moz-extension://cb6087c3-cd93-43d0-b239-0681ece93f36/dotAlign_Project/app/lib/angular/angular.js:12033:7
requestLoaded#resource://gre/modules/ExtensionContent.jsm -> moz-extension://cb6087c3-cd93-43d0-b239-0681ece93f36/dotAlign_Project/app/lib/angular/angular.js:11966:9
I got the reason of the problem,
Due to use 'window' object in the 'Angular Library' this error was coming.
So to solve the issue I replaced 'window' object with '$window'.

Flink : cannot cancel a running job (streaming)

I want to run a streaming job. When I try to run it locally using start-clusted.sh and the Flink Web Interface, I have no problem.
However, I am currently trying to run my job using Flink on YARN
(deployed on Google Dataproc) and when I try to cancel it, the
canceling state lasts forever and a slot remains occupied in the
TaskManager.
Here is the log I got :
2016-10-18 16:56:04,053 INFO org.apache.flink.runtime.taskmanager.Task -
Attempting to cancel task Source: pubSubMessageAcknowledgingSource ->
TrackingDisplayPushDeduplicater -> TrackingDisplayPushDeserializer ->
(Sink: TrackingDisplayPushErrorFlumeSink, Map -> Sink:
TrackingDisplayPushValidFlumeSink) (1/1)
2016-10-18 16:56:04,053 INFO org.apache.flink.runtime.taskmanager.Task -
Source: pubSubMessageAcknowledgingSource ->
TrackingDisplayPushDeduplicater -> TrackingDisplayPushDeserializer ->
(Sink: TrackingDisplayPushErrorFlumeSink, Map -> Sink:
TrackingDisplayPushValidFlumeSink) (1/1) switched to CANCELING
2016-10-18 16:56:04,053 INFO org.apache.flink.runtime.taskmanager.Task -
Triggering cancellation of task code Source:
pubSubMessageAcknowledgingSource -> TrackingDisplayPushDeduplicater ->
TrackingDisplayPushDeserializer -> (Sink:
TrackingDisplayPushErrorFlumeSink, Map -> Sink:
TrackingDisplayPushValidFlumeSink) (1/1) (38bf32d9199a0c9383a8b1e8d73a1f65).
2016-10-18 16:56:34,055 WARN org.apache.flink.runtime.taskmanager.Task -
Task 'Source: pubSubMessageAcknowledgingSource ->
TrackingDisplayPushDeduplicater -> TrackingDisplayPushDeserializer ->
(Sink: TrackingDisplayPushErrorFlumeSink, Map -> Sink:
TrackingDisplayPushValidFlumeSink) (1/1)' did not react to cancelling
signal, but is stuck in method:
java.net.PlainSocketImpl.socketConnect(Native Method)
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
java.net.Socket.connect(Socket.java:589)
java.net.Socket.connect(Socket.java:538)
sun.net.NetworkClient.doConnect(NetworkClient.java:180)
sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
sun.net.www.http.HttpClient.New(HttpClient.java:308)
sun.net.www.http.HttpClient.New(HttpClient.java:326)
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1169)
sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1105)
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)
sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1283)
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1258)
com.accengage.bigdata.flink.streaming.sinks.FlumeSink.flush(FlumeSink.java:107)
com.accengage.bigdata.flink.streaming.sinks.FlumeSink.invoke(FlumeSink.java:80)
com.accengage.bigdata.flink.streaming.sinks.FlumeSink.invoke(FlumeSink.java:25)l
org.apache.flink.streaming.api.operators.StreamSink.processElement(StreamSink.java:39)
org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:373)
org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:358)
org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:346)
org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:329)
org.apache.flink.streaming.api.operators.StreamMap.processElement(StreamMap.java:39)
org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:373)
org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:358)
org.apache.flink.streaming.api.collector.selector.DirectedOutput.collect(DirectedOutput.java:126)
org.apache.flink.streaming.api.collector.selector.DirectedOutput.collect(DirectedOutput.java:35)
org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:346)
org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:329)
org.apache.flink.streaming.api.operators.StreamMap.processElement(StreamMap.java:39)
org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:373)
org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:358)
org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:346)
org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:329)
org.apache.flink.streaming.api.operators.StreamFilter.processElement(StreamFilter.java:38)
org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:373)
org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:358)
org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:346)
org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:329)
org.apache.flink.streaming.api.operators.StreamSource$NonTimestampContext.collect(StreamSource.java:160)
com.accengage.bigdata.flink.streaming.sources.PubSubAcknowledgingSource.run(PubSubAcknowledgingSource.java:148)
org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:80)
org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:53)
org.apache.flink.streaming.runtime.tasks.SourceStreamTask.run(SourceStreamTask.java:56)
org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:266)
org.apache.flink.runtime.taskmanager.Task.run(Task.java:584)
java.lang.Thread.run(Thread.java:745)
Any idea of what I am doing wrong? What could I do?
Thanks.
I assume you are using a custom Sink (com.accengage.bigdata.flink.streaming.sinks.FlumeSink) which uses some HTTP library for communicating with Flume.
Most likely, the HTTP library got struck in a loop or something when the interrupt was send to the thread (this happens for example when Interrupted exceptions are ignored)
To resolve the issue, you can either use a HTTP library which handles interrupts properly or call the library from a different thread, which will not receive the interrupts on the main thread.
In Flink 1.2 there will be some additional mechanism to avoid the system to get struck in the cancel() call. See FLINK-4715.

Unable to run application outside of Visual Studio

Our .Net 4.0 app that runs normally while hosted by VS always crashes while loading (less than 1 second after executing) while not debugging (both debug and release binaries).
The app contains 5 libraries (all of it with .Net 4.0) + NHibernate dependencies.
It does not even fire the UnhandledException event, it just crashes right away with a OutOfMemoryException (I could only see that with the Windows Event Viewer).
Event Viewer tells me that kernelbase.dll had a OutOfMemoryException, and
Fuslogvw.exe tells me that System.Core fails to load:
*** Input Assembly Binder Log (6/27/2016 # 15:41:54) ***
The operation failed.
Result of the Association: hr = 0x8007000e. Insufficient storage space to complete the operation.
Assembly Manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable C:\Users\User\Source\Manager\MySoftware\MySoftware.WPF.App\bin\Release\MySoftware.WPF.App.exe
---Follows a detailed log of errors.
=== Pre-Association state information ===
LOG: DisplayName = System.Core, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089
(Fully-specified)
LOG: Appbase = file:///C:/Users/User/Source/Manager/MySoftware/MySoftware.WPF.App/bin/Release/
LOG: initial PrivatePath = NULL
Logging: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = MySoftware.WPF.App.exe
Calling assembly: MySoftware.WPF. App, Version 1.0.0.0, Culture = neutral, PublicKeyToken = null.
===
LOG: this Association starts at the default load context.
LOG: using application configuration file: C:\Users\User\Source\Manager\MySoftware\MySoftware.WPF.App\bin\Release\MySoftware.WPF.App.exe.Config
LOG: using host configuration file:
LOG: using machine configuration file C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: post policy reference: System.Core, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089
LOG: assembly located by searching on GAC.
ERR: unrecoverable error during pre download verification (hr = 0x8007000e).
I have 4GB of RAM with 60% occupied, so maybe that's not the problem. Can you give me a hint where to look?

bug in aspnet_compiler?

I have a solution with several web projects.
I have built each project into its own folder (there's about 10 projects):
/build/projA
/build/projB
/build/projC
If I call
aspnet_compiler -v / -p \"build/#{proj}\" merged/#{proj}
on each one in turn, everything is fine.
If I make all 10 calls to aspnet_compiler in parallel, I get assembly loading errors, saying the referenced assemblies are in use.
Is this a bug? Why would it be in use? It shouldn't be.
The assemblies that cant be loaded are in multiple projects, but each one has its own copy in its bin folder.
Update: it seems to occur (for some) of the assemblies that are references of references. Those loaded with complete binding information seem to work.
Here's a dump from one of the failed loadings from fuslogvw
The operation failed.
Bind result: hr = 0x80070020. The process cannot access the file because it is being used by another process.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = andrew.bullock
LOG: DisplayName = Yahoo.Yui.Compressor
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: Yahoo.Yui.Compressor | Domain ID: 2
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///E:/build/ProjA/
LOG: Initial PrivatePath = E:\build\ProjA\bin
LOG: Dynamic Base = C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\src_projects_proja\061ad2e7
LOG: Cache Base = C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\src_projects_proja\061ad2e7
LOG: AppName = 627cc9a9
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\build\ProjA\web.config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/src_projects_proja/061ad2e7/627cc9a9/Yahoo.Yui.Compressor.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/src_projects_proja/061ad2e7/627cc9a9/Yahoo.Yui.Compressor/Yahoo.Yui.Compressor.DLL.
LOG: Attempting download of new URL file:///E:/build/ProjA/bin/Yahoo.Yui.Compressor.DLL.
LOG: Assembly download was successful. Attempting setup of file: E:\build\ProjA\bin\Yahoo.Yui.Compressor.dll
LOG: Entering download cache setup phase.
ERR: Error extracting manifest import from file (hr = 0x80070020).
ERR: Setup failed with hr = 0x80070020.
ERR: Failed to complete setup of assembly (hr = 0x80070020). Probing terminated.
If you call the ClientBuildManager directly, outside of aspnet_compiler there doesn't seem to be a problem, no idea why.
var parameter = new ClientBuildManagerParameter
{
PrecompilationFlags = PrecompilationFlags.ForceDebug
};
var client = new ClientBuildManager("/", src, dest, parameter);
client.PrecompileApplication();

Resources