Can varargs in SessionBeans be deployed in WL9.2? modifier transient

Hello,
We're trying to deploy an ear onto an AdminServer in development mode. We want to declare some local stateless session beans with vararg input parameters.
e.g.
public String[] getValidIDsOfType(String validOnDate, String... filterTypes);
It compiles fine and we can create an ear file.
Try to activate a deployment, however, and the error we get is An error occurred during activation of changes, please see the log for details......Compiler failed executable.exec...
modifier transient not allowed here public transient java.lang.String[] getValidIDsOfType(java.lang.String arg0, java.lang.String[] arg1)
That doesn't make much sense until you go into the domain's
servers\AdminServer\cache\EJBCompilerCache\randomName\<packagePathToEJB>
directory and look at the <EJBName>Local_<blah>Intf.java and <EJBName>Local<blah>_ELOImpl.java
This shows that WL9.2's AppC translates the original EJB to:
public transient java.lang.String[] getValidIDsOfType(java.lang.String arg0, java.lang.String[] arg1)
in the Local_<blah>_Intf.java extends WLEnterpriseBean interface.  Similarly for the ELOImpl class.
I suppose the workaround for now is to remove the varargs parameter and for each client call to pass in an array, even where there's only one object.
Has anyone else come across this, or have any BEA guys there got a fix for it? Is there any way to remove the transient modifier that WL9.2 inserts?
Thanks and Best Regards,
ConorD

For anyone with the same problem, there's no full fix at present...I used a workaround instead and changed the input parameter from varargs to an ArrayList, which worked fine.
Then I contacted BEA support listing it as a bug and gave them a chunk of code and and ant build file to replicate it. BEA support were able to replicate it, and very quickly assigned a team to it, but informed me that it can't be fixed at present, and that I should use my workaround.
The problem is actually with the spec; the bit positions used to signify that a parameter is transient is shared with those that signify that a parameter is a vararg. It's implemented giving the same effect on both Sun's JDK and JRockit. I don't know about IBMs JDK. Unfortunately BEA have no plans to change this and it occurs in WLS 10 too. I suppose the only way to fix it would be to give a "best guess" on whether the user wanted transient or varargs. For example, if it's an area where varargs are allowed but transient not, then assume the user wanted varargs and mark them so (like with an EJB), otherwise assume the user wanted transient. But I was told by BEA that they have no plan to add those smarts into their AppC, and maybe that's not even possible, given that the spec has overloaded those bit positions.
Here's a link to the bug filed with Sun that BEA sent on to me:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6516895
This includes a link to the the relevant part from the spec:
http://java.sun.com/docs/books/vmspec/2nd-edition/ClassFileFormat-Java5.pdf
I hope that this helps anyone with the same problem.
Best Regards,
ConorD

Similar Messages

  • Can I include a ClickOnce deployment and rest Registry ActiveX dll to register (program created by c #)?

    hi !
    Can I include a ClickOnce deployment and rest Registry ActiveX dll to register (program created by c #)?
    Please answer.

    hi !
    Can I include a ClickOnce deployment and rest Registry ActiveX dll to register (program created by c #)?
    Please answer.
    Hello,
    We could not registry activex dll with clickonce directly, but here is a workaround below.
    1. Create Package for that activex dll to registry it to com.
    2. Package that MSI to CAB file.
    #1,#2 for detailed steps, please refer to the following blog.
    How to develop and deploy ActiveX control in C#
    3.
    Deploying CAB Files Using ClickOnce Deployment
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can't delete or re-deploy a FHFM application in EPMA

    Hi,
    I have a problem, that after successful deployment of HFM application I can't delete or re-deploy that application. "Delete" and "deploy" buttons are inactive.
    Application status - Deployed. Application is registered in Shared Services application group.
    EPM Architect Release - 11.1.1.3.0

    Sounds like you have a running process in the background that you might not know about. Click the Nav wheel and open the Jobs Library then filter by running tasks (hyperlink in upper left hand corner). If there is more than one person allowed to make changes, you may need to check each user.

  • Can't  delete or re-deploy a HFM applicarion in EPMA

    Hi,
    I have a problem, that after successful deployment of HFM application I can't delete or re-deploy that application. "Delete" and "deploy" buttons are inactive.
    Application status - Deployed. Application is registered in Shared Services application group.
    EPM Architect Release - 11.1.1.3.0

    Sounds like you have a running process in the background that you might not know about. Click the Nav wheel and open the Jobs Library then filter by running tasks (hyperlink in upper left hand corner). If there is more than one person allowed to make changes, you may need to check each user.

  • Hi,Can a WAR file be deployed as EAR file and vice versa.

    Hi,Can a WAR file be deployed as EAR file and vice versa.If so what are the changes we need to do.

    hi tel me in detail why u want 2 do that
    why u want to cnvert a web arch into enterp arch

  • Can't connect to a deployed application in standalone production

    Hy dear all, i'm facing a problem.
    I've deploy an application on a stand alone wls in production mode. I've deploy the application from jdeveloper all the groups, roles, and users are well migrated. I've created new accounts in wls granted the application role but i can't connect to the deployed app with these accounts. These accounts can connect to wls when i grant them administrator role. All the accounts create in jdeveloper can connect to the application.
    Please i need help emergency...

    Please after deploying my application in wls (production mode) all user create in weblogic can't connect to the application but users that was migrate from development mode (jdeveloper) can connect i need help.
    any idea?

  • Can't copy Aperature Library to external.  Get this error "The operation can't be completed because an item is being modified."

    I have been trying to find a solution to this problem by browsing this forum but I can't seem to find a solution.
    As many others have decided to do I want to copy my Aperature library to an external FW 800 drive as my laptop space is dwindling.  It seems all you need to do is copy the Library from the finder which can also be revealed in the preference if Aperature.  When copying it seems to transfer for a few seconds but then I get this error "The operation can’t be completed because an item is being modified."  I have formatted the drive correctly and there is no issues with Aperature itself so why do you think I am having this error?  What can I do to copy this Library to my external?

    Reboot your machine make sure Aperture doesn't start (as Lion is liable to do) and try it.

  • How can I burn a disk of photos with a modified file name?

    After importing photos from scan device, I use Photos > Batch > Change to rename files.  When burning a disk the changed file names do not transfer with the image but use the original file name.  How can I burn a disk of photos with the modified file name?
    This is what I have done so far with no success.
    Drag selected photos from Event to Burn Folder where the file names were changed. Burn folder lists file with original file name.
    Drag albums to Burn Folder with the same result.
    In Filer I am able to change the iPhoto Library > Master > Date > Filename and then drag to burn disk folder and see the changed name but this is a single file exercise without a view of the file's image, but to use the new file name in iPhoto events I have to repeat the naming convention.

    File > Export.
    In the resulting dialogue note the "Name" section. Choose to use the Title as Filename.
    Regards
    TD

  • How can I make both Items recurring in a promotional modifier

    I need to create a modifier for the scenario such as:
    If Item A is bought 10 pcs
    and
    Item B is bought 5 pcs
    then
    promotional free Item C should be given 2 pcs.
    Now both Item A and Item B needs to be recurring because only if Item A becomes 20 pcs and Item B becomes 10 pcs, then get Item C becomes 4 pcs.
    Thanks,
    Anindya.

    Pl do not post duplicate threads - How can I make both Items recurring in a promotional modifier
    Srini

  • Tables can be maintained even though Client has status 'not modifiable" ?

    I am looking, list of tables which i can maintain directly even though "Client has status 'not modifiable'" status
    example : T000
    Rgds

    No ..No...Siddesh,
    You are understanding my requirement in reverse.
    We are now not in execution of giving the access.
    i regret, if i am failing to explain my requirement
    A Auditor wants
    a). He wanted to know the users having S_TABU_DIS auth object with 02 value and assigned authroization groups.
    b). He wanted list of tables including Z tables that can be maintained directly thru maintenance view
    Auditor will do some excerse Directly Maintained Tables (vs) Authroized users
    He will come back with a list of tables for which we have to give the logs.
    I tried my best to explain my requirement.
    To summarise  - I repeat  i am looking  "List of Tables that can be maintained directly - When Client has status 'not modifiable" ?
    Thanks in advance for your time for this query.
    Rgds

  • Do you need to have Adobe Acrobat X or XI in order to use FormsCentral?  Can FormsCentral be used without Acrobat to create and modify forms?

    Do you need to have Adobe Acrobat X or XI in order to use FormsCentral?  Can FormsCentral be used without Acrobat to create and modify forms?

    Hi Joseph,
    Unfortunately, no. But Adobe does offer a free 30-day trial of Acrobat (absolutely no obligation). So, you could download the trial to fix up the form. For more information, see www.adobe.com/products/acrobat.html. Acrobat is also offered on a subscription basis.
    Sara

  • Can u plz anyone explain me the procedure for modifying script

    can u plz anyone explain me the procedure for modifying script.
    i.e no need of coding
    just i want procedure.

    Hi sriharitha,
    IN SE71, use the environment function 'copy from client' and make a copy of the existing script to the Z namespace. The make the modifications in SE71 as required. In cistomizing, make the new form known. Actiovate and transport.
    Regards,
    Clemens

  • Can not access a member of class Test with modifiers ""

    Hi!
    I am trying to get a application into a applet, but I just get this errormessage:
    Exception: Java.lang.IllegalAccessException: Class sun.applet.AppletPanel can not access a member of class Test with modifiers ""
    Anyone that have any idea whats wrong here?
    Best regards Raymond

    Post class where the exception was ocurred.

  • Using wireless 4G Sierra dongle. how can I stop the pop up screen trying to modify configuration when I connect

    I am using wireless 4G Wireless Sierra dongle. I have a Mac Air. How can I stop the pop up screen trying to modify configuration when I connect. I can connect with no problems but I have to click 'cancel' (on pop up screen that says network needs to modify my configuration) sometimes as many as 50 times!!! very annoying as the pop up is in middle of screen & won't go away unless i click it. Thank you foray help!

    Contact the providers  technical support staff.
    Ciao.

  • How can i delete an old deployment?

    Hi i have made some test on my SAP instace with net viewer developer studio and i have deploy some test application and i would like how can i delete the old one.
    For example i have made a search:
    [http://fdf.cod.free.fr/searchapp.JPG]
    Maybe i have just only do delete all this folders and files and that's all?
    If i do that ( delete on file and folder ) does the application stop directly naturaly?
    Thx by advance.

    Hi
    1)Log into SDM
    2) Goto Undeployment tab and select your project to undeploy and select START
    3)Restart the server
    4) Deploy your application once again
    Best Regards
    Chaitanya.A

Maybe you are looking for

  • Why some times jdeveloper does not show a coreect design view ?

    Hi thank you for reading my post why jdeveloper does not show a correct design view of jsf pages sometimes? It does not shows labels and ... , just show tag names like : form , ... ? here is a picture for this : 1-incorrect page: http://www.flickr.co

  • Assignning Output type to Invoice/Po.

    Ho Folks, is there any userexit in the Invoice print/po print for assigning the exact form to an output? I have different forms for each country right now. I would prefer not to setup an output type (email) for every country unless I have to.  The be

  • Looks like I bought a narcoleptic PowerBook..

    It's been about 8 years since these babies were manufactured. Since then has anyone actually come across a solution? Maybe on some random persons blog? I've found a lot of things out about these old computers (How to natively and smoothly play 720p a

  • Can we apply saved filters to union reports in obiee 11g?

    Hi All Can we apply saved filters to union reports in obiee 11g? I am able to apply saved filters for normal reports but not for union reports. The catalog pane is blank, when i click on result columns or each criteria. The only option i see is to ma

  • Proble with 9i install on Solaris 10

    I am running into an issue installing Oracle 9i on Solaris 10. The installer can't access directories just created by the /tmp/orainstroot.sh file, the folder /export/home/oracle/oraInventory. There error message is: The oracle universal installer in