bpm webMethods - error when debugging - business-process-management

I am using webMethods 8.2 . I have created a very simple BPM process with just start and end event. When I try to debug it by clicking "Debug Selected Process" I get the error : "The process engine did not return a process instance ID" .
Please help how to get past this error.Thank you.
Maria Tamas

Related

Is there a backdoor to AX? AX 2012 R2 Class Application startupPost method customized code error abort AX client

AX 2012 R2 Class Application startupPost method customized code error abort AX client.
How to enter AX again? i can't login again to correct the wrong coding because of this fatal error.
"Microsoft Dynamics AX client has stopped working.
A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available."
I cannot enter my AX anymore! Why?
because i put a wrong code in Class Application StartupPost method
// No SYS code must exist in this method
// If you need the startup command, look in the class SysStartupCmd
void startupPost()
{
// <GTH>
Args args = new Args();
#isoCountryRegionCodes
if (hasGUI()
&& isRunningMode()
&& !SysModelStore::isInstallMode()
&& SysCountryRegionCode::isLegalEntityInCountryRegion([#ISOTH])
&& isConfigurationkeyEnabled(configurationKeyNum(TaxThailandGovCertification)))
{
TaxThaiGovCertificationHelper::promptSysAboutForm(false);
}
// </GTH>
new MenuFunction(MenuItemDisplayStr(RBMT_Main),MenuItemType::Display).run(Args);
}
my problem code is
*new MenuFunction(MenuItemDisplayStr(RBMT_Main),MenuItemType::Display).run(Args);*
yeah i should have put it in an 'if (curUserId() == "me")'
yeah i should have ...
it should have never been there.
i modified in the USR layer. Tried to login again but the AX client can't enter into AX so i can't modify anything. Tried to login in lower layer but still i can't come in.
tried to use Visual Studio 2010 Application Explorer to save class to XPP and open notepad to modify and reload to application explorer, but still can't login.
I am unwelcome.
Is there a way in to AX without going through Class Application startupPost method?
it's like i can't enter my home even if i got my keys.
more problem is i have 2 other developer mates who can't login so they're really pissed, they need their codes too.
Please anybody knows how to overpass Class Application startupPost method?
I can't get in my AX!
Thanks very much.
ElanG.
its solved by using a Configuration command to run at kernal startup: -NOAUTO
1.) Open Microsoft Dynamics AX Configuration Utility.
2.) in Tab [General], the entry field "Configuration command to run at kernel startup"
3.) type the command -noauto
4.) run MS Dynacmics AX
Thanks.
:)
In case you do not need the usr layer anymore you can just delete/uninstall the usr model. Provided you left it on the standard model. Then try again. Anyway I hope you have daily backups so if deleting the usr layer is not an option for you or if it did not solve your problem you can just restore a backup right?

AX 2012 Stack Trace Error On Purch Agreement form(Wrong Arugement Type For Function

I had the same problem on Purchase Agreement Form. When I am trying to create a New Purchase Agreement from Purchase Agreement List form its throws me a stack trace error.Here is the stack Trace
(C)\Classes\QueryRun\setRecord
(C)\Classes\FormDataSource\last
(C)\Classes\FormDataSource\linkActive
(C)\Classes\FormRun\run
(C)\Forms\PurchAgreement\Methods\run - line 12 (which is super())
(C)\Classes\FormFunctionButtonControl\Clicked
This stack is not stop me from Purchase agreement creation.I am able to click Ok and create Purch Agreement.When Tried to create a new Purch Agrement from AOT it doesn't throw any error.This error occurs in only some of our environments(but all the environment have same code surrounding Purch Agreement--I compared forms and classes from different Envs both working and not working)
Things I tried
1.Cleared Cache,AUC files and changed GUID ,Full Compile and Full CIL twice,AOS,SQL server restarts.
2.I tried both the methods which are changing the datasource Join Type property on PurchAgreement Task page to delayed and adding additional datasources to listpage which didn't help.
Is there any thing that you all would suggest other than these approches.Any help would be truly appreciated.
Have a look in the Form PurchAgreementListPage on the MenuItemButton BtnNewPurchAgreement (ButtonGroup: NewGroup). There is a property called "CopyCallerQuery", if this is set to yes, switch it to Auto and the error will disappear. In the next Microsoft updates (I think KB2921583) this should be fixed.

Closing a "local" OrientDB when using connection pools

So I basically do this.
OObjectDatabaseTx result = OObjectDatabasePool.global().acquire( "local:orientdb", "admin", "admin");
//dostuff
result.close;
The problem is that when I redeploy my webapp (without restarting the Java EE container) I get the folling error:
com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage 'orientdb' with mode=rw
which I interpret to mean "Tomcat still has a filelock from the last app".
So my question is how do I cleanly exit in this scenario? I've tried:
OObjectDatabasePool.global().close()
and
new OObjectDatabaseTx("local:orientdb").close()
but neither seem to work. Any ideas? The documentation isn't exactly clear on this issue.
Set the property "storage.keepOpen" to false:
java ... -Dstorage.keepOpen=false ...
or via Java code:
OGlobalConfiguration.STORAGE_KEEP_OPEN.setValue( false );

Application_Start does not respond to RegisterAllAreas()

I'm new on MVC Application, please help me.
I have an Application on Visual Studio 2012 using Framework 4.0 on a Windows 7 pc and I'm debugging in IIS Express.
Starting debugging, my application doesn't respond: after starting Application_Start in the Global.asax file, execution doesn't goes on and the browser get no answer or error message from the server (that is my localhost).
When Application_Start is executed run to the instruction AreaRegistration.RegisterAllAreas() and no more.
Debug doesn't stop, but neither goes to the following instruction:
Sub Application_Start()
Try
RouteTable.Routes.MapHubs() ' regularly executed
AreaRegistration.RegisterAllAreas() ' Break point: goes here and no more
.............
Catch ex As Exception
Dim errorString As String = ex.Message ' never goes here
End Try
End Sub
I have really few area to registrate.
Could anyone help me?
Thanks in advance!
Federico
PS.:
I resolved it, but I still can't understand the reason of my error.
I simply wrote the instruction RouteTable.Routes.MapHubs() immediatly after AreaRegistration.RegisterAllAreas().
Now my code is:
Sub Application_Start()
Try
AreaRegistration.RegisterAllAreas()
RouteTable.Routes.MapHubs()
..........
Catch ex As Exception
Dim errorString As String = ex.Message
End Try
End Sub
And it works.
Still, I have a lot of problem using Hub for SignalR similar to this one (but none of all suggested solutions works for me).
Have I to execute MapHubs always as the first instruction of Application_Start?
Thanks!
Federico
As far as I know you do have to MapHubs before you register other routes.
As for the debug stop not being hit, it's probably because you generally can't debug stop inside Application_Start. More information here

Flex Remoting Error

I was trying to connect Flex to Backend Java and I was trying to call a method in one of the classe in the Backend java and it was returning
Faultcode:Server.Processing
java.lang.NullPointerException : null
In the root cause everything is null .
.I have checked everything from RemotingConfig to the Flex calling service .
roReporting = new MeteringRemoteObject("ReportingServices");
roReporting.source = "reportmgmt.Reporting";
roReporting.addEventListener(InvokeEvent.INVOKE,invokeHandler);
roReporting["getReportData"].addEventListener(ResultEvent.RESULT,graphResultHandler);
roReporting["getReportData"].addEventListener(FaultEvent.FAULT, graphFaultHandler);
In the metering Remote Object I have written a code to connect to the back end .
Can somebody please let me know whether you have come across this problem .
Thanks ,
SUDEEP KUMAR
This has nothing to do with Flex or Flex Remoting. Your Java service just throws a NullPointerException. Check the code, use your debugger or add some debug log statements to the service method in question.

Resources