ClassCastException for Oracle9iJTSExternalTransactionController

Hi,
When trying to read my sessions.xml file (included below), I get a ClassCastException when it tries to load the oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController class. I'm working with Toplink 9.0.3 and OC4J 9.0.4, so I assumed this was the class to use. Has someone else experienced the same?
Regards,
Katarina
session.xml
<toplink-configuration>
     <session>
          <name>MacsyCoreSession</name>
          <project-xml>mapping-core_macsydev.xml</project-xml>
          <session-type>
               <server-session/>
          </session-type>
          <login>
<datasource>java:comp/env/jdbc/ejbJTSDataSource</datasource>
               <uses-external-transaction-controller>true</uses-external-transaction-controller>
               <uses-external-connection-pool>true</uses-external-connection-pool>
          </login>
          <external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
     </session>
</toplink-configuration>

I'm running it with JDK-1.4.1.
The error message I get is:
EXCEPTION DESCRIPTION: LOCAL EXCEPTION STACK:
EXCEPTION DESCRIPTION: Several [1] SessionLoaderExceptions were thrown:
EXCEPTION [TOPLINK-9003] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.SessionLoaderException
EXCEPTION DESCRIPTION: Unable to process XML tag [external-transaction-controller-class] with value [oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController].
INTERNAL EXCEPTION: java.lang.ClassCastException
     at oracle.toplink.exceptions.SessionLoaderException.finalException(Unknown Source)
     at oracle.toplink.tools.sessionconfiguration.XMLLoader.load(Unknown Source)
     at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unknown Source)
     at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unknown Source)
     at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unknown Source)
     at cern.macsy.persistence.PersistenceLayerFactory.instantiateSession(PersistenceLayerFactory.java:162)
     at cern.macsy.persistence.PersistenceLayerFactory.getPersistenceLayer(PersistenceLayerFactory.java:115)
     at cern.macsy.persistence.PersistenceLayerFactory.getPersistenceLayer(PersistenceLayerFactory.java:78)
     at cern.macsy.persistence.PersistenceQueries.executeSingleColumnQuery(PersistenceQueries.java:144)
     at cern.macsy.pm.controlimpl.GenerationDataControllerImpl.getRampTypeNames(GenerationDataControllerImpl.java:31)
     at cern.macsy.pm.ejb.beans.GenerationDataControllerBean.getRampTypeNames(GenerationDataControllerBean.java:99)
     at GenerationDataController_StatelessSessionBeanWrapper28.getRampTypeNames(GenerationDataController_StatelessSessionBeanWrapper28.java:87)
     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 com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
     at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
     at java.lang.Thread.run(Thread.java:536)
SessionLoaderExceptions:
LOCAL EXCEPTION STACK:
EXCEPTION [TOPLINK-9003] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.SessionLoaderException
EXCEPTION DESCRIPTION: Unable to process XML tag [external-transaction-controller-class] with value [oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController].
INTERNAL EXCEPTION: java.lang.ClassCastException
     at oracle.toplink.exceptions.SessionLoaderException.failedToLoadTag(Unknown Source)
     at oracle.toplink.tools.sessionconfiguration.XMLLoader.process_external_transaction_controller_class_Tag(Unknown Source)
     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 oracle.toplink.tools.sessionconfiguration.XMLLoader.process_session_Tag(Unknown Source)
     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 oracle.toplink.tools.sessionconfiguration.XMLLoader.processRootTag(Unknown Source)
     at oracle.toplink.tools.sessionconfiguration.XMLLoader.load(Unknown Source)
     at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unknown Source)
     at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unknown Source)
     at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unknown Source)
     at cern.macsy.persistence.PersistenceLayerFactory.instantiateSession(PersistenceLayerFactory.java:162)
     at cern.macsy.persistence.PersistenceLayerFactory.getPersistenceLayer(PersistenceLayerFactory.java:115)
     at cern.macsy.persistence.PersistenceLayerFactory.getPersistenceLayer(PersistenceLayerFactory.java:78)
     at cern.macsy.persistence.PersistenceQueries.executeSingleColumnQuery(PersistenceQueries.java:144)
     at cern.macsy.pm.controlimpl.GenerationDataControllerImpl.getRampTypeNames(GenerationDataControllerImpl.java:31)
     at cern.macsy.pm.ejb.beans.GenerationDataControllerBean.getRampTypeNames(GenerationDataControllerBean.java:99)
     at GenerationDataController_StatelessSessionBeanWrapper28.getRampTypeNames(GenerationDataController_StatelessSessionBeanWrapper28.java:87)
     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 com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
     at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
     at java.lang.Thread.run(Thread.java:536)
INTERNAL EXCEPTION STACK:
java.lang.ClassCastException
     at oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController.getTransactionManager(Unknown Source)
     at oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController.<init>(Unknown Source)
     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:306)
     at java.lang.Class.newInstance(Class.java:259)
     at oracle.toplink.tools.sessionconfiguration.XMLLoader.process_external_transaction_controller_class_Tag(Unknown Source)
     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 oracle.toplink.tools.sessionconfiguration.XMLLoader.process_session_Tag(Unknown Source)
     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 oracle.toplink.tools.sessionconfiguration.XMLLoader.processRootTag(Unknown Source)
     at oracle.toplink.tools.sessionconfiguration.XMLLoader.load(Unknown Source)
     at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unknown Source)
     at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unknown Source)
     at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unknown Source)
     at cern.macsy.persistence.PersistenceLayerFactory.instantiateSession(PersistenceLayerFactory.java:162)
     at cern.macsy.persistence.PersistenceLayerFactory.getPersistenceLayer(PersistenceLayerFactory.java:115)
     at cern.macsy.persistence.PersistenceLayerFactory.getPersistenceLayer(PersistenceLayerFactory.java:78)
     at cern.macsy.persistence.PersistenceQueries.executeSingleColumnQuery(PersistenceQueries.java:144)
     at cern.macsy.pm.controlimpl.GenerationDataControllerImpl.getRampTypeNames(GenerationDataControllerImpl.java:31)
     at cern.macsy.pm.ejb.beans.GenerationDataControllerBean.getRampTypeNames(GenerationDataControllerBean.java:99)
     at GenerationDataController_StatelessSessionBeanWrapper28.getRampTypeNames(GenerationDataController_StatelessSessionBeanWrapper28.java:87)
     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 com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
     at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
     at java.lang.Thread.run(Thread.java:536)
Thanks in advance for any help,
Katarina

Similar Messages

  • Glassfish v3 ClassCastException for same class, at a List.get() command.

    Hello everyone,
    I am in the process of developing a small web application with JSF 2.0 and JPA, both of which I am not entirely familiar with. But thanks to Google and a lot of very dedicated experts, the Java and JSF forums have helped me with creating a basic form for entering and storing data. I am using Netbeans 6.8 which has glassfish V3 for the app server. However I have a problem where the auto-deploy in glass fish ends up giving me a ClassCastException for the same class, which after a bit of research on the net, seems to be a classloader problem.
    A related link http://72.5.124.102/thread.jspa?messageID=10119180 probably confirms the cause as a hot-deploy issue.
    My JSF page is created dynamically in the constructor of the managed bean, and it is here that I get the exception occasionally. A restart of the server solves the issue. Nevertheless, I would like to know if there is any other way to solve the classloader problem other than using a build.xml file as suggested in the forum link given above.
    I am posting a part of my code as well, so that if you think there a classloader problem in my code, you can let me know, so I can fix it.
    @ManagedBean(name = "CustomFields")
    @RequestScoped
    public class CustomFields {
        private String tableName;
        private List<UiSetup> dispFieldsList = new ArrayList();
        private HtmlPanelGrid customPanelSec = new HtmlPanelGrid();
        public HtmlPanelGrid getCustomPanelSec() {
            return customPanelSec;
        public void setCustomPanelSec(HtmlPanelGrid customPanelSec) {
            this.customPanelSec = customPanelSec;
        public String getTableName() {
            return tableName;
        public void setTableName(String tableName) {
            this.tableName = tableName;
        public CustomFields() {
            System.out.println("Invoked customFields backing bean");
            String callerBean = "";
            FacesContext context = FacesContext.getCurrentInstance();
            Application application = context.getApplication();
            tableName = context.getExternalContext().getRequestParameterMap().get("callerPage");
            callerBean = context.getExternalContext().getRequestParameterMap().get("backingBean");
            // This is a JPA contoller class for an entity that defines the custom fields that have to be enabled for this page.
            UiSetupJpaController fldsToShow = new UiSetupJpaController();
            dispFieldsList.clear();
            System.out.println("Did this1");
            // This function getDisplayFields gets the fields that have to be shown on the page.
            this.dispFieldsList = fldsToShow.getDisplayFields(tableName);
            System.out.println("Did this2");
            int totFields = this.dispFieldsList.size();
            System.out.println("Did this3");
            UiSetup us = this.dispFieldsList.get(totFields - 1);// This is where the error is thrown always.
            System.out.println("Did this4");
            customPanelSec.getChildren().clear();
            for (int i = 0; i < totFields; i++) {
                try {
                    HtmlPanelGrid fldLblGroup = new HtmlPanelGrid();
                    HtmlOutputLabel customLabel = (HtmlOutputLabel) application.createComponent(HtmlOutputLabel.COMPONENT_TYPE);
                    String labelName = dispFieldsList.get(i).getDisplayName();
                    customLabel.setValue(labelName);
                    String fieldName = dispFieldsList.get(i).getFieldName();
                    HtmlPanelGroup customField = (HtmlPanelGroup) application.createComponent(HtmlPanelGroup.COMPONENT_TYPE);
                    HtmlInputText customText = new HtmlInputText();
                    String valExp = "#{" + callerBean + "." + fieldName + "}";
                    customText.setId(fieldName);
                    customText.setValueExpression("value", createValueExpr(valExp, BigDecimal.class, context));
                    customField.getChildren().clear();
                    customField.getChildren().add(customText);
                    customPanelSec.getChildren().add(customLabel);
                    customPanelSec.getChildren().add(customField);
                }catch (Exception e) {
                    System.out.println(e.getMessage());
        private ValueExpression createValueExpr(String valexp, Class cls, FacesContext fcs) {
            return fcs.getApplication().getExpressionFactory().createValueExpression(fcs.getELContext(), valexp, cls);
    }The error message is as follows
    com.sun.faces.mgbean.ManagedBeanCreationException: Cant instantiate class: karma.com.managedbeans.master.CustomFields.
    at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:193)
    at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:102)
    at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:405)
    at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:267)
    Caused by: java.lang.ClassCastException: karma.com.model.ui.UiSetup cannot be cast to karma.com.model.ui.UiSetup
    at karma.com.managedbeans.master.CustomFields.<init>(CustomFields.java:397)
    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:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:188)
    ... 82 moreRegards,
    Swati

    Thanks very much for your reply. I have implemented your suggestion of using a PostConstruct method with the @ManagedProperty to inject the values into the tableName and the callerBean properties. The good news is that the page is rendered correctly and I haven't encountered the exception the few times that I invoked the page.
    However, I can't be sure the issue is resolved, since, like I mentioned, the error is seemingly erratic and I don't quite know if it is not seen because of a genuine fix or because, well, its currently not in a mood to show up.
    There is just one more thing I would like to mention. I have said that the code fails at the List.get() line. However, its not happening because the list is empty. In fact the earlier lines are giving expected outputs and totFields value is set all right. Maybe this has nothing to do with the error, but I thought I will mention it all the same, in case it triggers another idea altogether.
    Thanks very much
    Regards
    Swati

  • "ClassCastException" for items in List after serialization

    consider this code:
    public class MyClass implements Serializable {
      public double price = -1;
      public double volume = -1;
    List list = new ArrayList<MyClass>();
    while(!endOfData) {
      MyClass mc = new MyClass();
      mc.price = x;
      mc.volume = y;
      list.add(mc);
    ObjectOutputStream oos = new ObjectOutputStream(out);
    oos.writeObject(list);----
    and then the receiver-side:
    ObjectInputStream ois = new ObjectInputStream(in);
    List list = (List) ois.readObject();
    MyClass mc = (MyClass) list.get(2);
    ..... error ... error ...
    Exception in thread "Thread-1" java.lang.ClassCastException: MyClass
    note: using a Double instead of MyClass works ok.
    also please notice:
    ObjectInputStream ois = new ObjectInputStream(in);
    List list = (List) ois.readObject();
    Object mc = (Object) list.get(4);
    System.out.println("this is what i am --> " + mc.getClass().getCanonicalName());
    output: "this is what i am --> MyClass"
    thanks.
    Message was edited by:
    suppon

    the MyClass objects are not
    initially loaded in the receiver's JVM.Make a custom class as:
    public class CustomObjectInputStream extends ObjectInputStream {
        private ClassLoader classLoader;
        /** Creates a new instance of CustomObjectInputStream */
        public CustomObjectInputStream(InputStream in, ClassLoader classLoader) throws IOException {
            super(in);
            this.classLoader = classLoader;
        protected Class<?> resolveClass(ObjectStreamClass desc) throws ClassNotFoundException {
            return Class.forName(desc.getName(), false, classLoader);
    }and use an instance of this class instead of the standard object inputstream to deserialize your object. You should pass the url class loader as an argument to the constructor of the custom object input stream. The reason is that the standard object inputstream only recognises classes that are "statically defined in the JAVA class path". (I quote the last text because I am not sure if I am using the right terminology, but I hope you understand what I mean.)
    why do i get
    "ClassCastExceptions" ??
    and not
    "ClassNotFoundException"
    ??This must be because somehow you have a "static" class definition for MyClass anyway, otherwise you wouldn't be able to write the following code and have it compile:
    MyClass item = (MyClass) class1.cast(list.get(7));Apparently your "static" MyClass definition does not correspond with the MyClass definition in your .jar file.
    You can only access a deserialized object of which the class definition is in a .jar file through reflection, unless you can cast it to an interface with a "static" definition.

  • ClassCastException for java.lang.Integer in JSF

    Hi,
    I am a newbie, i am working on adding 2 numbers in jsf.
    Where i have a addNumber.jsp:-
    Number1:<h:inputText value"#{AddBean.num1)}"/>
    Number2:<h:inputText value"#{AddBean.num2)}"/>
    <h:commandButton value="Add" action="#{AddBean.sum}"/>
    In AddBean.java
    I have getters and setters for num1 & num2 property whose datatype is int.
    public int sum(){
    System.out.println("Inside sum");
    return (num1+num2);
    Here when i click the Add button the sum() is fired where it is printing "Inside sum" after that i am getting a "ClassCastException saying that java.lang.Integer". Which means i can only use Integer object for calculation rather than using primitive datatype(int)?
    What is the problem here? Pls. do explain?
    Thanks

    The action method should be declared void or return a String. It is to be used for the navigation-case entries in the faces-config.xml. If you want a postback to the same page, just declare it void. It should not return the intented "result" of the action. Store the result somewhere as a bean property.
    The following example should work:<h:form>
        <h:inputText value="#{addBean.number1}" />
        <h:inputText value="#{addBean.number2}" />
        <h:commandButton value="Add" action="#{addBean.sum}" />
        <h:outputText value="#{addBean.result}" />
    </h:form>AddBeanprivate int number1; // + getter + setter
    private int number2; // + getter + setter
    private int result; // + getter only
    public void sum() {
        result = number1 + number2;
    }And I'd rather to use Integer instead of int, but that's more a design choice.

  • ClassCastException for RMI-IIOP client hitting CORBA server

    I am writing a RMI-IIOP client to connect to an existing CORBA C++ server. I started out with writing a RMI Interface mimicking the IDL and then converting into a stub using rmic -iiop option. I then use COSNaming to connect to the server. When I narrow the reference using PortableRemoteObject.narrow(), I get a ClassCastException. Probably because the object that I get from naming service will be a CORBA object which cannot be casted to RMI Interface object.
    Exception in thread "main" java.lang.ClassCastException
    at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
    at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
    at com.att.cswd.poc.RMIIIOPClient.IMSConnect(RMIIIOPClient.java:46)
    at com.att.cswd.poc.RMIIIOPClient.main(RMIIIOPClient.java:27)
    Caused by: java.lang.ClassCastException: Object is not of remote type com.att.cswd.poc.CORBAInterface
    at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:221)
    ... 3 more
    Code
                                    CORBAInterface ims;
              String tranCode="CRTUN130";
              byte[][] input_segs = null;
               try {
                    Hashtable hm = new Hashtable();
                    hm.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory");
                    hm.put("java.naming.provider.url", "corbaloc:iiop:BSYS.MVS.SC.COM:14050/NameService");
                    Context initialNamingContext = new InitialContext(hm);
                   Object objref = initialNamingContext.lookup("O2K/AdapterInterface");
                   ims = (CORBAInterface) PortableRemoteObject.narrow(objref, CORBAInterface.class);
                   byte output_segs[][] = ims.run_transaction_binary(tranCode, input_segs);               
                   System.out.println ("Response is " + output_segs);
              } catch (NamingException e) {
                   e.printStackTrace();
              } catch (RemoteException e) {
                   e.printStackTrace();
              }

    I am writing a RMI-IIOP client to connect to an existing CORBA C++ serverAs it says in [the Javadoc|http://java.sun.com/j2se/1.5.0/docs/guide/rmi-iiop/rmiiiopUsing.html#when], you can't do that. For RMI/IIOP you have to start with a PortableRemoteObject and rmic -iiop. You can use a C++ client to that but you can't use an RMI/IIOP client to a C++ server.
    Use IDLJ.

  • NWDS ClassCastException for Enums

    Hi,
    using NWDS 7.1.1, when I open a java file with this content:
    package test;
    public enum TestEnum {
    The editor fails to open with an exception as shown below. It appears some SAP code expects something else than EnumDeclaration in AnnotationImpl. I can work around this, using a simple text editor, I just wanted to mention it.
    java.lang.ClassCastException: org.eclipse.jdt.core.dom.EnumDeclaration
         at com.sap.ide.j2ee.servicelayer.annotation.impl.AnnotationImpl.getTypeDeclaration(AnnotationImpl.java:527)
         at com.sap.ide.j2ee.servicelayer.annotation.impl.AnnotationImpl.getFromMember(AnnotationImpl.java:342)
         at com.sap.ide.j2ee.servicelayer.annotation.impl.AnnotationImpl.getFromClass(AnnotationImpl.java:319)
         at com.sap.ide.j2ee.servicelayer.annotation.factory.AnnotationUtils.getAnnotationsFromClass(AnnotationUtils.java:28)
         at com.sap.ide.j2ee.ui.actions.MethodMenuActionsHandler.isSessionBean(MethodMenuActionsHandler.java:229)
         at com.sap.ide.j2ee.ui.actions.editor.GeneralEditorAction.isEnabled(GeneralEditorAction.java:98)
         at com.sap.ide.j2ee.ui.actions.editor.GeneralEditorAction.setActiveEditor(GeneralEditorAction.java:59)
         at org.eclipse.ui.internal.EditorPluginAction.editorChanged(EditorPluginAction.java:75)
         at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:34)
         at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:256)
         at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:170)
         at org.eclipse.ui.internal.ViewerActionBuilder.createActionDescriptor(ViewerActionBuilder.java:53)
         at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:158)
         at org.eclipse.ui.internal.ViewerActionBuilder.readElement(ViewerActionBuilder.java:88)
         at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:138)
         at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:127)
         at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:141)
         at org.eclipse.ui.internal.ViewerActionBuilder.readElement(ViewerActionBuilder.java:88)
         at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:138)
         at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:149)
         at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:170)
         at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:112)
         at org.eclipse.ui.internal.ViewerActionBuilder.readViewerContributions(ViewerActionBuilder.java:106)
         at org.eclipse.ui.internal.PopupMenuExtender.readStaticActionsFor(PopupMenuExtender.java:452)
         at org.eclipse.ui.internal.PopupMenuExtender.<init>(PopupMenuExtender.java:132)
         at org.eclipse.ui.internal.PartSite.registerContextMenu(PartSite.java:118)
         at org.eclipse.ui.internal.EditorSite.registerContextMenu(EditorSite.java:165)
         at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3282)
         at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
         at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:378)
         at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:2618)
         at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl(CompilationUnitEditor.java:1416)
         at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
         at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)
         at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
         at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:263)
         at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2739)
         at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2651)
         at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:2643)
         at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2595)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2590)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2574)
         at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:340)
         at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:328)
         at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:190)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
         at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
         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:585)
         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1173)

    Of course it is a reserved keyword in 1.5, and I want to use that keyword in the way it is intended to be used in 1.5.
    same happens for:
    public enum Test {
    So setting compiler compliance to 1.4 is not a solution to my problem. I want to use Enum's as defined in 1.5, and NWDS can't cope with opening such enum's (though as I said, if I open a "class" and change it to be an enum, the editor works fine).

  • ClassCastException: for IReports--what mistake i am doing

    IInfoObjects reports = iStore.query("SELECT SI_ID, SI_NAME, SI_CREATION_TIME,SI_KIND, SI_SCHEDULEINFO,SI_PROCESSINFO.SI_PROMPTS,SI_EXTENDED_PROCESSINFO FROM CI_INFOOBJECTS WHERE SI_PARENTID = " + reportId);
    for(int i = 0; i < reports.size(); i++)
        IReport report = (IReport) reports.get(i); --On this line i am getting error
    ClassCastException: Cannot cast $Proxy24 (id=507) to  com.crystaldecisions.sdk.plugin.desktop.report.IReport
    what mistake i am doing

    Hi Amita,
    SI_PARENTID is used to specify the ID of the folder.
    Instead use SI_ID of the report.
    i.e.
    In your query use:
    SELECT SI_ID, SI_NAME, SI_CREATION_TIME,SI_KIND, SI_SCHEDULEINFO,SI_PROCESSINFO.SI_PROMPTS,SI_EXTENDED_PROCESSINFO FROM CI_INFOOBJECTS WHERE SI_ID = " + reportId
    instead of:
    SELECT SI_ID, SI_NAME, SI_CREATION_TIME,SI_KIND, SI_SCHEDULEINFO,SI_PROCESSINFO.SI_PROMPTS,SI_EXTENDED_PROCESSINFO FROM CI_INFOOBJECTS WHERE SI_PARENTID = " + reportId)

  • ClassCastException for Vector

    Hi,
    While the following first exmpl. runs, for the second one I get ClassCastException, why?
    1)
    pList=getHashtable(); // getHashtable() returns hashTable;
    MyClass obj=(MyClass)pList.get(key);
    2)
    pList= getEntries(); // getEntries() returns new Vector(hashTable.entrySet())
    MyClass obj=(MyClass)pList.firstElement();

    I think it is because of the entrySet method:
    the API says:
    entrySet
    public Set entrySet()Returns a set view of the mappings contained in this map. Each element in the returned set is a Map.Entry. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. If the map is modified while an iteration over the set is in progress, the results of the iteration are undefined. The set supports element removal, which removes the corresponding mapping from the map, via the Iterator.remove, Set.remove, removeAll, retainAll and clear operations. It does not support the add or addAll operations.
    Returns:
    a set view of the mappings contained in this map.
    So basically, the elements in your Vector will not be of type MyClass. I guess you'll have to think of another way to populate your Vector, like using the elements method of Hashtable, and then looping the Enumeration and put the elements one by one into your Vector.

  • HTTPS ClassCastException for SOAPHttpsURLConnection to HttpsURLConnection

    JDEV 11gR1PS1
    Hi all,
    I'm writing a Java class that posts via HTTPS. I'm getting the the following error when executing the class:
    java.lang.ClassCastException: weblogic.net.http.SOAPHttpsURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection
    using the following code (just a snip of what's relevant:
                url = new URL(nurl);
                connection = (HttpsURLConnection)url.openConnection();
                responseCode = connection.getResponseCode();I've also tried based on some research on the web
                url = new URL(null, nurl, new com.sun.net.ssl.internal.www.protocol.https.Handler());
                connection = (HttpsURLConnection)url.openConnection();
                responseCode = connection.getResponseCode();and instead I this error
    java.lang.ClassCastException: com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl cannot be cast to javax.net.ssl.HttpsURLConnection
    Ideas?

    Import this instead
    import weblogic.net.http.SOAPHttpsURLConnection;
    and then when attempting the connection try using the SOAPHttpsURLConnection object

  • ClassCastException for IfxPreparedStatement

    I defined a PreparedStatement to execute a insert data into informix database, and used IfxPreparedStatement to generate primary key. the codes like below:
    pstmt.executeUpdate();
    key = ((IfxPreparedStatement)pstmt).getSerial();
    But i got following exception, appreciated if someone can let me know the cause and solution,
    java.lang.ClassCastException
         at com.comcom.pubzone.OrderFactory.insertFastOrderM(OrderFactory.java:541)
         at com.comcom.pubzone.OrderFactory.postOrder(OrderFactory.java:438)
         at org.apache.jsp.Orders.xt_005fpostOrder_jsp._jspService(xt_005fpostOrder_jsp.java:100)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Unknown Source)

    I think it is because of the entrySet method:
    the API says:
    entrySet
    public Set entrySet()Returns a set view of the mappings contained in this map. Each element in the returned set is a Map.Entry. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. If the map is modified while an iteration over the set is in progress, the results of the iteration are undefined. The set supports element removal, which removes the corresponding mapping from the map, via the Iterator.remove, Set.remove, removeAll, retainAll and clear operations. It does not support the add or addAll operations.
    Returns:
    a set view of the mappings contained in this map.
    So basically, the elements in your Vector will not be of type MyClass. I guess you'll have to think of another way to populate your Vector, like using the elements method of Hashtable, and then looping the Enumeration and put the elements one by one into your Vector.

  • ClassCastException for Map.Entry

    Hi
    I am storing id, name from the resultset in a Map. On the Jsp page i am trying to get these values and store it in a drop down list. But during that process i get a CLASSCAST EXCEPTION
    I did tried looking in the forum but nothing seems to work or maybe i am missing something
    heres the code if this would help
    <%
    Map fileTypes = new LinkedHashMap();
    fileTypes = getResultsetData(connection);
    %>
    [HTML CODE]
    <% Iterator keyIter = fileTypesMap.keySet().iterator();
    while (keyIter.hasNext())
    Map.Entry currentEntry = (Map.Entry)(keyIter.next()); // CLASSCAST EXCPETION
    %>
    <option value="<%=currentEntry.getKey()%>"><%=currentEntry.getValue%></option>
    <% } %>
    [/HTML CODE]Any help is appreciated .........please
    Thanking you

    Iterator keyIter = fileTypesMap.keySet().iterator();should be
    Iterator keyIter = fileTypes.entrySet().iterator();

  • ClassCastException while using session bean in OC4J

    I am facing the same problem while deploying a stateless session bean in Oracle 9i AS 1.0.2.2.1. The details are given below.
    The following code snippet is used in the client to prepare for the lookup:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "welcome");
    //the following line can also have the actual machine name instead of "localhost"
    env.put(Context.PROVIDER_URL, "ormi://localhost:23893/myejbs");
    Context ctx = new InitialContext(env);
    System.out.println("Getting Home....");
    Object obj=ctx.lookup("Grouping");
    System.out.println("Home Object Is : "+obj);
    GroupingHome groupingHome = (GroupingHome)obj;
    System.out.println("Got Home");
    Grouping grouping = groupingHome.create( );
    graphs=grouping.<mehtods>();
    I've edited the config/server.xml file to have the following line:
    <application name="myejbs" path="C:\oracle\ora102\j2ee\home\applications\classes\myejbs" auto-start="true" />
    which points to the directory where the class files reside
    I've also change the port in the config/rmi.xml file to 23893.
    Now... the problem that I am facing is - while I am running a client from outside the server JVM i.e standalone client... which uses the Grouping interfaces, it works fine. giving me the desired result. But the moment I place the code in a service client deployed in the server or a jsp, I get a ClassCastException for GroupingHome whereas the SOP that I have given after lookup shows that I have found - "Grouping EJBHome". The funny thisng is that bith the working client and the JSP are using sme set of interface class files - Grouping.class (Remote) and GroupingHome.class.
    Where am I going wrong?? If anybody knows, or Giri has found an answer to his query... please post a reply.
    Thanks.
    PS: I've tried new InitialContext(); solution but it didn't work. I have also narrowed the home object with javax.rmi.PortableRemoteObject.narrow(obj,GroupingHome.class) but to no avail :(.

    Hi Gauarv,
    Did you not see my reply in the following post?
    Re: 502 service temporarily unavailable
    If I'm not mistaken, this is exactly the same question as you asked
    there.
    By the way, is there some reason you are still using OC4J version
    1.0.2.2? Is there something stopping you from upgrading to the later
    versions (9.0.2 and 9.0.3)?
    Good Luck,
    Avi.

  • Problem in copyResource()-Repository Manager,ClassCastException

    Hi,
    I have written a read-write custom repository manager from the sample downloaded from sdn(A kind of extension of SimpleRepositoryManager).
    I tried to implement the ImutableNamespace opertion copyResource(IResourceHandle handle, ICopyDescriptor copy) with supported option COPY_DEEP and COPY.
    It really does a copy to the destination directory but after that it throws a ClassCastException
    for com.sap.netweaver.bc.rf.common.Rid;some how my feeling is its failing either in findResource or lookup after copy.
    For detail exception pls see below(from EP KM Iview-call stack)
    System Error
    An exception occurred during the program execution. Below you will find technical information pertaining to this exception that you might want to forward to your system administrator.
    Exception Class 
    Exception Message 
    Call Stack java.lang.ClassCastException: com.sap.netweaver.bc.rf.common.Rid
            at com.sapportals.wcm.repository.GeneralImpl2.internalCopyManager(GeneralImpl2.java:705)
            at com.sapportals.wcm.repository.ResourceImpl2.internalCopyManager(ResourceImpl2.java:246)
            at com.sapportals.wcm.repository.ResourceImpl.internalCopy(ResourceImpl.java:2130)
            at com.sapportals.wcm.repository.ResourceImpl.copy(ResourceImpl.java:1393)
            at com.sapportals.wcm.repository.ResourceImpl.copy(ResourceImpl.java:1376)
            at com.sapportals.wcm.rfadapter.CopyUtility.copy(CopyUtility.java:112)
            at com.sapportals.wcm.rendering.uicommand.cm.CopyUtil.massCopy(CopyUtil.java:65)
            at com.sapportals.wcm.rendering.uicommand.cm.CopyUtil.copy(CopyUtil.java:51)
            at com.sapportals.wcm.rendering.uicommand.cm.UIMassCopyCommand.execute(UIMassCopyCommand.java:105)
            at com.sapportals.wcm.rendering.uicommand.cm.UIMassEmbeddedSelectCommand.execute(UIMassEmbeddedSelectCommand.java:85)
            at com.sapportals.wcm.rendering.uicommand.cm.UIMassEmbeddedSelectCommand.execute(UIMassEmbeddedSelectCommand.java:64)
            at com.sapportals.wcm.rendering.control.cm.CommandDispatcher.onMassExecute(CommandDispatcher.java:45)
            at com.sapportals.wcm.rendering.control.cm.WdfProxy.onMassExecute(WdfProxy.java:2002)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sapportals.wdf.stack.Control.dispatchHtmlbEvent(Control.java:389)
            at com.sapportals.wdf.WdfEventDispatcher.dispatch(WdfEventDispatcher.java:175)
            at com.sapportals.wdf.WdfCompositeController.onWdfEvent(WdfCompositeController.java:549)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sapportals.htmlb.page.DynPage.doProcessCompositeEvent(DynPage.java:204)
            at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:142)
            at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:101)
            at com.sapportals.htmlb.page.PageProcessorServlet.handleRequest(PageProcessorServlet.java:62)
            at com.sapportals.htmlb.page.PageProcessorServlet.doPost(PageProcessorServlet.java:23)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.sapportals.wcm.app.servlet.WcmHtmlbBaseServlet.service(WcmHtmlbBaseServlet.java:81)
            at com.sapportals.wcm.portal.proxy.PCProxyServlet.service(PCProxyServlet.java:313)
            at com.sapportals.portal.prt.core.broker.ServletComponentItem$ServletWrapperComponent.doContent(ServletComponentItem.java:110)
            at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
            at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:191)
            at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:217)
            at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:580)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:191)
            at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:670)
            at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:229)
            at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:149)
            at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:832)
            at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:666)
            at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:313)
            at com.inqmy.services.httpserver.server.Response.handle(Response.java:173)
            at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1288)
            at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
            at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)
            at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)
             Report Error
    I am using my own xercesImpl.jar ,xalan.jar api's.which exactly didn't cause me any problem for the delete,rename opertaions.
    Is it any thing to do with configuration ,which i am missing.Pls help
    rgds
    Shovan

    You might have a look at
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/e3/92322ab24e11d5993800508b6b8b11/frameset.htm">this documentation</a>.
    The CM repository in mode FSDB keeps the namespace structure of the repository in the database just as it does in the other modes. Any change is done parallel in the file system and in the internal database.
    Since we have mode FSDB and the file system might change at any time by external processes, there is a component called synchronizer that checks with every lookup if the file system and the internal structure are still in sync. To determine this it looks at the modification date for folders and at modification date and size for plain files.
    If any of these do not match then the synchronizer overwrites and modifies the internal data to reflect again the status of the external file system.
    Now in your portal the synchronizer itself is working OK. That's because your repositories run fine locally.
    With your remote file systems I can think of some possible explanations.
    The caches might deliver responses after immediate file system changes. We ruled out this one already.
    The synchronizer might not recognize the changes in the file system's meta data. This is why I'd like you to try and compare the behaviour of the file system repository, see above.
    The synchonizer might run into some error when it tries to access the remote file system. This should be visible in the logs.
    Michael

  • Problems with ClassCastException

    I have a program that has an array of Strings instantiated as follws; String decisions[][] = new String[50][2]; and I need to sort the array. I was trying to use Arrays.sort(decisions); but it throws a ClassCastException and the program hangs. Is there anyway to use the built in sort function of the Arrays class for an array of Strings without gettign this error?

    Please refer to javadoc on java.util.Arrays.sort(Object[] a). It says:
    Sorts the specified array of objects into ascending order, according to the natural ordering of its elements. All elements in the array must implement the Comparable interface. Furthermore, all elements in the array must be mutually comparable (that is, e1.compareTo(e2) must not throw a ClassCastException  for any elements e1 and e2 in the array).When you sort String[][] each element becomes String[] -- which does not implement Comparable interface and so sort() methods throws ClassCastException as specified. I am not sure what do you mean when you say "it hangs" -- does your java program hangs or just shows exception stack trace and exits?

  • Event Callback for JTS managed transaction.

    Dear all,
    We would like to implement some logic at the pre/postCommitTransaction callback method. However, we worry if the transaction is managed by JTS, this event will not be raised when JTS commits the transaction.
    Thanks and regards,
    William

    Dear Ailitche,
    Thanks for your suggestion. I am looking at the source for Oracle9iJTSExternalTransactionController and Oracle9iJTSSynchronizationListener.
    // at Oracle9iJTSSynchronizationListener
    public void beforeCompletion() {
    unitOfWork.issueSQLbeforeCompletion();
    unitOfWork.setPendingMerge();
    getSession().incrementMergesPending();
    Will these three lines of code trigger the preCommit event for UnitOfWork?
    Similarly,
    // at AbstractSynchronizationListener
    public void afterCompletion(int status) {
    if (wasTransactionCommitted(status)) {
    unitOfWork.afterTransaction(true, true);
    } else {
    unitOfWork.afterTransaction(false, true);
    Will unitOfWork.afterTransaction() trigger the postCommit event for UnitOfWork?
    Thanks and regards,
    William

Maybe you are looking for

  • Acrobat Help | Add headers and footers to PDFs

    This question was posted in response to the following article: http://helpx.adobe.com/acrobat/using/add-headers-footers-pdfs.html

  • Video DRIVER

    I have an Hp Pavilion dv6-3190 sl and have some issues with  video drivers. Everytime I tried to update my videocard drivers: AMD M880G with ATI Mobility Radeon HD 4250 & ATI Mobility Radeon HD 5650 (chipset?), I always gave up and reinstalled defaul

  • How can I block persistent unwanted text messages from Games Co.

    One day an uninvited text message arrived on my iPhone to click to win an iPad. Stupidly I clicked, won nothing, but now I get daily SMS messages and Safari website from a US games Co. Trying to sell games, wallpaper and other junk. Trying to unsubsc

  • Error 4850 whenever i try to download

    I kkep on receiving Error 4850 whenever i try to download using my Blackberry 8520. The other problem is that it kkeeps on saying download failed what shopuld i do? Help?

  • SLD Connection IB: Can't find business systems: InternalEOAService

    Dear experts, I have connected my SLD properly to the IS. SLD_CHECK is successful. But I can not access the business systems from the integration builder. I get this message: ======================================================== Access to object l