Object within Constructor with a method?

Hi,
Just trying to understand java code example and its various parts. i.e fields, constructor, methods etc. It is a Blackberry application.
I am mainly wondering about the part with the " HorizontalFieldManager(USE_ALL_WIDTH )". This has a method attached to it. So if this is the case it is an 'Object' within the UserInterface 'Constructor' that has a 'Method'?
And the semicolon at the end is not normally present on Methods is it?
Thanks.
//// EXAMPLE CODE ///
public class UserInterface extends UiApplication {
public static void main(String[] args) {
UserInterface theApp = new UserInterface();
theApp.enterEventDispatcher();
//constructor for UserInterface?
public UserInterface() {
pushScreen(new UserInterfaceScreen());
//UserInterfaceScreen class
final class UserInterfaceScreen extends MainScreen {
//fields or variables
HorizontalFieldManager _fieldManagerTop;
String _exchange, _convertedStr, _euroStr;
double _euros, _pounds, _converted;
int displayed = 0;
//constructor?
public UserInterfaceScreen() {
super();
LabelField title = new LabelField("Euro Calc",LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);
setTitle(title);
_fieldManagerTop = new HorizontalFieldManager();
// An object with a method?
_fieldManagerGround = new HorizontalFieldManager(USE_ALL_WIDTH ) {
protected void paintBackground(Graphics graphics)
graphics.setBackgroundColor(0x00382B79);
graphics.clear();
super.paint(graphics);
};Edited by: duxbuz on Jul 9, 2009 3:20 AM

Hi,
this is a way to override the HorizontalFieldManager.paintBackground method whithout declaring a subclass inheriting from HorizontalFieldManager. See ANONYMOUS CLASSES in the following Link.
Jack

Similar Messages

  • Populating an Object within a PowerShell Class Method?

    Here is the answer add it up above and declare the type as object.. lol
    Powershellclass SQLString {
    [string]$Database
    [string]$ServerName
    [string]$ConnectionString
    [string]$Query
    [string]$Columns
    [object]$Values

    So, forgive me if I miss use some terms but what I'm trying to do is populate a variable inside a method with objects. My assumption is that it's a string and when you input an object it returns null. Below is a snippet of the code. The first time $This.Vavlues is where I'm having some trouble. My goal is to give the method a user name and a table and it generates a SQL query for me. :)
    Powershell [void] InsertQuery($Table,$Values) { $This.Values = Get-ADUser -Identity $Values -Properties * | select SamAccountName,UserPrincipalName,SID,Mail,DistinguishedName,lastLogon,Description $This.Values = "'" + $($This.Values.SamAccountName) + "'" + ',' + "'" + $($This.Values.UserPrincipalName) + "'" + ',' + "'" + $($This.Values.SID) + "'" + ',' + "'" + $($This.Values.Mail) + "'" + ',' + "'" + $($This.Values.DistinguishedName) + "'" + ...
    This topic first appeared in the Spiceworks Community

  • While LSMW   with BAPI method doing is  any prerequisite required.

    Hi,
    When i entered  the business object in lsmw   with bapi method.
    i am getting the error messge is  enter the valid value. when i  press f4 its showing the object.but when   enter the method its giving the error messge is enter the value. when i checked through BAPI tcode its avaliable.
    Object name is  BUSISM007.
    method is  CREATEFROMDATA.
    if anybody knows it would  be helpful.
    regards
    Diva

    check it BUSISM007---->not found
    Maintain the default values for IDoc inbound processing..
      in initial screen of lsmw(project, subproject)..
        setting--->idoc inbound processing

  • SRM system object within Portal: WAS settings with Webdispatcher

    Hello Portal experts,
    we have SAP EHP4 ERP system (only ABAP stack).
    In order to use some SRM functionality we installed SAP EP (EHP1) and creates a appropriate system object within portal.
    We use a  Webdispatcher, so we have to replace within WAS area the local address by the address of Webdispatcher and appropriated port (webserver:567).
    The tests of this system object looks as follows:
    The address of http://webserver:567 can be retrieved
    The problem are the results of following tests:
    http://webserver:567/sap/bc/ping
    http://webserver:567/sap/bc/webdynpro
    These errors occured because the both pathes /sap/bc/ping and /sap/bc/webdynpro do not exist on Portal/Java engine.
    Questions:
    How can we connect ABAP backend to Portal with extra Webdispatcher?
    What are the setting within WAS area?
    kind regards

    Hi Thom,
    Is your webdispatcher in front of your portal? or in front of the ICM of your Backend System?
    If the applications that you want to enable via your EP are of the type: WD for ABAP, BSP, IAC or ITS then you should also have a webdispatcher in front of your Backend System (in addition to on in front of your portal).
    Please check the following link:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/9a9a6b48c673e8e10000000a42189b/frameset.htm
    On this page, scroll down to the last example. Although the image is there to explain "High Availability of the SAP Web Dispatcher" it gives you a good view on the request respond steps.
    One rule of thumb is that the EP system itself doesn't act as a reverse-proxy. In other words, if an iView points to a WD 4 ABAP application on the Backend then the actual WD4ABAP application is rendered in an iFrame.
    From a technical/connection point of view the client (browser) has 2 connections, one to the EP and 1 tot the Backend.
    Allot of people do not realize this when they start there project...
    Cheers, hope this helps you a bit....
    B

  • Can I call an object with synchronized methods from an EJB

    I have a need for multiple threads (e.g. Message Driven Beans) to access a shared object, lets say a singleton, I'm aware of the "you can't have a singleton in the EJB world" issues) for read/write operations, so the operations will need to be synchronised.
    I've seen various statements such as you can't use read/write static fields in EJBs and you can't use synchronisation primitives in EJBs but I've also seen statements that say its okay to access utility classes such as Vector (which has synchronised methods) from an EJB.
    Does anyone know if there is a definitive answer on this? What are the implications of accessing a shared object with synchronised methods from multiple EJBs? Is it just that the EJB's thread may block which limits the ability of the container to manage the EJBs? In the Vector example above (from Professional Java Server Programming) did they mean its okay to use these utility classes provided they aren't shared across threads?
    If I can't use a plain old Java Object does anyone know if there are other potential solutions for sharing objects across EJBs?
    In my problem, I have an operation that I want to run in a multi-threaded way. Each thread will add information to the shared object, and this info may be used by the other threads. There's no lengthy blocking as such other than the fact that only one thread can be adding/reading information from the shared object at a time.
    I've trawled through this forum looking for similar questions of which there seem to be many, but there doesn't seem to be any definitive answers (sorry if there was and I missed it).
    Thanks
    Martin

    You can share objects among EJB's or among objects used by one or more EJB's. You can use synchronization primitives - nothing will prevent you from doing that.
    After all, the container classes, JVM-provides classes, JDBC, JCA, JNDI and other such classes do all of this with impunity. You can too. You can use file and socket I/O as well, presuming you configure the security profile to allow it. Should you? Well it depends on what you need to accomplish and if there is another practical alternative.
    Yes the specification warns you not to, but you cannot be responsible for the interior hidden implementation of classes provided to you by the JVM or third parties so you can never truly know if your are breaking these written rules.
    But when you do these things, you are taking over some part of the role of the container. For short running methods that only block while another thread is using the method or code block and no I/O or use of other potentially blocking operations are contained in the method/block, you will be fine. If you don't watch out and create deadlocks, you will harm the container and its managed thread pool.
    You should not define EJB methods as synchronized.
    Also, if you share objects between EJB's, you need to realize that the container is free to isolate pools of your EJB in separate classloaders or JVM's. It's behavior can be influenced by your packaging choices (use of .ear, multiple separate .jar's, etc.) and the configuration of the server esp. use of clustering. This will cause duplicate sets of shared classes - so singletons will not necessarily be singleton across the entire server/cluster, but no single EJB instance will see more than one of them. You design needs to be tolerant of that fact in order to work correctly.
    This isn't the definitive answer you asked for - I'll leave that to the language/spec lawyers out there. But in my experience I have run across a number of occasions where I had to go outside of the written rules and ave yet to be burned for it.
    Chuck

  • Help with Declaring a Class with a Method and Instantiating an Object

    hello all i am having trouble understanding and completing a lab tutorial again!
    im supposed to compile an run this code then save work to understand how to declare aclass with a method an instantiate an object of the class with the following code
    // Program 1: GradeBook.java
    // Class declaration with one method.
    public class GradeBook
    // display a welcome message to the GradeBook user
    public void displayMessage()
    System.out.println( "Welcome to the Grade Book!" );
    } // end method displayMessage
    } // end class GradeBook
    // Program 2: GradeBookTest4.java
    // Create a GradeBook object and call its displayMessage method.
    public class GradeBookTest
    // main method begins program execution
    public static void main( String args[] )
    // create a GradeBook object and assign it to myGradeBook
    GradeBook myGradeBook = new GradeBook();
    // call myGradeBook's displayMessage method
    myGradeBook.displayMessage();
    } // end main
    } // end class GradeBookTest4
    i saved above code as shown to working directory filename GradeBookTest4.java
    C:\Program Files\Java\jdk1.6.0_11\bin but recieved error message
    C:\Program Files\Java\jdk1.6.0_11\bin>javac GradeBook4a.java GradeBookTest4.java
    GradeBookTest4.java:2: class, interface, or enum expected
    ^
    GradeBookTest4.java:27: reached end of file while parsing
    ^
    2 errors
    can someone tell me where the errors are because for class or interface expected message i found a solution which says 'class? or 'interface' expected is because there is a missing { somewhere much earlier in the code. i dont know what "java:51: reached end of file while parsing " means or what to do to fix ,any ideas a re appreciated                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Doesn't solve your problem, but this works for me...
    public class GradeBook
      public void displayMessage() {
        System.out.println( "Welcome to the Grade Book!" );
      public static void main( String args[] ) {
        try {
          GradeBook gradeBook = new GradeBook();
          gradeBook.displayMessage();
        } catch (Exception e) {
          e.printStackTrace();
    }

  • How can i reference a MIME object within a correspondence format through...

    how can i reference a MIME object within a correspondence format through TX oofo or se71?
    Hi, I need to put a MIME object within a correspondence's format that i've already done through Tx oofo. My problem is, that i don't know exactly how can i make the reference of that MIME object in the format? and What structure type do i have to use in order to make appear the MIME object in my correspondence's format? Does anybody can help me with this?   
    Regards    Hector

    Frank,
    I tried to find some examples/samples on how to create CollectionModel for a table component but not successful.
    Can you clarify the following ?
    1. "CollectionModel" is referenced only by af:table attributes "value", "selectedRowKeys" and "selectionListener".
    The rest of af:table attributes such as "rows", "fetchSize" used to reference the iterator binding in the binding container via the EL expression "#{bindings.VOIteratorBinding.xxx} .
    What should I replace that EL expression with?
    2. I heck out the bean method to create the CollectionModel as following, is it close to what you mean?
    public void initBusinessDataDashboardView() {
    OperationBinding operation = BeanUtils.getOperationBinding("getPanelBusinessData");
    Map params = operation.getParamsMap();
    Key panelKey = getPanelInfoView().getKey();
    params.put("panelKey", panelKey);
    params.put("maximizedView", false);
    panelView = (ViewObject)operation.execute();
    // Heck code to create CollectionModel
    RowSet rowSet = panelView.getRowSet();
    ArrayList rowList = new ArrayList();
    while (rowSet.hasNext()) {
    rowList.add(rowSet.next());
    model = new ChildPropertyTreeModel(rowList, null);
    // To be used to set up af:table value, selectRowKeys, selectionListener via EL expr #{backingBeanScope.MyBean.model.xxx}
    public CollectionModel getModel() {
    return model;
    Am I on the right track?
    Edited by: Pricilla on May 4, 2010 2:20 PM

  • SQL Server Express Performance Limitations With OGC Methods on Geometry Instances

    I will front load my question.  Specifically, I am wondering if any of the feature restrictions with SQL Server Express cause performance limitations/reductions with OGC methods on geometry instances, e.g., STIntersects?  I have spent time reading
    various documents about the different editions of SQL Server, including the Features Supported by the Editions of SQL Server 2014, but nothing is jumping out at me.  The
    limited information on spatial features in the aforementioned document implies spatial is the same across all editions.  I am hoping this is wrong.
    The situation....  I have roughly 200,000 tax parcels within 175 taxing districts.  As part of a consistency check between what is stored in tax records for taxing district and what is identified spatially, I set up a basic point-in-polygon query
    to identify the taxing district spatially and then count the number of parcels within in taxing district.  Surprisingly, the query took 66 minutes to run.  As I pointed out, this is being run on a test machine with SQL Server Express.
    Some specifics....  I wrote the query a few different ways and compared the execution plans, and the optimizer always choose the same plan, which is good I guess since it means it is doing its job.  The execution plans show a 'Clustered Index Seek
    (Spatial)' being used and only costing 1%.  Coming in at 75% cost is a Filter, which appears to be connected to the STIntersects predicate.  I brute forced alternate execution plans using HINTS, but they only turned out worse, which I guess is also
    good since it means the optimizer did choose a good plan.  I experimented some with changing the spatial index parameters, but the impact of the options I tried was never that much.  I ended up going with "Geometry Auto Grid" with 16 cells
    per object.
    So, why do I think 66 minutes is excessive?  The reason is that I loaded the same data sets into PostgreSQL/PostGIS, used a default spatial index, and the same query ran in 5 minutes.  Same machine, same data, SQL Server Express is 13x slower than
    PostgreSQL.  That is why I think 66 minutes is excessive.
    Our organization is mostly an Oracle and SQL Server shop.  Since more of my background and experience are with MS databases, I prefer to work with SQL Server.  I really do want to understand what is happening here.  Is there something I can
    do different to get more performance out of SQL Server?  Does spatial run slower on Express versus Standard or Enterprise?  Given I did so little tuning in PostgreSQL, I still can't understand the results I am seeing.
    I may or may not be able to strip the data down enough to be able to send it to someone.

    Tessalating the polygons (tax districts) is the answer!
    Since my use of SQL Server Express was brought up as possibly contributing to the slow runtime, the first thing I did was download an evaluation version of Enterprise Edition.  The runtime on Enterprise Edition dropped from 66 minutes to 57.5 minutes.
     A reduction of 13% isn't anything to scoff at, but total runtime was still 11x longer than in PostgreSQL.  Although Enterprise Edition had 4 cores available to it, it never really spun up more than 1 when executing the query, so it doesn't seem
    to have been parallelizing the query much, if at all.
    You asked about polygon complexity.  Overall, a majority are fairly simple but there are some complex ones with one really complex polygon.  Using the complexity index discussed in the reference thread, the tax districts had an average complexity
    of 4.6 and a median of 2.7.  One polygon had a complexity index of 120, which was skewing the average, as well as increasing the runtime I suspect.  Below is a complexity index breakdown:
    Index
    NUM_TAX_DIST
    1
    6
    <2
    49
    <3
    44
    <4
    23
    <5
    11
    <6
    9
    <7
    9
    <8
    4
    <9
    1
    <10
    4
    >=10
    14
    Before trying tessellation, I tweaked the spatial indexes in several different ways, but the runtimes never changed by more than a minute or two.  I reset the spatial indexes to "geometry auto grid @ 32" and tried out your tessellation functions
    using the default of 5000 vertices.  Total runtime 2.3 minutes, a 96% reduction and twice as fast as PostgresSQL!  Now that is more what I was expecting before i started.
    I tried using different thresholds, 3,000 and 10,000 vertices but the runtimes were slightly slower, 3.5 and 3.3 minutes respectively.  A threshold of 5000 definitely seems to be a sweet spot for the dataset I am using.  As the thread you referenced
    discussed, SQL Server spatial functions like STIntersect appear to be sensitive to the number of vertices of polygons.
    After reading your comment, it reminded me of some discussions with Esri staff about ArcGIS doing the same thing in certain circumstances, but I didn't go as far as thinking to apply it here.  So, thanks for the suggestion and code from another post.
     Once I realized the SRID was hard coded to 0 in tvf_QuarterPolygon, I was able to update the code to set it to the same as the input shape, and then everything came together nicely.

  • Parent constructor calls abstract method

    Hi everybody!
    I'm wondering if there is something wrong with java or if the idea is just too ill?
    Anyway, I think it would be great if this hierachy would work...
    Two classes A and B.
    Class A defines an astract method.
    In A's constructor this abstract method is called.
    Class B extends A and provides an implementation for the abstract method in A.
    Class B also defines a member variable that is set in B's implementation of the abstract method.
    In class' B constructor the parent constructor A() is called.
    example:
    public abstract class A {
      public A() {
        createComponents();
      public abstract void createComponents();
    public class B extends A {
      private String string = null;
      public B() {
        super();
        System.out.println("B::B() " + string);
      public void createComponents() {
        System.out.println("B::createComponents() begin");
        string = new String("test");
        System.out.println("B::createComponents() " + string);
      public void describe() {
        System.out.println("B::describe() " + string);
      public static void main(String[] args) {
        B b = new B();
        b.describe();
    }running the code above produces the following output:
    B::createComponents() begin
    B::createComponents() test
    B::B() null
    B::describe() null
    why is the string member variable null in B's constructor??
    thanks in advance
    Peter Bachl
    Polytechnic University of Upper Austria, Hagenberg
    [email protected]

    The answer is that the call of the super-constructor
    is allways done before the initialization
    of the member variable. That's all and that's the
    normal behavior.
    order :
    - initialization of static variables
    - call to the super-constructor
    - initialization of the instance variables
    - execution of the constructor
    Since this is the advanced forum it is relevant to point out that that is not exactly true.
    There is a step in java that 'initializes' member variables before any constructors are called, super or other wise.
    From the JLS 12.5...
    Otherwise, all the instance variables in the new object, including those declared in superclasses, are initialized to their default values (4.5.5)
    Using the following code as an example
      class MyClass
         int i1;
         int i2 = 1;
    .When creating an instance of the above there will be three 'initializations'
    // Part of object creation...
    i1 = 0; // The default value
    i2 = 0; // The default value
    // Part of construction...after super ctors called.
    i2 = 1; // The variable initializer (see step 4 of JLS 12.5)
    Unfortunately the descriptions are rather similar and so confusion can result as to when the assignment actually occurs.

  • Error with RMI method call

    Hi,
    I am trying to access a stateless session bean from a client running under JBuilder.
    The method returns a basic object that is serializable, but I get the following
    error.
    java.lang.ArrayIndexOutOfBoundsException
         at com.sun.corba.se.internal.corba.AnyImpl.read_value(AnyImpl.java:345)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_any(CDRInputStream.java:572)
         at com.sun.corba.se.internal.javax.rmi.CORBA.Util.readAny(Util.java:199)
         at javax.rmi.CORBA.Util.readAny(Util.java:92)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1486)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:1768)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObject(IIOPInputStream.java:897)
         at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:264)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:250)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:212)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:1060)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1555)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:1768)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObject(IIOPInputStream.java:897)
         at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:264)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:250)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:212)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:906)
         at com.sun.corba.se.internal.core.UEInfoServiceContext.<init>(UEInfoServiceContext.java:33)
         at java.lang.reflect.Constructor.newInstance(Native Method)
         at com.sun.corba.se.internal.core.ServiceContextData.makeServiceContext(ServiceContextData.java:113)
         at com.sun.corba.se.internal.core.ServiceContexts.<init>(ServiceContexts.java:106)
         at com.sun.corba.se.internal.iiop.ReplyMessage.read(ReplyMessage.java:133)
         at com.sun.corba.se.internal.iiop.IIOPInputStream.<init>(IIOPInputStream.java:89)
         at com.sun.corba.se.internal.iiop.ClientResponseImpl.<init>(ClientResponseImpl.java:29)
         at com.sun.corba.se.internal.iiop.IIOPConnection.createInputStream(IIOPConnection.java:622)
         at com.sun.corba.se.internal.iiop.ReaderThread.run(IIOPConnection.java:109)
    org.omg.CORBA.UNKNOWN: minor code: 0 completed: Maybe
         at com.sun.corba.se.internal.core.UEInfoServiceContext.<init>(UEInfoServiceContext.java:37)
         at java.lang.reflect.Constructor.newInstance(Native Method)
         at com.sun.corba.se.internal.core.ServiceContextData.makeServiceContext(ServiceContextData.java:113)
         at com.sun.corba.se.internal.core.ServiceContexts.<init>(ServiceContexts.java:106)
         at com.sun.corba.se.internal.iiop.ReplyMessage.read(ReplyMessage.java:133)
         at com.sun.corba.se.internal.iiop.IIOPInputStream.<init>(IIOPInputStream.java:89)
         at com.sun.corba.se.internal.iiop.ClientResponseImpl.<init>(ClientResponseImpl.java:29)
         at com.sun.corba.se.internal.iiop.IIOPConnection.createInputStream(IIOPConnection.java:622)
         at com.sun.corba.se.internal.iiop.ReaderThread.run(IIOPConnection.java:109)
    Could you please point out some possible errors? Thanks.
    Charles

    [email protected] (Shawn Samuel) writes:
    Its quite likely that this is fixed in SP3. I suspect that the Map you
    are using is custom marshaled. There were some problems with this in
    SP2 which got fixed in 7.0 but weren't backported until recently.
    Can you be more explicit about the implementation class you are using?
    It seems unlikely that this is the null problem since the Map does not
    contain extra space. Unless you are putting nulls in it? Are you, the
    JDK won't cope with the correct encoding of null.
    andy
    I'm having a similar problem and getting nowhere.
    I'm calling a method on a stateless session bean with a serializable
    object as an argument that returns the same type of serializable
    object. This error comes back somewhere after the session bean returns
    on the server side. I'm running WL6.1SP2, jdk1.3.1_02, using rmi/iiop
    with the jdk orb and com.sun.jndi.cosnaming.CNCtxFactory on the
    client. I am able to make calls to the EJB that only take String
    arguments with no problems whatsoever.
    The serializable object contains Strings and a Map. Weblogic would
    give me a CORBA error on receiving the function call when I populated
    the Map. Leaving the Map null and setting only the Strings resulted in
    the call going all the way through the session bean method with no
    problem, but after populating a return object of the same type with
    only Strings, leaving the Map member null, and returning, I get the
    below error on the client.
    I'm getting a similar stack trace, but running a debugger on weblogic
    doesn't seem to indicate any unchecked exceptions being thrown.
    Is there something I'm overlooking here?
    thanks,
    Shawn
    my stack trace:
    java.lang.ArrayIndexOutOfBoundsException
         at com.sun.corba.se.internal.corba.AnyImpl.read_value(AnyImpl.java:345)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_any(CDRInputStream.java:572)
         at com.sun.corba.se.internal.javax.rmi.CORBA.Util.readAny(Util.java:199)
         at javax.rmi.CORBA.Util.readAny(Util.java:92)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1486)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:1768)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObject(IIOPInputStream.java:897)
         at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:264)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:250)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:212)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:1060)
         at com.i2.cis.operation.ejb._EJBOperation_Stub.invoke(Unknown Source)
         at com.i2.cis.transport.ejb.CISTransportEJB.invoke(CISTransportEJB.java:46)
         at com.i2.cis.transport.CISTransportBasic.execute(CISTransportBasic.java:138)
         at com.i2.cis.api.connector.CISConnection.execute(CISConnection.java:59)
         at com.i2.cis.api.connector.CISInteraction.execute(CISInteraction.java:45)
         at com.i2.cis.api.connector.test.CISClient.main(CISClient.java:55)
    Andy Piper <[email protected]> wrote in message news:<[email protected]>...
    "Charles Canning" <[email protected]> writes:
    This indicates that the server threw an unchecked exception but the
    client was unable to unmarshal it. Please make sure you are using SP2
    of WLS 6.1. Also what version of the JDK are you using?
    andy
    Hi,
    I am trying to access a stateless session bean from a client running under JBuilder.
    The method returns a basic object that is serializable, but I get the following
    error.
    java.lang.ArrayIndexOutOfBoundsException
         at com.sun.corba.se.internal.corba.AnyImpl.read_value(AnyImpl.java:345)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_any(CDRInputStream.java:572)
         at com.sun.corba.se.internal.javax.rmi.CORBA.Util.readAny(Util.java:199)
         at javax.rmi.CORBA.Util.readAny(Util.java:92)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1486)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:1768)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObject(IIOPInputStream.java:897)
         at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:264)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:250)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:212)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:1060)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1555)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:1768)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObject(IIOPInputStream.java:897)
         at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:264)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:250)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:212)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:906)
         at com.sun.corba.se.internal.core.UEInfoServiceContext.<init>(UEInfoServiceContext.java:33)
         at java.lang.reflect.Constructor.newInstance(Native Method)
         at com.sun.corba.se.internal.core.ServiceContextData.makeServiceContext(ServiceContextData.java:113)
         at com.sun.corba.se.internal.core.ServiceContexts.<init>(ServiceContexts.java:106)
         at com.sun.corba.se.internal.iiop.ReplyMessage.read(ReplyMessage.java:133)
         at com.sun.corba.se.internal.iiop.IIOPInputStream.<init>(IIOPInputStream.java:89)
         at com.sun.corba.se.internal.iiop.ClientResponseImpl.<init>(ClientResponseImpl.java:29)
         at com.sun.corba.se.internal.iiop.IIOPConnection.createInputStream(IIOPConnection.java:622)
         at com.sun.corba.se.internal.iiop.ReaderThread.run(IIOPConnection.java:109)
    org.omg.CORBA.UNKNOWN: minor code: 0 completed: Maybe
         at com.sun.corba.se.internal.core.UEInfoServiceContext.<init>(UEInfoServiceContext.java:37)
         at java.lang.reflect.Constructor.newInstance(Native Method)
         at com.sun.corba.se.internal.core.ServiceContextData.makeServiceContext(ServiceContextData.java:113)
         at com.sun.corba.se.internal.core.ServiceContexts.<init>(ServiceContexts.java:106)
         at com.sun.corba.se.internal.iiop.ReplyMessage.read(ReplyMessage.java:133)
         at com.sun.corba.se.internal.iiop.IIOPInputStream.<init>(IIOPInputStream.java:89)
         at com.sun.corba.se.internal.iiop.ClientResponseImpl.<init>(ClientResponseImpl.java:29)
         at com.sun.corba.se.internal.iiop.IIOPConnection.createInputStream(IIOPConnection.java:622)
         at com.sun.corba.se.internal.iiop.ReaderThread.run(IIOPConnection.java:109)
    Could you please point out some possible errors? Thanks.
    Charles--

  • Generic object-orientated ALV with

    Hello everyone!
    I've got to solve a little problem and hope, to finde some help here.
    My goal is a global ALV-class, that can be used by programms to easily create ALV's.
    I want to use a generate_output method within this class, that takes any internal table as a parameter and generates an ALV out of it. So when you got an internal table, you just have to create an instance of the global alv class and run the output method with your table as parameter to get a basic alv (later I'm planning to use sub-classes of this basic, global alv class, for more specified and program-related alv's.).
    But for now, that's all I need to do.
    So it should look and work like this:
    DATA: lo_alv TYPE REF TO zcl_alv_report. "our global class instance
    DATA: it_tab TYPE TABLE OF zzm_ehsanl.  "a random internal table
    SELECT * FROM zzm_ehsanl INTO TABLE it_tab. "fill it with some data
    CREATE OBJECT lo_alv. "let's create an instance of the global alv class
    lo_alv->generate_output( it_tab ). "This line is supposed to be all we need for the alv
    Now, let's take a look at the generate_output method within the global class.
    methods GENERATE_OUTPUT importing alv_table type any table.
    So we can use any internal table as a parameter.
    Let's get to the implementation part:
    METHOD generate_output.
      DATA: lx_msg TYPE REF TO cx_salv_msg.
      FIELD-SYMBOLS: <fs_itab> TYPE ANY TABLE.
      ASSIGN alv_table TO <fs_itab>. "assign the parameter to the field-symbol
      TRY.
        cl_salv_table=>factory("<=== that's the point where the dump occurs
            IMPORTING            r_salv_table = o_alv
            CHANGING             t_table      = <fs_itab> ).
        CATCH cx_salv_msg INTO lx_msg.
      ENDTRY.
    The further code shouldn't be relevant for my problem..
    Edited and split up into 2 posts..

    Well, sadly this dumps with "CX_SY_DYN_CALL_ILLEGAL_TYPE" at the specified point. It also says, that field <fs_itab> is protected against changes.
    Well, right now I'm very stuck with this problem and don't know what to do.
    Maybe there is another way to solve the issue?
    Or a better alternative to the cl_salv_table=>factory method?
    A strange thing is, that everything worked well, when I was been using a local class instead of the global one. But there was a little difference in the local implementation. You will notice, that the field symbol is declared within the generate_output method in this implementation. Because classes can't have any field symbols in their main declaration spaces. But when I used it with a local class, I put the declaration of the field-symbol to the point, where all normal global program data is defined. So in the local implementation, the field symbol was not declared within any class-code, but globally within the report. Maybe this is a start for a possible solution to this problem.
    Any help is very appreciated!
    Thanks & regards in forward.

  • SharePoint Foundation Sandboxed Code Service - Unable to activate worker process proxy object within the worker process

    Issue:
    On a vanilla installation, the sandboxed code service (e.g. SPUCHostService.exe) is started; however, SPUCWorkerProcessProxy.exe and subsequently SPUCWorkerProcess.exe fails to start.
    Resolution/Workarounds attempted:
    Attempted 2 different Load balancing settings – local and remote (i.e. affinity)
    Ensured local computer policy on server for ‘RPC Endpoint Mapper Client Authentication’ and ‘Restrictions for Unauthenticated RPC clients’ is disabled.
    Ensured following key in registry is set properly - HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\RPC
    Attempted to bypass SharePoint’s check for certificate revocations at crl.microsoft.com
    Ensured the service account is added to the respective groups (e.g. Performance Log Users, Performance Monitor Users, IIS_IUSRS, WSS_ADMIN_WPG, WSS_WPG)
    Increased limit of ‘AbnormalProcessTerminationCount’ of SPUserCodeService via Powershell
    We have tried all possible workarounds from the following MSDN reference:
    http://blogs.msdn.com/b/sharepointdev/archive/2011/02/08/error-the-sandboxed-code-execution-request-was-refused-because-the-sandboxed-code-host-service-was-too-busy-to-handle-the-request.aspx
    ULS:
    02/21/2014 05:24:50.64  SPUCHostService.exe (0x0230)  0x0F74  SharePoint Foundation Sandboxed Code Service              fe8a               
    Medium               -  - Unable to activate worker process proxy object within the worker process: ipc://38432b45-2f32-4926-ade2-ef53ae1cd501:7000  
    02/21/2014 05:24:50.64  SPUCHostService.exe (0x0230)  0x0F74  SharePoint Foundation Sandboxed Code Service              fe8c               
    Medium               -  - Error activating the worker process manager instance within the worker process. - Inner Exception: System.InvalidOperationException: Unable to activate worker
    process proxy object within the worker process: ipc://38432b45-2f32-4926-ade2-ef53ae1cd501:7000     at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcess.CreateWorkerProcessProxies()    
    02/21/2014 05:24:50.64  SPUCHostService.exe (0x0230)  0x0F74  SharePoint Foundation Sandboxed Code Service              ei0t               
    Medium               - Process creation/initialization threw an exception. Stopping this process. "ipc://38432b45-2f32-4926-ade2-ef53ae1cd501:7000"
    02/21/2014 05:24:50.65  SPUCHostService.exe (0x0230)  0x0F74  SharePoint Foundation Sandboxed Code Service             
    fe87                Medium               -  - Error activating the worker process manager instance within
    the worker process. - Starting worker process threw - Inner Exception: System.InvalidOperationException: Unable to activate worker process proxy object within the worker process: ipc://38432b45-2f32-4926-ade2-ef53ae1cd501:7000     at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcess.CreateWorkerProcessProxies()   
    Any other insights on how I can troubleshoot the issue described?
    Thanks in advance!

    Hi ,
    For resolving your issue , you can do as the followings:
    1. Logged into the Web Server with the Timer Service Account.
    2. Ran the powershell command to check the SID of the account running the spucworkerprocessproxy.exe:  
    $(Get-SPManagedAccount -Identity "THE SERVICE ACCOUNT").Sid.Value
    3. Checked the registry :
    HKEY_USERS\[SID OF THE SERVICE ACCOUNT]\Software\Microsoft\Windows\CurrentVersion\WinTrust\Trust Providers\Software Publishing\State
    4. Changed the value 0x00023c00 to 0x00023e00
    In addition, here are some similar posts for you to take a look at:
    http://social.technet.microsoft.com/Forums/en-US/aae497df-5f0d-4f86-a724-c7b805ccd07f/sharepoint-sandboxed-code-service-troubles?forum=sharepointgeneralprevious
    http://blogs.technet.com/b/operationsguy/archive/2011/01/17/sharepoint-2010-sandboxed-code-solutions-and-web-proxy.aspx
    http://social.msdn.microsoft.com/Forums/en-US/c21e2c3a-a259-4d5f-8071-eff52b7bddc3/issue-sandbox-solution-too-busy-to-handle-the-request?forum=sharepointgeneralprevious
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Error in the Input scchduled.Object variable or with block varaible not set

    Hai Experts ,
    In the input schdueld , data is not accepting ..
    Its shows error : Object variable or with block varaible not set
    Please help..
    Regards
    Daya.........

    Hi SAP collegues,
    At my site, BPC Excel created this problem too "Object Variable or With Block Variable not set" .
    It turned out that this is symptom of a a dys-functioning BPC COM Plug-in in XL2007 or XL2010!
    This is a consequence that your Excel recently crashed while using BPC. And it relates to an Excel Add-in becoming disabled when the applications crashes.  Please check the following.
    Note before doing the following, close all other open Excel and BPC sessions.
    Within Excel go to File à Options
    Select the Add-Ins option on the left
    Select the <<COM Add-ins >> option in the Manage drop down, and click Go
    Make sure that the Planning and Consolidation option is selected.  If not, mark this box and click OK.
    If you do not see anything listed, return to the Add-in screen and select the Disabled Items option, and see if Planning and Consolidation is listed there.
    Let me know if you have any queries,
    Kind Regards,
    robert ten bosch

  • Error: Object variable or With block variable not set.

    Hi,
    when i try to fill the control tables and browse for the target period in HFM (sys 9.3.1) i get the error: Error: Object variable or With block variable not set.
    When browsing for the target value in the location for the value no problem occurs.
    Anybody a clue?

    Hi SAP collegues,
    At my site, BPC Excel created this problem too "Object Variable or With Block Variable not set" .
    It turned out that this is symptom of a a dys-functioning BPC COM Plug-in in XL2007 or XL2010!
    This is a consequence that your Excel recently crashed while using BPC. And it relates to an Excel Add-in becoming disabled when the applications crashes.  Please check the following.
    Note before doing the following, close all other open Excel and BPC sessions.
    Within Excel go to File à Options
    Select the Add-Ins option on the left
    Select the <<COM Add-ins >> option in the Manage drop down, and click Go
    Make sure that the Planning and Consolidation option is selected.  If not, mark this box and click OK.
    If you do not see anything listed, return to the Add-in screen and select the Disabled Items option, and see if Planning and Consolidation is listed there.
    Let me know if you have any queries,
    Kind Regards,
    robert ten bosch

  • TROUBLE WITH PAYMENT METHOD USED DIFFRENT VISA PAYMENTS STILL WONT WORK

    TROUBLE WITH PAYMENT METHOD USED DIFFRENT VISA PAYMENTS STILL WONT WORK

    This is a case for the iTunes Store Support:
    1. Go to expresslane.apple.com
    2. select 'itunes' and then 'itunes store' on the right
    3. select a topic and a subject
    4. click 'continue' and then 'email'
    5. fill out the form and explain your situation
    6. they will respond within 24 hours usually
    Good luck
    Stijn

Maybe you are looking for

  • "CX_SY_OPEN_SQL_DB" ERROR  when modifying a custom table

    Dear friends, I get this runtime error "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB" excpetion raised while am trying to modify a custome table . says deadlock detected while waiting for resourcebelow is the code snippet please suggest solution on how to

  • Queue Mechanism in OBPM 10GR3

    Hi all, We want to develop a queue mechanism in BPM. We want only 5 out of a total of 10 instances to enter a sub-process at a time. Only when the count is less than < 5, would the next instance enter the sub-process. But we are finding it difficult

  • Replace MacBook pro keyboard

    Hi, I have a Macbook Pro 15" (still under warranty) that I bought in the US. I am moving to France for a while and I'd like to change my qwerty keyboard to an azerty. I went to the Apple store today and asked if I could buy/order an azerty keyboard (

  • Can anyone help re: installing Photoshop Elements 11?

    I have windows 7, and can't install this program. It won't even pull up when inserted. Any ideas?

  • What to do with duplicate association

    Hi All, Working with Jdev11.1.1.16.. As a new with jdev i am little bit confused with association get created when i Synchronize Eo's currently I am working with HR schema 1. I create two EO's (DepartmentsEO,EmployeesEO) same time three association a