Upgrading to latest Wakanda Enterprise: decipher error codes? - wakanda

I am trying to move to the latest version of Wakanda Enterprise and my solution, originally created in V10 enterprise, won't even launch. Below are the error codes. I searched for some kind of index to look up the codes but I could not find one.
2016-09-28 13:50:33 [wakanda.PlannerTool2.PlannerTool2.xbox] ERROR - [614] "{newname}" is an invalid name for file {path}., task #1299
2016-09-28 13:50:33 [wakanda.PlannerTool2.PlannerTool2.iasv] ERROR - [1054] Cannot post 'applicationWillStart' message to services, task #1299
2016-09-28 13:50:33 [wakanda.PlannerTool2.PlannerTool2.xbox] ERROR - [650] Directory not found (dirNFErr)., task #1299
I tried this on 2 different machines (both Mac) and am an admin on one of them-- both had the same error codes.
I am trying to upgrade to 11.197492 and the same exact errors happen when I try to launch using 11.196912
My .waProject file:
<?xml version="1.0" encoding="UTF-8"?>
<project>
`<folder path="./Widgets/">`
`<tag name="widgets"/>`
`</folder>`
`<folder path="./Themes/">`
`<tag name="themes"/>`
`</folder>`
`<file path="./Model.waModel">`
`<tag name="catalog"/>`
`</file>`
`<file path="./Settings.waSettings">`
`<tag name="settings"/>`
`</file>`
`<file path="./Permissions.waPerm">`
`<tag name="permissions"/>`
`</file>`
`<file path="./bootstrap.js">`
`<tag name="bootStrap"/>`
`</file>`
</project>

Related

Genexus17 could not reach web server

I am following Udemy tutorials with Genexus 17 trial version.
After I create my first transaction, and click F5 to Execute/Deploy to cloud, it displays the following error:
========== DeveloperMenu Compilation for Default (.NET Framework) started ==========
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" /nologo
/p:Configuration=Release
/p:FrameworkPath="C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319" /v:q
/m "C:\Models\TravelAgency3\CSharpModel\build\LastBuild.sln" Success:
DeveloperMenu Compilation for Default (.NET Framework)
========== Web config update started ========== Updating web config ... Success: Web config update Building file gx_last_transfer.zip...
Uploading 7 Kbytes Deploying website
========== Execution started ========== ... waiting for server ... error: Could not reach web server or something went wrong running your
application at
https://trialapps3.genexus.com/Idf34a868f535909f93e51fbc52ebdb90f/developermenu.html
please try again. Status code: 404 NotFound.. If the problem
persists, follow the steps described in
https://wiki.genexus.com/commwiki/wiki?49557 Failed: Execution Failed:
Run Developer Menu
File developermenu.html is not deployed to cloud when "Short File Name" is not enabled in your Windows installation.
Anyway, the application seems to be well deployed.
There are three solutions:
What this html has is a link to each object of the KB, so what you can do is to include the name of the object to be executed in the URL.
Example: https://trialapps3.genexus.com/Idf34a868f535909f93e51fbc52ebdb90f/customer.aspx
Another possibility is to create a Webpanel main (https://wiki.genexus.com/commwiki/servlet/wiki?7407,Main%20program%20property) that calls the rest of the objects (eg using a button or a link) and execute that main.
Perhaps the easiest is to edit Packages\rundotnet.config file including this line:
*.html

Why do I get "Error: '.', hexadecimal value 0x00, is an invalid character. Line 2, position 1." from xsd utility

I want to be able to scan SSRS report definition (.rdl) files and alter them programmatically. I am following a Microsoft tutorial (albeit a little out-of-date but can't find an up-to-date version).
The tutorial is here: https://learn.microsoft.com/en-us/previous-versions/sql/sql-server-2005/aa337455(v%3dsql.90)
I have downloaded the XML Schema File from the Microsoft website - ReportDefinition.xsd - and am now following the steps 4 to 6 that say to open the Visual Studio Command Prompt and run the utility XSD to generate the ReportDefinition.vb file that contains the classes for the RDL schema.
However, when I run the command as per the instructions:
xsd /c /l:VB /n:SampleRDLSchema ReportDefinition.xsd
... I simply get the error message:
Error: '.', hexadecimal value 0x00, is an invalid character. Line 2, position 1.
This is the first few lines of the file; I can't see the characters 0x00 the error message refers to:
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft. All rights reserved. -->
<xsd:schema targetNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition"
elementFormDefault="qualified">
<xsd:annotation>
<xsd:documentation>
The following schema describes the structure of the
Report Definition Language (RDL) for Microsoft SQL Server 2008 R2.
Given this is a Microsoft written set of instructions to use a Microsoft utility running against a Microsoft supplied file, I'm a bit baffled as to why there should be an error in it.
Can anyone help? Thanks.
The issue being reported at the start of line 2 could indicate that this is an encoding issue. The attribute encoding="utf-8" on the first line indicates that the file should be interpreted as having a a UTF-8 encoding. So after the first line, the xsd utitlity would try to read the file as UTF-8. If the file actually uses a different encoding, then an error would be produced like the one you have encountered.
To test this, remove encoding="utf-8" from the first line & run the command again.
For me, it was another issue. My file contained some includes like :
<xs:include schemaLocation="XMLFILE.xsd"/>
So the error meaning is "it cannot find the XMLFILE.xsd". Make sure you have all related xml files from all includes in all files. You know it when you right clicking on the file in visual studio and do "View Code (F7)". If the include is underlined in red, the file is missing or something in the "XMLFile.xsd" is missing.
Please Microsoft's crew, showing a clear error message can save us a ton of hours of works... Don't you?

segmentation fault when running macdeployqt

In order to run my Qt app on another Mac, I have the following two lines in my .pro file
MACDEPLOY = `echo $$QMAKE_QMAKE | sed 's/qmake/macdeployqt/g'`
QMAKE_POST_LINK = $$MACDEPLOY $$OUT_PWD/$$TARGET\.app -qmldir=$$PWD -verbose=3
This works fine for a simple HelloWorld application.
It used to work fine for my 'real' application as well but now I get the following error (my application works fine on my local Mac without these two lines)
/Users/marc/Qt5.7/5.7/clang_64/bin/macdeployqt /Users/marc/workspaceZ2/build/build-Z2Nexx40-Desktop_Qt_5_7_0_clang_64bit-Release/Z2Nexx40\.app -qmldir=/Users/marc/workspaceZ2/Z2Nexx40 -verbose=3
ERROR: Could not find bundle binary for "/Users/marc/workspaceZ2/build/build-Z2Nexx40-Desktop_Qt_5_7_0_clang_64bit-Release/Z2Nexx40.app"
ERROR: "error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: can't open file: (No such file or directory)\n"
Log: Using otool:
Log: inspecting ""
ERROR: "error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: can't open file: (No such file or directory)\n" make: *** [Z2Nexx40.app/Contents/MacOS/Z2Nexx40]
Segmentation fault: 11 make:
And in the problem report window that pops up I see (not sure whether I picked a relevant part of it though)
Binary Images:
0x10da98000 - 0x10dac4fff +macdeployqt (0) <46011DBB-126C-35A0-942A-ACD79B0BCC45> /Users/USER/*/macdeployqt
0x10dace000 - 0x10df2eff7 +org.qt-project.QtGui (5.7 - 5.7.0) <A41CBDE5-2955-3A57-BAE9-69001B210588> /Users/USER/*/QtGui.framework/Versions/5/QtGui
0x10e081000 - 0x10e595ff7 +org.qt-project.QtCore (5.7 - 5.7.0) <5F2F454C-CEE8-3E59-A3B7-94F51F5B9F96> /Users/USER/*/QtCore.framework/Versions/5/QtCore
0x10e6b2000 - 0x10e6b6fff com.apple.agl (3.3.1 - AGL-3.3.1) <4E401980-0F4F-33E2-A0CF-8C7CCF375F24> /System/Library/Frameworks/AGL.framework/Versions/A/AGL
0x7fff64f70000 - 0x7fff64fa7a47 dyld (360.22) <DC81CC9D-651A-3A45-8809-928282052BD3> /usr/lib/dyld
Any ideas what might be wrong here? I recently upgraded to XCode 8 (and downgraded again to 7.3), upgraded from Qt5.6 to 5.7 but I have no clue on how to proceed.
Tips on what I could try would be most helpful!
Apparently, the reason was an incorrect/incompatible plist file.
I had to add a key to the plist file and hence I had my own plist file in my code tree.
Probably after upgrading XCode, my OS or Qt, this plist file was not compatible anymore.
I removed my own plist file, rebuild, and added my key to the newly generated plist file and everything worked fine as before.

Insert an alert as an Oracle Service Bus customization file

I am creating a customization file for OSB, and I would need to add an alert in this, so whenever it is loaded, the affected resources are modified to include those alerts.
So far I have followed instructions explained in See Example - Adding and Deleting SLA Alert Rules. I have created a customization file with the same structure than the example (actions - add - value), just changing the value for the alert or even using the one shown in the example.
Anyway, when I try to apply this customization file on OSB, I always get the error:
org.apache.xmlbeans.impl.values.XmlAnyTypeImpl cannot be cast to
com.oracle.xmlns.servicebus.monitoring.alert.AlertRuleDocument
My customization file is:
<?xml version="1.0" encoding="UTF-8"?>
<cus:Customizations xmlns:cus="http://www.bea.com/wli/config/customizations" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xt="http://www.bea.com/wli/config/xmltypes" xmlns:aler="http://www.bea.com/wli/monitoring/alert">
<cus:customization xsi:type="cus:EnvValueActionsCustomizationType">
<cus:description>Alertes Generals de ProxyService</cus:description>
<cus:owners>
<xt:ownerQuery>
<xt:resourceTypes>ProxyService</xt:resourceTypes>
<xt:refsToSearch xsi:type="xt:LocationRefType">
<xt:type>Folder</xt:type>
<xt:path>bus_ver/EA</xt:path>
</xt:refsToSearch>
</xt:ownerQuery>
</cus:owners>
<cus:actions>
<xt:add>
<xt:envValueType>Service SLA Alert Rule</xt:envValueType>
<xt:location>AverageResponse</xt:location>
<xt:value>
<aler:alertRule enabled="true" name="prova"> <aler:description>provades</aler:description> <aler:expirationDate>2016-03-31+02:00</aler:expirationDate>
<aler:startTime>00:00:00.000+01:00</aler:startTime>
<aler:endTime>00:05:00.000+01:00</aler:endTime>
<aler:frequency>every-time</aler:frequency>
<aler:severity>normal</aler:severity>
<aler:stopProcessing>false</aler:stopProcessing>
<aler:condition aggregation-interval="10">
<con1:monCondExpr xmlns:con1="http://xmlns.oracle.com/servicebus/monitoring/alert/condition">
<con1:function>count</con1:function>
<con1:lhs>Operation.peticionSincrona.error-count</con1:lhs>
<con1:operator>=</con1:operator>
<con1:rhs>1</con1:rhs>
</con1:monCondExpr>
</aler:condition>
<aler:alertDestination ref="bus_ver/AlertaProva"/>
</aler:alertRule>
</xt:value>
</xt:add>
</cus:actions>
</cus:customization>
</cus:Customizations>
Does anyone know how to solve this or maybe I am doing something unproperly?
Thanks for your help.
Finally I made work a customization file with an alert like this:
<?xml version="1.0" encoding="UTF-8"?>
<cus:Customizations xmlns:cus="http://www.bea.com/wli/config/customizations" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xt="http://www.bea.com/wli/config/xmltypes" xmlns:aler="http://xmlns.oracle.com/servicebus/monitoring/alert">
<cus:customization xsi:type="cus:EnvValueActionsCustomizationType">
<cus:description>Alertes Generals de ProxyService</cus:description>
<cus:owners>
<xt:ownerQuery>
<xt:resourceTypes>ProxyService</xt:resourceTypes>
<xt:refsToSearch xsi:type="xt:LocationRefType">
<xt:type>Folder</xt:type>
<xt:path>bus_ver/EA</xt:path>
</xt:refsToSearch>
</xt:ownerQuery>
</cus:owners>
<cus:actions>
<xt:replace>
<xt:envValueType>Service SLA Alert Rule List</xt:envValueType>
<xt:value>
<aler:alertRules>
<aler:alertRule enabled="true" name="prova" xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con="http://www.bea.com/wli/sb/services/security/config" xmlns:oper="http://xmlns.oracle.com/servicebus/proxy/operations" xmlns:env="http://www.bea.com/wli/config/env" xmlns:tran="http://www.bea.com/wli/sb/transports">
<aler:description>provades</aler:description>
<aler:expirationDate>2016-03-31+02:00</aler:expirationDate>
<aler:startTime>00:00:00.000+01:00</aler:startTime>
<aler:endTime>00:05:00.000+01:00</aler:endTime>
<aler:frequency>every-time</aler:frequency>
<aler:severity>normal</aler:severity>
<aler:stopProcessing>false</aler:stopProcessing>
<aler:condition aggregation-interval="10">
<con1:monCondExpr xmlns:con1="http://xmlns.oracle.com/servicebus/monitoring/alert/condition">
<con1:function>count</con1:function>
<con1:lhs>Operation.peticionSincrona.error-count</con1:lhs>
<con1:operator>=</con1:operator>
<con1:rhs>1</con1:rhs>
</con1:monCondExpr>
</aler:condition>
<aler:alertDestination ref="bus_ver/AlertaProva"/>
</aler:alertRule>
</aler:alertRules>
</xt:value>
</xt:replace>
</cus:actions>
</cus:customization>
Main differences that provoked error in initial XML:
xmlns:aler="http://xmlns.oracle.com/servicebus/monitoring/alert" -> OK vs xmlns:aler="http://www.bea.com/wli/monitoring/alert" -> KO
Service SLA Alert Rule List -> OK vs Service SLA Alert Rule -> KO

HelloWorld console application fails to publish with ClickOnce

thanks in advance. Publishing with my VisualStudio/ClickOnce I get always the following error.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\carlos\Documents\visual studio 2012\Projects\ConsoleApplication1\ConsoleApplication1\publish\ConsoleApplication1.application resulted in exception. Following failure messages were detected:
+ Configuration system failed to initialize
+ Unrecognized configuration section startup. (C:\Windows\Microsoft.NET\Framework64\v4.0.30319\dfsvc.exe.Config line 2)
The dfsvc.exe.Config is:
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="false">
<supportedRuntime version="v4.0" sku="client" />
</startup>
</configuration>
Is something that I should install on my PC? Thanks again.
I found a solution,
I don't know exactly which was the fix, I did three steps:
1 - I repaired .net fx intallation
2 - Ran mage -cc to clear clickonce store
3 - Rebooted
thanks

Resources