javax.resource.ResourceException: IJ000459 Transaction is not active - jboss

I am using JBOSS EAP7 and EJB3.0.
I have some functionality like whenever I got some Exception, I need to log it.
But when I get a Exception and trying to log it, I am getting an exception like Transaction is not active. I am using Container Managed Transaction and Attribute type as Required.
Please help me to resolve it.
Thanks in Advance.

Related

Error "Failed to get the lock" while creating or deleting TYPE Metadata object in APACHE ATLAS

I am trying to create custom TYPE Metadata objects in Apache Atlas for a Reporting tool. I can create or delete, but most of the time I get the below error. I am not sure what is triggering this error.
{"errorCode": "ATLAS-500-00-005","errorMessage": "Failed to get the lock; another type update might be in progress. Please try again"}
Can someone please help me with the reason why this error occurs and how to resolve this issue?
Error code ATLAS-500-00-005 Failed to get the lock

Unable to turn on debug for ADFv2 Mapping Data Flow

Today, I'm not able to turn on debug on my ADFv2 mapping data flow. I'm getting the error below:
I already tried creating a new IR set to auto resolve and also set to same region as my ADFv2 - still no good.
Failed to setup debug session. Error: No connection is available to service this operation: SETEX dfProd_dataflowdebugsession26a9d381-5924-4c1f-b36f-cf41e2eab60e_f96ba068-97be-478a-8ed6-012a7ec58d80; IOCP: (Busy=0,Free=100,Min=50,Max=100), WORKER: (Busy=7,Free=93,Min=50,Max=100), Local-CPU: n/a
Congratulations that your error solved now.
I think maybe it's caused by the cache. Refresh the Data Factory and try again.
You tried again today and it worked.
I post this as the answer to make others know the error is gone.
What Azure Region is this factory in?

No EJB receiver available for handling after some time

I am using Jboss 7.1 Final. I have setup remote ejb using jboss-ejb-client.properties and standalone.xml accordingly. But after the server running for sometime it will throw this exception while trying to lookup the remote ejb. Is there anything I need to set in the jboss-ejb-client.properties in order for it to work. Note that I already defined the HEARTBEAT_INTERVAL, is that not enough?
Here is the properties file:
endpoint.name=client-endpoint
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
remote.connections=default
remote.connection.default.host=222.222.23.222
remote.connection.default.port=4447
remote.connection.default.username=us
remote.connection.default.password=ps
remote.connection.default.connect.options.org.jboss.remoting3.RemotingOptions.HEARTBEAT_INTERVAL=60000
Since no takers to this question, I found some possible solutions by googling. It might be that I have been opening too many connections by calling new InitialContext() -- I might be calling it every few minutes!!! See this link:
https://developer.jboss.org/thread/222883
In there someone mentioned GC and the connection closing etc. That might be helpful.
How do you lookup to your EJB from your EJB Client ? Incase you are using java:/ namespace the problem will happen.
Please use ejb:/ namespace to eliminate the problem.

Using SalesLogixPortalDeploymentUtility

Not sure if anyone has much experience working with SalesLogix, but I've been working with this 3rd-party utility in attempts to deploy a VFS without the need for Application Architect. I wasn't able to find any documentation for it and it seems that it's missing a bunch of files it needs to run (I already spent some time feeding it all the necessary DLLs it needed in the places it needed them in). Please let me know if you can lend any insight. Currently, I'm able to connect to the database, but the deployment is not happening. Here are some of the initial errors from the log file:
Error running transform: System.IO.FileLoadException: Unable to load file, '\Entity Model\Process Orchestration Support\ProcessInstanceStatus\OnAfterDelete.method.xml'. ---> System.InvalidOperationException: There was an error reflecting type 'Sage.Platform.Orm.Entities.OrmEntityMethod'. ---> System.InvalidOperationException: There was an error reflecting property 'PreExecuteTargets'. ---> System.InvalidOperationException: There was an error reflecting type 'Sage.Platform.Orm.Entities.OrmMethodTarget'. ---> System.InvalidOperationException: There was an error reflecting type 'Sage.Platform.Orm.Entities.OrmMethodTargetSnippet'. ---> System.IO.FileLoadException: A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
Thanks in advance!
If you omit the ProcessOrchestration deployment, will it finish the other target deployment(s)? I've never used that product before, but I'm taking a stab at it anyway.

A system exception occurred during an invocation on EJB AuthenticationRequestFilter method public com.sun.jersey.spi.container.ContainerRequest

I am Using RESTful APIs in my application using Jersey 1.6.
Some database is also there.
I have created two .war files in my application. These are deployed on Glassfish server3.0.1 with no issues.(no errors/exceptions).
They make some REST calls to each other for transactions.(It has a proper xml format to send a transaction).
When I try to make a transaction it gives me exceptions like
A system exception occurred during an invocation on EJB AuthenticationRequestFilter method public com.sun.jersey.spi.container.ContainerRequest com.mypack1.mypack2.resources.filters.AuthenticationRequestFilter.filter(com.sun.jersey.spi.container.ContainerRequest)
javax.ejb.EJBException
at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:5119)
and at the end it says
[#|2011-04-26T12:06:32.356+0530|WARNING|glassfish3.0.1|org.apache.http.impl.client.DefaultHttpClient|_ThreadID=27;_ThreadName=Thread-1;|Authentication error: Unable to respond to any of these challenges: {}|#]
I am sure that the xml I send is correct according to database entries.(including authentication for the particular URL).
Is there anything like "container security". Whats may go wrong in this case.
Thanks in advance.