Eclipse ABAP Development: Cannot Retrieve Connection configuration - linux

I have installed ABAP Development Tools on Eclipse 4.2 and Kubuntu 12.04 64 bit and everything went fine.
When I try to create a new ABAP Project and search for configured SAP Connections on the SAP GUI (I have SAP GUI for Java 7.30 rev 3) Eclipse shows the following error:
"Configuration not found in settings file '/home/dfabbri/.SAPGUI/settings', with include 'null', and message server 'null'"
I verified that file '/home/dfabbri/.SAPGUI/settings' is present and not empty; here is the content:
############################################################
#
# file : /home/dfabbri/.SAPGUI/settings
# created : 08.05.2012 12:42:08 CEST
# encoding: UTF-8
#
############################################################
#logonFrameY = "83"
#logonFrameX = "137"
#GLF_showDetailCol = "1"
#GLF_ColumnState = "0 / 75"
#logonFrame_2_X = "970"
#logonFrame_2_Y = "241"
#frameWidth = "778"
#frameHeight = "900"
#logonFrame_2_Width = "348"
#logonFrame_2_Height = "451"
#lookAndFeelDefault = "Tradeshow"
#propFont = "Roboto Cn"
#fixedFont = "Ubuntu Mono"
#labelFont = "Roboto"
#genFont = "Roboto Cn"
#forceLongWindowTitle = "true"
#showListboxKeyAlways = "true"
#listboxSortByKey = "true"
#overwrite = "false"
Does anyone have any suggestion about this problem?
I tried on a Windows Virtual Machine and everything went fine.

I realize this is a really old question but just in case you still have this issue (I have it on my mac all the time) add the following two entries to the bottom of that settings file:
#INCLUDE = "file:///home/dfabbri/.SAPGUI/connections"
#MESSAGESERVER = "file:///home/dfabbri/.SAPGUI/message_servers"
Then create the two files above in that path (connections should already be there), message_servers can be empty. Hope this helps.

Related

Awesomewm - Dividing rc.lua

a few days ago I began to hit Awesomewm and a doubt came to me to customize. By standard AWM comes with a unique configuration file called RC.Lua, I would like to separate my Key Bindings from separate files.
Example:
Keybindings/keys1.Lua
Keybindings/keys2.Lua.
Besides that I would like to know the difference between clientkeys and globalkeys?
I was successful dividing the files, but one keys configuration file always excelled the other
Exemple:
keys1.lua
local beautiful = require("beautiful")
local hotkeys_popup = require("awful.hotkeys_popup")
local awful = require("awful")
------------------------------------------------
local my_table = awful.util.table or gears.table
------------------------------------------------
----------------------------------------------------
local config = require("config")
----------------------------------------------------
globalkeys = my_table.join(
-- modkey + enter = launch terminal
awful.key({modkey}, "Return", function()
awful.spawn(terminal)
end, {
description = "launch terminal",
group = "awesome"
}))
keys2.lua
local beautiful = require("beautiful")
local hotkeys_popup = require("awful.hotkeys_popup")
local awful = require("awful")
------------------------------------------------
local my_table = awful.util.table or gears.table
------------------------------------------------
----------------------------------------------------
local config = require("config")
----------------------------------------------------
globalkeys = my_table.join(
-- modkey + "b" = launch browser
awful.key({modkey}, "b", function()
awful.spawn(browser)
end, {
description = "launch browser",
group = "awesome"
}))
rc.lua
local keys1 = require("keys1")
local keys2 = require("keys2")
At this point the last place Keys surpass the first so ignoring the configuration made in the same
In the git-master version of AwesomeWM, you get the awful.keyboard.append_client_keybindings and awful.keyboard.append_global_keybindings. You also get a "request::default_keybindings" signal on the client class.
Those APIs are designed for modular configs. Actually, you can cut and paste entire sections from the newer rc.lua into new files with minimal effort.

ZB IDE search and replace extension types

I have two types of lua: 5.1 .lua extension and 5.1 Family Historian lua
.fh_lua extension, I have several non-executable as stand alone files that have the extension .lua, all of my working code is extenison .fh_lua, mostly works well, and the .lua files do not appear as FH plugins, which I desire. However when searching (or search replacing) though both files are in my same directory and project for zb, it does not search the .lua files only .fh_lua I would like to search both.
this is my sys pref file, I have an empty user pref, making my zb ide global for all users.
autoanalyzer = true
console.fontname = 'Courier New'
console.fontsize = 10
default.extension = 'lua'
filetree.showchanges = true
editor.autoreload = true
editor.fontname = 'Courier New'
editor.fontsize = 12
editor.specmap.fh_lua = 'lua'
editor.specmap.wlua = 'lua'
local luaspec = ide.specs.lua
luaspec.exts[#luaspec.exts + 1] = 'fh_lua'
editor.tabwidth = 2
editor.smartindent = true
editor.indentguide = wxstc.wxSTC_IV_LOOKBOTH --prf
editor.wrapindentmode = wxstc.wxSTC_WRAPINDENT_INDENT --prf
acandtip.shorttip = false )
However when searching (or search replacing) though both files are in my same directory and project for zb, it does not search the .lua files only .fh_lua I would like to search both.
You can specify both of the extensions in the search path window: <some path>; *.lua, *.fh_lua. This should make the search in <some path> folder with two extensions.

Creating a pool in Azure with python SDK

I'm trying to create a pool based on standard marketplace ubuntu image. I'm using Azure 4.0.0, image refernce, vm config reference and other things are written based off learn.microsoft.com
Here's my code:
import azure.batch as batch
from azure.batch import BatchServiceClient
from azure.batch.batch_auth import SharedKeyCredentials
from azure.batch import models
import sys
account = 'mybatch'
key = 'Acj1hh7vMR6DSodYgYEghjce7mHmfgfdgodYgYEghjce7mHmfgodYgYEghjce7mHmfgCj/7f3Zs1rHdfgPsdlA=='
batch_url = 'https://mybatch.westeurope.batch.azure.com'
creds = SharedKeyCredentials(account, key)
batch_client = BatchServiceClient(creds, base_url = batch_url)
pool_id = 'mypool3'
if batch_client.pool.exists( pool_id ):
print( 'pool exists' )
sys.exit()
vmc = models.VirtualMachineConfiguration(
image_reference = models.ImageReference(
offer = 'UbuntuServer',
publisher = 'Canonical',
sku = '16.04.0-LTS',
version = 'latest',
virtual_machine_image_id = None
) ,
node_agent_sku_id = 'batch.node.ubuntu 16.04'
)
pool_config = models.CloudServiceConfiguration(os_family = '5')
new_pool = models.PoolAddParameter(
id = pool_id,
vm_size = 'small',
cloud_service_configuration = pool_config,
target_dedicated_nodes = 1,
virtual_machine_configuration = vmc
)
batch_client.pool.add(new_pool)
Here are some image values I took from the azure portal ( Add pool JSON Editor ):
>
"imageReference": {
"publisher": "Canonical",
"offer": "UbuntuServer",
"sku": "16.04.0-LTS"
},
But when I ran the code I get an error:
Traceback (most recent call last):
File "a.py", line 80, in <module>
batch_client.pool.add(new_pool)
File "/root/miniconda/lib/python3.6/site-packages/azure/batch/operations/pool_operations.py", line 310, in add
raise models.BatchErrorException(self._deserialize, response)
azure.batch.models.batch_error_py3.BatchErrorException: {'additional_properties': {}, 'lang': 'en-US', 'value': 'The value provided for one of the properties in the request body is invalid.\nRequestId:d8a1f7fa-6f40-4e4e-8f41-7958egas6efa\nTime:2018-12-05T16:18:44.5453610Z'}
What image values are wrong ? Is this possible to get more information on this error with RequestId ?
UPDATE
I found a newer example here which is using this helper select_latest_verified_vm_image_with_node_agent_sku to get the image ref. Same error The value provided for one of the properties in the request body is invalid.
I did the test with your code and get the same error. Then I research and change some things in the code. And the problem caused by two things.
First:
pool_config = models.CloudServiceConfiguration(os_family = '5')
You can take a look at the description of the models.CloudServiceConfiguration:
os_family: The Azure Guest OS family to be installed on the virtual
machines in the pool. Possible values are: 2 - OS Family 2, equivalent to
Windows Server 2008 R2 SP1. 3 - OS Family 3, equivalent to Windows Server
2012. 4 - OS Family 4, equivalent to Windows Server 2012 R2. 5 - OS Family
5, equivalent to Windows Server 2016. For more information, see Azure
Guest OS Releases
Maybe this property is set for windows. You can take away this configuration.
Second:
vm_size = 'small',
You should set the vmSize with a real VM size. For example, Standard_A1. See Choose a VM size for compute nodes in an Azure Batch pool.
Hope this will help you. If you need more help please give me the message.
I think there are a lof of confusing examples on the net, or they simply match older version of SDK.
Digging deeper into the docs I found this.
cloud_service_configuration CloudServiceConfiguration The cloud
service configuration for the pool. This property and
virtualMachineConfiguration are mutually exclusive and one of the
properties must be specified. This property cannot be specified if the
Batch account was created with its poolAllocationMode property set to
'UserSubscription'.
In my case I could use only
cloud_service_configuration = pool_config or virtual_machine_configuration = vmc, but not both at the same time.
This is the working code:
new_pool = models.PoolAddParameter(
id = pool_id,
vm_size = 'BASIC_A1',
target_dedicated_nodes = 1,
virtual_machine_configuration = vmc
)

unixODBC yields ORA-12154 TNS resolve error while sqlplus works just fine

I am having a strange error when setting up a unixODBC connection to a Oracle 11g R1 database. After everything was set up I wanted to try to test the connection using isql. It keeps on returning the error
[08004][unixODBC][Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified
What is confusing to me is that I can connect via sqlplus using the same environment and TNS notation just fine
sqlplus dbuser/password#DBOPBAC9
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Release 11.2.0.3.0 - 64bit Production
SQL>
I am working on the problems for two days now and can't find a solution. ORA-12154 is a common error for which I have found a lot of possible solutions. But none of them worked for me. It is frustraiting.
Here is what I have tryed:
Environment variables that are mentioned are all set before starting isql
ORACLE_SID=DBOPBAC9
ORACLE_BASE=/CSGPBAC9/DBA/oracle
ORACLE_INSTANT_CLIENT_64=/CSGPBAC9/opt/myuser/tools/instantclient_11_2_x64
ORACLE_HOME=/CSGPBAC9/DBA/oracle/product/11.2.0
TNS_ADMIN=/CSGPBAC9/DBA/oracle/product/11.2.0/network/admin
This is the tnsnames.ora found in $TNS_ADMIN directory
DBOPBAC9 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = host IP)(PORT = 1480))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = DBOPBAC9)
)
)
This is the sqlnet.ora
TRACE_LEVEL_CLIENT = OFF
SQLNET.EXPIRE_TIME = 10
NAMES.DIRECTORY_PATH = (TNSNAMES)
DIAG_ADR_ENABLED=off
This is my unixODBC setup. I have installed unixODBC into directory /opt/unixODBC and set the environment variables accordingly. The odbc.ini is in directory /opt/myuser/tools/unixODBC and variables are also set.
odbc.ini
[OracleODBC-11g]
Application Attributes = T
Attributes = W
BatchAutocommitMode = IfAllSuccessful
BindAsFLOAT = F
CloseCursor = F
DisableDPM = F
DisableMTS = T
Driver = Oracle 11g ODBC driver
DSN = OracleODBC-11g
EXECSchemaOpt =
EXECSyntax = T
Failover = T
FailoverDelay = 10
FailoverRetryCount = 10
FetchBufferSize = 64000
ForceWCHAR = F
Lobs = T
Longs = T
MaxLargeData = 0
MetadataIdDefault = F
QueryTimeout = T
ResultSets = T
ServerName = //host.ip/DBOPBAC9
SQLGetData extensions = F
Translation DLL =
Translation Option = 0
DisableRULEHint = T
UserID =
StatementCache=F
CacheBufferSize=20
UseOCIDescribeAny=F
odbcinst.ini
[Oracle 11g ODBC driver]
Description = Oracle ODBC driver for Oracle 11g
Driver =
Driver64 = /CSGPBAC9/opt/myuser/tools/instantclient_11_2_x64/libsqora.so.11.1
Setup =
FileUsage =
CPTimeout =
CPReuse =
I have created a strace output to check for errors but unfortunatly I can't find anything. To me it looks like it is able to find tnsnames.ora file and read it
You need to edit odbc.ini
ServerName = TNS_ALIAS

How to use dcmtk/dcmprscp in Windows

How can I use dcmprscp to receive from SCU Printer a DICOM file and save it, I'm using dcmtk 3.6 & I've some trouble to use it with the default help, this's what I'm doing in CMD:
dcmprscp.exe --config dcmpstat.cfg --printer PRINT2FILE
each time I receive this messagebut (database\index.da) don't exsist in windows
W: $dcmtk: dcmprscp v3.6.0 2011-01-06 $
W: 2016-02-21 00:08:09
W: started
E: database\index.dat: No such file or directory
F: Unable to access database 'database'
I try to follow some tip, but the same result :
http://www.programmershare.com/2468333/
http://www.programmershare.com/3020601/
and this's my printer's PRINT2FILE config :
[PRINT2FILE]
hostname = localhost
type = LOCALPRINTER
description = PRINT2FILE
port = 20006
aetitle = PRINT2FILE
DisableNewVRs = true
FilmDestination = MAGAZINE\PROCESSOR\BIN_1\BIN_2
SupportsPresentationLUT = true
PresentationLUTinFilmSession = true
PresentationLUTMatchRequired = true
PresentationLUTPreferSCPRendering = false
SupportsImageSize = true
SmoothingType = 0\1\2\3\4\5\6\7\8\9\10\11\12\13\14\15
BorderDensity = BLACK\WHITE\150
EmptyImageDensity = BLACK\WHITE\150
MaxDensity = 320\310\300\290\280\270
MinDensity = 20\25\30\35\40\45\50
Annotation = 2\ANNOTATION
Configuration_1 = PERCEPTION_LUT=OEM001
Configuration_2 = PERCEPTION_LUT=KANAMORI
Configuration_3 = ANNOTATION1=FILE1
Configuration_4 = ANNOTATION1=PATID
Configuration_5 = WINDOW_WIDTH=256\WINDOW_CENTER=128
Supports12Bit = true
SupportsDecimateCrop = false
SupportsTrim = true
DisplayFormat=1,1\2,1\1,2\2,2\3,2\2,3\3,3\4,3\5,3\3,4\4,4\5,4\6,4\3,5\4,5\5,5\6,5\4,6\5,6
FilmSizeID = 8INX10IN\11INX14IN\14INX14IN\14INX17IN
MediumType = PAPER\CLEAR FILM\BLUE FILM
MagnificationType = REPLICATE\BILINEAR\CUBIC
The documentation of the "dcmprscp" tool says:
The dcmprscp utility implements the DICOM Basic Grayscale Print
Management Service Class as SCP. It also supports the optional
Presentation LUT SOP Class. The utility is intended for use within the
DICOMscope viewer.
That means, it is usually not run from the command line (as most of the other DCMTK tools) but started automatically in the background by DICOMscope.
Anyway, I think the error message is clear:
E: database\index.dat: No such file or directory
F: Unable to access database 'database'
Did you check whether there is a subdirectory "database" and whether the "index.dat" file exists in this directory? If you should ask why there is a need for a "database" then please read the next paragraph of the documentation:
The dcmprscp utility accepts print jobs from a remote Print SCU.
It does not create real hardcopies but stores print jobs in the local
DICOMscope database as a set of Stored Print objects (one per page)
and Hardcopy Grayscale images (one per film box N-SET)

Resources