KM scheduler not working in EPh1 Version

Hi all,
I have written a scheduler which uses EJB. This works fine in 7.0 SP14 version but it stops working in EPh1 version. It throws an error(from logs) Exception in operation startApp with application sap.com/earfile. sap.com/earfile is an ear file with EJB.
Did any one had this issue? how to resolve it. Pls help.
Thanks,

This looks like a issue with classloader and the version of the J2EE.
Use this below code and try.
ClassLoader originalContextClassLoader = Thread.currentThread().getContextClassLoader();                                   
try {
          Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
          Context initial = new InitialContext();
          Object objref = initial.lookup("JNDI Name Of the Session Bean");
          Object obj = PortableRemoteObject.narrow(objref, BeanHome.class);
     } catch (NamingException ex) {
          ex.printStackTrace();          
     } catch (Exception ex) {
          ex.printStackTrace();          
     finally {
     Thread.currentThread().setContextClassLoader(originalContextClassLoader);

Similar Messages

  • KM Scheduler not working EPh1 version

    Hi all,
           I have written a scheduler which uses EJB. This works fine in 7.0 SP14 version but it stops working in EPh1 version. It throws an error(from logs) Exception in operation startApp with application  sap.com/ear~file.   sap.com/ear~file is an ear file with EJB.
    Did any one had this issue? how to resolve it. Pls help.
    Thanks,

    This looks like a issue with classloader and the version of the J2EE.
    Use this below code and try.
    ClassLoader originalContextClassLoader = Thread.currentThread().getContextClassLoader();                                   
    try {
              Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
              Context initial = new InitialContext();
              Object objref = initial.lookup("JNDI Name Of the Session Bean");
              Object obj = PortableRemoteObject.narrow(objref, BeanHome.class);
         } catch (NamingException ex) {
              ex.printStackTrace();          
         } catch (Exception ex) {
              ex.printStackTrace();          
         finally {
         Thread.currentThread().setContextClassLoader(originalContextClassLoader);

  • Javascript in web.show_doc not works in explorer version 6

    Hi ,
    I've requirements to open form B from form A using URL not call_form (the config parameters are not the same), but when I open form B using web.show_document I end up having the new form opened in a oversized web browser which also shows standard button and address bar.
    To avoid that I tried using the examples I found on OTN, see below:
    I try to run this examples found in OTN but they not work in Explorer version 6.
    1) WHEN_BUTTON_PRESSED trigger contains:
    begin
    WEB.SHOW_DOCUMENT ('javascript:window.open("http://www.google.com","","fullscreen=no,titlebar=no,location=no,toolbar=no,menubar=no,status=no,resizable=yes");self.close()','_blank');
    end;
    2)POST_FORM trigger contains
    web.show_document('Javascript:window.close()','_self');
    Both do nothing and when I exit the form I get an empty black window, this is not acceptable in a production environment.
    The POST-FORM trigger worked well with the pervious release of window explorer.
    Thanks for your help

    Hi Frank,
    Many thanks,
    the when-Button-pressed trigger of my Exit button contains the following code:
    DECLARE
    url_txt varchar2(1000);
    BEGIN url_txt := 'http://servername/closing_window.htm';
    WEB.SHOW_DOCUMENT(url_txt,'_self');
    END;
    The closing_window.htm is a simple page:
    <html>
    <HEAD>
    <body onLoad="window.close();">
    </html>
    </HEAD>
    Data in my form are already committed when I exit it.
    How to commit is maybe an issue, in fact if I commit before calling the web.show_document the browser is not closed and a black window appears.
    Thanks

  • Filter did not work at OBIEE  Version 11.1.1.7.0

    String repSQL = report.generateReportSQL(reportRef, rp, m_sessionID);
    The “Filterexpression” is working well for the OBIEE Version 11.1.1.6.0  but it is not working for OBIEE Version 11.1.1.7.0.
    (i.e) While i try to run “Filterexpression” in for OBIEE Version 11.1.1.7.0. , i get the following errors
    AxisFault  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server faultSubcode:
    faultString: Assertion failure: pMatchFilterFromPropBag != 0 at line 3051 of roject/webreport/globalfilterutils.cpp faultActor:  faultNode:  faultDetail:
    {com.siebel.analytics.web/soap/error/v1}Error: <sawsoape:Code>ACIOA5LN</sawsoape:Code>
    <sawsoape:Message>Assertion failure: pMatchFilterFromPropBag != 0 at line 3051 of project/webreport/globalfilterutils.cpp</sawsoape:Message>
    <sawsoape:File>globalfilterutils.cpp</sawsoape:File>
    <sawsoape:Line>3051</sawsoape:Line>
    Assertion failure: pMatchFilterFromPropBag != 0 at line 3051 of project/webreport/globalfilterutils.cpp
    ead.run(SimpleThreadPool.java:557)

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • Why my app not work in new version, Why my app not work in new version

    I just update to new version software ios6.0 for my iPad, but I found that few of my apps downloaded before are not working now, how can I do now?

    Lily yu wrote:
    Why my app not work in new version
    Ummm..I think that's obvious...the developer hasn't updated them to work with iOS 6

  • I downloaded Firefox 4 and tried to launch it. The message said that Firefox will not work with this version of Mac OX. Please advise.

    I downloaded Firefox 4 and installed it. When I tried to launch it, a message came up saying that Firefox will not work with this version of Mac OSX. Now I have no Firefox. How can I get Firefox 3.6 back on my Mac? How can I make Firefox 4.0 work? Please advise.

    Thanks for the reply so quickly! Is the tenfourfox going to be be just as safe and as high of quality as the Firefox 4? Also since Mozilla's website says, "Firefox 3.6.x will be maintained with security and stability updates for a short amount of time. All users are strongly encouraged to upgrade to Firefox 4" does that mean if I go back to 3.6 there will be security and stability issues after a "short amount of time"?

  • I downloaded the latest firefox 4 and updated my file, firefox 4 will not work with my version of Mac OS X, how do I get my old firefox back?

    I downloaded the latest firefox 4 and updated my file, firefox 4 will not work with my version of Mac OS X, how do I get my old firefox back?

    You can get Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html

  • When attempting launch of photoshopcc,I get a box with "could not load the MMX core routines module because it does not work with this version of PS... what does this mean and how do I correct it?

    when attempting launch of photoshopcc,I get a box with "could not load the MMX core routines module because it does not work with this version of PS... what does this mean and how do I correct it?

    I did a search on my system and found the Photoshop has a fastcore plug-in.  Creative Cloud includes a subscription version of CS6 version 13.1.2.   I do not know if you installed that or not.  The cc un-install may have done something.  You may need to use Adobe Cleaner then Install The Perpetual CS6 version of Photoshop  CS6 version 13.0.6 Mac or Photoshop  CS6 version 13.0.1.3 PC and not the subscription CS6 extended version 13.1.2.  Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6   If you need to download the CS6 installer Download CS6 products.
    You may also be able to recover your cs6 using an old system backup
    fastcore.8bx on my system...

  • SetFocus not working in older versions of Reader (pre version 8)

    I have a form that was created in LiveCycle Designer 8.2 and has the following issue:
    I have used the setFocus method to help the form filler (end user) navigate around the form. It works fine when the end user is viewing the form in Reader version 8 or higher, but it does not work in earlier versions. is there a work around to get similar functionality in earlier versions of Reader.
    Example:
    there is a drop-down list where the user is directed to different fields depending on their answer. it uses the following if expression in the "validate" event:
    if (this.rawValue == 2){
    xfa.host.setFocus(textField1);
    if (this.rawValue == 1) {
    xfa.host.setFocus(DropDownList2);

    Brian,
    One more thing about the setFocus issue:
    I tried my test form on Adobe Reader 6.0.2 and the setFocus worked OK when using the somExpression.
    So adding the somExpression to the setFocus works with Reader 6.0.2 and up, but it did not work with Reader 6.0 or Reader 6.0.1.
    LC Designer 8.2 will let you set the minimum target version in the "Form Properties" "Defaults" tab to 6.0.2, so that may be the lowest version it supports. I did notice that at this 6.0.2 version my other Javascript code does not function; not sure why.
    Ron

  • Fastdial does not work after installing version 7.0.1

    Fastdial does not work after installing version 7.0.1

    '''this will fix your problem with FF 7.01 '''
    '''http://dl.dropbox.com/u/10199236/fast_dial-3.5.1-fx-modified.xpi '''
    '''''This link will fix Fast Dial for Firefox 8.0.1'''''
    '''http://dl-web.dropbox.com/u/12466346/speedfox.org/addons/fast_dial-3.5b1fixed2-fx.xpi '''

  • Mail application will not work with latest version mac 4.5

    mail application will not work with latest version mac 4.5

    You can get Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html

  • Java program not working using newer version of scheduler (AutoSys)

    A little background: I'm in the middle of trying to upgrade our AutoSys server (scheduler) to the latest version (version R4 to R11) and have to do regression testing to ensure our jobs will work in the new version. There's a small java program that is not working supposedly due to the following error:
    Exception in thread "Main Thread" java.lang.NoClassDefFoundError: com/f1j/swing/common/JDKAdapter
    at com.f1j.swing.common.Adapter.<clinit>(Adapter.java:86)
    at com.f1j.swing.engine.ss.JBook.<init>(JBook.java:3032)
    at com.f1j.swing.engine.ss.JBook.<init>(JBook.java:3096)
    at com.test.Foo.performScan(Foo.java:122)
    So in the old version (R4), it runs fine. In R11, I get the exception above. The CLASSPATH matches and I've verified that by echoing it in the shell script that calls the java program. Here's how it's called in the shell script.
    echo $CLASSPATH
    ${JAVA_HOME}/bin/java com.test.Foo
    So the Foo class was written by me, which makes use of this external library called f1j11swing.jar (for spreadsheet creation).
    The source of the error is from this line in Foo (line 122):
              book = new com.f1j.swing.engine.ss.JBook();
    The funny part is JDKAdapter (the missing class) is in the same jar file as JBook, so it definitely finds the library in the classpath. But for some reason, this new AutoSys version is spitting out this error. I've exhausted many approaches to resolving this, but I'm still stuck.
    Here's the layout of how things are called (should be same for R4 and R11):
    1. AutoSys server logs into client machine XYZ as user arnold
    2. arnold (AutoSys client) on XYZ executes shell script to call java program
    The only significant difference I see is that the AutoSys server in R4 is HP while the R11 server is Sun. However, it shouldn't matter because the client server they're logging into to execute the script is the same linux server.
    Does anyone have any ideas? I've already started dialogue with the vendor and it seems kind of in limbo at the moment. Please let me know if you need more info. Thanks.

    Hi DrClap,
    I just checked jre/lib/ext of my $JAVA_HOME and verified that there doesn't exist any library with a class named "Adapter." We don't put anything in this directory other than what came with the original installation. I've tried isolating the jars before as well, by doing something like (to no avail):
    java -cp /users/test/lib/f1j11swing.jar:/users/test/lib/Foo.jar com.test.Foo
    If I remove the f1jswing11.jar path in the above command, it will complain about other things. Also, for fun, I tried dropping f1j11swing.jar into the ext folder and removing it from the CLASSPATH and it yielded the original error. Running it directly from the shell and old version of autosys works fine.
    I hope I understood your suggestion correctly and please let me know if you have any other ideas. I'm surprised why java would act differently with a different version of an AutoSys client logging into the same machine and environment. Thanks.
    xiarce - I haven't heard anything regarding this, but I'll bring it up. Thanks.
    Edited by: user4170063 on Apr 13, 2011 2:25 PM

  • Scheduler Not Work

    Hi all,
    i want some help with scheduler, the case is:
    the database installed first time when the database locale in normal calendar,
    the server is in hijri ,
    when i create any job schedule dont work when next run comes,
    please help

    loool,
    thank for help :) ,
    version=11.2
    Every thing goes fine except one thing which is , why the job do not run automatically next time that specified in the create statement, i tried to find any error but i cant find one,
    look when i use the Toad and click on "run job" the job run without any error,
    "why the job do not run automatically"
    i create the same job in another database in separate machine it work automatically, but the difference is that i do not use hijrah Calendar which i have to use it in the main database;
    thank you

  • KM Scheduler not working

    Hi all,
                   I have created a KM Scheduler and have also set the time table to it , but never runs at the scheduled time. And when I deploy from NWDS , I get the following errors.
    com.sap.portal.plugins.ConfigFrameworkArchiver > No privateArchive.properties file is defined.
    [25.06.10 / 19:21] #ERROR LEVEL# com.sap.portal.plugins.ConfigFrameworkArchiver > Missing file plugin.header.properties in /KMScheduler/src.config/install/meta/expanded/cm/services/schedulertasks
    [25.06.10 / 19:21] #ERROR LEVEL# com.sap.portal.plugins.ConfigFrameworkArchiver > Config archive successfully created (time to export 750 ms)
    Is it because of the above errors that the Scheduler is not working? How can I rectify the above errors?

    Hi,
    Have you assigned a CM system to the Scheduler, if already assigned, try assigning a different node if available. Also check whether there are any errors at the scheduled time when the scheduler is supposed to run.
    Also try uploading the par through support and see whether the error is coming.
    Regards,
    Vinod

  • IOS7 will not work with current version of iTunes

    My phone has had a recurring problem with the mic not working unless the phone was in speaker mode. I haven't bothered to update to iOS7 before now, but finally got annoyed with not being able to have a phone call in public, so I attempted to restore (which several posts on the topic recommended). Connected phone to iTunes, backed up, clicked "restore", got a pop-up saying that it couldn't restore the phone because I was still running iOS6.
    Figured, what the heck, iOS7 can't be that bad, decided to update. All the while, my phone was connected to my computer, which is running iTunes version 10.6.3. Not once did I get any sort of warning, notification, pop-up, anything letting me know that iOS7 was not compatible with this version of iTunes. Since my phone was pretty much out of memory, I actually deleted all of my music so that I could download the update, knowing that it would be able to be replaced as soon as the update was finished. Waited for the update to download and install, clicked "Sync" on my computer, there's my pop-up. Attempted to download iTunes 11, won't let me because my computer is still running Mac OSX 10.5, because I don't feel the need to buy a new laptop every 2 years.
    My computer was purchased (new) in '09, not even a full five years ago. I understand that Apple changes constantly, but the fact that I now have NO way to restore my phone, NO music, NO way to back my phone up without a wireless connection, is frankly a pile of crap. I can't even talk to tech support about this without paying $19 for an internet conversation because I purchased my phone 13 whole months ago.
    I've been a huge proponent of Apple ever since I got my computer. I've recommended them to countless friends because my computer has lasted five years without a single problem, no significant slow-down, etc. It's great to find out that the fact that Apple made such a great product is the same fact that's causing me to have to write this long, drawn out, very livid post that is essentially a giant plea of: short of getting a new computer (because um, no, I'm not doing what Apple wants and spending more money so that two products made by the same freaking company are compatible), how do I restore my phone and get my music back? I know that anything purchased on the iTunes store can be downloaded to my phone, but the vast majority was from CDs.

    cynecasey wrote:
    ... my computer is still running Mac OSX 10.5, because I don't feel the need to buy a new laptop every 2 years.
    You have written a very long story, and I admit I have skipped most of it.  But I think the question is you are on iOS 7, and cannot get the latest version of iTunes (11.1.5) on your computer because your OS X is too old.
    The fact that you chose not to update your hardware does not mean you could not update your software!
    OS X 10.5 is very old (about four years).  iTunes 11.1.5 (current version) requires at least OS X  10.6.8 to run.  Very likely, you could upgrade your computer's software to at least OS X 10.6.8 and then download the current iTunes on it.
    You would start here:
    http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard
    Then you would update the OS X 10.6 to OS X 10.6.8 over the air, then download iTunes (or update to a later OS X, as the current version is 10.9.2).

Maybe you are looking for