EJB is not throwing exception to calling Action class in Unix environment
Hi
We are using Weblogic Server 9.2.3.0.
One of our EJB is not throwing exception to calling Action class in Unix environment. Its working fine in Windows.
Somehow the EJB is swallowing the exception.
any idea? I suspect it may be environmental issue?
thank you
Hi
We are using Weblogic Server 9.2.3.0.
One of our EJB is not throwing exception to calling Action class in Unix environment. Its working fine in Windows.
Somehow the EJB is swallowing the exception.
any idea? I suspect it may be environmental issue?
thank you
Similar Messages
-
Exception not throwing to action class in Unix environment
Hi
We are using Weblogic Server 9.2.3.0.
One of our EJB is not throwing exception to calling Action class in Unix environment. Its working fine in Windows.
Somehow the EJB is swallowing the exception.
any idea? I suspect it may be environmental issue?
thank youThanx for your reply.. I just found a solution and would like to share that with you. There are some default request parameters passed by the portal to the action class. "strutsAction" is one of them. If you print this parameters, you will see that it contains the complete url of your action. Now you can use String manipulation to extract the value of the parameters.
I know its a crude solution. But it works fine.
Best regards,
Omer -
OIM11g: The Message-Driven EJB: oimKernelQueueMDB is throwing exception
Hi All,
I am getting the following error always and providing trobule to run schedule job "Issue Aduit Message Task"
####<Feb 25, 2013 11:40:21 PM EST> <Warning> <EJB> <oimhp02> <prod-oim_oim_server02> <[ACTIVE] ExecuteThread: '17' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <347b29a9270cc81f:-72dc63f2:13d10f9b16f:-8000-000000000001790a> <1361853621251> <BEA-010216> <The Message-Driven EJB: oimKernelQueueMDB is throwing exception when processing the messages. Delivery failed after *2,033 attempts*. The EJB container will suspend the message delivery for 60 seconds before retry.>
see now the attempt is 2033, its incresing ....
Env Detais:
OIM11g 11.3.3.6
Weblogic 10.3.3
DB Oracle 11.2
platform: linx redhat 5
Can you please help me to solve this issue? Thank you.Check MOS Article: 1369008.1
-Bikash -
Class not found exception for the startup class defined.
iam using weblogic server 10 and bea jrockit 1.5.0.12.
i have created a startup class in the admin console for a web project and i have deployed the war file using the console in a user defined domains, user project directory.
when i start the server, iam getting class not found exception for the startup class.
But, the startup class is available in the web archive (war). how should we add the classes and jars in the war to the classpath in setDomainEnv.sh or is there any other setting available in the console to enable this.Hello Julius,
yes sure, we can move this post to the NW admin forum. I have already posted similar thread on sun forums. I was hoping that someone from SAP SDN already tackled this problem and if not someone specialized in J2EE Engine could troubleshoot me from the class problem I'm getting. I don't know if it's specific from the agent or if this ClassNotFound is a general SAP J2EE Engine error relating to a library not correclty defined.
Kind regards,
Tanguy Mezzano -
Java Does Not Throw Exception When Writing To Read-Only Files
I have noticed that when I try to write to a read-only file in a window environment, Java does not throw an IOExcpetion, it just dosn't write to the file.
I am writing an FTP server and here is the code:
public static long copyStream(InputStream in, OutputStream out)throws IOException
IOException exception = null;
long copied = 0;
try
byte buffer[] = new byte[1024];
int read;
while((read = in.read(buffer)) != -1)
out.write(buffer, 0, read);
copied += read;
catch(IOException e)
//ensures that the streams are closed.
exception = e;
try
in.close();//ensures output stream gets closed, even if there is an
//excption here.
catch(IOException e){exception = e;}
out.close();//try to close output.
if(exception != null)
//exception is not null, an exception has occured.
//rethrow exception.
throw exception;
return copied;//all ok, return bytes copied.
}Is this a bug in JAVA VM? Is so, how should I report it?I have noticed that when I try to write to a read-only file in a window environment,
Java does not throw an IOExcpetion, it just dosn't write to the file.C:\source\java\Markov>attrib readonly.out
A R C:\source\java\Markov\readonly.out
�C:\source\java\Markov>java b
java.io.FileNotFoundException: readonly.out (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at b.main(b.java:5)
import java.io.*;
public class b {
public static void main(String[] args) {
try {
OutputStream os = new FileOutputStream ( "readonly.out");
catch (Exception e) {
e.printStackTrace();
} -
Throwing exceptions on an extended class?
I currently have a class that I need to extend and one method of that class that I need to override.
Assuming the following:
public BaseClass {}
public BarClass extends BaseClass {
public configure () {}
public FooClass extends BarClass {
@Override
public configure () {
}I want to throw custom exceptions from FooClass, but haven't as yet found the magic behind doing that. If I add a throws statement to FooClass, eg.
public FooClass extends BarClass throws MyException{
@Override
public configure () {
throw new MyException();
}javac complains that a "{" was expected on the FooClass declaration.
If I add the throws to the configure() method in FooClass, javac complains that the overridden class does not throw MyException. eg.
public FooClass extends BarClass{
@Override
public configure () throws MyException {
throw new MyException();
}First, should I be able to throw my own exceptions on overridden methods of an extended class? If yes, what am I missing?
-Davidjverd wrote:
dnedrow wrote:
Aha! I see the problem.
My exception was extending Exception, not RunTimeException.
Just getting it to compile doesn't mean it's right. There are specific reasons for checked vs. unchecked exceptions. You shouldn't add an unchecked exception just to get something to compile when the parent class doesn't throw any checked exceptions. RuntimeException and its descendants specifically indicate a bug in code, not an exceptional but expected case that arises at runtime.
You should look at the docs for the parent class to find out what it does when there's an error. Don't break its contract.Hmmmm. That presents a problem. The original classes do virtually nothing for error handling, but are implemented in a number of legacy apps, so I really can't do much there (in addition to the whole developer "owner/ego" issue with the original author). These legacy apps regularly blow up because the classes used rarely even bother to check inputs beyond Java type matching. Eg., a utility class that doesn't check date ranges to ensure that the maximum date is greater than the minimum date, etc.
So, for new apps, I would like to extend several of the existing classes to implement better handling of what I would consider exceptional circumstances (eg. minDate > maxDate).
That's basically the motivation here. I suppose I probably shouldn't waste my time and just leave it as is and do all the checking in my app.
-David -
One-way soap call do not throw exception
Hello,
I prepared a client for web service with JWSDP-2.0. wscompile generated proxy classes. The web service uses "basic authentication". Now comes my problem. wscompile generated stub which calls
_sendOneWay((java.lang.String) _getProperty(ENDPOINT_ADDRESS_PROPERTY), _state);Because the web service is defined as: void ENCRYPTED_MESSAGE(SOAPElement)
When basic authentication fails (I get HTTP 401 code - which I can see in debug created by JVM parameter -Djavax.net.debug=all ) then NO EXCEPTION is fired!!!
When I change the wsdl and add dummy output parameter, then send((java.lang.String) getProperty(EN... is generated and authentication fires exception. But this is not the right way to do it.
My question is - can I make wscompile to generate Stub without _sendOneWay?
Thanks for yout time and attention!
HonzaI forgot to say that I am using JDeveloper 9.0.5.2 and that I have built an ADF application with Struts + ADF Business Components (bc4j)
Thanks -
Hi everyone,
I am new to JPA, and currently trying to persist/update an entity to a HSQL database. According to the API, the persist method of the class EntityManager, throws an exception if we try to persist an entity which already exists, but in my case, it seems to update the entity, if it exists.
Here's a snippet of the commit code
public void commit(Object obj){
if(entityManager == null) {
entityManager = getEmf().createEntityManager();
if(entityTransaction == null){
entityTransaction = entityManager.getTransaction();
if(!entityTransaction.isActive()){
entityTransaction.begin();
entityManager.persist(obj);
try{
entityTransaction.commit();
} finally {
close();
private void close(){
EntityManager tempEntityManager = entityManager;
EntityTransaction tempEntityTransaction = entityTransaction;
entityManager = null;
entityTransaction = null;
try{
if(tempEntityTransaction != null && tempEntityTransaction.isActive()){
tempEntityTransaction.rollback();
} finally{
if(tempEntityManager != null) {
tempEntityManager.close();
}As you can see, my commit method calls the persist method always, so if I try to commit an entity twice, it should throw an exception, but instead it updates the entity. Could any of you tell me why this is the case?Look at the setLenient method.
Also, read the part in the docs about when the number of characters does and does not matter when parsing. -
WebLogic Class not found Exception while calling XA-APIs
Hi,
Any oone have any information about the following exception I get while calling xa-apis while using Oracle 8.1.7 thin jdbc driver.
Thanks - Sanjay
** 2001-01-25 18:13:08.989
*** SESSION ID:(24.98) 2001-01-25 18:13:08.977
java.lang.ClassNotFoundException: weblogic.transaction.internal.XidImpl
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java)
at
oracle.jdbc.xa.server.OracleWrapXAResource.deserializeObject(OracleWrapX
AResource.java)
at
oracle.jdbc.xa.server.OracleWrapXAResource.start(OracleWrapXAResource.ja
va)
java.lang.NullPointerException
at
oracle.jdbc.xa.server.OracleWrapXAResource.start(OracleWrapXAResource.ja
va)
Hi Sanjay and Vel,
We have been running internal test suites using the Oracle 8.1.7 thin driver,
and did not run into this problem. I suspect this may be related to the database
setup or environment. We would also like to understand why it happens. I would
suggest either of you to report this problem to Oracle support and see whether
they could shed some light on this.
-- Priscilla Fung, BEA Systems, Inc.
"Vel" <[email protected]> wrote:
>
>Hello Sanjay.
>I'm having the same problem.
>Did u find why that happened? If yes, pls let me know.
>Thanks in advance.
>Vel
>"Sanjay" <[email protected]> wrote:
>>
>>Hi,
>>Any oone have any information about the following exception I get while
>>calling xa-apis while using Oracle 8.1.7 thin jdbc driver.
>>Thanks - Sanjay
>>
>>** 2001-01-25 18:13:08.989
>>*** SESSION ID:(24.98) 2001-01-25 18:13:08.977
>>java.lang.ClassNotFoundException: weblogic.transaction.internal.XidImpl
>> at java.io.ObjectInputStream.inputObject(ObjectInputStream.java)
>> at java.io.ObjectInputStream.readObject(ObjectInputStream.java)
>> at java.io.ObjectInputStream.readObject(ObjectInputStream.java)
>> at
>>oracle.jdbc.xa.server.OracleWrapXAResource.deserializeObject(OracleWrapX
>>AResource.java)
>> at
>>oracle.jdbc.xa.server.OracleWrapXAResource.start(OracleWrapXAResource.ja
>>va)
>>java.lang.NullPointerException
>> at
>>oracle.jdbc.xa.server.OracleWrapXAResource.start(OracleWrapXAResource.ja
>>va)
>>
>
-
Java.lang.class not found exception to .ez.EZmed.class
error every time I try to access chat. have reloaded both the plug in and virtual machine. Nada. Can anybody help me?
Thanks in advanceThe class "ez.EZMed" (assuming the leading dot is a typo) is simply not found in your classpath.
-
Help plz~ I can not get application to call product class
Hello!
I am creating a java application using two files. I have a product class file, and a main method file. My product class file compiles fine. I am have trouble compiling my main method file. I am getting 5 errors that say cannot find symbol in my main method file.
This is my toString method in my product class:
// return String representation of Product object
public String toString()
return String.format( "%s: %d: %d: %.2f: %.2f" );
}// end method toStringHere is my code from my main method to call my product class:
public class Inventory
public static void main( String args[] )
Inventory DVD = new Inventory();
System.out.printf( "%s%s\t", "Product name is", DVD.getproductName() );
System.out.printf( "%s%d\t", "Product number is", DVD.getproductNumber() );
System.out.printf( "%s%d\t", "Product units in stock is", DVD.getunitNumber() );
System.out.printf( "%s%.2f\t", "Product price is", DVD.getunitPrice() );
System.out.printf( "%s%.2f\t", "Product value is", DVD.getproductValue() );
System.out.printf( "\n%s:\n\n%s\n" );
} // end main method
}//end class InventoryCan anyone assist me please?
Thank you,I get this error: cannot find symbol
for these lines, it points to my get variables:
System.out.printf( "\t productName: %d", "Product name is",
DVD.getproductName() );
System.out.printf( "%s%d\t", "Product number is",
DVD.getproductNumber() );
System.out.printf( "%s%d\t", "Product units in stock is",
DVD.getunitNumber() );
System.out.printf( "%s%.2f\t", "Product price is",
DVD.getunitPrice() );
System.out.printf( "%s%.2f\t", "Product value is",
DVD.getproductValue() );
System.out.printf( "\n%s:\n\n%s\n" ); -
Constructor can throw exception or Not ?
Anybody please tell me if the constructor throws an exception or not ?
Please reply soon
Thanks
AmitindiaA constructor can throw an Exception. However I
would suggest throwing the generic Throwable, Error,
Exception or RuntimeException rather than a specific
exception is bad practice and you should choose an
appropirate exception to throw.All depends on wich kind of exception you are throwing,checked or unchecked. It's an even worse form to throw a RE, Error, or Throwable when you are throwing in fact a checked exception.
Nevertheless, I do agree, you must always strive to not throw exceptions, of any kind, in your construtor code. Construtors should be simple and reliable. Unles you have a very compelling reason to not do it, try to isolate the risky parts of the code where they are called ofter object construction or class loading.
May the code be with you. -
Web part throwing exception at run time but not in debug mode
The below code is throwing exception at run time but does not throw exception while debugging in Visual Studio. This is really causing difficulty for me to detect the cause of exception. Below I have also placed the exception image for reference.
namespace CheckforContractorLogin.VisualWebPart1
public partial class VisualWebPart1UserControl : UserControl
protected void Page_Load(object sender, EventArgs e)
if (!IsPostBack)
string loginName = string.Empty;
string coc_url = string.Empty;
SPQuery spQuery = new SPQuery();
spQuery.Query = "<Where><Eq><FieldRef Name='LoginName' /><Value Type='Text'>" + currentUser + "</Value></Eq></Where>";
Guid _spSiteID = SPContext.Current.Site.ID;
Guid _spWebID = SPContext.Current.Site.OpenWeb().ID;
SPSecurity.RunWithElevatedPrivileges(delegate()
using (SPSite _spSite = new SPSite(_spSiteID))
using (SPWeb _spWeb = _spSite.OpenWeb(_spWebID))
//if user has already accepted the COC
SPList getSPList = _spWeb.Lists["RedirectUrl"];
SPListItemCollection getspItemColl = getSPList.Items;
foreach (SPListItem item in getspItemColl)
if (Convert.ToString(item["Title"]) == "Policy Acceptance")
coc_url = Convert.ToString(item["Url"]);
SPList spList = _spWeb.Lists["Policy Acceptance Status"];
SPListItemCollection spItemColl = spList.GetItems(spQuery);
bool result = getADUserInfo();
if ((spItemColl.Count == 0) && (result))
Response.Redirect(coc_url);
protected string currentUser
get
string currentUser1 = HttpContext.Current.User.Identity.ToString();
int index = currentUser1.IndexOf("\\") + 1;
string currentLoginUser = currentUser1.Substring(index);
return currentLoginUser;
protected bool getADUserInfo()
DirectoryEntry dentry = null;
DirectorySearcher dsearcher = null;
string ldap = string.Empty;
string empID = string.Empty;
string _empID = string.Empty;
try
Guid spSiteGUID = SPContext.Current.Site.ID;
Guid spWebGUID = SPContext.Current.Site.OpenWeb().ID;
SPSecurity.RunWithElevatedPrivileges(delegate()
using (SPSite elevatedSiteColl = new SPSite(spSiteGUID))
using (SPWeb elevatedWeb = elevatedSiteColl.OpenWeb(spWebGUID))
SPList spList = elevatedWeb.Lists["LDAP_Paths"];
SPQuery spQuery = new SPQuery();
spQuery.Query = "<Where><Eq><FieldRef Name='OU'/>"
+ "<Value Type='Text'>QD</Value></Eq></Where>";
SPListItem spItem = spList.GetItemById(1);
ldap = spItem["Path"].ToString();
dentry = new DirectoryEntry();
dentry.Path = ldap;
dentry.Username = "******\\sp_admin";
dentry.Password = "******";
dsearcher = new DirectorySearcher(dentry);
dsearcher.Filter = String.Format("(&(ObjectCategory=Person)(sAMAccountName=" + currentUser + "))");
SearchResult searchResult = dsearcher.FindOne();
dentry = searchResult.GetDirectoryEntry();
if (searchResult != null)
if (dentry.Properties.Contains("physicalDeliveryOfficeName"))
empID = dentry.Properties["physicalDeliveryOfficeName"][0].ToString();
if (empID.Contains("QA-"))
return true;
else
return false;
catch (Exception e)
throw e;
finally
dentry.Close();
dentry.Dispose();
dsearcher.Dispose();Hi Zakir,
I am not sure but it would be nice if you can do following
Try search ULS log with correlation id and find exact error and share here. If not able to find do following
Or in catch block write
Response.Write(ex.ToString());
and check what exception its giving. -
Dispatching GridSelectionEvent throw exception at runtime - A build issue with FB 4.5
This is a strang probelm I am facing with.
My code dispatches GridSelectionEvent after setting girds' selected item in one logic path. Following is code lines -
myDataGrid.selectedItem = instanceTag;
myDataGrid.dispatchEvent(new GridSelectionEvent(GridSelectionEvent.SELECTION_CHANGE));
Flash player throws following error on above statements encounter -
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at spark.accessibility::DataGridAccImpl/eventHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
I am saying it is a strang for me because when I use swf file generated by Flex Builder (4.5)'s export to release build, it does not throw error and code works fine as expected.
But, when I user swf file generated by Ant script, I face the above issue.
The Flex builder settings is as shown in following image -
Ant mxmlc script is as follow -
<mxmlc
file="${basedir}/src/AppMonConfigWizard.mxml"
static-rsls="false"
keep-generated-actionscript="false"
output="${basedir}/bin-release/AppMonConfigWizard.swf" >
<locale>en_US</locale>
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
<source-path path-element="${FLEX_HOME}/frameworks"/>
<source-path path-element="${basedir}/src/locale/{locale}"></source-path>
<compiler.library-path file="${basedir}/../wizard_framework/bin/wizard_framework.swc" append="true"/>
<compiler.library-path file="${basedir}/../../utils/bin/utils.swc" append="true"/>
<include-resource-bundles>ErrorMessages</include-resource-bundles>
<include-resource-bundles>Strings</include-resource-bundles>
</mxmlc>
As mentioned earlier that following statements cause exception -
myDataGrid.selectedItem = instanceTag;
myDataGrid.dispatchEvent(new GridSelectionEvent(GridSelectionEvent.SELECTION_CHANGE));
If I change it to
myDataGrid.setSelectedIndex(<some index value>) /*selectedItem replaced with setSelectedIndex*/
myDataGrid.dispatchEvent(new GridSelectionEvent(GridSelectionEvent.SELECTION_CHANGE));
it does not throw exception. I would like to mention that myDataGrid.selectedItem = instanceTag; does sets the selected item but then in that case issue arises when dispatching event.
I my application, similar statemetns were lot at many places (as there were no such issue with SDK 3.1 which was using earlier) so instead of making changes there, it would be better to imitate the build that Flex builder uses when exported the release build.
Thanks in advance,
Prithveesingh Zankat.Solved it: had set the only public surface contracts checkbox by mistake and the cosntructor was protected...
Luis Abreu -
Exceptions - documentation on which methods throw exceptions ?
Hi, does anyone know where I can find full documentation on iphone SDK methods
The iphone SDK documentation seems to be incomplete.
For instance, the discussion section of the SDK documentation for NSMutableArray addObject method doesn't mention anything about exceptions.
However, the method could throw an exception (and this is mentioned in http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSMu tableArray_Class/Reference/Reference.html)
I'm assuming that alloc will not throw exceptions and that it will just return nil if no memory is available. However, I haven't found any documentation that states this.
Does anyone have a pointer to Apple documentation for methods (that includes information on any (and all) exceptions thrown by the method and also includes information on possible return values for the method) ?There is this
http://java.sun.com/products/jdbc/driverdevs.html
I am pretty sure that there is little in the meta data stuff that has to be supported.
Maybe you are looking for
-
BI 4.0 w/ Windows AD SSO, but Crystal Report (mdx) prompt login data
Hi guru, We have been struggling for a while on the sso issue between BI 4.0, AD, BW, and CR. Our architecture is not complex: 1. A BI 4.0 (BOE) on Tomcat (windows) 2. Backend SAP BW as main data source 3. AD, SAP Authentication are configured in CMC
-
Table to find posted goods issue of vl02n
Hi all, After perform the post good issue on vl02n, SAP suppose to update the posted goods issue into a table. So may i know which table to find the posted goods issue record ? Regards, Marcus
-
Can anyone tell me if there are any whitepapers that breakdown when you store a document in a filesystem vs a database? We have a need to store up to millions of documents and search them (just like a search engine) I am hesitate to put that load on
-
Mountain Lion installation problem?
Hi, so I have a mid-2012 MacBook Pro and im installing Mountain Lion. I've gotten to the part where the screen shows that it's installing on Macintosh HD with the estimated time. The problem being that it says I am at "About -15 minutes" and it conti
-
Hi Folks, I am a longtime ubuntu user switching to Arch. Just installed Arch on my thinkpad R50p and extremely impressed with it. I have gotten almost everything working properly but setting up vpn. I am aware that vpnc does not come with OpenSSL. C