2 Jars with same class name. NoSuchMethod. Can't change classpath

I have overloaded a method in a class that came with an openSource package.
Things were fine until I implemented my components in a new version of the Server application; when I discovered that the it uses the same openSource package bundled in its classpath.
This results into a NoSuchMethod exception since I have overloaded the method with new argument types.
1. I cannot remove or shuffle this JAR from the Server's classpath, since that would stop something else.
2. I cannot change my code since it is implemented in a lot of places.
Has anyone called a specific method of a jar? like E.g. "someJar.jar".SomeClass.someMethod (arg);
If yes how?
The above code is not possible syntactically, but I have put it for ease in interpreting the problem.
Any input will be appreciated.
NOTE: I cannot disclose the names of products for company policy issues.

Just some ideas...
1. I cannot remove or shuffle this JAR from the
Server's classpath, since that would stop something
else.Some servers allow for multiple classpaths - i.e. you can separately specify the classpath that the server itself uses from the one that your hosted applications will be using.
Also, if your changes to the openSource code are only the addition of an overloaded method, why couldn't you just substitute your jar for the one the server is using, why would that break the server?
2. I cannot change my code since it is implemented in
a lot of places.That sounds lame. You can't do a global replace? How about just changing the package name?
Has anyone called a specific method of a jar? like
E.g. "someJar.jar".SomeClass.someMethod (arg);
If yes how?Yes, but it's not as simple as your pseudo-code...
You can use URLClassLoader to load a specific class from a specific jar file URL, and then use reflection to get the method you want from it, and then call it.
good luck
j

Similar Messages

  • Since downloading ios8 to my I pad mini I am unable to sync movies, however I can sync them on my I phone 5s with same update? How can I change this?

    Since downloading ios8 to my I pad mini I am unable to sync movies, however I can sync them on my I phone 5s with same update? How can I change this?

    Thanks - that helped. But when I tried to sync all my photo folders to the I pad 2, I tunes would add some but not all of the ones that were marked to sync, end the sync, then the I pad 2 would hang with the wheel turning, saying it was still syncing photos, and it would not end and the remaining folders of photos never appeared. I finally had to sync and re-sync over and over by adding one folder of photos at a time, then another and another.

  • Class.forname - Unable to load class if two jars with same package name

    class.forname - Unable to load class if two jars contains same package name exists in classpath.
    JVM is stopping search for class one it finds the package name in the jar file that is ahead in classpath,
    JVM is not continuing search in the remaining jar files.
    For this , I put the jar file that contained class ahead of of ther jar file containing same package name, then it worked.
    Is this a JVM bug ? (JDK 1.5)

    I reported as bug to sun. I got auto email, looks they have not assigned any Bug ID so far.

  • Loading jars with same class loader

    Hi all,
    I need to tell Weblogic to load various jars using same class loader.
    "various jars" means jars that belong to different web applications. (weblogic 10)
    Is that possible ?
    PS: I can not change jar location, e.g. put them in common directory or so.

    Hi,
    If you don't want to change the JAR Locations then you can try the following..
    Option1). Add the Jar Location with the Jar file name in the Server classpath...of your server startScript (like startWebLogic.sh)
    CLASSPATH=${CLASSPATH}:/opt/app/myJars/first.jar:/opt/app/myJars/second.jar:
    But in this case the Jars which are there in the classpath...will be loaded using System Classloaders and will be different from Application Classloaders...but the Classes belonging to these Jars will be available to your applications because final classpath will be the Summation of following:
    Final Classpath = Bootstrap classloader (+) System ClassLoader (including Extended Classpath from Domain Lib) (+) Application ClassLoader (+) AppModule ClassLoader
    Option2). If you dont want to add the Jars in the Server ClassPath then u can use "Optional Package" deployment feature provided by WebLogic...In this case you can deploy the JARs in WebLogic Server as Optional Packages from the Same Location where it is at present...(as you dont want to change the Jar locations) like following: http://jaysensharma.wordpress.com/2009/12/06/optional-packages/
    Thanks
    Jay SenSharma

  • How can OIM provision users with same Display Name in AD?

    I can create users with same First Name, Middle Name and Last Name (same Display Name) in OIM if they have different UserId.
    But I can not provision two users with same Display Name to one Organization Unit in AD, the resource provisioning shows
    Status: Rejected
    Response: AD user already exists
    Can AD be configured to create users with same Display Name (different UserId) in one OU, or would I have to create logic in OIM to modify the display name so it gets accepted by AD?
    Thanks!

    Thanks Nitesh. Also, I can create the user with same DN in different OU's, not in same OU.
    I agree once we determine that same cn exists in one OU , I can modify the display name by appending a number at the end or something. I understand the logic but I need more details on how to specify this logic in the pre-pop adapter, can you please share more details.
    Thanks a lot!

  • Multiple Infoobject with same technical name

    Hi All,
    I have a very basic question which confuses me a lot.
    I have installed a BI content info cube 0SD_C03(Sales overview) and it is installed in Info Area -  ERP Analytics -->sales and distribution analyses. I checked the dimensions of it and 0customer( master data attr) is linked as a dimension. I created a copy of 0SD_C03 and the new Infocube name is ZSD_C03_T. It also has the same 0customer master data attr as a dimension(obviously!).
    Now both the infocubes have different technical name(0SD_C03 and ZSD_C03_T) since they will be storing different sets of data(lets say). but the technical name of the master data (0CUSTOMER) is the same for both cubes.
    ques 1: Is it since its a master data and contains the same set of master data for both the cubes, it has the same technical name?
    If I search the Info provider section for "0CUSTOMER", i get two entries: One within my info area and another within another info area. And also i can keep doing (Right click Info area--> Insert Characteristic as Infoprovider) on every other info area and insert 0CUSTOMER in every other info area.
    ques 2: does all the 0CUSTOMER in different info areas, actually contain the same set of data?
    ques 3: if i search for 0CUSTOMER in InfoObjects section, i get 5 entries in different infoareas. How can there  be diffferent Infoobject with same technical name be present in different info areas?
    Sorry if i am too elaborate, I hope i have made my questions clear.

    Hi,
    ques 1: Is it since its a master data and contains the same set of master data for both the cubes, it has the same technical name?
    A. same 0CUSTMER you can use the different places it holds same data.
        source is the 0CUST_ATTR -> target is 0CUSTOMER.
    ques 2: does all the 0CUSTOMER in different info areas, actually contain the same set of data?
    A. it will contain the same set of data.
        it has the overwrite function.
    ques 3: if i search for 0CUSTOMER in InfoObjects section, i get 5 entries in different infoareas. How can there  be diffferent Infoobject with same technical name be present in different info areas?
    A. you triggered the 5 times for specif DTP means you will 5 entries for different info areas.
    finally i will say you use the 0CUSTOMER no of places where you required and no need to create the ZCUSTOMER.
    Thanks,
    Phani.

  • Two query with same technical name in Quality

    Hi experts,
    I have two queries in Quality with same technical name. I used the program RENAME_DUPLICATE_ELEMENTS to rename the query and its renaming the latest query instead of the old Query. I am in BI 7.0 system and cant find a note that applies to BI 7.0. There are quite a few notes on 3.x system. Has somebody faced the same problem. What did you do. If there is a note for bi 7.0, please let me know so i can resolve with the Basis team.

    We had similar issues - this happens when you create a query locally and then transport the same.
    The queries have an internal GUID which is generated locally and this causes duplicates.
    You can :
    1. Delete queries using the GUIDS ( you can find this in RZCOMPDIR or RSRREPDIR tables ) using RZDELETE to delete queries.
    identify your older version query and then delete the same and you should be good to go...
    also try identifying the same using program
    ANALYZE_RSZ_TABLES

  • How to get two fields with same tech name in LIS Extractors?

    Hi Experts,
    I need "ERDAT" field from two structures (QMSM & QMFE) in 2LIS_18_IOTASK extractor.
    In LBWE first I moved ERDAT from QMSM. When I moved ERDAT from QMFE it gives an error:
    "Field with same technical name is already available in the Extract Structure".
    I don't want to create Append Structure as we need to write User exit.
    Can any one tell me how to get this field added in the extractor from QMSM and QMFE?
    Thanks for your help.
    Regards,
    Sree

    this is not possible as the all those fields are put in one structure. per definition you can't put the same field name twice in a structure, table in the data dictionary...
    hence, you really need to use an append and fill via user exit
    M.

  • PickList Update - Input values [...] does not match with expected class names

    Hi everybody!
    I try to update a picklist via b1if but I always get the following error-message:
    Exception : Input values '["3" , "3"]' does not match with expected class names '["com.sap.smb.sbo.api.ICompany" , "java.lang.Integer"]' for SBO object type '156'
    As you can see in the error-message I use object type 156 “PickLists”.
    Below you can see the message to the B1 Object – atom:
    <Payload id="atom1" Role="X">
        <System xmlns="">0010000100</System>
        <QueryParams xmlns="">
            <AbsoluteEntry>3</AbsoluteEntry>
        </QueryParams>
        <PickLists xmlns="">
            <row>
                <PickDate>20120914</PickDate>
            </row>
        </PickLists>
        <PickLists_Lines xmlns="">
            <row>
                <OrderEntry>248</OrderEntry>
                <OrderRowID>0</OrderRowID>
                <PickedQuantity>1</PickedQuantity>
            </row>
        </PickLists_Lines>
    </Payload>
    …and the result:
    <Payload status="success" id="atom2" Role="C" DImsg=" Exception :
    Input values '["3" , "3"]' does not match with expected class names
    '["com.sap.smb.sbo.api.ICompany" , "java.lang.Integer"]' for SBO object type '156'"
    DIresult="failure" keyvalue="3" keyname="AbsEntry" payload="atom1" objectid="156"
    method="Synchronous Update" b1login="Technical User" system="0010000100"/>
    I just can’t figure out meaning of the error-message…anyone can help?
    Thanks in advance!
    Best Regards
    Alex

    Hey Alex,
    I have a similar problem. I suppose you have solved your problem, because this post is very old. Perhaps you could share the solution?
    Best regards
    Benjamin

  • My mother used to be the bill payer on my iTunes account so now every time I send an email from my iCloud account it sent with her name, how can I change the settings so emails are sent from myself?

    My mother used to be the bill payer on my iTunes account so now every time I send an email from my iCloud account it sent with her name, how can I change the settings so emails are sent from myself?
    I've changed the bill payer to myself but it stills says on emails that I sent that its from my mother.

    In order for the "From" field to show you options on the "from" addresses available, you must set them up in the Preferences > Accounts first.
    I can't show you a screen shot of the from field because I currently only have one account, so the from address used is the default. However, when I had more than one, then options will show up in your compose/reply window.
    You'd need to add an account here:

  • How To Create Table View With Same Column name But Different Table?

    Hi All,
    I have the problem to create a tableview with same column name but in different table.
    The Table that i have:-
    Table - PAC051MPROFORMA
    Column - mrn,visitid
    Table - PAC051TPROFORMA
    Column - mrn,visitid
    Table - PAC052MTRANSBILL
    Column - mrn,visitid
    Then i want to create a table view to view that table. This is my SQL
    CREATE VIEW pacviewproforma (mrn,visitid,mrn,visitid,mrn,visitid)
    As Select PAC051MPROFORMA.mrn,PAC051MPROFORMA.visitid,PAC051TPROFORMA.mrn,PAC051TPROFORMA.visitid,PAC052MTRANSBILL.mrn,PAC052MTRANSBILL.visitid
    where
    *(a.PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)*
    and
    *(a.PAC051TPROFORMA.mrn=PAC052TRANSBILL.mrn)*
    That SQL Return this error = ORA-00957: duplicate column name
    Then I modify that SQL to
    CREATE VIEW pacviewproforma (mrn,visitid)
    As Select PAC051MPROFORMA.mrn,PAC051MPROFORMA.visitid,PAC051TPROFORMA.mrn,PAC051TPROFORMA.visitid,PAC052MTRANSBILL.mrn,PAC052MTRANSBILL.visitid
    where
    *(a.PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)*
    and
    *(a.PAC051TPROFORMA.mrn=PAC052TRANSBILL.mrn)*
    This time this error return = ORA-01730: invalid number of column names specified
    What should i do?
    Thanks...

    Hi,
    SQL> CREATE VIEW pacviewproforma (mrn,visitid,mrn,visitid,mrn,visitid)
      2  As Select
      3  PAC051MPROFORMA.mrn,
      4  PAC051MPROFORMA.visitid,
      5  PAC051TPROFORMA.mrn,
      6  PAC051TPROFORMA.visitid,
      7  PAC052MTRANSBILL.mrn,
      8  PAC052MTRANSBILL.visitid
      9  from PAC051MPROFORMA,PAC051TPROFORMA,PAC052MTRANSBILL
    10  where
    11  (PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)
    12  and
    13  (PAC051TPROFORMA.mrn=PAC052MTRANSBILL.mrn);
    CREATE VIEW pacviewproforma (mrn,visitid,mrn,visitid,mrn,visitid)
    ERROR at line 1:
    ORA-00957: duplicate column namePlease give different names to each column.
    Something like this..
    SQL> CREATE OR REPLACE VIEW pacviewproforma (MPROFORMA_mrn,MPROFORMA_visitid,TPROFORMA_mrn,TPROFORMA
    _visitid,MTRANSBILL_mrn,MTRANSBILL_visitid)
      2  As Select
      3  PAC051MPROFORMA.mrn,
      4  PAC051MPROFORMA.visitid,
      5  PAC051TPROFORMA.mrn,
      6  PAC051TPROFORMA.visitid,
      7  PAC052MTRANSBILL.mrn,
      8  PAC052MTRANSBILL.visitid
      9  from PAC051MPROFORMA,PAC051TPROFORMA,PAC052MTRANSBILL
    10  where
    11  (PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)
    12  and
    13  (PAC051TPROFORMA.mrn=PAC052MTRANSBILL.mrn);
    View created.
    SQL> DESC  pacviewproforma;
    Name                                      Null?    Type
    MPROFORMA_MRN                                      NUMBER
    MPROFORMA_VISITID                                  NUMBER
    TPROFORMA_MRN                                      NUMBER
    TPROFORMA_VISITID                                  NUMBER
    MTRANSBILL_MRN                                     NUMBER
    MTRANSBILL_VISITID                                 NUMBER
    ORA-01730: invalid number of column names specifiedThe list of column nmae you specified during the CREATE VIEW should match with the SELECT list of the view.
    Twinkle

  • View the tables with same column name

    Hi all
    I have 10-20 tables and they have some same column names
    How can I know it?
    I mean, I want to know the tables which have the common column names
    Thanks...

    SQL> break on column_name
    SQL> set linesize 1000
    SQL> set pagesize 10000
    SQL> select column_name, owner, table_name
      2  from (select owner, table_name, column_name, count(*) over (partition by column_name) ct
      3        from dba_tab_columns)
      4  where ct>1
    SQL> /
    COLUMN_NAME                    OWNER                          TABLE_NAME
    AADSAS_ID_NBR                  H89UCBAC                       PS_SAD_ADA_CD
                                   H89UCBAC                       PS_SAD_ADA_SUS
                                   H89UCBAC                       PS_SAD_ADA_TMP
    AA_CODE                        H89UCBAC                       PS_RQ_CONDIN_SLVW
                                   H89UCBAC                       PS_RQ_CONDIN_SRCH
                                   H89UCBAC                       PS_DUMMYDESCR_LANG
                                   H89UCBAC                       PS_DUMMY_DESCR
                                   H89UCBAC                       PS_RQ_NOTINCOND_LV
                                   H89UCBAC                       PS_RQ_NOTINCOND_SR
    [...]Nicolas.

  • HT204088 When trying to update an app, it partially downloads and then displays the message "unable to download item" Please try again later. This happens on any app I try. I have tried deleting the app and reinstalling with same results. What can I do?

    When trying to update an app, it partially downloads and then displays the message "unable to download item" Please try again later. This happens on any app I try. I have tried deleting the app and reinstalling with same results. What can I do?

    I have the same thing happening on my iPod Touch 5th gen. Been happening for at least a month. I have updated to the most recent version of iOS which hasn't solved the issue. Must be a bug that they didn't get around to resolving yet, a year later. Really annoying to have it pop up when you are in the middle of a game though.

  • Recreate skype user with same skype name ?

    I just deleted 21 skype users, by mistake, in Business Manager, is it possible to recreate them with same skype name ?
    /Claus

    Hi again,
    Hope this helps.
    alias_maps = hash:/etc/postfix/aliases,hash:/var/mailman/data/aliases
    always_bcc =
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    content_filter = smtp-mailtransport:[127.0.0.1]:10024
    daemon_directory = /usr/libexec/postfix
    debugpeerlevel = 2
    enableserveroptions = yes
    inet_interfaces = all
    luser_relay =
    mail_owner = postfix
    mailbox_transport = cyrus
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    mapsrbldomains =
    messagesizelimit = 10240000
    mydestination = $myhostname,localhost.$mydomain,localhost,apm.pt,onlearn.apm.pt,ml.apm.pt,xserv e.apm.pt
    mydomain = apm.pt
    mydomain_fallback = localhost
    myhostname = mail.apm.pt
    mynetworks = 127.0.0.1/32,195.23.139.104/29
    mynetworks_style = host
    newaliases_path = /usr/bin/newaliases
    ownerrequestspecial = no
    queue_directory = /private/var/spool/postfix
    readme_directory = /usr/share/doc/postfix
    recipient_delimiter = +
    relayhost =
    sample_directory = /usr/share/doc/postfix/examples
    sendmail_path = /usr/sbin/sendmail
    setgid_group = postdrop
    smtpdclientrestrictions = hash:/etc/postfix/smtpdreject
    smtpddelayreject = yes
    smtpdenforcetls = no
    smtpdhelorequired = yes
    smtpdhelorestrictions = permitsasl_authenticated,permitmynetworks, checkheloaccess hash:/etc/postfix/heloaccess,reject_non_fqdn_hostname,reject_invalidhostname,permit
    smtpdpw_server_securityoptions = login
    smtpdrecipientrestrictions = permitsasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
    smtpdsasl_authenable = yes
    smtpdsenderrestrictions = permitsasl_authenticated,permit_mynetworks,reject_non_fqdn_sender,reject_unknown_sende rdomain,permit
    smtpdtlsCAfile =
    smtpdtls_certfile =
    smtpdtls_keyfile = $smtpdtls_certfile
    smtpdtlsloglevel = 0
    smtpduse_pwserver = yes
    smtpdusetls = no
    unknownlocal_recipient_rejectcode = 550
    virtualaliasmaps = hash:/var/mailman/data/virtual-mailman
    João.

  • 2 different iphones have the same Apple ID, how can I change the apple ID on one of them but not delete the other iphone's data and media?

    2 different iphones have the same Apple ID, how can I change the apple ID on one of them but not delete the other iphone's data and media?

    You don't have to do anything with the first iPod that you don't use anymore. If you are planning on keeping it, put in a drawer in your house and forget about it.
    You don't need a second account to use with the new iPod. I use one Appl e ID and iTunes library for two iPods, and two iPad. I have different content on all four devices. You can select exactly what you want to sync to each device and it can be different content on all devices.

Maybe you are looking for

  • Music

    when i was trying to sync my ipod to my mac it delete all music even the ones i brought from itunes. how do i get my music i brought back in my account

  • Require a Function Module

    Hi, Please give me the function module name which converts the date from internal format (YYYYMMDD) TO (MMDDYYYY). Regards Reddy

  • Shared nothing live migration over SMB. Poor performance

    Hi, I´m experiencing really poor performance when migrating VMs between newly installed server 2012 R2 Hyper-V hosts. Hardware: Dell M620 blades 256Gb RAM 2*8C Intel E5-2680 CPUs Samsung 840 Pro 512Gb SSD running in Raid1 6* Intel X520 10G NICs conne

  • Adobe Flex 3 with AIR Certification Exam is Now Out !!!

    Adobe just released the Adobe Flex 3 with AIR certification exam (though they have not yet updated their Adobe Flex certification page). Here is my blog entry with more details: My blog entry on the Adobe Flex 3 with AIR certification exam Here is th

  • Schedule order confirm quanity check

    Hello , We are  facing a problem, that is when we create an order in CRM 2007, we are not able to see confirmed quantity check against the schedule line because of this order is not able to be processed how can this problem  be solved . regards .