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).

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

  • Compatible NWDS version for SP 22 ?

    Hi All,
    We are using NW2.0 version, EP 6 version.
    Client has upgraded only the QA portal to SP 22.
    (not sure about DEV sp details)
    Note: DEV portal and QA portal are not in same patch level.
    Which is the compatible NWDS version for SP 22?
    Please suggest.
    Regards,
    Subashini.

    Hi,
    Did you check the PAM?
    https://websmp107.sap-ag.de/pam
    Regards
    Ayyapparaj

  • Why "null" value is impossible in "switch(val) {case null: }"  for enums?

    I'm wondering why Java 5.0 does not allow null values
    as options in switch statement:
    If type E is "enum" then the following language construction is
    not allowed:
    E val;
    switch(val) {
       case A:
         break;
       case B:
           break;
       case null:   // this is not allowed
            break;
    }Can somebody explain me why Java does not support it? I beleave that
    some serious reasons were for that.
    As we know enum types can have "null" values and in case I use nulls
    for my enumerations the code with "switch" statement becomes quite urgly because it is necessary to handle 2 separate execution paths:
    null and not null.
    Thanks

    I really don�t know too much about 1.5, but I can tell you that for 1.4 the switch receives as a parameter an int or anything that can be casted automatically to an int. Therefore you can�t never use null cause int, char, short, byte can�t never take as a value null.

  • "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.

  • I am facing the difficulty for  "enum" was using  as an identifier.

    Hi i am facing a difficulty for Axis dev team are using "enum" as an
    identifier.Actually "enum" as reserved key word.But axis dev team are
    using this as a identifier for packages.
    ie..
    org.apache.axis.enum.Style.RPC ---- here i am getting a compilation error
    under org.apache.axis.enum package you are written 3 classes
    Enum,Scope,Style and Use. I am using these any of the classes i am
    getting compilation syntax error .
    Can you tell me how to resolve these compilation errors ASAP.
    Please help me any one.
    Regards,
    Sankar.
    Edited by: sankaraiah_j2ee on Jan 17, 2008 1:35 AM

    Hi,
    I think this issue is due to the java system environment could not find your fileupload.jar file.This is not an issue of version 1.1 or other?
    I have done this fileupload ,here i can upload file via LAN but i have failed to upload via mobile.
    You copy and paste your two jar files in the required folder then try this jsp code:
    <%@ page import="org.apache.commons.fileupload.*, java.io.*" %>
    <%out.println("success");%>
    If it shows "success" then u get success.
    I think this will help u.
    All the best.
    by
    Sathiya

  • 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.

  • Collection Editor for enum -C#

    I have a userControl to store filters of Destino. My code is below:
    //In UserControl
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
    public List<Destino> DestinosFiltro { get; set; }
    //enum
    public enum Destino
    [Description("Receita")]
    Receita = 0,
    [Description("Despesa")]
    Despesa = 1,
    [Description("Ativo")]
    Ativo = 2,
    [Description("Passivo")]
    Passivo = 3,
    [Description("Transitório")]
    Transitório = 4
    Then the property DestinosFiltro appears in the Properties Page in Design mode. And when I am trying to edit this property in design time, a collection editor appears and work fine. But when I close the collection editor, the value entered
    is cleared. The value of the property DestinosFiltro is losted. Where is my mistake?  
    Thank for all.

     Hi
    Thiago,
    I have tested your code,  Just follow your scenario, It will shows the error message as below.
    So you should do as
    Viorel suggested.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Switch statement with println() for enum

    Hi,
    I have this exercise maybe you could help with:
    I have to create an enum class and then print out a description of each of the values from a switch.
    This is what I've done..
    enum PaperCurrency {
         FIVE, TEN, TWENTY, FIFTY, ONE_HUNDRED, TWO_HUNDRED
    public class Ex22 {
         PaperCurrency amount;
         Ex22(PaperCurrency amount) {
              this.amount = amount;
         void describe() {
              switch(amount) {
              case FIVE:               System.out.println("five dollar note");
              case TEN:               System.out.println("ten dollar note");
              case TWENTY:          System.out.println("twenty dollar note");
              case FIFTY:               System.out.println("fifty dollar note");
              case ONE_HUNDRED:     System.out.println("a hundred dollar note");
              case TWO_HUNDRED:     System.out.println("two hundred dollar note");
    static void main(String[] args) {
              Ex22
                   fiveDollars = new Ex22(PaperCurrency.FIVE),
                   tenDollars = new Ex22(PaperCurrency.TEN),
                   twentyDollars = new Ex22(PaperCurrency.TWENTY),
                   fiftyDollars = new Ex22 (PaperCurrency.FIFTY),
                   aHundredDollars = new Ex22 (PaperCurrency.ONE_HUNDRED),
                   twoHundredDollars = new Ex22 (PaperCurrency.TWO_HUNDRED);
              fiveDollars.describe();     
    }There are no compilation errors.
    The print out on the console is like this for fiveDollars.describe():
    five dollar note
    ten dollar note
    twenty dollar note
    fifty dollar note
    a hundred dollar note
    two hundred dollar note
    and it is supposed to be:
    five dollar note.
    My question is how to only print out the relevant description instead of all of them? Is my switch wrong?
    Thanks for any help

    If you can, it makes more sense to add functionality to an enum type than to write switch statements:
    public enum PaperCurrency {
        FIVE("five dollar note"),
        TEN("ten dollar note"),
        TWENTY("twenty dollar note"),
        FIFTY("fifty dollar note"),
        ONE_HUNDRED("one hundred dollar note"),
        TWO_HUNDRED("two hundred dollar note");
        private String description;
        private PaperCurrency(String desc) {
            description = desc;
        public String getDescription() {
            return description;
        public static void main(String[] args) {
            System.out.println(PaperCurrency.TEN.getDescription());
    }

  • NWDS version for EP7.0 EHP1 & CE7.1

    Hi All,
    Which NWDS version I need to install to support both EP7.0 EHP1 and CE7.1 for development and deployment of Web Dynpro Java .
    I am new to CE7.1. I am aware of settings need to done in NWDS for the deployment of WDJ application. For CE7.1 server what necessary steps I need to follow for development and deployment.
    Thanks,
    Deepak!!!

    Ervin,
    Thanks so much for the reply.
    I am collecting the necessary EP7.0 and CE7.1 server information on which I suppose to do development work. As per shared URL I have to go for 2 NWDS version in the same machine pointed to different work space.
    I'm trying to know how to use CE7.1 portal & NWDS development and deployment. Can you share your view on this?
    Can I use NWDS7.1 for the development and deploy the application in both CE7.1 & EP7.0 EHP1?
    What I am trying to achieve here is:-
    1>I need to do MDM/EP integration.
    2>Need to use MDM Java API's for customization for Search, Match & Merge and Gold copy creation functionality with work flow. This need to decide if there are SAP provided standard content coming with the BPM & CE7.3 for MDM functionality.
    3>MDM Workflow using EP-MDM-BPM scenario with CE7.1/7.3.
    Please share your thought on this.
    Deepak!!!

  • 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.

  • Slow NWDS Startup for 7.0.9

    Hi
    I just installed NWD Studio 7.0.9 and it takes about 5 minutes or more to come up compared to 2.0.18 which was almost instantly
    Anybody have any idea what the reasoning is  for that. Also there is a new option called NWDS Console. I'm looking for documentation what that is for.
    Thanks for the help
    Tim

    Hi Tim,
       See this thread same problem but solved
    /thread/121900 [original link is broken]
    Regards, Suresh KB

  • Edit Items for Enum and/or Ring control yields weird dialog

    Whenever I right click on an Enum or Ring control on my FP and choose Edit Items... I see the following image. It's almost like I am missing a dll or something that brings up the info for the Edit Items Page Properties Dialog Box. Any Ideas?
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~
    Solved!
    Go to Solution.
    Attachments:
    DumbEnumEdit.JPG ‏18 KB

    HAHA!!  That would be awesome eh? 
    Fact of the matter is I don't know what contributed to it.  I do have a couple ideas though:
    I opened a VI that was created on an older version of LabVIEW (don't know which version).  The VI contained some enums and I tried editing those.  I think that could have messed it up.
    The other option is that I downloaded the entire OpenG library to play around with some of their VIs. 
    This happened shortly after one of these two incidents.
    I have a huge deadline to meet next week but after that I'll give it a whirl and let you know how it goes.
    Later,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Overriding toString for enum constants

    can anybody please point me to some sort of example or documentation for overriding toString for (individual) enum constants. the javadoc indicates that this should be possibly but it is not entirely clear to me how to do so.
    thanks in advance

    i had actually coded the following before posting, I just wanted to find alternatives or "best practice":
    protected static enum WorkflowState {
              REFERRAL_CREATED,
              QUOTE_CREATED,
              ORDER_APPROVED,
              ORDER_CREATED;
              public String toString() {
                   String str = null;
                   switch(this) {
                   case REFERRAL_CREATED:
                        return "Opened";
                   return str;
         }

  • 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

Maybe you are looking for

  • WI-FI and Windows XP

    Just a revelation for those who are having problems connecting to their network. Simple, but it was a headache for me for about 4 hours today. I couldn't connect my iPhone to my home network, but the iPhone saw a network with no name (it was blank in

  • Index creation a long time..Please help to tune the creation time.

    Hi all, I am creating a index after using impdp to put the data in that table. Below is my index creation command.The index creation takes ~30 minutes . Can the forum memebers suggest me how to put this index creation with parallel clause or otherwis

  • I want to unistall mozilla off my desktop but nothing works.Please help?

    I have tried everything in the community support pages in an attempt to uninstall Mozilla firefox off my desktop. Noting works. How do I get this off my computer. Please Help....Thank you

  • JSp in 100%http

    Hi Gurus there, I'm new in JSP, I heard we can implement Web application with JSP using only http protocole (ie: without JDBC bridge). The RDBMS is Oracle 8i, Can you help me with this, Thanks in advance.

  • Help cascading linksys voip router to linksys voip router

    Hello, I'm trying to connect a Linksys RT31P2 to my existing Linksys WRTP54G to be able to be able to use the VOIP phone connections on both units.  I have set the ip address of the first router WRTP54G to 192.168.15.2 which is connected to the cable