IllegalArgumentException:name

Hi
I am using jetty 6_1_8 for creating a Http Server Adapter. I am able to access it in linux but I am getting the following exception in windows
java.lang.IllegalArgumentException: name
     at sun.misc.URLClassPath$Loader.findResource(URLClassPath.java:458)
     at sun.misc.URLClassPath.findResource(URLClassPath.java:145)
     at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
     at java.lang.ClassLoader.getResource(ClassLoader.java:978)
     at org.mortbay.jetty.webapp.WebAppClassLoader.getResource(WebAppClassLoader.java:258)
     at org.mortbay.resource.Resource.newSystemResource(Resource.java:202)I saw jetty code and it is like
_parent.getResource(name);
name is the location of webdefault.xml which is (E:\DEV_E\install_524_mssql_2008\install\noapp\etc\webdefault.xml) for windows
and for windows it is /ais_local/share/alodha/52/gis_CATA_5241_18000/platform_core/install/noapp/etc/webdefault.xml
I want to understand why it is throwing illegalArgumentException:name?
Also when I dont use this custom webdefault.xml (using jetty provided default webdefault.xml) then it works fine.
Edited by: 821458 on Dec 27, 2012 1:31 AM

I want to know why and when ClassLoader.getResource(name) can give this exception.
The below is the code for URLClassLoader which throws the exception. I just want to understand in what conditions it can throw MalformedURLException which ultimately throws IllegalArgumentException:name
Resource getResource(final String name, boolean check) {
                final URL url;
                try {
                    url = new URL(base, ParseUtil.encodePath(name, false));
                } catch (MalformedURLException e) {
                    throw new IllegalArgumentException("name");
               }

Similar Messages

  • Adaptive RFC2 Model - java.lang.IllegalArgumentException

    Hi,
    i try to create an adaptive rfc2 model. After selecting the function group, i get the following error:
    java.lang.IllegalArgumentException: Name may only contain A..Z, a..z, 0..9 or '_' but is /COMPANY/ID_RANGE
    Any ideas?
    Regards,
    Johannes

    Johannes,
    Try to search directly for the Function Module (RFC) instead of selecting the function group.
    Br,
    Bala

  • Errors when using Web Content Reporting

    Hi,
    has anybody installed Web Content Reporting from the SDN download successful?
    We got through the db-update and ran the aggregator component.
    But we have two errors:
    1.) When restarting the service, we get the following error:
    Jan 18, 2005 11:33:06 AM # PRT-Async 0          Fatal           unexpected error
    java.lang.IllegalArgumentException: Name value is not one of the known names or integer.
         at com.sapportals.portal.prt.logger.Level.parse(Level.java:154)
         at com.sapportals.portal.prt.logger.util.LoggerFile.isLevelRequired(LoggerFile.java:124)
         at ...
    2.) Trying to use the iview webreportform we get the error:
    com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource
    Component : com.sap.portal.webreport.frontend.webreportform
    Component class : com.sap.portal.webreport.frontend.WebReportForm
    User : stuehrman_h
    Caused by: com.sapportals.portal.prt.component.PortalComponentException: Unable to Find Method : key
         at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:101)
    We are on EP6.0 SP2, Patch 28.
    Any ideas?
    Best Regards,
    Helge Stührmann

    Helge,
    did you find out why there is nothing displayed? I experience the same issue, the lists in the FORM iView are empty.
    Is the aggregator not working? I get the following in the log of:
    *--flush data begin--*
    Data_Reporter1107427396468 - opening new connection
    Current database timestamp: 2005-02-03 11:55:16.483
    Data_Reporter1107427396468 - Closing connection
    Data_Reporter1107427396468 - opening new connection
    Data_Reporter1107427396468 - commit and close connection done
    Data_Reporter1107427396468 - opening new connection
    Data_Reporter1107427396468 - connection closed
    2 user ids saved
    Data_Reporter1107427396468 - opening new connection
    Data_Reporter1107427396468 - commit and close connection done
    Data_Reporter1107427396468 - opening new connection
    Data_Reporter1107427396468 - connection closed
    11 pages saved
    Data_Reporter1107427396468 - opening new connection
    Data_Reporter1107427396468 - commit and close connection done
    Data_Reporter1107427396468 - opening new connection
    Data_Reporter1107427396468 - connection closed
    47 iViews saved
    *--flush data end--*
    *Duration: 109 millis*
    Thread will flush data in 60 minutes.
    WebReportForm.doInitialization()
    Current database timestamp: 2005-02-03 12:07:17.607
    WebReportForm.doProcessAfterInput()
    Converted 20050203,00 to Thu Feb 03 01:00:00 CET 2005 to 1107388800000
    WebReportForm.doProcessAfterInput()
    Converted 20050203,00 to Thu Feb 03 01:00:00 CET 2005 to 1107388800000
    WebReportForm.onSubmitButtonClicked()
    Skipped 0 PCD URLs
    Database accesses: 0, Cache Hits: 0
    Database access took 16 milliseconds.
    WebReportForm.doProcessAfterInput()
    WebReportForm.doInitialization()
    Current database timestamp: 2005-02-03 12:08:03.293
    Regards,
    Erik

  • Mapping to a Lookup Table

    O.K. I have a basic Java question and how to do this the following using
    Java/JDO:
    I have a database table for a lookup class. It will have the following
    structure:
    Create Table ProductStatus
    Id bigint not null
    name char (20);
    In C++ I would have an Enumeration Type which constrains the value of the
    variable to the set of values in the database.
    In Java I was thinking that I would have a ProductStatus class and then in
    the Product Class I would have an instance as follows:
    public class Product {
    ProductStatus status;
    But I have now believe that this is wrong...
    From offline work I have been told that the correct JDO for what I want
    to do is as follows:
    <class name="Product">
    <extension vendor-name="kodo" key="table" value="JDO_PRODUCT"/>
    <extension vendor-name="kodo" key="pk-column" value="ID"/>
    <extension vendor-name="kodo" key="class-column" value="JDOCLASS"/>
    <extension vendor-name="kodo" key="lock-column" value="none"/>
    <field name="currency">
    <extension vendor-name="kodo" key="data-column" value="CURRENCY"/>
    </field>
    <field name="productStatus">
    <extension vendor-name="kodo" key="data-column" value="STATUS_ID"/>
    </field>
    </class>
    <class name="ProductStatus">
    <extension vendor-name="kodo" key="table" value="JDO_STATUS"/>
    <extension vendor-name="kodo" key="pk-column" value="ID"/>
    <field name="name">
    <extension vendor-name="kodo" key="data-column" value="NAME"/>
    </field>
    </class>
    My two questions are:
    1) What do I put for the Java code, both in the product class and for
    ProductStatus.... This is more a Java question than JDO... I have been
    told I am thinking in too much of a C++ way.... I keep wanting to have
    a ProductStatus as a Type Class and then have an instance variable in
    the Product class such as status that is of type: ProductStatus.
    But I have been told this is not the correct Java way to do things.
    How should this be done?
    2) I would have expected that the JDO for the ProductStatus field in the
    Product Class would have been a FK extension, but I had Abe White help me
    with this and he said generated the JDO file I have included.... so how is
    the Product.ProductStatus linking to the ProductStatus class ???? With the
    current JDO I don't see any link, either by name or by shared ID value....
    Obviously I am a total newbie to this and these are basic questions.
    Thanks to anyone who has the time to reply.
    Brian Smith

    Hi Brian --
    Java code:
    public class Product
         private ProductStatus status;
    public class ProductStatus
         private String name;
    Metadata:
    Exactly like you posted it.
    I'm not sure where you're getting confused on how the relation works. It's
    straightforward. The STATUS_ID column in the JDO_PRODUCT table holds the
    primary key value of the related ProductStatus instance. That's all there is
    to it. So, for example, the following Java code:
    ProductStatus stat = new ProductStatus ();
    stat.setName ("foo");
    Product prod = new Product ();
    prod.setProductStatus (stat);
    pm.currentTransaction ().begin ();
    pm.makePersistent (prod);
    pm.currentTransaction ().commit ();
    Would product SQL like:
    INSERT INTO JDO_PRODUCT (ID, STATUS_ID) VALUES (100, 101);
    INSERT INTO JDO_STATUS (ID, NAME) VALUES (101, 'foo');
    Note that the '101' value for STATUS_ID in the inserted JDO_PRODUCT row
    matches the '101' value for the ID (primary key) in the inserted JDO_STATUS
    row.
    If you wanted to simulate a C++ enumeration and at the same time get rid of
    the necessity of a second JDO_STATUS table that seems a little redundant
    (why have a table to hold a single piece of data?), you could do it in 2 ways.
    The simple way would be to just use static constants in the Product class for
    different possible statuses:
    public class Product
         public static final String STATUS_XXX = "xxx";
         public static final String STATUS_YYY = "yyy";
         private String status;
    And then just have the JDO_PRODUCT table have a VARCHAR column to hold the
    status string rather than having a STATUS_ID column that forms a relation to
    a separate table.
    The second way, which more closely mirrors C++ enumerations, is a little more
    complex. You keep the ProductStatus class, but make it non-persistent (note:
    the static-instance, private-constructor pattern below is the standard Java
    way of doing enums):
    public class ProductStatus
         // enumerate all possible product status values
         public static final ProductStatus XXX = new ProductStatus ("xxx");
         public static final ProductStatus YYY = new ProductStatus ("yyy");
         private String name;
         * Convenience method to return a status for a given name.
         public static ProductStatus forName (String name)
              if (XXX.getName ().equals (name))
                   return XXX;
              if (YYY.getName ().equals (name))
                   return YYY;
              throw new IllegalArgumentException (name);
         * Make constructor private to prevent creation of any status instances
         * with illegal values.
         private ProductStatus (String name)
              this.name = name;
         public String getName ()
              return name;
    Then in your Product class, keep a non-persistent ProductStatus instance and
    a persistent field with the status name. Use the javax.jdo.InstanceCallbacks
    interface to transfer the stored status name to/from the ProductStatus:
    public class Product
         implements InstanceCallbacks
         // used internally only; map this to the column in the JDO_PRODUCT table
         // holding the status name for the product; at runtime we'll use JDO
         // lifecycle callbacks to transfer the value to/from a ProductStatus
         // instance
         private String statusName;
         // mark this as non-persistent in the metadata
         private ProductStatus status;
         public void jdoPostLoad ()
              status = ProductStatus.forName (statusName);
         public void jdoPreStore ()
              statusName = (status == null) ? null : status.getName ();
         // rest of InstanceCallbacks methods can be implemented as no-ops...
    With Kodo, you could even implement your own FieldMapping to map status strings
    to ProductStatus instances, but that's getting really complicated for very
    little real advantage.
    Hope that helps.

  • Unable to Hide *Review and Save* step using personlization

    Hi,
    using personlization we want to hide  * Review and Save*  step in bank information iview under Personal Information.
    FYI...
    Step 1)  click on Content Administration
    Step 2) Expand Portal Content
    Step 3) Expand Content Provided by SAP
    Step 4) Expand End User Content
    Step 5) Expand Employee Self Service
    Step 6) Expand Roles
    Step 7) double click Employee Self service
    Step 8) Expand Personal Information
    Step 9) Select the Personal Information page and click on preview buttonStep
    Step 10) In the popup window click on Bank Information
    Step 11) select Review and Save and control right click to open the
    Personalization window
    step 12) In the Personalization window, select Review and save and
    select the radio button visible No and click on the Apply Button.
    Step 13) As a result the following error screen is displayed
    java.lang.IllegalArgumentException: Name portal_content/com.sap.pct/srvconfig/com.sap.pct.erp.srvconfig.ess.employee_self_service/com.sap.pct.erp.srvconfig.in/com.sap.pct.erp.srvconfig.bank/com.sap.pct.erp.srvconfig.fpmapplications/com.sap.pct.erp.srvconfig.per_bank_in/com.sap.xss.config.roadmapsteps/r3 is incorrect. It must only contain a..zA..Z0..9._-$ symbols.
        at com.sap.tc.webdynpro.repository.model.DelegatorRepositoryModelClass.checkCreate(DelegatorRepositoryModelClass.java:400)
        at com.sap.tc.webdynpro.repository.model.DelegatorRepositoryModelClass.createRelatedModelObject(DelegatorRepositoryModelClass.java:318)
        at com.sap.tc.webdynpro.progmodel.personalization.ViewPersonalization$Implementation.createInElements(ViewPersonalization.java:128)
        at com.sap.tc.webdynpro.progmodel.view.ViewElement._getPersonalization(ViewElement.java:318)
        at com.sap.tc.webdynpro.progmodel.view.PersonalizationHelper.setOverriddenProperty(PersonalizationHelper.java:942)
    Thanks,
    vijay.

    Hi Vijay,
    To edit the text you can follow the method or follow Note 1234273.
    And For making any changes to the roadmap you might want to look at modifying it from Self Service Administrator.
    Check the below links on more info on SSA.
    http://help.sap.com/saphelp_erp2005/helpdata/en/43/3b6c0cfa6c1bcbe10000000a1553f7/frameset.htm
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/bf/a74fecb9434fe7bd760c75db094366/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/6a/3e47d0a0dc4abaa58f93689a077334/content.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/07/acc80592b4451badb0f90ccd3bc55b/frameset.htm
    Hope this helps.
    Cheers-
    Pramod

  • Cache entrySet EqualsFilter ClassNotFoundException

    Hello,
    While using namedCache.entrySet(new EqualsFilter("attributeAccessor", value), null) I get a ClassNotFoundException.
    Notes:_
    - I have created my cache with the ClassLoader of the class I am trying to find instances for.
    - Able to namedCache.put() with no issues
    - Able to deserialize the same container object when I use namedCache.get()
    - Tried both single and multiple attributeAccessor navigations: attr1 and attr1.attr2
    - In the case of attr1 I get the ClassNotFoundException for the container object
    - In the case of attr1.attr2 I get the ClassNotFoundException for the contained object
    - I use a fluent API, which means my getters don't start with "get"; thus, attribute1 is accessed with method attribute1()
    - I have attempted to create getAttribute1() and getAttribute2() methods with "getAttribute1.getAttribute2" just in case
    - It is only a problem when using entrySet() with a Filter
    Stack trace:_
    (Wrapped: Failed request execution for DistributedCache service on Member(Id=1, Timestamp=2011-04-13 15:34:03.656, Address=XXX:8088, MachineId=61697, Location=machine:MACHNAME,process:3508, Role=CoherenceServer)) java.io.IOException: readObject failed: java.lang.ClassNotFoundException: packagename.ContainedClassName
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:247)
         at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604)
         at com.tangosol.io.ResolvingObjectInputStream.resolveClass(ResolvingObjectInputStream.java:68)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2180)
         at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2311)
         at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2254)
         at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2233)
         at com.tangosol.util.filter.ComparisonFilter.readExternal(ComparisonFilter.java:204)
         at com.tangosol.util.ExternalizableHelper.readExternalizableLite(ExternalizableHelper.java:2004)
         at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2308)
         at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2254)
         at com.tangosol.io.DefaultSerializer.deserialize(DefaultSerializer.java:74)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.readObject(Service.CDB:1)
         at com.tangosol.coherence.component.net.Message.readObject(Message.CDB:1)
         at com.tangosol.coherence.component.net.message.requestMessage.distributedCacheRequest.partialRequest.FilterRequest.read(FilterRequest.CDB:7)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$QueryRequest.read(PartitionedCache.CDB:1)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.deserializeMessage(Grid.CDB:42)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:31)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)
    ClassLoader: null
         at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.tagException(Grid.CDB:36)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onQueryRequest(PartitionedCache.CDB:72)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$QueryRequest.run(PartitionedCache.CDB:1)
         at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheRequest.onReceived(DistributedCacheRequest.CDB:12)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:11)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:33)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.io.IOException: readObject failed: java.lang.ClassNotFoundException: packagename.ContainedClassName
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:247)
         at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604)
         at com.tangosol.io.ResolvingObjectInputStream.resolveClass(ResolvingObjectInputStream.java:68)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2180)
         at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2311)
         at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2254)
         at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2233)
         at com.tangosol.util.filter.ComparisonFilter.readExternal(ComparisonFilter.java:204)
         at com.tangosol.util.ExternalizableHelper.readExternalizableLite(ExternalizableHelper.java:2004)
         at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2308)
         at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2254)
         at com.tangosol.io.DefaultSerializer.deserialize(DefaultSerializer.java:74)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.readObject(Service.CDB:1)
         at com.tangosol.coherence.component.net.Message.readObject(Message.CDB:1)
         at com.tangosol.coherence.component.net.message.requestMessage.distributedCacheRequest.partialRequest.FilterRequest.read(FilterRequest.CDB:7)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$QueryRequest.read(PartitionedCache.CDB:1)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.deserializeMessage(Grid.CDB:42)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:31)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)
    ClassLoader: null
         at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2188)
         at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2311)
         at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2254)
         at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2233)
         at com.tangosol.util.filter.ComparisonFilter.readExternal(ComparisonFilter.java:204)
         at com.tangosol.util.ExternalizableHelper.readExternalizableLite(ExternalizableHelper.java:2004)
         at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2308)
         at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2254)
         at com.tangosol.io.DefaultSerializer.deserialize(DefaultSerializer.java:74)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.readObject(Service.CDB:1)
         at com.tangosol.coherence.component.net.Message.readObject(Message.CDB:1)
         at com.tangosol.coherence.component.net.message.requestMessage.distributedCacheRequest.partialRequest.FilterRequest.read(FilterRequest.CDB:7)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$QueryRequest.read(PartitionedCache.CDB:1)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.deserializeMessage(Grid.CDB:42)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:31)
         ... 4 more
    Thanks for your help!
    Kind regards,
    Vaughn

    I am using out-of-the-box configuration. I have not changed a thing about it. I have whittled down the code into a sandbox with unit test. I am using default Java serialization. The point was to get the simplest thing working.
    In the code below, see CoherenceProductRepository#allProductsOfTenant(). If you comment out the statement with EqualsFilter and uncomment the other statement, the test works. If you use EqualsFilter it throws ClassNotFoundException.
    The code is wired a bit differently than the actual code because I have removed a bunch of dependencies. Still it produces the same error.
    Vaughn
    Product.java
    ==========
    package sandbox;
    import java.io.Serializable;
    public class Product implements Serializable {
    private static final long serialVersionUID = 1L;
    private String description;
    private String name;
    private Tenant tenant;
    public Product(Tenant aTenant, String aName, String aDescription) {
    this();
    this.setDescription(aDescription);
    this.setName(aName);
    this.setTenant(aTenant);
    this.initialize();
    public void rename(String aName) {
    this.setName(aName);
    public String description() {
    return this.description;
    public String name() {
    return this.name;
    public Tenant tenant() {
    return this.tenant;
    @Override
    public boolean equals(Object anObject) {
    boolean equalObjects = false;
    if (anObject != null && this.getClass() == anObject.getClass()) {
    Product typedObject = (Product) anObject;
    equalObjects =
    this.name().equals(typedObject.name()) &&
    this.description().equals(typedObject.description());
    return equalObjects;
    @Override
    public int hashCode() {
    int hashCodeValue =
    + (169853 * 229)
    + this.name().hashCode()
    + this.description().hashCode();
    return hashCodeValue;
    @Override
    public String toString() {
    return
    "Product"
    + " description = " + this.description()
    + " name = " + this.name();
    protected Product() {
    super();
    protected void setDescription(String aDescription) {
    if (aDescription == null || aDescription.length() == 0) {
    throw new IllegalArgumentException("Description is required.");
    if (aDescription.length() > 500) {
    throw new IllegalArgumentException("Description must be 500 characters or less.");
    this.description = aDescription;
    protected void setName(String aName) {
    if (aName == null || aName.length() == 0) {
    throw new IllegalArgumentException("Name is required.");
    if (aName.length() > 100) {
    throw new IllegalArgumentException("Name must be 100 characters or less.");
    this.name = aName;
    protected void setTenant(Tenant aTenant) {
    if (aTenant == null) {
    throw new IllegalArgumentException("The tenant is required.");
    this.tenant = aTenant;
    private void initialize() {
    // begin-user-code: initialize()
    // end-user-code: initialize()
    Tenant.java
    =========
    package sandbox;
    import java.io.Serializable;
    public class Tenant implements Serializable {
    private static final long serialVersionUID = 1L;
    private String id;
    public Tenant(String anId) {
    super();
    this.setId(anId);
    this.initialize();
    public Tenant(Tenant aTenant) {
    this(aTenant.id());
    public String id() {
    return this.id;
    @Override
    public boolean equals(Object anObject) {
    boolean equalObjects = false;
    if (anObject != null && this.getClass() == anObject.getClass()) {
    Tenant typedObject = (Tenant) anObject;
    equalObjects =
    this.id().equals(typedObject.id());
    return equalObjects;
    @Override
    public int hashCode() {
    int hashCodeValue =
    + (175819 * 311)
    + this.id().hashCode();
    return hashCodeValue;
    @Override
    public String toString() {
    return
    "Tenant"
    + " id = " + this.id();
    protected Tenant() {
    super();
    private void initialize() {
    // begin-user-code: initialize()
    // end-user-code: initialize()
    private void setId(String anId) {
    if (anId == null || anId.length() == 0) {
    throw new IllegalArgumentException("The tenant identity is required.");
    if (anId.length() > 36) {
    throw new IllegalArgumentException("The tenant identity must be 36 characters or less.");
    this.id = anId;
    CoherenceProductRepository.java
    ======================
    package sandbox;
    import java.util.Collection;
    import java.util.HashMap;
    import java.util.HashSet;
    import java.util.Map;
    import java.util.Set;
    import com.tangosol.net.CacheFactory;
    import com.tangosol.net.NamedCache;
    import com.tangosol.util.filter.EqualsFilter;
    public class CoherenceProductRepository {
    public CoherenceProductRepository() {
    super();
    public void add(Product aProduct) {
    this.cache().put(this.idOf(aProduct), aProduct);
    public void addAll(Collection<Product> aProductCollection) {
    if (!aProductCollection.isEmpty()) {
    Map<String,Product> productsMap =
    new HashMap<String,Product>(aProductCollection.size());
    for (Product product : aProductCollection) {
    productsMap.put(this.idOf(product), product);
    this.cache().putAll(productsMap);
    @SuppressWarnings("unchecked")
    public Collection<Product> allProductsOfTenant(Tenant aTenant) {
    Set<Map.Entry<String, Product>> entries =
    this.cache().entrySet(new EqualsFilter("tenant.id", aTenant.id()), null);
    // Set<Map.Entry<String, Product>> entries =
    // this.cache().entrySet();
    Collection<Product> products =
    new HashSet<Product>(entries.size());
    for (Map.Entry<String, Product> entry : entries) {
    products.add(entry.getValue());
    return products;
    public Product productOfName(String aName) {
    return (Product) this.cache().get(aName);
    public void remove(Product aProduct) {
    this.cache().remove(this.idOf(aProduct));
    public void removeAll(Collection<Product> aProductCollection) {
    for (Product product : aProductCollection) {
    this.remove(product);
    private NamedCache cache() {
    NamedCache cache = CacheFactory.getCache("coherence.sandbox.product");
    return cache;
    private String idOf(Product aProduct) {
    return aProduct.name();
    CoherenceProductRepositoryTest.java
    ========================
    package sandbox;
    import junit.framework.TestCase;
    import java.util.Arrays;
    import java.util.Collection;
    public class CoherenceProductRepositoryTest extends TestCase {
    private CoherenceProductRepository productRepository;
    private Tenant tenant;
    public CoherenceProductRepositoryTest() {
    super();
    public void testSaveProduct() throws Exception {
    Tenant tenant = new Tenant("01234567");
    Product product =
    new Product(
    tenant,
    "My Product",
    "This is the description of my product.");
    this.productRepository().add(product);
    Product readProduct =
    this.productRepository().productOfName(product.name());
    assertNotNull(readProduct);
    assertEquals(readProduct.tenant(), tenant);
    assertEquals(readProduct.name(), product.name());
    assertEquals(readProduct.description(), product.description());
    public void testFindMultipleProducts() throws Exception {
    Product product1 =
    new Product(
    tenant,
    "My Product 1",
    "This is the description of my first product.");
    Product product2 =
    new Product(
    tenant,
    "My Product 2",
    "This is the description of my second product.");
    Product product3 =
    new Product(
    tenant,
    "My Product 3",
    "This is the description of my third product.");
    this.productRepository().addAll( Arrays.asList(product1, product2, product3) );
    assertNotNull(this.productRepository().productOfName(product1.name()));
    assertNotNull(this.productRepository().productOfName(product2.name()));
    assertNotNull(this.productRepository().productOfName(product3.name()));
    Collection<Product> allProducts =
    this.productRepository().allProductsOfTenant(tenant);
    assertEquals(allProducts.size(), 3);
    @Override
    protected void setUp() throws Exception {
    this.setProductRepository(new CoherenceProductRepository());
    this.tenant = new Tenant("01234567");
    super.setUp();
    @Override
    protected void tearDown() throws Exception {
    Collection<Product> products =
    this.productRepository().allProductsOfTenant(tenant);
    this.productRepository().removeAll(products);
    protected CoherenceProductRepository productRepository() {
    return this.productRepository;
    protected void setProductRepository(CoherenceProductRepository aProductRepository) {
    this.productRepository = aProductRepository;
    }

  • HTTP Post of big files over UMTS stops

    Hi there I modified the code from [this thread|http://forum.java.sun.com/thread.jspa?forumID=256&threadID=451245] to suit the needs of J2ME:
    package some.package.util.http;
    * Original source code: http://forum.java.sun.com/thread.jspa?forumID=256&threadID=451245
    * This source was adapted to meet the requirements of J2ME
    * @author tb
    import java.io.*;
    import java.util.Enumeration;
    import java.util.Vector;
    import javax.microedition.io.Connector;
    import javax.microedition.io.HttpConnection;
    import javax.microedition.io.file.FileConnection;
    * <code>MultiPartFormOutputStream</code> is used to write
    * "multipart/form-data" to a <code>javax.microedition.io.HttpConnection</code> for
    * POSTing.  This is primarily for file uploading to HTTP servers. 
    public class MultiPartFormOutputStream {
    * The line end characters. 
    private static final String NEWLINE = "\r\n";
    * The boundary prefix. 
    private static final String PREFIX = "--";
    * The output stream to write to.
    private DataOutputStream out = null;
    * The multipart boundary string. 
    private String boundary = null;       
    private Vector progressListeners;
    * Creates a new <code>MultiPartFormOutputStream</code> object using
    * the specified output stream and boundary.  The boundary is required
    * to be created before using this method, as described in the
    * description for the <code>getContentType(String)</code> method. 
    * The boundary is only checked for <code>null</code> or empty string,
    * but it is recommended to be at least 6 characters.  (Or use the
    * static createBoundary() method to create one.)
    * @param  os        the output stream
    * @param  boundary  the boundary
    * @see  #createBoundary()
    * @see  #getContentType(String)
    public MultiPartFormOutputStream(OutputStream os, String boundary) {
    if(os == null) {
    throw new IllegalArgumentException("Output stream is required.");
    if(boundary == null || boundary.length() == 0) {
    throw new IllegalArgumentException("Boundary stream is required.");
    this.out = new DataOutputStream(os);
    this.boundary = boundary;
    this.progressListeners=new Vector();
    * Writes an boolean field value. 
    * @param  name   the field name (required)
    * @param  value  the field value
    * @throws  java.io.IOException  on input/output errors
    public void writeField(String name, boolean value)
    throws java.io.IOException {
    writeField(name, new Boolean(value).toString());
    * Writes an double field value. 
    * @param  name   the field name (required)
    * @param  value  the field value
    * @throws  java.io.IOException  on input/output errors
    public void writeField(String name, double value)
    throws java.io.IOException {
    writeField(name, Double.toString(value));
    * Writes an float field value. 
    * @param  name   the field name (required)
    * @param  value  the field value
    * @throws  java.io.IOException  on input/output errors
    public void writeField(String name, float value)
    throws java.io.IOException {
    writeField(name, Float.toString(value));
    * Writes an long field value. 
    * @param  name   the field name (required)
    * @param  value  the field value
    * @throws  java.io.IOException  on input/output errors
    public void writeField(String name, long value)
    throws java.io.IOException {
    writeField(name, Long.toString(value));
    * Writes an int field value. 
    * @param  name   the field name (required)
    * @param  value  the field value
    * @throws  java.io.IOException  on input/output errors
    public void writeField(String name, int value)
    throws java.io.IOException {
    writeField(name, Integer.toString(value));
    * Writes an short field value.
    * @param  name   the field name (required)
    * @param  value  the field value
    * @throws  java.io.IOException  on input/output errors
    public void writeField(String name, short value)
    throws java.io.IOException {
    Short val = new Short(value);
    writeField(name, val.toString());
    * Writes an char field value. 
    * @param  name   the field name (required)
    * @param  value  the field value
    * @throws  java.io.IOException  on input/output errors
    public void writeField(String name, char value)
    throws java.io.IOException {
    writeField(name, new Character(value).toString());
    * Writes an string field value.  If the value is null, an empty string
    * is sent (""). 
    * @param  name   the field name (required)
    * @param  value  the field value
    * @throws  java.io.IOException  on input/output errors
    public void writeField(String fieldName, String value)
    throws java.io.IOException {
    if(fieldName == null) {
    throw new IllegalArgumentException("name cannot be null or empty.");
    if(value == null) {
    value = "";
    String contentDisposition = "Content-Disposition: form-data; name=\"" + fieldName + "\"";
    --boundary\r\n
    Content-Disposition: form-data; name="<fieldName>"\r\n
    \r\n
    <value>\r\n
    // write boundary
    out.write(PREFIX.getBytes());
    out.write(boundary.getBytes());
    out.write(NEWLINE.getBytes());
    // write content header
    out.write(contentDisposition.getBytes());
    out.write(NEWLINE.getBytes());
    out.write(NEWLINE.getBytes());
    // write content
    out.write(value.getBytes());
    out.write(NEWLINE.getBytes());
    //out.flush();
    * Writes a file's contents.  If the file is null, does not exists, or
    * is a directory, a <code>java.lang.IllegalArgumentException</code>
    * will be thrown. 
    * @param  name      the field name
    * @param  mimeType  the file content type (optional, recommended)
    * @param  file      the file (the file must exist)
    * @throws  java.io.IOException  on input/output errors
    public void writeFile(String fieldName, String mimeType, FileConnection fileCon)
    throws java.io.IOException {
    if(fileCon == null) {
    throw new IllegalArgumentException("File cannot be null.");
    if(!fileCon.exists()) {
    throw new IllegalArgumentException("File does not exist.");
    if(fileCon.isDirectory()) {
    throw new IllegalArgumentException("File cannot be a directory.");
    writeFile(fieldName, mimeType, fileCon.getPath(), fileCon.openDataInputStream());
    * Writes a input stream's contents.  If the input stream is null, a
    * <code>java.lang.IllegalArgumentException</code> will be thrown. 
    * @param  name      the field name
    * @param  mimeType  the file content type (optional, recommended)
    * @param  fileName  the file name (required)
    * @param  is        the input stream
    * @throws  java.io.IOException  on input/output errors
    public void writeFile(String fieldName, String mimeType,
    String fileName, InputStream is)
    throws java.io.IOException {
    if(is == null) {
    throw new IllegalArgumentException("Input stream cannot be null.");
    if(fileName == null || fileName.length() == 0) {
    throw new IllegalArgumentException("File name cannot be null or empty.");
    String contentDisposition = "Content-Disposition: form-data; name=\"" + fieldName +
    "\"; filename=\"" + fileName + "\"";
    String contentType = "Content-Type: " + mimeType;
    --boundary\r\n
    Content-Disposition: form-data; name="<fieldName>"; filename="<filename>"\r\n
    Content-Type: <mime-type>\r\n
    \r\n
    <file-data>\r\n
    // write boundary
    out.write(PREFIX.getBytes());
    out.write(boundary.getBytes());
    out.write(NEWLINE.getBytes());
    // write content header
    out.write(contentDisposition.getBytes());
    out.write(NEWLINE.getBytes());
    if(mimeType != null) {
    out.write(contentType.getBytes());
    out.write(NEWLINE.getBytes());
    out.write(NEWLINE.getBytes());
    // write content
    byte[] data = new byte[1024];
    int r = 0;
    while((r = is.read(data, 0, data.length)) != -1) {
    out.write(data, 0, r);
    this.updateProgressListeners(data.length);
    // close input stream, but ignore any possible exception for it
    try {
    is.close();
    } catch(Exception e) { e.printStackTrace();}
    out.write(NEWLINE.getBytes());
    //out.flush();
    * Writes the given bytes.  The bytes are assumed to be the contents
    * of a file, and will be sent as such.  If the data is null, a
    * <code>java.lang.IllegalArgumentException</code> will be thrown. 
    * @param  name      the field name
    * @param  mimeType  the file content type (optional, recommended)
    * @param  fileName  the file name (required)
    * @param  data      the file data
    * @throws  java.io.IOException  on input/output errors
    public void writeFile(String fieldName, String mimeType, String fileName, byte[] data)
    throws java.io.IOException {
    if(data == null) {
    throw new IllegalArgumentException("Data cannot be null.");
    if(fileName == null || fileName.length() == 0) {
    throw new IllegalArgumentException("File name cannot be null or empty.");
    String contentDisposition = "Content-Disposition: form-data; name=\"" + fieldName +
    "\"; filename=\"" + fileName + "\"";
    String contentType = "Content-Type: " + mimeType;
    --boundary\r\n
    Content-Disposition: form-data; name="<fieldName>"; filename="<filename>"\r\n
    Content-Type: <mime-type>\r\n
    \r\n
    <file-data>\r\n
    // write boundary
    out.write(PREFIX.getBytes());
    out.write(boundary.getBytes());
    out.write(NEWLINE.getBytes());
    // write content header
    out.write(contentDisposition.getBytes());
    out.write(NEWLINE.getBytes());
    if(mimeType != null) {
    out.write(contentType.getBytes());
    out.write(NEWLINE.getBytes());
    out.write(NEWLINE.getBytes());
    // write content
    out.write(data, 0, data.length);
    out.write(NEWLINE.getBytes());
    //out.flush();
    * Flushes the stream.  Actually, this method does nothing, as the only
    * write methods are highly specialized and automatically flush. 
    * @throws  java.io.IOException  on input/output errors
    public void flush() throws java.io.IOException {
    out.flush();
    * Closes the stream.  <br/>
    * <br/>
    * <b>NOTE:</b> This method <b>MUST</b> be called to finalize the
    * multipart stream.
    * @throws  java.io.IOException  on input/output errors
    public void close() throws java.io.IOException {
    // write final boundary
    out.write(PREFIX.getBytes());
    out.write(boundary.getBytes());
    out.write(PREFIX.getBytes());
    out.write(NEWLINE.getBytes());
    out.flush();
    out.close();
    * Gets the multipart boundary string being used by this stream. 
    * @return  the boundary
    public String getBoundary() {
    return this.boundary;
    * Creates a new <code>javax.microedition.io.HttpConnection</code> object from the
    * specified <code>String</code>.   
    * @return  a <code>javax.microedition.io.HttpConnection</code> object for the URL
    * @throws  java.io.IOException  on input/output errors
    public static HttpConnection createConnection(String url)
    throws java.io.IOException {
    HttpConnection conn = (HttpConnection) Connector.open(url);
    conn.setRequestMethod(HttpConnection.POST);
    return conn;
    * Creates a multipart boundary string by concatenating 20 hyphens (-)
    * and the hexadecimal (base-16) representation of the current time in
    * milliseconds. 
    * @return  a multipart boundary string
    * @see  #getContentType(String)
    public static String createBoundary() {
    return "--------------------" +
    Long.toString(System.currentTimeMillis(), 16);
    * Gets the content type string suitable for the
    * <code>javax.microedition.io.HttpConnection</code> which includes the multipart
    * boundary string.  <br/>
    * <br/>
    * This method is static because, due to the nature of the
    * <code>javax.microedition.io.HttpConnection</code> class, once the output stream
    * for the connection is acquired, it's too late to set the content
    * type (or any other request parameter).  So one has to create a
    * multipart boundary string first before using this class, such as
    * with the <code>createBoundary()</code> method. 
    * @param  boundary  the boundary string
    * @return  the content type string
    * @see  #createBoundary()
    public static String getContentType(String boundary) {
    return "multipart/form-data; boundary=" + boundary;
    public Enumeration getProgressListeners() {
    return progressListeners.elements();
    public void addProgressListener(ProgressListener pl) {
    this.progressListeners.addElement(pl);
    private void updateProgressListeners(int length) {
    for(int i = 0;i<this.progressListeners.size();i++)
    ProgressListener p = (ProgressListener) this.progressListeners.elementAt(i);
    try {
    p.updateProgress(length);
    }catch(IllegalArgumentException ex)
    ex.printStackTrace();
    private void initProgressListeners(int maxValue)
    for(int i = 0;i<this.progressListeners.size();i++)
    ProgressListener p = (ProgressListener) this.progressListeners.elementAt(i);
    p.setMaximum(maxValue);
    {code}
    Modifications I made:
    * Use javax.microedition.io.HttpConnection instead of URLConnection
    * Use String.getBytes() as DataOutputStream.writeBytes(String s) is not available in MIDP
    * Use FileConnection from JSR-75 FileConnection API
    I use it like this:
    {code:java}
    String boundary = MultiPartFormOutputStream.createBoundary();
    //        this.httpCon.setRequestProperty("Accept", "*/*");
    this.httpCon.setRequestMethod(HttpConnection.POST);
    this.httpCon.setRequestProperty("Content-Type", MultiPartFormOutputStream.getContentType(boundary));
    this.httpCon.setRequestProperty("Connection", "Close");
    //          this.httpCon.setRequestProperty("Cache-Control", "no-cache");
    this.multipartOutput = new MultiPartFormOutputStream(this.httpCon.openDataOutputStream(), boundary);
    if(this.progressListener!=null)
    this.multipartOutput.addProgressListener(progressListener);
    this.multipartOutput.writeField("hwid", "");
    this.multipartOutput.writeField("lang", "de-de");
    this.multipartOutput.writeField("guilang","en-gb");
    this.multipartOutput.writeField("hwid", "0000000DECAF");
    this.multipartOutput.writeField("actcode", "masterKey");
    this.multipartOutput.writeField("x1", "-1");
    this.multipartOutput.writeField("y1", "-1");
    this.multipartOutput.writeField("x2", "-1");
    this.multipartOutput.writeField("y2", "-1");
    this.multipartOutput.writeFile("img", "image/jpeg", "testbild.jpg", dataInputStream);
    this.multipartOutput.close();
    this.httpCon.close();
    {code}
    While the code seems to work well with GPRS, I experienced problems with UMTS.
    Here are my test results:
    ||Device||K850i||W910||W910||K850i||K850i||W910||
    |Java Plattform|JP-8|JP-8|JP-8|JP-8|JP-8|JP-8|
    |Dataservice|GPRS|GPRS|GPRS|GPRS|UMTS|UMTS|
    |Carrier|O2-DE|O2-DE|Vodafone-DE|Vodafone-DE|Vodafone-DE|Vodafone-DE|
    |Filesize (Byte)|1.428.077|1.428.077|1.428.077|1.428.077|1.428.078|1.428.079|
    |Upload (Byte)|complete|complete|complete|complete|184320 (113664)|627712 (199680)|
    The problem of partial upload seems only to exist with larger Files (not sure where exactly the lower bound is).
    I hope this was not too much information for a start, but I am currently quite desperate about this bug.
    I could really use some help here. I will also provide you with the results of a test on Nokia S60 phones
    and the results of SE on device debugging.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

    The issue was solved by a firmware upgrade [jumpingjoy]
    Must have been a problem with JP-8. Works as expected on JP-8.2 now.
    ||Device|K850i|     W910|
    ||Firmware     |R1EA037     |R1EA033|
    ||Java Plattform     |JP-8.2     |JP-8.2|
    ||Dataservice     |UMTS     |UMTS|
    ||Carrier     |Vodafone     |Vodafone|
    ||Filesize (Byte)     |1.428.077     |1.428.077|
    ||Upload (Byte)     |complete     |complete|
    HTH
    Edited by: er4z0r on 15.04.2008 17:55
    Edited by: er4z0r on 15.04.2008 17:56
    Edited by: er4z0r on 15.04.2008 17:58

  • Useful Code of the Day:  Multipart Form File Upload

    So, you want to upload files to your web server, do ya? Well, I've seen this topic posted a few times in the last month or so and many of the response I've seen here haven't included definitive answers. Of course, the actual problems vary, but ultimately, a bunch of people want to do file upload from an applet or application to an existing file upload script (CGI, PHP, JSP, etc.) on a web server. And invariably, there are problems with formatting the HTTP request to get things working.
    Well, I had a need to do the same thing. I realize there are other solutions out there, such as some sample code that comes with Jakarta Commons Upload. But since we all like reusable code, and we also all seem to like reinventing wheels, here's my go at it: MultiPartFormOutputStream!
    MultiPartFormOutputStream is a specialized OutputStream-like class. You create your URLConnection to the server (a static method included can do this for a URL for you, as some of the settings, doInput and doOutput specifically, seem to confuse people). Then get the OutputStream from it and create a boundary string (a static method to create one is provided as well) and pass them to the constructor. Now you have a MultiPartFormOutputStream which you can use to write form fields like text fields, checkboxes, etc., as well as write file data (from Files, InputStreams or raw bytes).
    There are some convenience methods for writing primative type values as well as strings, but any higher level objects (aside from Files or InputStreams) aren't supported. (You can always serialize and pass the raw bytes.)
    Sample usage code is below. Also, any recommendations for improvement are requested. The code was tested with the Jakarta Struts.
    import java.io.*;
    import java.net.*;
    * <code>MultiPartFormOutputStream</code> is used to write
    * "multipart/form-data" to a <code>java.net.URLConnection</code> for
    * POSTing.  This is primarily for file uploading to HTTP servers. 
    * @since  JDK1.3
    public class MultiPartFormOutputStream {
          * The line end characters. 
         private static final String NEWLINE = "\r\n";
          * The boundary prefix. 
         private static final String PREFIX = "--";
          * The output stream to write to. 
         private DataOutputStream out = null;
          * The multipart boundary string. 
         private String boundary = null;
          * Creates a new <code>MultiPartFormOutputStream</code> object using
          * the specified output stream and boundary.  The boundary is required
          * to be created before using this method, as described in the
          * description for the <code>getContentType(String)</code> method. 
          * The boundary is only checked for <code>null</code> or empty string,
          * but it is recommended to be at least 6 characters.  (Or use the
          * static createBoundary() method to create one.)
          * @param  os        the output stream
          * @param  boundary  the boundary
          * @see  #createBoundary()
          * @see  #getContentType(String)
         public MultiPartFormOutputStream(OutputStream os, String boundary) {
              if(os == null) {
                   throw new IllegalArgumentException("Output stream is required.");
              if(boundary == null || boundary.length() == 0) {
                   throw new IllegalArgumentException("Boundary stream is required.");
              this.out = new DataOutputStream(os);
              this.boundary = boundary;
          * Writes an boolean field value. 
          * @param  name   the field name (required)
          * @param  value  the field value
          * @throws  java.io.IOException  on input/output errors
         public void writeField(String name, boolean value)
                   throws java.io.IOException {
              writeField(name, new Boolean(value).toString());
          * Writes an double field value. 
          * @param  name   the field name (required)
          * @param  value  the field value
          * @throws  java.io.IOException  on input/output errors
         public void writeField(String name, double value)
                   throws java.io.IOException {
              writeField(name, Double.toString(value));
          * Writes an float field value. 
          * @param  name   the field name (required)
          * @param  value  the field value
          * @throws  java.io.IOException  on input/output errors
         public void writeField(String name, float value)
                   throws java.io.IOException {
              writeField(name, Float.toString(value));
          * Writes an long field value. 
          * @param  name   the field name (required)
          * @param  value  the field value
          * @throws  java.io.IOException  on input/output errors
         public void writeField(String name, long value)
                   throws java.io.IOException {
              writeField(name, Long.toString(value));
          * Writes an int field value. 
          * @param  name   the field name (required)
          * @param  value  the field value
          * @throws  java.io.IOException  on input/output errors
         public void writeField(String name, int value)
                   throws java.io.IOException {
              writeField(name, Integer.toString(value));
          * Writes an short field value. 
          * @param  name   the field name (required)
          * @param  value  the field value
          * @throws  java.io.IOException  on input/output errors
         public void writeField(String name, short value)
                   throws java.io.IOException {
              writeField(name, Short.toString(value));
          * Writes an char field value. 
          * @param  name   the field name (required)
          * @param  value  the field value
          * @throws  java.io.IOException  on input/output errors
         public void writeField(String name, char value)
                   throws java.io.IOException {
              writeField(name, new Character(value).toString());
          * Writes an string field value.  If the value is null, an empty string
          * is sent (""). 
          * @param  name   the field name (required)
          * @param  value  the field value
          * @throws  java.io.IOException  on input/output errors
         public void writeField(String name, String value)
                   throws java.io.IOException {
              if(name == null) {
                   throw new IllegalArgumentException("Name cannot be null or empty.");
              if(value == null) {
                   value = "";
              --boundary\r\n
              Content-Disposition: form-data; name="<fieldName>"\r\n
              \r\n
              <value>\r\n
              // write boundary
              out.writeBytes(PREFIX);
              out.writeBytes(boundary);
              out.writeBytes(NEWLINE);
              // write content header
              out.writeBytes("Content-Disposition: form-data; name=\"" + name + "\"");
              out.writeBytes(NEWLINE);
              out.writeBytes(NEWLINE);
              // write content
              out.writeBytes(value);
              out.writeBytes(NEWLINE);
              out.flush();
          * Writes a file's contents.  If the file is null, does not exists, or
          * is a directory, a <code>java.lang.IllegalArgumentException</code>
          * will be thrown. 
          * @param  name      the field name
          * @param  mimeType  the file content type (optional, recommended)
          * @param  file      the file (the file must exist)
          * @throws  java.io.IOException  on input/output errors
         public void writeFile(String name, String mimeType, File file)
                   throws java.io.IOException {
              if(file == null) {
                   throw new IllegalArgumentException("File cannot be null.");
              if(!file.exists()) {
                   throw new IllegalArgumentException("File does not exist.");
              if(file.isDirectory()) {
                   throw new IllegalArgumentException("File cannot be a directory.");
              writeFile(name, mimeType, file.getCanonicalPath(), new FileInputStream(file));
          * Writes a input stream's contents.  If the input stream is null, a
          * <code>java.lang.IllegalArgumentException</code> will be thrown. 
          * @param  name      the field name
          * @param  mimeType  the file content type (optional, recommended)
          * @param  fileName  the file name (required)
          * @param  is        the input stream
          * @throws  java.io.IOException  on input/output errors
         public void writeFile(String name, String mimeType,
                   String fileName, InputStream is)
                   throws java.io.IOException {
              if(is == null) {
                   throw new IllegalArgumentException("Input stream cannot be null.");
              if(fileName == null || fileName.length() == 0) {
                   throw new IllegalArgumentException("File name cannot be null or empty.");
              --boundary\r\n
              Content-Disposition: form-data; name="<fieldName>"; filename="<filename>"\r\n
              Content-Type: <mime-type>\r\n
              \r\n
              <file-data>\r\n
              // write boundary
              out.writeBytes(PREFIX);
              out.writeBytes(boundary);
              out.writeBytes(NEWLINE);
              // write content header
              out.writeBytes("Content-Disposition: form-data; name=\"" + name +
                   "\"; filename=\"" + fileName + "\"");
              out.writeBytes(NEWLINE);
              if(mimeType != null) {
                   out.writeBytes("Content-Type: " + mimeType);
                   out.writeBytes(NEWLINE);
              out.writeBytes(NEWLINE);
              // write content
              byte[] data = new byte[1024];
              int r = 0;
              while((r = is.read(data, 0, data.length)) != -1) {
                   out.write(data, 0, r);
              // close input stream, but ignore any possible exception for it
              try {
                   is.close();
              } catch(Exception e) {}
              out.writeBytes(NEWLINE);
              out.flush();
          * Writes the given bytes.  The bytes are assumed to be the contents
          * of a file, and will be sent as such.  If the data is null, a
          * <code>java.lang.IllegalArgumentException</code> will be thrown. 
          * @param  name      the field name
          * @param  mimeType  the file content type (optional, recommended)
          * @param  fileName  the file name (required)
          * @param  data      the file data
          * @throws  java.io.IOException  on input/output errors
         public void writeFile(String name, String mimeType,
                   String fileName, byte[] data)
                   throws java.io.IOException {
              if(data == null) {
                   throw new IllegalArgumentException("Data cannot be null.");
              if(fileName == null || fileName.length() == 0) {
                   throw new IllegalArgumentException("File name cannot be null or empty.");
              --boundary\r\n
              Content-Disposition: form-data; name="<fieldName>"; filename="<filename>"\r\n
              Content-Type: <mime-type>\r\n
              \r\n
              <file-data>\r\n
              // write boundary
              out.writeBytes(PREFIX);
              out.writeBytes(boundary);
              out.writeBytes(NEWLINE);
              // write content header
              out.writeBytes("Content-Disposition: form-data; name=\"" + name +
                   "\"; filename=\"" + fileName + "\"");
              out.writeBytes(NEWLINE);
              if(mimeType != null) {
                   out.writeBytes("Content-Type: " + mimeType);
                   out.writeBytes(NEWLINE);
              out.writeBytes(NEWLINE);
              // write content
              out.write(data, 0, data.length);
              out.writeBytes(NEWLINE);
              out.flush();
          * Flushes the stream.  Actually, this method does nothing, as the only
          * write methods are highly specialized and automatically flush. 
          * @throws  java.io.IOException  on input/output errors
         public void flush() throws java.io.IOException {
              // out.flush();
          * Closes the stream.  <br />
          * <br />
          * <b>NOTE:</b> This method <b>MUST</b> be called to finalize the
          * multipart stream.
          * @throws  java.io.IOException  on input/output errors
         public void close() throws java.io.IOException {
              // write final boundary
              out.writeBytes(PREFIX);
              out.writeBytes(boundary);
              out.writeBytes(PREFIX);
              out.writeBytes(NEWLINE);
              out.flush();
              out.close();
          * Gets the multipart boundary string being used by this stream. 
          * @return  the boundary
         public String getBoundary() {
              return this.boundary;
          * Creates a new <code>java.net.URLConnection</code> object from the
          * specified <code>java.net.URL</code>.  This is a convenience method
          * which will set the <code>doInput</code>, <code>doOutput</code>,
          * <code>useCaches</code> and <code>defaultUseCaches</code> fields to
          * the appropriate settings in the correct order. 
          * @return  a <code>java.net.URLConnection</code> object for the URL
          * @throws  java.io.IOException  on input/output errors
         public static URLConnection createConnection(URL url)
                   throws java.io.IOException {
              URLConnection urlConn = url.openConnection();
              if(urlConn instanceof HttpURLConnection) {
                   HttpURLConnection httpConn = (HttpURLConnection)urlConn;
                   httpConn.setRequestMethod("POST");
              urlConn.setDoInput(true);
              urlConn.setDoOutput(true);
              urlConn.setUseCaches(false);
              urlConn.setDefaultUseCaches(false);
              return urlConn;
          * Creates a multipart boundary string by concatenating 20 hyphens (-)
          * and the hexadecimal (base-16) representation of the current time in
          * milliseconds. 
          * @return  a multipart boundary string
          * @see  #getContentType(String)
         public static String createBoundary() {
              return "--------------------" +
                   Long.toString(System.currentTimeMillis(), 16);
          * Gets the content type string suitable for the
          * <code>java.net.URLConnection</code> which includes the multipart
          * boundary string.  <br />
          * <br />
          * This method is static because, due to the nature of the
          * <code>java.net.URLConnection</code> class, once the output stream
          * for the connection is acquired, it's too late to set the content
          * type (or any other request parameter).  So one has to create a
          * multipart boundary string first before using this class, such as
          * with the <code>createBoundary()</code> method. 
          * @param  boundary  the boundary string
          * @return  the content type string
          * @see  #createBoundary()
         public static String getContentType(String boundary) {
              return "multipart/form-data; boundary=" + boundary;
    }Usage: (try/catch left out to shorten the post a bit)
    URL url = new URL("http://www.domain.com/webems/upload.do");
    // create a boundary string
    String boundary = MultiPartFormOutputStream.createBoundary();
    URLConnection urlConn = MultiPartFormOutputStream.createConnection(url);
    urlConn.setRequestProperty("Accept", "*/*");
    urlConn.setRequestProperty("Content-Type",
         MultiPartFormOutputStream.getContentType(boundary));
    // set some other request headers...
    urlConn.setRequestProperty("Connection", "Keep-Alive");
    urlConn.setRequestProperty("Cache-Control", "no-cache");
    // no need to connect cuz getOutputStream() does it
    MultiPartFormOutputStream out =
         new MultiPartFormOutputStream(urlConn.getOutputStream(), boundary);
    // write a text field element
    out.writeField("myText", "text field text");
    // upload a file
    out.writeFile("myFile", "text/plain", new File("C:\\test.txt"));
    // can also write bytes directly
    //out.writeFile("myFile", "text/plain", "C:\\test.txt",
    //     "This is some file text.".getBytes("ASCII"));
    out.close();
    // read response from server
    BufferedReader in = new BufferedReader(
         new InputStreamReader(urlConn.getInputStream()));
    String line = "";
    while((line = in.readLine()) != null) {
          System.out.println(line);
    in.close();------
    "Useful Code of the Day" is supplied by the person who posted this message. This code is not guaranteed by any warranty whatsoever. The code is free to use and modify as you see fit. The code was tested and worked for the author. If anyone else has some useful code, feel free to post it under this heading.

    I have a weird problem here. I'm using the Java POST (slightly altered for my purposes) mechanism but the receiving script doesn't receive any form variables (neither files nor regular form fields). If I try using the same receiving script with a regular upload form, it works. Because I've been pulling my hair out, I even went so far as to analyze the ip-packets. I can see that the file is actually sent through the Java POST mecahnism. Anybody any ideas. Here's the ip-packet of the failing upload:
    ----- Hypertext Transfer Protocol -----
    HTTP: POST /fotoxs/upload.cfm HTTP/1.1
    HTTP: Connection: Keep-Alive
    HTTP: Content-Type: multipart/form-data; boundary=-----------------------------fb2649be18
    HTTP: User-Agent: Mozilla/4.7 [en] (WinNT; U)
    HTTP: Accept-Language: en-us
    HTTP: Accept-Encoding: gzip, deflate
    HTTP: Accept: image/gif, image/jpeg, image/pjpeg, */*
    HTTP: CACHE-CONTROL: no-cache
    HTTP: Host: newmarc
    HTTP: Content-Length: 15511
    ----- Hypertext Transfer Protocol -----
    HTTP: -----------------------------fb2649be18
    HTTP: Content-Disposition: form-data; name="uploadFile"; filename="out.jpg"
    HTTP: Content-Type: image/jpeg
    HTTP: Data
    ....[data packets]
    The one that works (from the regular post) is as follows:
    ----- Hypertext Transfer Protocol -----
    HTTP: POST /fotoxs/upload.cfm HTTP/1.1
    HTTP: Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-gsarcade-launch, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
    HTTP: Referer: http://localhost:8500/fotoxs/test.cfm
    HTTP: Accept-Language: nl
    HTTP: Content-Type: multipart/form-data; boundary=---------------------------7d41961f201c0
    HTTP: Accept-Encoding: gzip, deflate
    HTTP: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
    HTTP: Host: newmarc
    HTTP: Content-Length: 59022
    HTTP: Connection: Keep-Alive
    HTTP: Cache-Control: no-cache
    ----- Hypertext Transfer Protocol -----
    HTTP: -----------------------------7d41961f201c0
    HTTP: Content-Disposition: form-data; name="FiletoUpload"; filename="D:\My Documents\My Pictures\fotomarc.jpg"
    HTTP: Content-Type: image/pjpeg
    HTTP: Data
    ----- Hypertext Transfer Protocol -----
    HTTP: HTTP/1.1 100 Continue
    HTTP: Server: Microsoft-IIS/5.0
    HTTP: Date: Sun, 07 Mar 2004 17:14:41 GMT
    ....[data packets]
    One detail worth mentioning is that I don't read a file from harddisk, I'm streaming it directly to the connection outputstream from an image compression utility. But I can see the data in the ip-packets, and even if that somehow didn't work right, it doesn't explaing the fact that the receiving scripts reports no form fields whatsoever.
    Thanks,
    Marc

  • Latest Mozilla update: 3.6.14 breaks my web graphics.

    After applying the 3.6.14 update we have failures navigating the screens on our control systems graphics interface. Viewing the java console gives the following messages:
    java.net.MalformedURLException: no protocol:
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.setupGrayBoxPainter(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.access$500(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    java.net.MalformedURLException: no protocol: wbapplet.jar
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at sun.plugin.util.GrayBoxPainter.setProgressFilter(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.setupGrayBoxPainter(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.access$500(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    exception: name.
    java.lang.IllegalArgumentException: name
    at sun.plugin2.applet.Applet2ClassLoader.addJar(Unknown Source)
    at sun.plugin2.applet.Applet2Manager.loadJarFiles(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.IllegalArgumentException: name
    I have cleared all history, restarted, refreshed etc. Release 3.6.13 works without issue as do all previous versions.
    Any hints?
    TIA,
    ray L.

    Mozilla are aware of the issue involving Java applets not working in Firefox 3.6.14 and are working on a fix, no timescale but they are planning on a quick release. They are currently creating Firefox 3.6.15 which should fix this and will then be testing it to ensure the fix is working.

  • Some question about constructor

    The code below shows some of the text for a class called City. As you can see, a City has two instance variables, name and population. Write a complete public constructor (including header line) with no parameters, which sets the population to an initial value of -1, and the name to an initial value of "unknown".
    this is the question:
    this is what I wrote:
    public class City {
      private String name;
      private int population;
    public City(String n, int p){
      name = n;
      population = p;
    public City(){
      name = "unknown";
      population = -1;
    } y is it wrong?

    Umass wrote:
    The code below shows some of the text for a class called City. As you can see, a City has two instance variables, name and population. Write a complete public constructor (including header line) with no parameters, which sets the population to an initial value of -1, and the name to an initial value of "unknown".
    this is the question:
    this is what I wrote:
    public class City {
    private String name;
    private int population;
    public City(String n, int p){
    name = n;
    population = p;
    public City(){
    name = "unknown";
    population = -1;
    } y is it wrong?The comment about the missing closing brace appears to be correct. It would help if you'd post the compiler message instead of just telling us that it's "wrong". More info, please.
    The code you posted isn't wrong, once you make that correction, but it's not the way I'd write it.
    Here's what I would do:
    public class City
        private static final String DEFAULT_NAME = "unknown";
        private static final int DEFAULT_POPULATION = 0;
        private String name;
        private int population;
        public City()
            this(DEFAULT_NAME, DEFAULT_POPULATION);
        public City(String name, int population)
            setName(name);
            setPopulation(population);
        private void setName(String name)
            if (name == null)
                throw new IllegalArgumentException("name cannot be null");
            this.name = name;
        private void setPopulation(int population)
            if (population < 0)
                throw new IllegalArgumentException("population cannot be negative");
            this.population = population;
    }Here's why:
    (1) No magic constants. I like having static final constants with a name that spells out what it's for. Better than comments, no ambiguity for users. A negative population makes no sense to me, but zero does.
    (2) Objects should be fully initialized and ready to go. Write one constructor that fully initializes the object, every attribute. I like to do it with setters, because I can embed any rules for sensible values there. They protect both the constructor and any public setters that I might have without duplicating code. I made the setters private because I didn't want my City to be mutable.
    (3) Have your default constructor call the full constructor. It makes clear what the default values are (in javadocs, preferrably).
    %

  • ARFC2 Migration

    Hello experts
    I am trying to migrate my ARFC models (origin 6.40) to ARFC2 models (7.20) but I get the message:
    Unable to reimport new model. Reimport failed.
    Migration to Adaptive RFC 2 model for ...Model failed
    Any ideas?
    Thanks
    Hans

    Hello together
    I think I know the problem now, when I create a new ARFC2 model I get an error message in the workspace log:
    java.lang.IllegalArgumentException: Name may only contain A..Z, a..z, 0..9 or '_' but is /DORMAPP1/BAMODNO
    After searching a bit I found an SAP note 1438679 explaining that '/' is an invalid character and has to be replaced.
    I would say the '/' is fairly common in ABAP as it is used for customer/partner namespaces.
    Does anybody know how to cope with this problem (apart from using the deprecated ARFC model)?
    Regards
    Hans

  • Bad cookie name ..IllegalArgumentException..

    Hello Sir / mam / Friends...
    I am using tomcat 5.0 ..I am getting the following error especially when date changes..Can any body plz help me.?
    May 23, 2004 12:24:27 AM org.apache.coyote.tomcat5.CoyoteAdapter parseCookies
    SEVERE: Bad Cookie Name: Path /Value: /java.lang.IllegalArgumentException: Cookie name "Path" is a reserved token
    at javax.servlet.http.Cookie.<init>(Cookie.java:185)
    at org.apache.coyote.tomcat5.CoyoteAdapter.parseCookies(CoyoteAdapter.java:431)
    at org.apache.coyote.tomcat5.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:332)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:204)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
    at java.lang.Thread.run(Thread.java:534)
    May 23, 2004 12:24:31 AM org.apache.coyote.tomcat5.CoyoteAdapter parseCookies
    SEVERE: Bad Cookie Name: Path /Value: / java.lang.IllegalArgumentException: Cookie name "Path" is a reserved token
    at javax.servlet.http.Cookie.<init>(Cookie.java:185)
    at org.apache.coyote.tomcat5.CoyoteAdapter.parseCookies(CoyoteAdapter.java:431)
    at org.apache.coyote.tomcat5.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:332)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:204)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
    at java.lang.Thread.run(Thread.java:534)

    First of all Thanks for u r help...
    My application is working perfectly fine ..Appln is related to jsp/servlets and java beans.I have nowhere created cookies in my entire application..Its the default cookies that gets created .The problem is whenever you try to access the site it works fine ..no problme in that..but when the date on the server changes then it gave me the above exception..So i think when date changes it is giving me prob..rest of the day whenever I try to access my application it is working fine...I have only used session object i.e its method setAttribute() and getAttribute()..thats all......Is this related to deafult cookies ..I am using Tomcat 5.0 ...Can you plz help me in this...
    Thanks in advance
    Bye

  • Java.lang.IllegalArgumentException when trying to create debug setting

    Hello all,
    I have just performed an install of EHP1 on a W2K3 EE machine, and I'm trying to setup to debug my Web Dynpro app on the Java server.  I have defined the system instance correctly SAP AS Java in the Window --> Preferences --> SAP AS Java section. My Web Dynpro app deploys and runs without problems.
    However, when I use Run -> Open Debug Dialog and then click on "Run on Server" and use the "New launch configuration" option, I get a message box stating "java.lang.IllegalArgumentException (check log file)".
    So I switch to Plug-in Development perspective and take a look at the log file. The exception appears in the list of messages; double-clicking the exception provides this data:
    Severity: Error
    Message: Problems occurred when invoking code from plug-in: "org.eclipse.jface".
    Exception Stack Trace:
    java.lang.IllegalArgumentException
         at org.eclipse.wst.server.core.internal.ResourceManager.getServer(ResourceManager.java:758)
         at org.eclipse.wst.server.core.ServerCore.findServer(ServerCore.java:286)
         at org.eclipse.wst.server.ui.internal.RunOnServerLaunchConfigurationTab.initializeFrom(RunOnServerLaunchConfigurationTab.java:105)
         at org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup.initializeFrom(AbstractLaunchConfigurationTabGroup.java:86)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupWrapper.initializeFrom(LaunchConfigurationTabGroupWrapper.java:143)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.displayInstanceTabs(LaunchConfigurationTabGroupViewer.java:784)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer$8.run(LaunchConfigurationTabGroupViewer.java:658)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.inputChanged(LaunchConfigurationTabGroupViewer.java:676)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput0(LaunchConfigurationTabGroupViewer.java:637)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput(LaunchConfigurationTabGroupViewer.java:613)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.handleLaunchConfigurationSelectionChanged(LaunchConfigurationsDialog.java:975)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog$4.selectionChanged(LaunchConfigurationsDialog.java:570)
         at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:842)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
         at org.eclipse.core.runtime.Platform.run(Platform.java:857)
         at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
         at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199)
         at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:840)
         at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1153)
         at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1178)
         at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:250)
         at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:244)
         at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:418)
         at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
         at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:129)
         at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
         at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
         at org.eclipse.jface.window.Window.open(Window.java:796)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1133)
         at org.eclipse.debug.ui.DebugUITools$1.run(DebugUITools.java:387)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
         at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:391)
         at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:333)
         at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:82)
         at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.runWithEvent(OpenLaunchDialogAction.java:90)
         at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
         at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
         at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
         at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
         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)
         at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    Session Data:
    eclipse.buildId=M20080221-1800
    I've done some hunting around the internet for this error and I did find a problem that looks quite similar under a JBOSS forum: https://jira.jboss.org/jira/browse/JBIDE-3689 ("Creating new run configuration of type Run in Server fails with exception, jbds eclipse.buildId=1.1.0.GA"). The information presented there is almost exactly what I'm seeing:
    <cut>
    Steps to Recreate:
    1. From Run menu, select "Open Run Dialog..." or "Open Debug Dialog..."
    2. Right click on "Run on Server"
    3. Select "New"
    What you see is an "Error" dialog of Reason "java.lang.IllegalArgumentException".
    The error log records the following:
    Error
    Thu Jan 29 08:13:48 PST 2009
    Problems occurred when invoking code from plug-in: "org.eclipse.jface".
    </cut>
    In the JBOSS case, the response is:
    <cut>
    It is is a known bug in WTP 2.x and in WTP 3.x this option does not exist anymore thus you should just use Run As -> Run in Server.
    Marked as out of date since latest version of WTP 3 has the fix.
    </cut>
    I have the EHP1 installed on a couple other servers where this is not happening. Anyone run into this before?
    Alternatively, anyone know how I can check the WTP of the SAP-specific eclipse released as the EHP1 developer studio?
    Thanks very much,
    Andy

    Hi Andy,
    I think there is a very siple proces which you need to follow for debug. Please have a look:-
    Please check you mentioned the correct server and instance name. As you are saying that all you applications are running fine therefore I think you would have mentioned all the required parameters correctly.
    After checking all these things, follow the steps below:-
    1) From the menu in NWDS -> Click on the Debug symbol. Select "Open Debug Dialoug".
    2) Right click on the "Remote Java Application" and select New.
    3) Clickon the Source tab. Check whether you application is included under the Defualt folder. Only those projects will be debugged which are under this folder.
    4) If you application is not there. Click on Add-> Java Project -> Select your Project - > OK. Doing this will add your project in debug instance.
    5) Go to Connect tab. Mention the Host name (Same as server name you have mentioned under Window --> Preferences --> SAP AS Java ) AND the Message server port. Please note that this server port is diffrent from the http port.
    6) Just click on Debug.
    I hope after all these steps debug should work. If not please revert back.
    Thanks and Regards,
    Pravesh

  • IllegalArgumentException  while executing a scenario in ODI

    Hi All,
    We are executing a scenario in ODI. This loads the data from source table to target table . During this execution, we are facing the issue in the insert step(Error msg given below):
    “java.lang.IllegalArgumentException: Bytes are too big for array”. The attachment shows the screenshot of the error.
    The code that is generated during execution is
    select     
         SUBSTR(SIF_AR_TL.REC_TYPE,1,1) RECORD_TYPE,
         TRIM(TO_CHAR(SIF_AR_TL.BUS_UNIT_FROM))||RPAD(' ',5-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.BUS_UNIT_FROM))),' ') BUSINESS_UNIT,
         TRIM(TO_CHAR(SIF_AR_TL.BUS_UNIT_FROM))||RPAD(' ',5-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.BUS_UNIT_FROM))),' ') BUSINESS_UNIT_FROM,
         RPAD(' ',5,' ') AFFILIATE,
         RPAD(' ',8,' ') C_REG_ACCT,
         RPAD(' ',10,' ') DEPTID,
         RPAD(' ',10,' ') DEPTID_FROM,
         RPAD(' ',6,' ') PRODUCT,
         RPAD(' ',8,' ') PROJECT_ID,
         RPAD(' ',5,' ') PROJECT_TYPE,
         RPAD(' ',8,' ') ACTIVITY_ID,
         RPAD(' ',5,' ') ACTIVITY_TYPE,
         RPAD(' ',4,' ') C_VINTAGE,
         RPAD(' ',1,' ') COST_TYPE,
         RPAD(' ',5,' ') COST_STUDY,
         '+'||RPAD('0',14,'0') SALETX_AMT,
         '+'||RPAD('0',14,'0') USETAX_AMT,
         TRIM(TO_CHAR(SIF_AR_TL.C_GL_LOC))||RPAD(' ',5-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.C_GL_LOC))),' ') C_GL_LOC,
         TRIM(TO_CHAR(SIF_AR_TL.LEDGER))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.LEDGER))),' ') LEDGER,
         TRIM(TO_CHAR(SIF_AR_TL.LEDGER_GRP))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.LEDGER_GRP))),' ') LEDGER_GROUP,
         RPAD(' ',10,' ') JOURNAL_ID,
         RPAD(' ',10,' ') SAP_DOC_NUM,
         RPAD(' ',2,' ') UNPOST_SEQ_NUM,
         RPAD(' ',9,' ') FILLER,
         TRIM(TO_CHAR(SIF_AR_TL.CURRENCY_CD))||RPAD(' ',3-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.CURRENCY_CD))),' ') CURRENCY_CD,
         RPAD(' ',8,' ') FILLER1,
         RPAD(' ',1,' ') CONDITION_CODE,
         RPAD(' ',5,' ') C_ACCT_ISSUE,
         RPAD(' ',5,' ') RESOURCE_CATEGORY,
         RPAD(' ',4,' ') C_PC_ORIGIN_COP,
         RPAD(' ',10,' ') TREE_NODE_NUM,
         RPAD(' ',10,' ') TREE_NODE_NUM_FROM,
         RPAD(' ',10,' ') C_TAX_DISTRICT,
         TRIM(TO_CHAR(SIF_AR_TL.BUS_UNIT_FROM))||RPAD(' ',5-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.BUS_UNIT_FROM))),' ') BUSINESS_UNIT_GL,
         TRIM(TO_CHAR(SIF_AR_TL.BUS_UNIT_FROM))|| RPAD(' ',5-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.BUS_UNIT_FROM))),' ') BUS_UNIT_GL_FROM,
         TRIM(TO_CHAR(SIF_AR_TL.C_GL_LOC))||RPAD(' ',5-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.C_GL_LOC))),' ') C_GL_LOC_ORIG,
         RPAD(' ',7,' ') FILLER2,
         TRIM(TO_CHAR(SIF_AR_TL.JOURNAL_SRC))||RPAD(' ',7-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.JOURNAL_SRC))),' ') JOURNAL_SOURCE,
         TRIM(TO_CHAR(SIF_AR_TL.C_LEGACY_SRC))||RPAD(' ',4-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.C_LEGACY_SRC))),' ') C_LEGACY_SRC,
         TRIM(TO_CHAR(SIF_AR_TL.TRAN_DATE))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.TRAN_DATE))),' ') TRAN_DATE,
         TRIM(TO_CHAR(SIF_AR_TL.REFERENCE_ID))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.REFERENCE_ID))),' ') REFERENCE_ID,
         'SAP' SYSTEM_SOURCE,
         RPAD(' ',10,' ') C_MIC,
         RPAD(' ',5,' ') FILLER3,
         RPAD(' ',6,' ') C_FUNC_CODE,
         RPAD(' ',1,' ') C_ENVIRONMENT,
         RPAD(' ',13,' ') VOUCHER_ID,
         RPAD(' ',6,' ') JFCI,
         RPAD(' ',10,' ') PO_ID,
         RPAD(' ',7,' ') C_ALLOC_CODE,
         TRIM(TO_CHAR(SIF_AR_TL.ACCOUNTING_DT))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.ACCOUNTING_DT))),' ') ACCOUNTING_DT,
         RPAD('0',3-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.ACCOUNTING_PRD))),'0')||TRIM(TO_CHAR(SIF_AR_TL.ACCOUNTING_PRD)) ACCOUNTING_PERIOD,
         RPAD(' ',5,' ') CATEGORY,
         TRIM(TO_CHAR(SIF_AR_TL.LOCATION))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.LOCATION))),' ') LOCATION,
         RPAD(' ',2,' ') C_KOW,
         RPAD(' ',12,' ') TAG_NUMBER,
         RPAD(' ',20,' ') B_EQP_SER,
         TRIM(TO_CHAR(SIF_AR_TL.FISCAL_YEAR))||RPAD(' ',4-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.FISCAL_YEAR))),' ') FISCAL_YEAR,
         RPAD(' ',1,' ') C_HIGHWAY_PRIVATE,
         RPAD(' 0',3,'0 ') EQUITY,
         RPAD(' ',1,' ') C_GEO_AREA,
         RPAD(' ',8,' ') OPRID,
         CASE WHEN CAST(SIF_AR_TL.HOURS AS NUMBER)>= 0 THEN '+'||RPAD('0',14-LENGTH(TRANSLATE(TRIM(TO_CHAR(SIF_AR_TL.HOURS)),'.','')),'0')||TRANSLATE(TRIM(TO_CHAR(SIF_AR_TL.HOURS)),'.','') ELSE'-'||RPAD('0',15-LENGTH(TRANSLATE(TRIM(TO_CHAR(SIF_AR_TL.HOURS)),'.','')),'0')||TRIM(SUBSTR(TRANSLATE(TO_CHAR(SIF_AR_TL.HOURS),'.',''),2,LENGTH(TRANSLATE(TO_CHAR(SIF_AR_TL.HOURS),'.',''))))
    END QUANTITY,
         '+'||RPAD('0',14,'0') HOURS,
         CASE WHEN SUBSTR(SIF_AR_TL.SAP_GL_ACCT,1,1) = '5' THEN
         'R'||RPAD(' ',5,' ')||
         TRIM(TO_CHAR(SIF_AR_TL.REVENUE_CATEGORY))||
              RPAD(' ',5-length(TRIM(TO_CHAR(SIF_AR_TL.REVENUE_CATEGORY))),' ')||
         RPAD(' ',19,' ')||
         TRIM(TO_CHAR(SIF_AR_TL.REVENUE_UNIT))||
              RPAD(' ',3-length(TRIM(TO_CHAR(SIF_AR_TL.REVENUE_UNIT))),' ')||
         TRIM(SIF_AR_TL.REVENUE_COMPONENT)||
              RPAD(' ',3-length(TRIM(TO_CHAR(SIF_AR_TL.REVENUE_COMPONENT))),' ')||
         RPAD(' ',5,' ')||
         TRIM(TO_CHAR(SIF_AR_TL.MARKET))||
              RPAD(' ',4-length(TRIM(TO_CHAR(SIF_AR_TL.MARKET))),' ')||
         RPAD(' ',13,' ')
    ELSE
         'F'||RPAD(' ',10,' ')||RPAD(' ',7,' ')||RPAD(' ',7,' ')||
         TRIM(TO_CHAR(SIF_AR_TL.SAP_ORG_OPRID))||
              RPAD(' ',7-length(TRIM(TO_CHAR(SIF_AR_TL.SAP_ORG_OPRID))),' ')||
         TRIM(TO_CHAR(SIF_AR_TL.SAP_HDR_DESC))||
              RPAD(' ',25-length(TRIM(TO_CHAR(SIF_AR_TL.SAP_HDR_DESC))),' ')||
         RPAD(' ',1,' ')
         END C_WORK_AREA,
         TRIM(TO_CHAR(SIF_AR_TL.FCC_ACCOUNT))||RPAD(' ',6-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.FCC_ACCOUNT))),' ') C_LEGACY_TYPE,
         RPAD(' ',1,' ') FCC_ACCOUNT,
         TRIM(TO_CHAR(SIF_AR_TL.SAP_GL_ACCT))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.SAP_GL_ACCT))),' ') FILLER5,
         CASE
    WHEN SIF_AR_TL.VENDOR ='' THEN SIF_AR_TL.POSTING_KEY||TRIM(TO_CHAR(SIF_AR_TL.CUSTOMER))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.CUSTOMER))),' ')||RPAD(' ',6,' ')
    WHEN SIF_AR_TL.CUSTOMER ='' THEN SIF_AR_TL.POSTING_KEY||TRIM(TO_CHAR(SIF_AR_TL.VENDOR))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.VENDOR))),' ')||RPAD(' ',6,' ')
    WHEN (SIF_AR_TL.VENDOR ='' AND SIF_AR_TL.CUSTOMER = '') THEN SIF_AR_TL.POSTING_KEY||RPAD(' ',16,' ') END SAP_GL_ACCOUNT,
         TRIM(TO_CHAR(SIF_AR_TL.SAP_CMPNY_CD))||RPAD(' ',4-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.SAP_CMPNY_CD))),' ') SAP_ALLOCATION_NBR,
         TRIM(TO_CHAR(SIF_AR_TL.SAP_COST_CNTR))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.SAP_COST_CNTR))),' ') SAP_COMPANY_CODE,
         TRIM(TO_CHAR(SIF_AR_TL.SAP_COST_CNTR))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.SAP_COST_CNTR))),' ') SAP_COST_CENTER,
         SIF_AR_TL.SAP_JURISDICTION SAP_JURISDICTION,
         RPAD(' ',10,' ') MATERIAL_ID,
         TRIM(TO_CHAR(SIF_AR_TL.SAP_TRD_PARTNER))||RPAD(' ',6-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.SAP_TRD_PARTNER))),' ') SAP_TRADING_PARTNER,
         RPAD(' ',9,' ') LEG_VENDOR_CODE,
         TRIM(TO_CHAR(SIF_AR_TL.SAP_WBS))||RPAD(' ',24-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.SAP_WBS))),' ') SAP_WBS,
         RPAD(' ',3,' ') LABOR_GROUP,
         RPAD(' ',7,' ') WORK_ORDER_NBR,
         RPAD(' ',3,' ') LEG_TRANS_TYPE,
         RPAD(' ',4,' ') SAP_COMPANY_CODE_CHRG,
         RPAD(' ',2,' ') MATERIAL_TYPE,
         RPAD(' ',6,' ') FILLER6,
         CASE WHEN SIF_AR_TL.TRAN_TOT_AMT>= 0 THEN '+'||RPAD('0',14-LENGTH(TRANSLATE(TRIM(TO_CHAR(SIF_AR_TL.TRAN_TOT_AMT)),'.','')),'0')||TRANSLATE(TRIM(TO_CHAR(SIF_AR_TL.TRAN_TOT_AMT)),'.','') ELSE'-'||RPAD('0',15-LENGTH(TRANSLATE(TRIM(TO_CHAR(SIF_AR_TL.TRAN_TOT_AMT)),'.','')),'0')||TRIM(SUBSTR(TRANSLATE(TO_CHAR(SIF_AR_TL.TRAN_TOT_AMT),'.',''),2,LENGTH(TRANSLATE(TO_CHAR(SIF_AR_TL.TRAN_TOT_AMT),'.',''))))
    END TRANS_TOT_AMOUNT,
         '01' EXTC_RESRC_OCCURS,
         RPAD(' ',5,' ') EXTC_CD_1,
         RPAD(' ',5,' ') RESOURCE_TYPE_1,
         RPAD(' ',8,' ') ACCOUNT_1,
         CASE WHEN SIF_AR_TL.AMOUNT_1>= 0 THEN '+'||RPAD('0',14-LENGTH(TRANSLATE(TRIM(TO_CHAR(SIF_AR_TL.AMOUNT_1)),'.','')),'0')||RPAD(TRIM(TO_CHAR(SIF_AR_TL.AMOUNT_1)),'.','') ELSE'-'||RPAD('0',15-LENGTH(TRANSLATE(TRIM(TO_CHAR(SIF_AR_TL.AMOUNT_1)),'.','')))||TRIM(SUBSTR(TRANSLATE(TO_CHAR(SIF_AR_TL.AMOUNT_1),'.',''),2,LENGTH(TRANSLATE(TO_CHAR(SIF_AR_TL.AMOUNT_1),'.',''))))
    END AMOUNT_1,
         RPAD(' ',5,' ') EXTC_CD_2,
         RPAD(' ',5,' ') RESOURCE_TYPE_2,
         RPAD(' ',8,' ') ACCOUNT_2,
         RPAD(' ',15,' ') AMOUNT_2,
         RPAD(' ',5,' ') EXTC_CD_3,
         RPAD(' ',5,' ') RESOURCE_TYPE_3,
         RPAD(' ',8,' ') ACCOUNT_3,
         RPAD(' ',15,' ') AMOUNT_3,
         RPAD(' ',5,' ') EXTC_CD_4,
         RPAD(' ',5,' ') RESOURCE_TYPE_4,
         RPAD(' ',8,' ') ACCOUNT_4,
         RPAD(' ',15,' ') AMOUNT_4,
         RPAD(' ',5,' ') EXTC_CD_5,
         RPAD(' ',5,' ') RESOURCE_TYPE_5,
         RPAD(' ',8,' ') ACCOUNT_5,
         RPAD(' ',15,' ') AMOUNT_5,
         RPAD(' ',5,' ') EXTC_CD_6,
         RPAD(' ',5,' ') RESOURCE_TYPE_6,
         RPAD(' ',8,' ') ACCOUNT_6,
         RPAD(' ',15,' ') AMOUNT_6,
         RPAD(' ',5,' ') EXTC_CD_7,
         RPAD(' ',5,' ') RESOURCE_TYPE_7,
         RPAD(' ',8,' ') ACCOUNT_7,
         RPAD(' ',15,' ') AMOUNT_7,
         RPAD(' ',5,' ') EXTC_CD_8,
         RPAD(' ',5,' ') RESOURCE_TYPE_8,
         RPAD(' ',8,' ') ACCOUNT_8,
         RPAD(' ',15,' ') AMOUNT_8,
         RPAD(' ',5,' ') EXTC_CD_9,
         RPAD(' ',5,' ') RESOURCE_TYPE_9,
         RPAD(' ',8,' ') ACCOUNT_9,
         RPAD(' ',15,' ') AMOUNT_9,
         RPAD(' ',5,' ') EXTC_CD_10,
         RPAD(' ',5,' ') RESOURCE_TYPE_10,
         RPAD(' ',8,' ') ACCOUNT_10,
         RPAD(' ',15,' ') AMOUNT_10,
         RPAD(' ',5,' ') EXTC_CD_11,
         RPAD(' ',5,' ') RESOURCE_TYPE_11,
         RPAD(' ',8,' ') ACCOUNT_11,
         RPAD(' ',15,' ') AMOUNT_11,
         RPAD(' ',5,' ') EXTC_CD_12,
         RPAD(' ',5,' ') RESOURCE_TYPE_12,
         RPAD(' ',8,' ') ACCOUNT_12,
         RPAD(' ',15,' ') AMOUNT_12,
         RPAD(' ',5,' ') EXTC_CD_13,
         RPAD(' ',5,' ') RESOURCE_TYPE_13,
         RPAD(' ',8,' ') ACCOUNT_13,
         RPAD(' ',15,' ') AMOUNT_13,
         RPAD(' ',5,' ') EXTC_CD_14,
         RPAD(' ',5,' ') RESOURCE_TYPE_14,
         RPAD(' ',8,' ') ACCOUNT_14,
         RPAD(' ',15,' ') AMOUNT_14,
         RPAD(' ',5,' ') EXTC_CD_15,
         RPAD(' ',5,' ') RESOURCE_TYPE_15,
         RPAD(' ',8,' ') ACCOUNT_15,
         RPAD(' ',15,' ') AMOUNT_15,
         RPAD(' ',5,' ') EXTC_CD_16,
         RPAD(' ',5,' ') RESOURCE_TYPE_16,
         RPAD(' ',8,' ') ACCOUNT_16,
         RPAD(' ',15,' ') AMOUNT_16,
         RPAD(' ',5,' ') EXTC_CD_17,
         RPAD(' ',5,' ') RESOURCE_TYPE_17,
         RPAD(' ',8,' ') ACCOUNT_17,
         RPAD(' ',15,' ') AMOUNT_17,
         RPAD(' ',5,' ') EXTC_CD_18,
         RPAD(' ',5,' ') RESOURCE_TYPE_18,
         RPAD(' ',8,' ') ACCOUNT_18,
         RPAD(' ',15,' ') AMOUNT_18,
         RPAD(' ',5,' ') EXTC_CD_19,
         RPAD(' ',5,' ') RESOURCE_TYPE_19,
         RPAD(' ',8,' ') ACCOUNT_19,
         RPAD(' ',15,' ') AMOUNT_19,
         RPAD(' ',5,' ') EXTC_CD_20,
         RPAD(' ',5,' ') RESOURCE_TYPE_20,
         RPAD(' ',5,' ') ACCOUNT_20,
         RPAD(' ',8,' ') AMOUNT_20,
         RPAD(' ',15,' ') EXTC_CD_21,
         RPAD(' ',5,' ') RESOURCE_TYPE_21,
         RPAD(' ',5,' ') ACCOUNT_21,
         RPAD(' ',8,' ') AMOUNT_21,
         RPAD(' ',15,' ') EXTC_CD_22,
         RPAD(' ',5,' ') RESOURCE_TYPE_22,
         RPAD(' ',8,' ') ACCOUNT_22,
         RPAD(' ',15,' ') AMOUNT_22,
         TO_NUMBER(SIF_AR_TL.HDR_ID_OUT) REC_GRP
    from     FSDV1ODI.PS_O_FS_SIF_AR_TL SIF_AR_TL LEFT OUTER JOIN FSDV1ODI.PS_O_FS_SIF_AR_HDR PS_O_FS_SIF_AR_HDR ON PS_O_FS_SIF_AR_HDR.HDR_ID=SIF_AR_TL.HDR_ID_OUT
    where      (1=1)
    If anybody has faced the above issue, kindly revert back on the same.
    Thanking in Advance.
    Regards,
    Raghav

    i hope you have resolved the question.
    However there is the note on metalink
    "Bytes are too big for array" Error When Inserting Data To A File In ODI [ID 554792.1]
    in which you can read
    Solution
    Run the select SQL startement that extracts data directly on the database and examine the data returned to make sure the data is valid and correct.
    Check source and target Datastores in both environments to make sure the columns' size and datatype are the same and the target File Datastore's columns size are big enough for the source data.
    In Topology, check the File JDBC Driver name and URL in both environments to make sure driver used is the same and the driver property ENCODING is set to the correct value if it is used. The default encoding value is ISO8859_1 which might not be appropriate if the source data is stored in
    a UTF8 database.
    Check the Locale values and Encodings used on the different servers.
    For example, for Oracle, check the NLS_CHARACTERSET setting in both environments. Take a look at Note 453080.1 for an example on the Locale.
    Finally, the ODI File Driver has the following property that can be used to truncate the long data to fit the fields size of the File Datastore if needed:
    TRUNC_FIXED_STRINGS=TRUE|FALSE: Truncates the strings from the fixed files to the field size. Default value is FALSE.
    TRUNC_DEL_STRINGS=TRUE|FALSE: Truncates the strings from the delimited files to the field size. Default value is FALSE.
    For example, if your target file is delimited, you can try:
    jdbc:snps:dbfile&TRUNC_DEL_STRINGS=TRUE
    Basically you are mapping a source column longer than tarhet.
    DecaXD

  • Invoking web service from EJB3 throw java.lang.IllegalArgumentException

    I used JAX-WS to develop a web service and deployed it on webloigc 10.3.5. The web service was invoked from web application and it worked fine. However, when I tried to invoke the web service from a stateless session bean, java.lang.IllegalArgumentException was thrown out and complained that "*interface gov.fema.web.nimcast.service.client.UpdateEmailPortType is not visible from class loader*". I tried following three ways to solve the problem
    1. put the web service client artifacts under APP-INF/classes of the EAR
    2. bundle the web service client artifacts into a jar file and put it under APP-INF/lib of the EAR
    3. put the web service client artifacts into the same jar file of the EJB
    However, none of the above approaches worked out, every time same exception thrown out.
    I used following commands in my ant script to generate the web service client artifacts
    <path id="deploypathref">
    <fileset dir="${wl.server}">
    <include name="server/lib/weblogic.jar"/>
    <include name="server/lib/weblogic_sp.jar"/>
    <include name="server/lib/xqrl.jar"/>
    <include name="server/lib/webservices.jar"/>
    <include name="../modules/features/weblogic.server.modules_10.3.3.0.jar"/>
    </fileset>
    </path>
    <taskdef name="clientgen"
    classname="weblogic.wsee.tools.anttasks.ClientGenTask" >
         <classpath refid="deploypathref"/>
    </taskdef>
    <clientgen
                   wsdl="http://${wls.hostname}:${wls.port}/nimscast/UpdateEmailService?WSDL"
                   destDir="${path.service}/src"
                   packageName="gov.fema.web.nimcast.service.client"
                   type="JAXWS"/>
                   <javac
                   srcdir="${path.service}/src" destdir="${path.assembly}/ear/APP-INF/classes"
                   includes="**/*.java"/>
    and following is the detail information from the stack trace:
    Caused By: java.lang.IllegalArgumentException: interface gov.fema.web.nimcast.service.client.UpdateEmailPortType is not visible from class loader
         at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
         at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
         at weblogic.wsee.jaxws.spi.ClientInstance.createProxyInstance(ClientInstance.java:143)
         at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:855)
         at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:344)
         at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:792)
         at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:326)
         at javax.xml.ws.Service.getPort(Service.java:92)
         at gov.fema.web.nimcast.service.client.UpdateEmailService.getUpdateEmailPortTypePort(Unknown Source)
         at gov.fema.prepcast.beans.UserManagement.updateUserEmailInNimscast(UserManagement.java:622)
         at gov.fema.prepcast.beans.UserManagement.changeUserProfileInfo(UserManagement.java:324)
         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:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy144.changeUserProfileInfo(Unknown Source)
         at gov.fema.prepcast.beans.UserManagement_dinn8k_UserManagementLocalImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:39)
         at gov.fema.prepcast.beans.UserManagement_dinn8k_UserManagementLocalImpl.changeUserProfileInfo(Unknown Source)
         at gov.fema.prepcast.actions.secret.UpdateUserAction.saveProfileInfo(UpdateUserAction.java:287)
         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:597)
         at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452)
         at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:254)
         at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
         at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
         at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
         at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:133)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
         at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
         at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:142)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:166)
         at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:190)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
         at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:485)
         at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Edited by: 938276 on Jul 25, 2012 7:55 AM

    No you haven't, because
    Caused by: java.lang.NoClassDefFoundError: org.example.www.Sample_PortType a relevant class can still not be found and Java really is not going to lie to you; this class is not on your application's classpath so it is either missing or put in the wrong place. Note that missing classes can be caused by you forgetting to properly redeploying your application - its usually something silly like that. Figure out what you did wrong and correct your mistake.
    The fact that you have to mention that you "setup the classpath" is questionable; in web applications you don't touch the classpath at all. So what exactly did you do?

Maybe you are looking for

  • Can't Connect to Server after Upgrading to Lion

    I upgraded to 10.7 from 10.6.8. I've ran all the updates etc, but now I cannot connect to my OS X Server (10.6.8) or any other machine for that matter. The server appears in my finder window and will allow me to connect as a guest but if I try to log

  • HDMI vs DVI on same monitor

    I just bought a mac mini(2010) and connected mini to samsung P2270HD(Full HD 1920 X 1080) via HDMI gives a very bad picture quality. Took the mini back to the store and they reproduced the problem on the same monitor. Then the guy took a dvi cable an

  • Problems with objects

    Hi all, I am working with JAVA, My questuin is that : Let us say A and B are two classes and in class A i created object for class B with new operator, and we have another class called C in this class i created object for class A, after implementatio

  • Adding WHERE condition in "Calculations" tab of SSAS Cube Designer

    HI, I am using SSAS 2012 version to develop SSAS cube and need help on following scenario : In the BIDS designer, on the Calculations tab:  I am creating one calculated member called [% Jobs] for which I am writing MDX expression as below : '([Measur

  • WinPE 5 802.1x Support with SCCM 2012 R2

    Please see updated information a few posts down. I am trying to get 802.1x support working to deploy windows 7-8 machines using MDT2012.  I have checked IEEE 802.1x network authenication protocol under features of the deployment share properties.  I