Getting exception while conerting bytearrayinputstream to objectinputstream

this is my code:
FrmwkNotificationMessage frmwkNotifMsg;
System.out.println("Entering Handler");
//Converting IMessage to EstNotificationMessage object
frmwkNotifMsg = (FrmwkNotificationMessage) msg;
ByteArrayInputStream bis = new ByteArrayInputStream(frmwkNotifMsg.getOriginalBytes());
System.out.println("bytes");
ObjectInputStream ois = new ObjectInputStream(bis);
Object obj = ois.readObject();
System.out.println("converted to object");
i am getting the sys.out "bytes" in my console but not "converted to object". instead it is throwing an exception. can anyone help?

What exception, and we have no idea what "FrmwkNotificationMessage", might be doing and how that may relate to the problem.

Similar Messages

  • Getting Exception while connecting to oim

    Getting Exception while connecting to oim
    log4j:WARN No appenders could be found for logger (XELLERATE.JBOSSLOGINHANDLER).
    log4j:WARN Please initialize the log4j system properly.
    Exception in thread "main" java.lang.NoSuchFieldError: TRACE
         at org.jboss.logging.Log4jLoggerPlugin.isTraceEnabled(Log4jLoggerPlugin.java:85)
         at org.jboss.logging.Logger.isTraceEnabled(Logger.java:122)
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:660)
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at com.thortech.xl.ejb.interfaces.tcUnauthenticatedOperationsUtil.lookupHome(Unknown Source)
         at com.thortech.xl.ejb.interfaces.tcUnauthenticatedOperationsUtil.getHome(Unknown Source)
         at Thor.API.Security.ClientLoginUtility.getUnauthenticatedOperations(Unknown Source)
         at Thor.API.Security.ClientLoginUtility.login(Unknown Source)
         at Thor.API.tcUtilityFactory.<init>(Unknown Source)
         at SearchUser.Connect(SearchUser.java:101)
         at SearchUser.main(SearchUser.java:215)
    Process exited with exit code 1.
    I have added configuration file path also i copied log4j file to xlClient from JBOSS_HOME/server/default but still i am getting this exception.

    The new log4j JAR file has to be named exactly the same way the previous one was named (log4j-1.2.8.jar I think).

  • Getting Exception while trying to get Connection

    Getting Exception while trying to get Connection from Data Source in ejbCreate() for the First time when ejbCreate() is called.
    Thanks in Advance

    Hello Mallidi,
    And the exception is ?
    Cheers, Tsvetomir

  • Getting exception while running es.getService("", "InfoStore" )

    Not sure if this is the correct forum to place this question.
    We are connecting to a BOE XI Rel 3.1 server that has Crystal Reports templates.  We are trying to get the report number by performing the folowing query:
    "Select SI_ID, SI_DESCRIPTION From CI_INFOOBJECTS Where SI_NAME ='"report_name"'"
    We are getting an erro message while performing the following code:
    iStore = (IInfoStore) es.getService("", "InfoStore" );
    We get the exception below about 10 to 15 times but then it is able to work and it gets the report id correctly.
    We get the following exception:
    2009-03-30 08:59:34,222 OFA_ERROR com.crystaldecisions.celib.trace.d.a(Unknown Source)[initialize(): invalid xrl,3&U=5,03&.1={3&1=NoAccess,0P&2=1,03&9i={},2z},2z&.2={3&1=View,0P&2=2,03&9i={3&U=14,03&.1={3&1=62018,03&2=3,03&?7=1,08},2z&.2={3&1=62022,03&2=4,03},2z&.3={3&1=62025,03&2=7,03},2z&.4={3&1=62026,03&2=8,03},2z&.5={3&1=62027,03&2=9,03},2z&.6={3&1=62031,03&2=13,03},2z&.7={3&1=62032,03&2=14,03},2z&.8={3&1=62033,03&2=15,03},2z&.9={3&1=62034,03&2=16,03},2z&.?={3&1=62036,03&2=18,03},2z&.@={3&1=62041,03&2=23,03},2z&.A={3&1=62042,03&2=24,03},2z&.B={3&1=62043,03&2=25,03},2z&.C={3&1=62062,03&2=44,03},2z},2z},2z&.3={3&1=Schedule,0P&2=3,03&9i={3&U=1,03&.1={3&1=62018,03&2=3,03&?7=1,08},2z},2z},2z&.4={3&1=ViewOnDemand,0P&2=4,03&9i={3&U=1,03&.1={3&1=62018,03&2=3,03&?7=1,08},2z},2z},2z&.5={3&1=FullControl,0P&2=5,03&9i={3&U=48,03&.1={3&1=62018,03&2=3,03&?7=1,08},2z&.2={3&1=60431,03&2=6,03&?7=1,08},2z&.3={3&1=60432,03&2=8,03&?7=1,08},2z&.4={3&1=60437,03&2=73,03&?7=1,08},2z&.5={3&1=62019,03&2=1,03},2z&.6={3&1=62020,03&2=2,03},2z&.7={3&1=62021,03&2=3,03},2z&.8={3&1=62022,03&2=4,03},2z&.9={3&1=62023,03&2=5,03},2z&.?={3&1=62024,03&2=6,03},2z&.@={3&1=62025,03&2=7,03},2z&.A={3&1=62026,03&2=8,03},2z&.B={3&1=62027,03&2=9,03},2z&.C={3&1=62028,03&2=10,03},2z&.D={3&1=62029,03&2=11,03},2z&.E={3&1=62030,03&2=12,03},2z&.F={3&1=62031,03&2=13,03},2z&.G={3&1=62032,03&2=14,03},2z&.H={3&1=62033,03&2=15,03},2z&.I={3&1=62034,03&2=16,03},2z&.J={3&1=62035,03&2=17,03},2z&.K={3&1=62036,03&2=18,03},2z&.L={3&1=62037,03&2=19,03},2z&.M={3&1=62038,03&2=20,03},2z&.N={3&1=62039,03&2=21,03},2z&.O={3&1=62040,03&2=22,03},2z&.P={3&1=62041,03&2=23,03},2z&.Q={3&1=62042,03&2=24,03},2z&.R={3&1=62043,03&2=25,03},2z&.S={3&1=62044,03&2=26,03},2z&.T={3&1=62045,03&2=27,03},2z&.U={3&1=62046,03&2=28,03},2z&.V={3&1=62047,03&2=29,03},2z&.W={3&1=62048,03&2=30,03},2z&.X={3&1=62049,03&2=31,03},2z&.Y={3&1=62050,03&2=32,03},2z&.Z={3&1=62051,03&2=33,03},2z&.a={3&1=62052,03&2=34,03},2z&.b={3&1=62053,03&2=35,03},2z&.c={3&1=62054,03&2=36,03},2z&.d={3&1=62055,03&2=37,03},2z&.e={3&1=62056,03&2=38,03},2z&.f={3&1=62057,03&2=39,03},2z&.g={3&1=62058,03&2=40,03},2z&.h={3&1=62059,03&2=41,03},2z&.i={3&1=62060,03&2=42,03},2z&.j={3&1=62061,03&2=43,03},2z&.k={3&1=62062,03&2=44,03},2z},2z},2z]
    com.crystaldecisions.celib.exception.c: ASSERTION FAILED
          at com.crystaldecisions.celib.trace.d.a(Unknown Source)
          at com.crystaldecisions.enterprise.ocaframework.k.a(Unknown Source)
          at com.crystaldecisions.celib.properties.Property.a(Unknown Source)
          at com.crystaldecisions.celib.properties.Property.getPropertyBag(Unknown Source)
          at com.crystaldecisions.celib.properties.PropertyBag.getPropertyBag(Unknown Source)
          at com.crystaldecisions.sdk.occa.pluginmgr.internal.a.getSecurityInfo(Unknown Source)
          at com.crystaldecisions.sdk.occa.infostore.internal.InfoStore.a(Unknown Source)
          at com.crystaldecisions.sdk.occa.infostore.internal.InfoStore.<init>(Unknown Source)
          at com.crystaldecisions.sdk.occa.infostore.internal.InfoStoreFactory.makeOCCA(Unknown Source)
          at com.crystaldecisions.sdk.framework.internal.a.getService(Unknown Source)
          at us.tx.state.dads.ofa.web.core.BaseAction.getToken(BaseAction.java:294)
    If you have experianced this problem or know of a workaround it would be greatly appreciated.
    Thanks,

    I've seen similar stack trace before, but the issue is usually consistent.
    You're getting exception when it's reading the Security Info property bag.
    Does this happen with all Users, even the Administrator account?
    Sincerely,
    Ted Ueda
    ps.  this should be posted on the Java, and not .Net, side.
    Moved to Java...
    Edited by: Don Williams on Apr 17, 2009 11:24 AM

  • Getting exception while trying to lookup jmsconnectionfactory

    Hi All,
              I am getting an exception while trying to do a lookup JMSConnection Factory.
              javax.naming.InvalidNameException: Exception in lookup. [Root exception is org.omg.CosNaming.NamingContextPackage.InvalidName: IDL:omg
              .org/CosNaming/NamingContext/InvalidName:1.0]
              I have two different machines i have installed my program. On one its working perfectly will but on other machine its giving this error. There is no change in code and java version on both machine.
              Do any one have clue why this will be happening. I urgently need the solution of it.
              weblogic version is : 8.1 SP6
              java version is : 1.4

    That is an iiop problem. Try using t3 protocol replacing thin client with thick client(weblogic.jar).
              - Sathish

  • Getting exception while clicking any of the link in the .xhtml page

    Hi,
    I have an issue while clicking any of the link from the .xhtml page. The page have three <h:selectOneMenu> selection box and some hyperlinks. First time screen loading properly with values populated in these <h:selectOneMenu> selection box. After that if i click any of the link i will get below exception. This is working fine if my backing bean is in session. I changed the backing bean from session to request scope i got this exception.
    This is my backing bean entry in faces-config.xml
    <managed-bean>
    <managed-bean-name>pricingBean</managed-bean-name>
    <managed-bean-class>com.pricing.mbean.PricingBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    Exception
    Apr 28, 2008 11:19:54 AM com.sun.faces.lifecycle.LifecycleImpl phase
    WARNING: executePhase(PROCESS_VALIDATIONS 3,com.sun.faces.context.FacesContextImpl@718e84) threw exception
    javax.faces.FacesException
    at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:108)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
    at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: java.lang.IllegalArgumentException
    at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:168)
    at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:51)
    at javax.faces.component.UISelectOne.matchValue(UISelectOne.java:165)
    at javax.faces.component.UISelectOne.validateValue(UISelectOne.java:137)
    at javax.faces.component.UIInput.validate(UIInput.java:868)
    at javax.faces.component.UIInput.executeValidate(UIInput.java:1071)
    at javax.faces.component.UIInput.processValidators(UIInput.java:663)
    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1040)
    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1040)
    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1040)
    at javax.faces.component.UIForm.processValidators(UIForm.java:229)
    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1040)
    at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:667)
    at org.ajax4jsf.component.AjaxViewRoot.access$201(AjaxViewRoot.java:59)
    at org.ajax4jsf.component.AjaxViewRoot$3.invokeRoot(AjaxViewRoot.java:321)
    at org.ajax4jsf.context.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:56)
    at org.ajax4jsf.context.AjaxContextImpl.invokeOnRegionOrRoot(AjaxContextImpl.java:173)
    at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:335)
    at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
    ... 21 more
    java.lang.IllegalArgumentException
    at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:168)
    at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:51)
    at javax.faces.component.UISelectOne.matchValue(UISelectOne.java:165)
    at javax.faces.component.UISelectOne.validateValue(UISelectOne.java:137)
    at javax.faces.component.UIInput.validate(UIInput.java:868)
    Truncated. see log file for complete stacktrace
    >
    Please any one help to solve this issue.........................
    Edited by: JSFDevelopment on Apr 28, 2008 8:37 AM
    Edited by: JSFDevelopment on Apr 28, 2008 8:37 AM
    Edited by: JSFDevelopment on Apr 28, 2008 8:39 AM

    So the f:selectItems list is empty in the next request. Rewrite your bean code so that it prefills the list in the constructor or initialization block or even by lazy loading in the getter of the f:selectItems.

  • Getting exception while accessing External WebServices from Portal Componen

    Hi,
    We are using one external Temperature WebService and calling it from the proxy which is called by a Portal Component. My proxy name is TempService and portal component name is TempComponent.While calling the web service from portal component we are getting the exception. When I checked with log file, I got that invokeMethod() is failing and following exception is occuring :
    Caused by: com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: IOError while working with the message. Check the nested Exception.
         at com.sapportals.portal.prt.service.soap.SOAPService.call(SOAPService.java:197)
         at com.sapportals.portal.prt.service.soap.PRTSOAPCall.invokeMethod(PRTSOAPCall.java:209)
         at com.sap.portal.tutorial.translation.TempService.getTemp(TempService.java:158)
         at com.sap.portal.tutorial.TempComponent.TempComponent.doContent(TempComponent.java:18)
    Can some one help us to resolve it.
    Thanks in advance,
    ajay

    As far as I know, webservices are working pretty well from SP2 Patch4. On patch3 hf2 I've had problems creating the proxy classes (especially for consuming .net webservices) and also gotten some runtime exception (cannot remember what they were).
    Suggest you open an OSS against SAP with your specific problem.

  • Getting exception while trying to connect mysql database

    hi
    i am using mysql as database while connecting to database using jsp i am getting the following exception
    "java.lang.ClassNotFoundException:com.mysql.jdbc.Dr iver"
    can any one tell wha tis the actual problem
    regards

    If you've tens of applications on the server which
    makes use of the same driver/JAR, then you can put
    this JAR in the classpath of the server to save
    WAR/EAR space. And about differing versions: I am not
    used to do so. Otherwise just put the different/older
    version in the classpath of the webapp and then give
    it higher priority in the classloader.If you are using Enterprise Applications, disk space for the code should be your last concern. If you don't have enough of that for each of the applications to have their own space for the third party jars that they use, then you need a new server, as the one you have is not going to be able to handle the load anyway.
    And as far as fiddling around with the classpath to avoid jarfile "collision" or incapability, good luck. The first time you add a new application all the others will stop working and you will have to spend two days reordering the classpath properly, so that they all work again. I know, because I have seen it happen, even though I suggested to them to do it the other way, they insisted on doing things the way you suggested and, like I said, as soon as they added the next application, the server was down for two days, until they got all of the classpath/(classloader priority) issues straightened out.

  • Getting exceptions while sending mail using javamail api

    Hi to all
    I am developing an application of sending a mail using JavaMail api. My program is below:
    quote:
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    public class sms
    public static void main(String args[])
    try
    String strstrsmtserver="smtp.bol.net.in";
    String strto="[email protected]";
    String strfrom="[email protected]";
    String strsubject="Hello";
    String bodytext="This is my first java mail program";
    sms s=new sms();
    s.send(strstrsmtserver,strto,strfrom,strsubject,bodytext);
    catch(Exception e)
    System.out.println("usage:java sms"+"strstrsmtpserver tosddress fromaddress subjecttext bodyText");
    System.exit(0);
    public void send(String strsmtpserver,String strto,String strfrom ,String strsubject,String bodytext)
    try
    java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    Properties p=new Properties(System.getProperties());
    if(strsmtpserver!=null)
    p.put("mail.transport.protocol","smtp");
    p.put("mail.smtp.host","[email protected]");
    p.put("mail.smtp.port","25");
    Session session=Session.getDefaultInstance(p);
    Message msg=new MimeMessage(session);
    Transport trans = session.getTransport("smtp");
    trans.connect("smtp.bol.net.in","[email protected]","1234563757");
    msg.setFrom(new InternetAddress(strfrom));
    msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(strto,false));
    msg.setSubject(strsubject);
    msg.setText(bodytext);
    msg.setHeader("X-Mailer","mtnlmail");
    msg.setSentDate(new Date());
    Transport.send(msg);
    System.out.println("Message sent OK.");
    catch(Exception ex)
    System.out.println("here is error");
    ex.printStackTrace();
    It compiles fine but showing exceptions at run time.Please help me to remove these exceptions.I am new to this JavaMail and it is my first program of javamail.Please also tell me how to use smtp server.I am using MTNL 's internet connection having smtp.bol.net.in server.
    exceptions are:
    Here is exception
    quote:
    Javax.mail.MessagingException:Could not connect to SMTP host : smtp.bol.net.in, port :25;
    Nested exception is :
    Java.net.ConnectException:Connection refused: connect
    At com.sun.mail.smtp.SMTPTransport.openServer<SMTPTransport.java:1227>
    At com.sun.mail.smtp.SMTPTransport.protocolConnect<SMTPTransport.java:322>
    At javax.mail.Service .connect(Service.java:236>
    At javax.mail.Service.connect<Service.java:137>
    At sms.send<sms.java:77>
    At sms.main<sms.java:24>

    Did you find the JavaMail FAQ?
    You should talk to your ISP to get the details for connecting to your server.
    In this case I suspect your server wants you to make the connection on the
    secure port. The FAQ has examples of how to do this for GMail and Yahoo
    mail, which work similarly. By changing the host name, these same examples
    will likely work for you.

  • Getting exception whil calling an oracle stored procedure from java program

    Dear All,
    I encounter this error in my application when I call only the stored procedure but the view is executing fine from the application and my environment is as follow:
    Java 1.4
    oracle 10g
    oracle jdbc driver:9.2.0.8.0
    websphere portal 6.0.0.1
    this error is occur from time to time randomly, when it happens, the only workaround is to restart the server..Does anyone have any idea about this error?
    Unable to execute stored Procedure in Method
    java.lang.NullPointerException
    at oracle.jdbc.driver.T4C8Oall.getNumRows(T4C8Oall.java(Compiled Code))
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1140)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java(Compiled Code))
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java(Compiled Code))
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3606)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:5267)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.pmiExecute(WSJdbcPreparedStatement.java:632)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.execute(WSJdbcPreparedStatement.java:427)
    And sometime I am getting this exception
    Unable to execute stored Procedure in Method
    java.lang.ArrayIndexOutOfBoundsException: 27787320
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java(Compiled Code))
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1134)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java(Compiled Code))
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java(Compiled Code))
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3606)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:5267)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.pmiExecute(WSJdbcPreparedStatement.java:632)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.execute(WSJdbcPreparedStatement.java:427)
    Thanks
    Jay

    spacetorrent escribi&oacute;:
    for (int x=0; x <result.size(); x++){
    System.out.println(result.get(x));
    I can't do this, because result object is a Map, and I need write the Key of the Value to obtain.
    So I can do:
    result.get("res");And I odtain a *$Proxy3* Object

  • Getting exceptions while trying to set index

    I'm trying to create an index using the following code:
    NamedCache cache = this.getPrimaryDAO().getCache();
    cache.addIndex(new ReflectionExtractor("getStateCode"), true, null);
    I get the following Unsupported operation exception:
    java.lang.UnsupportedOperationException
    at com.tangosol.coherence.component.util.CacheHandler.addIndex(CacheHandler.CDB:1)
    at com.tangosol.coherence.component.util.SafeNamedCache.addIndex(SafeNamedCache.CDB:1)
    at com.geico.oasis.coverage.VehicleCoverageDAOCacheImpl.populateCache(VehicleCoverageDAOCacheImpl.java:66)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:163)
    at $Proxy2.populateCache(Unknown Source)
    at com.geico.oasis.cache.SimpleCacheExplorer.main(SimpleCacheExplorer.java:152)
    I'm not sure why this exception occurs and can't find the classes
    com.tangosol.coherence.component.util.CacheHandler and
    com.tangosol.coherence.component.util.SafeNamedCache
    in the javadoc.
    I am absolutely positive that the "getStateCode" method exists in the cache objects.

    Gary,
    Thanks for your help regarding the distributed scheme. I have another question regarding indexes.
    I was able to add indexes to a cache. This cache holds objects which contain all the rows in one of our database tables.
    I run a sql query using hibernate on the database table, and then run the same query using filters on the cache. I am not noticing a significant performance gain. Is there something I'm doing wrong?
    Here's what I'm trying to do:QueryMap cache = (QueryMap)this.getPrimaryDAO().getCache();
    Filter filterStateEq = new EqualsFilter("getStateCode", state);
    Filter filterCompanyEq = new EqualsFilter("getCompanyCode", company);
    Filter filterCoverageEq = new EqualsFilter("getCovCode", coverage);
    Filter filterEffDateLE  = new DateLessEqualsFilter("getEffectiveDate", effectiveDate);
    Filter filterExpDateGE  = new DateGreaterEqualsFilter("getExpirationDate", effectiveDate);
    Filter filterAnd = new AllFilter(new Filter[]
        {filterStateEq, filterCompanyEq, filterLobEq, filterEffDateLE, filterExpDateGE});
    Set filteredSet = cache.keySet(filter);Basically I'm trying to simulate a sql query:
    select * from <table> where state = <state@gt;
    and company = <company>
    and covcode = <covcode>
    and ......

  • Urgent: Getting Exception while starting OIM in Weblogc

    Hello,
    While starting OIM (9102 BP15) over weblogic, i see this exception in the logs. What could be the issue ?
    ####<Dec 8, 2011 4:47:26 PM PST> <Error> <HTTP> <hostname> <OIM_SERVER1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <e24a8026bbd689e0:-7c44a4db:13420495efa:-8000-0000000000000002> <1323391646389> <BEA-101165> <Could not load user defined filter in web.xml: com.thortech.xl.webclient.security.SecurityFilter.
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key nexel.security.filter
    at java.util.ResourceBundle.getObject(ResourceBundle.java:374)
    at java.util.ResourceBundle.getString(ResourceBundle.java:334)
    at com.thortech.xl.webclient.security.SecurityFilter.init(Unknown Source)
    at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:332)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.FilterManager.loadFilter(FilterManager.java:98)
    at weblogic.servlet.internal.FilterManager.preloadFilters(FilterManager.java:59)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1878)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3154)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:485)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:427)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:201)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:249)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:427)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:28)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:637)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
    at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:52)
    at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
    at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:31)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
    at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:170)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:124)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:181)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:97)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    >
    Thanks,

    Did you upgrade it recently? any recent changes in the environment?
    -Bikash

  • Getting exception while creating new application in AppWizard

    Hi.
    I installed Hyperion Planning 9.3.1 and I have configured a remote Oracle database as host db. I had no problems in installation.
    I could create users and assign them the responsibilities also. However when I started creating an application, I started getting this error (in my Planning Tomcat console) and the application hung forever:
    Query Failed: SQL_SYSDB_DELETE_EXPIRED_EXTERNAL_ACTIONS:[100]
    java.sql.SQLException: [Hyperion][Oracle JDBC Driver][Oracle]ORA-00932: inconsis
    tent datatypes: expected INTERVAL got NUMBER
    at hyperion.jdbc.base.BaseExceptions.createException(Unknown Source)
    at hyperion.jdbc.base.BaseExceptions.getException(Unknown Source)
    at hyperion.jdbc.oracle.OracleImplStatement.execute(Unknown Source)
    at hyperion.jdbc.base.BaseStatement.commonExecute(Unknown Source)
    at hyperion.jdbc.base.BaseStatement.executeUpdateInternal(Unknown Source
    at hyperion.jdbc.base.BasePreparedStatement.executeUpdate(Unknown Source
    at com.hyperion.planning.sql.HspSQLImpl.executeUpdate(Unknown Source)
    at com.hyperion.planning.sql.HspSQLImpl.executeUpdate(Unknown Source)
    at com.hyperion.planning.event.HspSysExtChangeHandler.actionPoller(Unkno
    wn Source)
    at com.hyperion.planning.event.HspSysExtChangeHandler.run(Unknown Source
    Error encountered with Database connection, recreating connections.
    Nested Exception: java.sql.SQLException: [Hyperion][Oracle JDBC Driver][Oracle]O
    RA-00932: inconsistent datatypes: expected INTERVAL got NUMBER
    Following is my PlanningSystemDB.properties file:
    SYSTEM_DB_DRIVER=hyperion.jdbc.oracle.OracleDriver
    SYSTEM_DB_URL=jdbc:hyperion:oracle://<server address>:<port>;SID=<sid>
    SYSTEM_DB_USER=inv
    SYSTEM_DB_PASSWORD=DOFGBMAM
    SYSTEM_DB_CATALOG=<sid>
    SYSTEM_DB_TYPE=Oracle
    INSTANCE=
    can anyone please tell me what's wrong here.
    Thanks
    Asty

    Hi,
    It is the first time I have seen the error in this context but what planning is trying to do is clear out the system action table, there is a table called HSP_ACTION in your planning system schema.
    The definition of the table should be :-
    ID > Integer
    FROM_ID > Integer
    TO_ID > Integer
    Action_ID > Integer
    Object_Type > Integer
    Primary_Key > Varchar
    Action_Time > Date
    I would check the table is set up correctly and remove any values from it, maybe there is a problem with the date field.
    Cheers
    John

  • Getting exception while trying to access OIM from a standalone java program

    Hi All,
    When i am trying to run the below java class i am getting some exception. Please suggest.
    import java.util.Hashtable;
    import java.util.Iterator;
    import java.util.Map;
    import java.util.Vector;
    import com.thortech.xl.util.config.ConfigurationClient;
    import Thor.API.tcResultSet;
    import Thor.API.tcUtilityFactory;
    import Thor.API.Operations.tcGroupOperationsIntf;
    import Thor.API.Operations.tcUserOperationsIntf;
    import Thor.API.Security.ClientLoginUtility;
    import Thor.API.Security.LoginHandler.LoginSession;
    public class OIMAPI {
    public static void main(String[] args) {
    try{
    System.out.println("Startup...");
    System.out.println("Getting configuration...");
    ConfigurationClient.ComplexSetting config =
    ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
    System.out.println("Login...");
    Hashtable env = config.getAllSettings();
    tcUtilityFactory ioUtilityFactory = new tcUtilityFactory(env,"xelsysadm","xelsysadm");
    if (ioUtilityFactory!=null){
    System.out.println("Login OK...");
    System.out.println("Getting utility interfaces...");
    tcUserOperationsIntf moUserUtility = (tcUserOperationsIntf)ioUtilityFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf");
    System.out.println("Starting processing...");
    for (int i=0;i<2;i++){
    Map attrs = new Hashtable();
    attrs.put("Users.User ID","testuser"+i);
    attrs.put("Users.Last Name","lastname"+i);
    attrs.put("Users.First Name","firstname"+i);
    attrs.put("Organizations.Key","1");
    attrs.put("Users.Role","Full-Time");
    attrs.put("Users.Xellerate Type","End-User");
    attrs.put("Users.Password","welcome1");
    long t1 = System.currentTimeMillis();
    long key = moUserUtility.createUser(attrs);
    long t2 = System.currentTimeMillis();
    System.out.println("User testuser" + i + " with key=" +
    key + " created in "+(t2-t1));
    System.out.println("Processing DONE...");
    ioUtilityFactory.close();
    }catch(Exception e ){
    System.out.println("---" + e.getMessage());
    e.printStackTrace();
    ---Unable to locate a login configuration
    java.lang.SecurityException: Unable to locate a login configuration
    at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:97)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at java.lang.Class.newInstance0(Class.java:308)
    at java.lang.Class.newInstance(Class.java:261)
    at javax.security.auth.login.Configuration$3.run(Configuration.java:221)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:215)
    at javax.security.auth.login.LoginContext$1.run(LoginContext.java:170)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext.init(LoginContext.java:167)
    at javax.security.auth.login.LoginContext.<init>(LoginContext.java:404)
    at Thor.API.Security.LoginHandler.jbossLoginHandler.login(Unknown Source)
    at Thor.API.Security.ClientLoginUtility.login(Unknown Source)
    at Thor.API.tcUtilityFactory.<init>(Unknown Source)
    at OIMAPI.main(OIMAPI.java:28)
    Caused by: java.io.IOException: Unable to locate a login configuration
    at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206)
    at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:95)
    ... 17 more

    you need to tell it where the config files are
    java -DXL.HomeDir=C:\oimqa\xlclient -Djava.security.auth.login.config=C:\oimqa\xlclient\Config\authwl.conf
    the authwl.conf file will have a different name depending on which app server you use
    authwl is for Web Logic (for example).

  • Getting Exception while getting SOAP connection

    When I execute the below codes
    import javax.xml.soap.*;
    import javax.xml.*;
    import java.io.*;
    import java.net.*;
    public class Main {
    public static void main(String[] args) {
    // TODO code application logic here
    String uddiServer = "http://uddi.ibm.com/beta/inquiryapi";
    try {
    SOAPConnectionFactory scf =
    SOAPConnectionFactory.newInstance();
    SOAPConnection connection = scf.createConnection();
    MessageFactory msgFactory = MessageFactory.newInstance();
    SOAPMessage msg = msgFactory.createMessage();
    SOAPEnvelope envelope = msg.getSOAPPart().getEnvelope();
    SOAPBody body = envelope.getBody();
    body.addChildElement(
    envelope.createName("find_service", "",
    "urn:uddi-org:api_v2"))
    .addAttribute(envelope.createName("generic"), "2.0")
    .addAttribute(envelope.createName("maxRows"), "100")
    .addChildElement(envelope.createName("name"))
    .addTextNode("Federal Government Service");
    URL endpoint = new URL(uddiServer);
    msg.saveChanges();
    System.out.println("\n---- Request Message ----\n");
    msg.writeTo(System.out);
    SOAPMessage reply = connection.call(msg, endpoint);
    System.out.println("\n\nReceived reply from: "+endpoint);
    System.out.println("\n---- Reply Message ----\n");
    reply.writeTo(System.out);
    System.out.println();
    connection.close();
    } catch (Exception ex) {
    ex.printStackTrace();
    }When executing the above codes I am getting following exceptions
    - java.io.IOException:
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.ClassCastException: org.apache.axis.message.MessageElement
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace: java.lang.ClassCastException: org.apache.axis.message.MessageElement
    at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:173)
    at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:509)
    at org.apache.axis.message.MessageElement.output(MessageElement.java:783)
    at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:270)
    at org.apache.axis.Message.writeTo(Message.java:440)
    at soap_call.Main.main(Main.java:41)
    java.lang.ClassCastException: org.apache.axis.message.MessageElement
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
    at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:272)
    at org.apache.axis.Message.writeTo(Message.java:440)
    at soap_call.Main.main(Main.java:41)
    Caused by: java.lang.ClassCastException: org.apache.axis.message.MessageElement
    at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:173)
    at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:509)
    at org.apache.axis.message.MessageElement.output(MessageElement.java:783)
    at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:270)
    ... 2 more
    - Configuration file read-only so engine configuration changes will not be saved.
    javax.xml.soap.SOAPException: Error invoking operation:
    java.lang.ClassCastException: org.apache.axis.message.MessageElement
    at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:110)
    at soap_call.Main.main(Main.java:42)
    Caused by: Error invoking operation:
    java.lang.ClassCastException: org.apache.axis.message.MessageElement
    at org.apache.axis.client.Call.invoke(Call.java:1768)
    at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:105)
    ... 1 moreCan any one help me solve this exception?

    crazyideas wrote:Did you try googling for it? Next time please try looking for it before you ask. It shows that you do not put in any effort.
    [https://jax-rpc.dev.java.net/]
    Follow the instructions after you download the binaries.Hi, thanks for your help. After using the new version of jar files I could compile & run without any problems.Can you please tell me? how you have found that the version was the only problem in the above code?

Maybe you are looking for