Creating a database connection for my project will either produce a generic error or give no confirmation at all - oracle-adf

I'm ultimately trying to sync a change with the database onto an entity. I went to the database navigator in JDeveloper 11g and right clicked one of the projects and selected New Connection. The dialog appeared and I entered my info. I clicked test and it worked.
But when I try to click OK, I get a generic error. And I click OK again, it tells me the connection has already been created with that name. But it of course doesn't. refreshing the connections shows nothing. Error:
Performing action (744) New Connection [ from NavWindow ] [ for (
EntDataMaint, EntDataMaintUI.jpr, EntDataMaint.jws ) ]
java.lang.NullPointerException: message is null
java.lang.NullPointerException: message is null
o.javatools.dialogs.MessagePanel.setMessage(MessagePanel.java:213)
o.javatools.dialogs.BaseMessageDialog.setMessage(BaseMessageDialog.java:186)
o.javatools.dialogs.MessageDialog.runDialog(MessageDialog.java:166)
o.javatools.dialogs.MessageDialog.runDialog(MessageDialog.java:210)
o.javatools.dialogs.MessageDialog.error(MessageDialog.java:239)

Related

Validate Stored Procedure Success in Powerapps

I am fairly new to powerapps, but it sounds like there is a major limitation on being able to return values for a SQL Server stored procedure.
I have an app that when you push a button pulls data from various controls on screen and submits it to a stored procedure. This is done by invoking a flow. The code is basically :
EditPuddles.Run(ActionDrop.Selected.Value, PuddlesText.Text,
ClassicDrop.Selected.Value, ServiceRates.Text, User().FullName)
The code works and does what it is supposed to. However, what I need now more than anything is it to tell me when it fails or succeeds.
Ideally I would have it return a values that I could use to determine if I should display a success or failure message. I get that I cannot return a data set, but it must at least be able to tell if there is an error.
I'm also new to PowerApps and Power Automate but I figured out a way to show results on success and an error message on failure, after a flow is executed.
PowerApps
For your example the code for the property "OnSelect" of the button should be:
UpdateContext({ PuddlesResult: EditPuddles.Run("a", "b", "c") });
If(
Not IsBlank(PuddlesResult.errormessage),
// on failure:
Notify(PuddlesResult.errormessage, NotificationType.Error, 5000),
// on success: (use PuddlesResult.ResultSets.Table1)
Notify("All good", NotificationType.Information, 5000)
)
Power Automate
Your flow in Power Automate should look like this:
Capture the error message
On error the action "Execute stored procedure (V2)" returns output:
To return the message in the output update the action "Respond to a PowerApp or flow":
Text: ErrorMessage
Expression: outputs('Execute_stored_procedure_(V2)')?['body']?['message']
Return the error message only on failure/timeouts
Select "Configure run after" on the action "Respond to PowerApp or flow":
And set it to only run this action on failure and time outs:
For returning normal results you can use action "Response" and set the "Configure run after" settings to "Is successful".
I hope this helps you and others as it took me a long time too to figure this out. But it will allow you to handle succes and failure appropriately in your PowerApp.

Getting a invalid bug ID error when tried to link a defect to a test case using and external bug tracking tool “Instabug”

I was integrating an external bug tracker tool “Instabug” to Kiwi but when i tried to link a bug to the test case it shows invalid bug ID error.
For setting up the external bug tracking tool i performed the following steps:
ADMIN -> Everything Else -> TEST Cases -> Bug Trackers -> Add Bug Tracker -> Filled all the Details -> Save.
The fields which i am not sure about whether i filled them correct or not are :
(a) URL format string : https%3A%2F%2Fdashboard.instabug.com%2Fapplications%2FProjectname%2Fbeta%2Fbugs
(b) RegExp for ID validation : ^\d$
I am not sure whether the connection is established between Kiwi and Instabug.
I expect to know what are the correct values of
(a) URL format string
(b) RegExp for ID validation
and if i entered the wrong or right value in the bug tracker detail then it should show the connection with the bug tracker is established or not.
Also i am not sure if i have to make any changes in the “Instabug" site?
Kindly help me with the setup of “Instabug” with Kiwi.
a) Did you set Type to LinkOnly?
b) Connection status with tracker is not yet present - see https://github.com/kiwitcms/Kiwi/issues/97
c) Post relevant docker container logs.

How can I prevent accidentally overwriting an already existing database?

I'm adding BaseX to an existing web application and currently writing code to import data into it. The documentation is crystal-clear that
An existing database will be overwritten.
Finding this behavior mindboggingly dangerous, I tried it with the hope that the documentation was wrong but unfortunately my test confirmed it. For instance, using basexclient I can do this:
> create db test
Database 'test' created in 12.03 ms.
> create db test
Database 'test' created in 32.43 ms.
>
I can also replicate this behavior with the Python client, which is I what I'm actually using for my application. Reducing my code to the essentials:
session = BaseXClient.Session("127.0.0.1", 1984, "admin", "admin")
session.create("test", "")
It does not matter whether test exists or not, the whole thing is overwritten if it exists.
How can I work around this dangerous default behavior? I'd would like to prevent the possibility of missteps in production.
You can issue a list command before you create your database. For instance with the command line client if the database does not exist:
> list foo
Database 'foo' was not found.
Whereas if the database exists:
> list test
Input Path Type Content-Type Size
------------------------------------
This is a database that is empty so it does not show any contents but at least you do not get the error message. When you use a client you have to check whether it errors out or not. With the Python client you could do:
def exists(session, db):
try:
session.execute("list " + db)
except IOError as ex:
if ex.message == "Database '{0}' was not found.".format(db):
return False
raise
return True
The client raises IOError if the server raises an error, which is a very generic way to report a problem. So you have to test the error message to figure out what is going on. We reraise if it happens that the error message is not the one which pertains to our test. This way we don't swallow exceptions caused by unrelated issues.
With that function you could do:
session = BaseXClient.Session("127.0.0.1", 1984, "admin", "admin")
if exists(session, "test"):
raise SomeRelevantException("Oi! You are about to overwrite your database!")
session.create("test", "")

Windows Azure The remote server returned an error: (404) Not Found

I'm following this tutorial which is about Table Storage Service. I'm using the emulator version of the tutorial which you can find at point 5 of paragraph "Configuring your connection string when using Cloud Services".
This is the code I pasted in the 'About' ActionResult:
public ActionResult About()
{
// Retrieve the storage account from the connection string.
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(
CloudConfigurationManager.GetSetting("StorageConnectionString"));
// Create the table client.
CloudTableClient tableClient = storageAccount.CreateCloudTableClient();
// Create the CloudTable object that represents the "people" table.
CloudTable table = tableClient.GetTableReference("people");
// Create a new customer entity.
CustomerEntity customer1 = new CustomerEntity("Harp", "Walter");
customer1.Email = "Walter#contoso.com";
customer1.PhoneNumber = "425-555-0101";
// Create the TableOperation that inserts the customer entity.
TableOperation insertOperation = TableOperation.Insert(customer1);
// Execute the insert operation.
table.Execute(insertOperation);
return View();
}
At this line table.Execute(insertOperation); I get the following error message:
StorageException was unhandled by user code The remote server returned
an error: (404) Not Found.
The project template I used was "Windows Azure Cloud Service". The next window that popped up, I only added "ASP.NET MVC 4 Web Role".
Anyone any idea what is causing this error?
Does the people table exists in Storage area? (you can check from Azure management portal)
I came here after getting the same error(Not found when .replace), but my case was different, I actually had people table but the problem with my code is that I was updating the Row key value.
I think you can only update the other fields but not the partition keys or the row keys. Just thought of adding this to the answers in case someone else gets the same issue as me.

Opening/decrypting Webex Connect db3 file

So I have a lot of instant message logs/history that I want to back up from my chat client, Cisco WebEx Connect in Windows 7. These are stored under C:\Users\\AppData\Local\WebEx Connect\Archive and the file is called "myemailaddress".db3
After downloading SQLiteBrowser to open this file, I get the error:
SQLiteManager: Error in opening file "myfile".db3 - either the file is encrypted or corrupt
Exception Name: NS_ERROR_FILE_CORRUPTED
Exception Message: Component returned failure code: 0x8052000b (NS_ERROR_FILE_CORRUPTED) [mozIStorageService.openUnsharedDatabase]
The file isn't corrupted so I'm thinking perhaps it is encrypted in some way - opening the file in Notepad displays random characters like the following, with no recognisable text:
=¢^£ÍV¶»ñû‡«–
`×ÚµÏýº°ÎîÎL
Besides that file which contains the actual messages, there is another small 20kb file under the folder ConnectDB that has various config settings (such as create CacheTable) and it says on the first line (when opened in Notepad): "SQLite format 3" - so clearly this one isn't encrypted.
Is there any way to extract the data from the first file to something readable (ie, text)? It's only around 5MB in size so shouldn't be causing any memory issues.
Unfortunately I haven't found a way for decrypting this file, however if you're still able to access the messenger client and have a live account you can still export them person by person by clicking on the person in question (make sure you've got view offline people enabled if you're retriving offline user's chat history) > click on the history tab > click on "save as".
I hope this is of use to you.

Resources