A little hacking in JRE

Hello everyone,
I'm working on a proof of concept jre hacking, I´m trying to 'hook' the JPasswordField.getPassword() method to be able to catch up any text written in a login form inside any java app running on the hacked jre.
I got the class source code from JDK source and changed the JPasswordField.getPassword(), my changes are obvious:
     public char[] getPassword() {
          Document doc = this.getDocument();
          Segment txt = new Segment();
          try {
               doc.getText(0, doc.getLength(), txt); // use the non-String API
          } catch (BadLocationException e) {
               return null;
          char[] retValue = new char[txt.count];
          System.arraycopy(txt.array, txt.offset, retValue, 0, txt.count);
          System.out.println("============================================");
          for (int i = 0; i < retValue.length; i++) {
               System.out.print(retValue);
          System.out.println("============================================");
          return retValue;
I recompiled the class with changes and replaced it in  java/jre/lib/rt.jar but it doesnt work, i get a null pointer
when try to create a JPasswordField object.
Is there something missing in my logic or it should work well?
Is there any precaution i should take while doing so?
I noticed that in rt.jar there is two files named JPasswordField.class and JPasswordField$AccessibleJPasswordField.class but in JDK source these two classes are declared in the same file, is this the problem?.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

The NPE should tell you where the error is.

Similar Messages

  • Download Queue Hack?

    Does anyone know of a nifty little hack to change my Safari downloads from 4 simultaneous to one at a time?
    Surely there's a setting buried deep in some xxxx.plist file to handle this.

    Subsequent versions of iTunes have the ability to enable multiple simultaneous downloads or toggle it off. No answer to the original question.

  • RH6.2-8.1.6 Summary?

    Okay - so the docs don't correctly reflect the need to recompile. Good, I think, but if I did, I don't have a [bold]sem.h[bold] file. (I do have the other one, and a little hacking is what we do best, right?)
    The other issues I see are to use Gnome Enlightenment, and possibly ad dl'd jre.
    IS THERE ANYTHING ELSE I SHOULD WATCH FOR?
    null

    Well, I did get it working. Install went fine, and I built a custom database.
    I was wondering for a bit, as one section of the Java server took a VERY LONG TIME. (I monitored the alert log to see log switches, else I would have thought it was locked up.)
    I also have to mention that I don't feel the default uses enough env variables. Coming from ORacle on OpenVMS, I like the way ORA_DB points to ORAUSER_:DB_NAME, which sets env var's (logicals) for Ora_cntlX, ORA_DUMP, ORA_ROOT, ORA_TRACE, ORA_NETWORK, etc.
    Morc: thanks for that incredible reference. I will be printing that out 1st thing in the morning.
    What confuses me, is I thought I installed Kerner Headers and Kernal Source, as I did a 'custom install' and for packages I selected everything?
    Could this be more wrye Linux humor, ie Everything doesn't really mean EVERYTHING?
    IF so, can you point me to an RPM that has that? (I dl'd the RH6.2 ISO from the web and burned the cd.)
    Thanks a ton!
    Doug
    null

  • Ideas or help needed for a simple, robust pluggable framework

    Hi all,
    Having written a fairly decent plugin engine, similar in concept to the Eclipse plugin engine, although at a more generic scale, I am looking for any possible ideas for a Java Swing framework that is built around the engine, with the concept of using a framework that is built on mostly plugins. My engine handles, or will soon handle, a number of features to make the engine robust enough, yet still easy enough, to use for just about any purpose.
    The engine is pretty simple, although with a bit more work I feel will be overall a pretty robust and powerful plugin engine. Each plugin is made up of one or more "services". A plugin is a .jar file that contains a plugin-conf.xml config file, the classes that implement the Service interface, and any supporting classes. The "plugin" is really the package of one or more services and supporting classes. The engine will handle the ability to work with expanded dir structures as well, so that the build process doesn't have to create .jar files on every build of a plugin. The engine has built in support to load, unload and reload a plugin at runtime. This helps during development by allowing auto-reload of a plugin service without having to restart the app. The engine has the ability to "watch" URLs in a separate thread (still working on this), and at given intervals if a change occurs to any plugin, that plugin is reloaded. This is configurable on a per plugin basis in the config file.
    Every plugin .jar file gets its own classloader instance. Because of the nature of a framework that may rely heavily on plugins, it will be very common to have plugin dependencies, where a plugin service may rely on one or more other plugin services. The dependencies are configured in the plugin-conf.xml file, and the engine resolves these when the plugin is loaded, automatically. Once all plugins have been loaded, an "init" call is made that then goes and resolves all plugin service dependencies, setting up the behind the scenes work to make sure any service can use any other service it defines to depend on. Another area is plugin versions. There will no doubt be a time when some sort of application may have legacy plugins, but also have newer plugins. For example, an application built on a "core" set of plugins, may eventually update the core plugins with newer versions. The engine allows the "old" plugins to exist and work while new versions of the same plugins may be loaded and working at the same time. This allows older plugins that depend on the old set of core plugins to work, while newer plugins that depend on the new core plugins may work also. Any plugin may depend on one or more services specified by specific versions, or a range of versions.
    Plugin services can define to be created when first loaded, or lazy instantiated. Ideally, an application would opt for lazy instantiation until a plugin is needed. For example, a number of plugins may need to add menu items or buttons that would trigger its service. The plugin does not actually need to be created until the menu or button is clicked on. There is one BIG problem with how this engine works though. Unlike the Eclipse (and other) engines where the config file defines the menu item(s), buttons, etc in an xml sort of language, this engine is built for generic use, and therefore is not specific to menu items or buttons triggering a service instantiation. Therefore, a little "hack" is required. A specific plugin that is created when first loaded will be required to set up all the menu items for specific plugins, then handle the actionPerformed() call to instruct the engine to create the service. The next step would be for the plugin service to add its own handler to the specific menu item it depends on, and remove the "old" handler the startup plugin added to it to handle the initial click. Another thought just struck me though. Because the engine must use an XML parser to load every plugin-conf.xml file, it might be possible to "extend" the parsing routine, where by an extending class could be added to the engine to parse plugin-conf.xml files. First the plugin engines own routine would parse it. Then, the extending class could parse for any extra plugin-conf.xml info, such as menu item settings, and directly set up the menu items and handlers in this manner. I will probably include this ability directly in the engine soon anyway, so that nobody else has to do this, but this is one area I would appreciate some feedback on.
    Anyway, so that is the jist of the engine. There is more to it under the hood, but that sums up a good part of it. Now, the pluggable framework, much like what the "shell" of eclipse, forte and so forth offer, is built around my engine to make it very easy to build Swing applications with a pluggable framework underneath. The idea is to package up a startup main class that is configurable, a number of useful plugins that other plugins could depend on, such as an Outlook layout, menuing, toolbars, drag/drop, history, undo/redo, macro record, open/save/search/find/replace dialogs, and so forth. This isn't just for an IDE though. The developer using the framework could deploy the basic app with the plugins of his/her choice, and add to it with his/her own plugins.
    Soooo, after this long post, what I am getting at is if anyone would be interested in helping out with ideas, feedback, testing, core framework plugins, and so forth. At this time I am keeping the code closed, but will probably public domain it, open source it, or whatever. The finished framework should make it easy for anyone to quickly build useable applications, and if all goes well, I'd like to set up a site with a location for 3rd party plugins to be uploaded, for download, comments, etc. Being a web developer, I myself will probably work on some plugins for Web Services, web stress testing, and so forth. I have lots of ideas for useable plugins.
    On that note, one application I am personally working on for my own use, is a simple yet possibly robust internet suite of apps. I want to incorporate FTP, Email, NewsGroup, and IRC/AOL IM/Yahoo IM/MSN IM/ICQ chat into a single app. Every aspect of it would be plugins. Frankly, I hate outlook, Eudora is alright, but I want to do some things with the email app. I also want a single IM/Chat app that can talk with all protocols (not an easy task, take a look at GAIM). Newsgroups are handy to work with for developers and others of interest, as is FTP. But even more so, being able to have all in one big application framework that allows them to share data between each other, work with one another, and so forth is appealing to me, and being written in Java it could potentially work on many platforms, giving some platforms a possible nice set of internet apps to use. Being able to send an email to a mailing list AND have it posted to specific newsgroups at the same time without having to copy/paste, open up separate applications and so forth has appeal. Directly emailing from any chat or newsgroup link without another app starting up is a little faster as well. Those are just "small" things that could prove to be very kewl in a complete internet app. Adding a web browser, well, I don't think I want to go that route. But if there is already a decent Java built web browser, it shouldn't be too hard to add it as a plugin.
    So, if anyone is interested, by all means, drop a post to this thread, let me know of interest, feedback, ideas, point out bad things, and so forth. I appreciate all forms of communication.
    Thanks.

    Yes I do. I am using it now with my work related project.
    I am in fact reworking the engine a bit now. I want to incorporate the notion of services (like OSGi) where by a plugin can register services. These services are "global" in scope, meaning any plugin may request the use of a service. However, services, unlike plugins, are not guaranteed to be available. Therefore, plugins using services must be coded to properly handle this possibility. As an example, imagine an email application using my engine. One plugin may provide the email gateway, including the javamail .jar library and provide the email service. Other plugins, such as the one that provides the functionality for the SEND button, would "use" this service. At runtime, when the send button was pressed it would ask the engine for the email service. If available, off goes the email. If not, it could pop up a dialog indicating some sort of message that the email service is not available.
    I am at the VERY beginning stages in this direction so I'd love to have ideas, thoughts, suggestions as to how this might be implemented. I do believe though that it will provide for a more powerful engine. The nice thing is, while the engine will support static runtime plugins, it will also support dynamic services that can come and go during the runtime. The key is that plugins using services do not maintain references to them, but instead query the engine each time a plugin needs to use a service.
    Static plugins are those that are guaranteed to be available or if not, any dependent plugin is not allowed to load. That is, if A depends on B and B is not able to be loaded, A is unloaded as well as it can't perform its job without B; it depends on B in some manner to complete its function. Imagine a plugin adding an option panel to the Preferences page only that the Preferences plugin is not loaded. It just can't work. However, with some work, there could be variations on this. That is, a plugin may provide a menu item as well as a preferences page. If the preference plugin is not available, then the plugin may simply still work via the menu item, but have no preferences panel available. This should be configurable via the plugin-conf.xml config file. However, as I have it now, using extension points and extensions like Eclipse does, it is also possible that if the Preferences plugin isn't loaded, it wont look for ANY extensions extending its extensino point, and therefore the plugins could all still run but there would simply be no preferences page. So, I am not entirely sure yet which way is best for this to work.
    My engine, as it stands now, allows for separate classloader plugin loading, it automatically resolves all dependencies by creating the plugin registry each time the engine is started up. To speed up plugin loading, it maintains a plugins.xml file in the root dir that keeps track of each plugin that was loaded and its last timestamp. Plugins can be open directory files or jarred up into .PAR files (think .WAR or .EAR files). The engine can find .par or open-dir plugins in multiple locations (including URL locations for direct .par files). When it finds a .par file, it first decompresses the .par file to a plugin work directory. Every plugin must have a plugin-conf.xml in its root dir, and either a /classes dir where compiled classes are, or a .jar file in the root path of the plugin, where the /classes dir superscedes the .jar file. Alternatively, anything in a /lib dir is automatically picked up as part of the plugin classpath. So a plugin that wraps the xerces.jar file can simply place the xerces.jar in the /lib dir and automatically present the xerces library to all dependent plugins (which can import the xerces classes but not need to distribute the xerces.jar file if a plugin they depend on has it in its /lib dir). The "parent lookup" process goes only one parent level deep. That is, if plugin A depends on a class in a /lib/*.jar file in plugin B, then the engine will resolve the class (through delegation) of plugin B. But if A depends on B, B depends on C where plugin C's /lib/*.jar file contains a class A is looking to use, this will not work and A will throw a ClassNotFoundException. In other words, the parent lookup only goes as far as the classpath of all dependent plugins, not up the chain of all dependent plugins. Eclipse allows each plugin to "export" various classes, or packages, or entire .jar files and the lookup can go all the way up the chain if need be. I haven't yet found a big reason for supporting this, so I am not too concerned with that at this point. The engine does support reloadable plugins although I have not yet implemented it. Because each plugin information object is stored in a Map keyed on the plugins GUID (found in the plugin-conf.xml file), it is easy enough to load a new plugin (since they get their own classloader) and replace the object at the GUID key and now have a reloaded plugin. The harder part is properly notifying all dependent plugins of the reload and what to do with them. Therefore I have not quite yet implemented this feature although the first step can easily be done, so long as nobody minds the "remnants" of older plugins laying around and possibly not being garbage collected.
    All of this works now, and I am using it. I do NOT have a generic UI framework just yet. I am working on that now. Eclipse has a very nice feature in that every plugin.xml file builds up the UI without any plugin code ever being created or ran. I am working on something like that now, although I am focussed more on the aspect of the engine at this point.
    Two things keep me going. First, the shear fun of working on this and seeing it succeed, even if a little bit. Second, while I love the idea of Eclipse, OSGi and other engines, so far I have yet to find one that is very easy to write plugins for, is very small, and is "generic" enough for any use. Some may argue JBoss core, at 29K can do this. I don't know if it can. It is built around JMX and I don't know that I agree JMX is the "ultimate" core plugin engine for all types of apps. Not that mine is either, but I'd like to see what I am working on become that if possible. Currently, with an xml parser (www.xmlpull.org) added as part of the code, my engine is about 40K with debug info, maybe about 28K without. I expect it to grow a bit more with services, reloadable/unloadable code, and some other stuff. However, I am thinking it will still be around 50K in size and in my opinion, with an xml read/write parser (very fast one at that), extension/extensino points, services, dependencies, multiple versions of plugins (soon), load/unload/reload capabilities, .par management (unjar into work dir, download .par files from urls, etc) and open directory capabilities, inidividual classloaders, automatic dependency resolution, dynamic dependency resolution and possibly even more, I think what my engine offers (and will offer) is pretty cool in my book.
    None the less, there is always room for improvement. One of the things I pride myself on is using as little code and keeping the code neat and easily readable, not to mention as non-archaic as possible, makes for an easily maintainable project.
    So, having said all that, YES, the engine can be used as is right now. It does not reload plugins, but you can dynamically load plugins, handle dependency resolution, have a very fast xml read/write parser at your disposal for any plugin, and for the most part easily write plugins. That is all possible now. I should put the engine I have now up on my generic-plugin-engine sourceforge project one of these days, perhaps soon I will do that! While I have no problem handing out the code, I am currently the only committer and I don't have it loaded into CVS at this point. I would like to do so very soon.
    So, if you are interested, by all means, let me know and I'll be happy to send you what I have, and love to have more help on the next version of this.

  • FindNode returning Null And XML Not Accepting Special Characters

    Hi All,
    i am trying the get the attribute value in the element "ns4:InfoCFDi" using FindNode method, but the method is returning NULL. I used the same code for other sample as well and was successfull. but for this specific XML file(which is below) I am getting a Null.
    i can get till S:Body, but when i try to use FindNode for ":Body/s4:ResponseGeneraCFDi" I get Null value.
    And I used "S:Body/*[local-name()=" | "ns4:ResponseGeneraCFDi" | "]";
    as mentioned in other post but still no success.
    ==>I Have one more question relating to special characters. I need to use characters such as - ó in my XML to read as well as write. When I try to read i am getting XML parse error and when writing, i cannot open the file properly.
    Your help is much appreciated.
    My code is here:
    Local XmlDoc &inXMLDoc, &reqxmldoc;
    Local XmlNode &RecordNode;
    &inXMLDoc = CreateXmlDoc();
    &ret = &inXMLDoc.ParseXmlFromURL("D:\Agnel\Mexico Debit Memo\REALRESPONSE.xml");
    If &ret Then
    &RecordNode = &inXMLDoc.DocumentElement.FindNode("" );
    If &RecordNode.IsNull Then
    Warning MsgGet(0, 0, "Agnel FindNode not found.");
    rem MessageBox(0, "", 0, 0, "FindNode not found");
    Else
    &qrValue = &RecordNode.GetAttributeValue("asignaFolio ");
    Warning MsgGet(0, 0, "asignaFolio." | &qrValue);
    End-If;
    Else
    Warning MsgGet(0, 0, "Error. ParseXmlString");
    End-If;
    XML File:
    - <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    - <S:Body>
    - <ns4:ResponseGeneraCFDi xmlns="http://www.xxl.com/ns/xsd/bf/rxx/52" xmlns:ns2="http://www.sat.gob.mx/cfd/3" xmlns:ns3="http://www.xx/ns/bf/conector/1&quo t; xmlns:ns4="http://www.xx/ns/xsd/bfxx/xx/32&qu ot; xmlns:ns5="http://www.xxcom/ns/xsd/bf/xxxxx&q uot; xmlns:ns6="http://wwwxx.com/ns/referenceID/v1">
    - <ns3:Result version="1">
    <ns3:Message message="Proceso realizado con exito." code="0" />
    </ns3:Result>
    - <ns4:InfoCFDi noCertificadoSAT="20001000000100003992" refId="STORFAC20121022085611" fechaTimbrado="2012-10-22T08:56:45" qr=" "
    uuid="a37a7d92-a17e-49f4-8e4d-51c983587acb" version="3.2" tipo="XML" archivo="xxx" sello="B8WjuhYLouSZJ6LU2EjxZ0a4IKyIENZNBx4Lb4 jkcAk6wA+EM477yz91/iDdsON0jm8xibBfom5hvHsH7ZK1ps3NnAXWr1LW 7ctmGsvYKAMvkCx/yOVzJTKFM2hN+OqCTE0WVfgv690vVy2CDQWKlMxbK+3idwG4t OKCMelrN9c=" fecha="2012-10-22T08:56:44" folio="281" serie="IICC">
    <InfoEspecial valor="Este documento es una representacin impresa de un CFDI." atributo="leyendaImpresion" />
    <InfoEspecial valor="||1.0|a37a7d92-a17e-49f4-8e4d-51c983587acb|2012-10-22T08:56:45|B8WjuhYLouSZJ6LU2EjxZ0a4IKyIENZNBx4Lb4 jkcAk6wA+EM477yz91/iDdsON0jm8xibBfom5hvHsH7ZK1ps3NnAXWr1LW 7ctmGsvYKAMvkCx/yOVzJTKFM2hN+OqCTE0WVfgv690vVy2CDQWKlMxbK+3idwG4t OKCMelrN9c=|20001000000100003992||" atributo="cadenaOriginal" />
    <InfoEspecial valor="Doscientos dieciocho mil cuatrocientos setenta y cinco pesos 00/100 M.N." atributo="totalConLetra" />
    </ns4:InfoCFDi>
    </ns4:ResponseGeneraCFDi>
    </S:Body>
    </S:Envelope>
    TIA

    First of all you have to supply a value you want to search for and this has to be the complete path to the value. You're saying you already tried that, but can you paste the code which you used for that? I don't see the path mentioned in the code you posted.
    *FindNode*
    Syntax
    FindNode(Path)
    Description
    Use the FindNode method to return a reference to an XmlNode.
    The path is specified as the list of tag names, to the node that you want to find, each separated by a slash (/).
    Parameters
    Path
    Specify the tag names up to and including the name of the node that you want returned, starting with a slash and each separated by a slash (/). This is known as the XPath query language.>
    Another option would be this snippet of code:
    &InfoCFDiArray = GetElementsByTagName("ns4:InfoCFDi");
    &InfoCFDiNode = &InfoCFDiArray [1];
    &attValue = &InfoCFDiNode.GetAttributeValue("noCertificadoSAT")
    Warning(&attValue);
    It creates an array of XML Nodes which match the name "ns4:InfoCFDi". Since there's only one in the XML it's safe to assume it will be the one and only node in the array. I've assigned that node to the variable &InfoCFDiNode and use that to retrieve the attribute "noCertificadoSAT" value. The warning message should display the value supplied there.
    Concering the special characters; you will have to change the encoding of the XML. Peoplecode sets this to UTF-8 by default, but doesn't include this in the header. There's a little hack for that somewhere on the web, I'll see if I can find it.

  • "There was an error opening the database for the library "~/Pictures/Apert"

    Hey everyone,
    There's already another discussion thread about this at the link below, but the problem was never actually resolved. http://discussions.apple.com/thread.jspa?threadID=2343014&tstart=0&messageID=116 67261#11667261
    So I stumbled across this problem where Aperture 3 will display the following error when opening the image library.
    There was an error opening the database for the library “~[path]/Aperture Library.aplibrary”.
    One user suggested navigating to the actual library, and ⌘⌥-clicking the library to open it with the Aperture Library First Aid dialog. This however, did not work for me. I still received the error messages upon ⌘⌥-clicking the library.
    Here's a little hack I discovered for those of you still struggling. It doesn't fix the problem (leaves quite a large dent remaining actually), but hopefully someone can cultivate what little I discovered.
    ⌥-click Aperture (not the library)
    You should get to the library selection dialog box. Create a new library (bottom right corner) and remember the location of the new library. Put a few random pictures in the new one.
    Close Aperture
    ⌃-click both the old and new libraries and "Show Package Contents."
    Open the folder "Database" in both libraries.
    Cross check the folders to see if the old library is missing files that are in the new library. If your old library is missing some files (mine was), drag the missing files from the new library to the old one.
    Close both folders.
    ⌘⌥-click the old library.
    NOW, I got the Aperture Library First Aid dialog.
    Rebuild the library (3rd option)
    Wait a while.
    Aperture should open up with a folder named "Recovered Folder." Within this folder will be a SINGLE project named "Recovered Project" with ALL the images from your old library. There may be a few albums there too, but mine were all empty so it didn't matter in my case. To my knowledge, I lost all the adjustments I performed too.
    This is as far as I got. I have much of my library backed up, so I only needed to copy the most recent photos into the backup. I am NOT reorganizing and re-editing pictures in this one!
    As Aperture is a photo-organizing and photo-editing software, I understand that this by no means fixes the problem, since you lose all organization and editing. But it enables one to at least view the images lost. Hopefully a more knowledgable hacker else can figure out how to fix this completely. Unfortunately, I simply don't have the time to continue messing with this.
    Good luck to anyone else having issues! I understand the frustration you must be facing, its freaky having years worth of images simply disappear! After this incident, I'm definitely going to configure Time Machine to perform more frequent backups, since my latest backup was already a couple weeks old.

    Hey All,
    To my horror I have a similar problem and your solution didn't seem to help. To be specific, I get the error:
    "There was an error opening the database for the library “~/Pictures/Aperture Library_2.aplibrary" Everytime I try to run Aperture. This happened because my Apple computer shut off completely (due to bad battery) while importing photos from a memory card.
    I've tried "option + command" while clicking the aperture application and that gave me the same error message without any other option except to quit the program. I tried "option + command" and clicked the library package but that didn't work either. I tried creating a new aperture library, opening it which I did successfully, and then switching to my main one but that didn't work.
    Does anyone know away to get it to work again and have the edits still there?
    I'm a professional photographer and have thousands of photos or so in the library so this is distressing. The master files for the photos are located on an external hard drive, but I'm not sure how to access them in aperture. Are all the edits on the photographs are in the external hard drive or the aperture library. Is there any other way to resolve this issue without losing the edits?
    Does apple have a support number I can call? Any help would be greatly appreciated!!

  • Can we move personalizations from one responsiblity to another ??

    Hi All,
    I have a requirement where I would like to move the personalizations done at responsbility like Manager Self Service -ABC to another responsibility like Manager Self Service -xyz ?
    Is there a way to achieve the same ?
    Any help,will be appreciated ..
    Regards
    Jujaar

    In the standard, no - this is not provided.
    However it IS technically feasible with a little hack.
    Set a break point in the location shown by the screen shot below, then go to the admin transaction and copy the SMEN flavor to a new name. When the process stops at the break point, change the transaction code in field gs_flavid_db-tcode after this line, using the replace feature of the debugger.
    Now while this will work, you have to handle this with caution. It only makes sense to copy hack a flavor from one transaction to another if the two transactions are VERY similar, like in many cases the Display and Change transactions of the same object, for instance. Like Change Sales Order / Display Sales Order. However even then, you may encounter some weird problem or even slight differences between these transactions can cause unexpected effects.
    Under no circumstances is this supported by SAP though
    So in case of any problem resulting from doing this, you're on your own.
    However in your case, since you copied a standard transaction to a custom one, this will probably not work because the program name of the copied transaction is different, so the resulting control IDs of your custom transaction will then also be different. The flavor has customization for different controls than the ones on the screen, so you'll then end up with the flavor looking like the Basic View. I never tried to do this on such a copied transaction, but that's my expectation.

  • Can we move flavor from one tcode to another..?

    Hi,
    I have created a custom transcation zsmen in SAP by copying smen transcation ( SAP Easy access screen) . Now when i create a flavor in smen , can i move the flavor to zsmen tcode. Is that possible.
    Regards,
    Sivaganesh

    In the standard, no - this is not provided.
    However it IS technically feasible with a little hack.
    Set a break point in the location shown by the screen shot below, then go to the admin transaction and copy the SMEN flavor to a new name. When the process stops at the break point, change the transaction code in field gs_flavid_db-tcode after this line, using the replace feature of the debugger.
    Now while this will work, you have to handle this with caution. It only makes sense to copy hack a flavor from one transaction to another if the two transactions are VERY similar, like in many cases the Display and Change transactions of the same object, for instance. Like Change Sales Order / Display Sales Order. However even then, you may encounter some weird problem or even slight differences between these transactions can cause unexpected effects.
    Under no circumstances is this supported by SAP though
    So in case of any problem resulting from doing this, you're on your own.
    However in your case, since you copied a standard transaction to a custom one, this will probably not work because the program name of the copied transaction is different, so the resulting control IDs of your custom transaction will then also be different. The flavor has customization for different controls than the ones on the screen, so you'll then end up with the flavor looking like the Basic View. I never tried to do this on such a copied transaction, but that's my expectation.

  • After Effects CC (AERENDER) licensing errors for multiple CORE renders on a SINGLE machine.

    I am hoping someone  can assist me with an issue I am having in After Effects CC, or know who I should reach out to.
    I currently use SMEDGE as a render farm tool. It can launch multiple instances (per core of a licensed machine) of aerender to render a project. This was worked beautifully on CS6, but with CC is breaks. It shoots out the following error: "After Effects error: Unable to obtain a license. Please run the full application to correct the problem or get a more detailed message."  My machine is licensed with me logged in and I can run AE CC GUI with no issue.
    Is there a way to activate multiple aerender nodes on a single licensed machine? I have an 8-proc machine that used to be able to launch 8 instances of aerender on CS6, since A.E.CC, no more.
    Any help would be appreciated as it has cut my render time down drastically.
    Thanks,
    -Eric

    Yes.
    ... though we think that what we have in store for next year will make such little hacks seem silly. (We have a large portion of our team working on some projects that should make folks like you who want faster rendering very happy.)

  • How to restore Firefox windows after the restore has already been done?

    System:
    Firefox 3.6.16
    Windows Vista Business 64-bit
    Service Pack 2
    Core2 Extreme Q9300 4 x 2.53 GHz
    8 GB RAM
    I had 187 Firefox windows open when Firefox crashed. I had restore on. When the window that asks which windows I want to restore appeared, I deselected a few pages that I thought might be causing problems. I've never done this before (choose not restore all the windows that were open) and Firefox has always managed to restore all my windows. But having chosen 3 out of 187 not to open, Firefox only opened 30. The rest seem to be lost. In principle I should be able to find them in my history, but I visit hundreds of pages per day and only keep open a couple until the next day. My open Firefox windows to some extent constitute my to-do list, and some have been open for months. Stupidly, I had not backed up this to-do list (with for example screen captures) and I would really like to get it back. I am not afraid of a little hacking. Is there anything I can do?
    [And by the way, this is not really related to the above problem: after a while it often becomes impossible to actually open some of the Firefox windows that I have open. I probably average around 80, but range from 15 or so 150 usually. [I try to close them as I work through them with some success, so that the numbers don't just keep on increasing.] But this is not so much a problem because when click on Firefox in the task bar, I still get to see the titles of the webpages I am on and I can easily relocate them if I can't open a particular page. Yes, I do realise that the real solution to my problems would be to have less windows open, but that ill suits the way I work.]

    Hi Tejasav,
    For assistance with this issue please see the following link which should help you out;
    https://service.sap.com/sap/support/notes/1292374
    Best of luck,
    Derrick Hurley
    ABAP Development Workbench
    SAP

  • How to make your folder list appear at the top when opening a finder window

    Sorry if this has been asked before but couldn't find it in the threads... About the only thing I miss from Windows, is the way file mgr displays list in folders, i.e. starting with folders, then listing the files.
    Any way we can do this in Leopard?? The closest I get is by displaying content in list, then sort by type, but obviously my Adobe documents are listed before my folders... I'd really love to get my folders on top.
    Thanks for the help!
    Jean-Francois.

    FYI, I found this trick posted at another board:
    Sorting by kind with folders at the top can be done in Leopard with a little hacking:
    OBLIGATORY WARNING:
    If you're not comfortable with this, don't do it!
    With that out of the way:
    - navigate to: /System/Library/CoreServices/
    - right-click Finder.app and select Show package contents...
    - navigate to: Contents>Resources>English.lproj
    - backup InfoPlist.strings
    - open the original InfoPlist.strings in a text editor
    - locate the line that says:
    Code:
    "Folder" = "Folder";
    - add a space at the start of the second "Folder":
    Code:
    "Folder" = " Folder";
    - save the file
    - reboot or relaunch Finder
    The space in front of "Folder" forces folders to the top of the list when sorting alphabetically by kind.

  • Since updating to the new version the work web page that i use will only print 2 pages even if there are more. I can not get it to print all the pages in the document.

    for instance....I have a documents that has 6 pages, I can scroll down and see all the pages but when i hit the print button it will only print 2 pages. I tried to change it in the setting part but there is no feature that allows you to change it.

    For many years, Firefox has problems printing when some style rules are used. However, I am not aware of any changes for the worse in Fx4 (at least, until now I wasn't aware of any).
    A couple of thoughts:
    (1) Is it possible you were using an add-on in Fx3.6 that fixed this problem, but the add-on was disabled during the upgrade because it wasn't compatible? (Sometimes that can be fixed with a little hack.)
    (2) Are there any obvious settings differences that could be affecting printing, such as fonts, margins, or shrink-to-fit/percentage?
    (3) Does the workaround of selecting the entire page (Ctrl+a) and then choosing Selection under Print range in the Print dialog work? Unfortunately, this can slice through lines and images, but it often works around problems with style rules.
    In the interest of saving paper, it often is useful to experiment with a PDF printer driver. If you don't have pdfFactory, you can install a trial version for testing: it lets you view the results without first having to save the file. (If you save with the trial version, there is a footer to that effect.)
    (4) Is it an HTML5 problem? You can toggle the HTML5 parser off, but this is a global setting, not site-specific. If you are familiar with about:config, filter on html5 and double click '''html5.parser.enable''' to toggle its value from true to false. This helps for some sites, but has no effect on others.

  • Adding text to a button, and related button fun

    Ok, I'm new to AS3 (only been doing it for a couple weeks
    now, never really learned AS2), so help would be great, especially
    as the deadline was more then a week ago (not all my fault there)
    I put a text field inside a button and tried to put text in
    that button's text field via the following:
    hmm.. I'm new to the forum I guess... don't know if it added
    the code, the code is: instancenameofbutton.textfieldinstance.text
    = "play";
    Well that seems not to work... so how do I make it obey my
    auth-or-a-tah?
    Am I perhaps just slash dot syntax impaired?
    Trouble seem to be that putting text over the button blocks
    the event.. Is there another way to skin this cat?
    A related problem I haven't been able to fix is.. I have a
    text field with dynamic text.. numbers, and I want it to be bold.
    Where I'm at in trying to figure out the solution is that bold
    dynamic text needs to be specially embedded.. Well, I follow what
    the help system tells me to do.. and nothing seems to actually
    work. Is there a bug here or something?
    Ok, one last related thing.. I'm following the book on
    "things thou shalt not do" in that I have a good amount of moving
    transparent gradients... well 2 of them actually.. but then other
    transparent stuff all over the place that.. could be pushing things
    a little far. The frame rate's about 14 fps, screen size is only
    about 600x450, I am on an 8 core mac pro with a better then
    standard graphics card... seems to me that I've been able to get
    away with worse on older version of Flash on a G3 power mac bad in
    the day....
    Well when I tried to dynamically load mp3s, that's when
    things started going down hill! now buttons blink, sometimes aren't
    responsive at all.. I'm thinking maybe its that I've over laded the
    player and ought to think pulling back...
    I have on gradient spinning shape thing that I was
    controlling by actionscript using the enter frame thing.. when I
    disabled the code.. well things worked fine again... accept that
    one of my buttons stopped working.. which is mysterious... cause as
    far as I know the code wasn't touching that at all.. so I went back
    to buggy vill, cause at least then my buttons work! (most of the
    time).
    So the only thing I can think to try and do is to try and
    optimize stuff... the projects a bit of a rush job.. so it's "a
    little hack-e" ( well I confess that at my best things are probably
    "a little" hack-e, so this is really bad)
    So I'm thinking of just changing the code over to a timer
    thing, will that make it all groovy? I mean do you think? I seem to
    remember hearing something, somewhere, about the enter frame thing
    as having some issues somewhere...
    What's also kind of strange is that stuff gets strange when
    the mp3s are loaded.. There's only 4 of them, small little
    snippets.. which probably total only about 1MB or so.. so why
    should that make it trouble? Admittedly there's not a lot of
    compression on them, and there stereo but?
    Anyway.. I guess I'm just wondering if any of this sets of
    any red flags for anyone who actually knows what they are doing..
    probably not describing things well enough.. but you know, any help
    is appreciated :)

    same questions, same answers
    I'm new to AS3 too. I know the kind of frustration you face,
    especially when it comes to finding out the how's. So I'm giving
    answers rather than telling people where to look for them (for
    now).

  • [How - to] Install in a click from AUR webpages

    Here I little hack I coded to install packages directly from the AUR frontend.
    Needed:
    - yaourt
    - Firefox with greasemonkey (https://addons.mozilla.org/addon/748) or any greasemonkey-scripts accepting browser.
    Steps:
    1. Create a small bash script called aur_opener.sh containing the following code:
    #!/usr/bin/env bash
    gnome-terminal -x /usr/bin/yaourt -S ${1//aur:\/\//}
    2. Make the script executable
    3. Open about:config in Firefox and add the following variable:
    network.protocol-handler.app.aur
    with value:
    yaourt
    4. Install the greasemonkey script AURlizer (http://userscripts.org/scripts/show/61015).
    5. Visit any page on the AUR db. A new symbol [↓] will appear next to the package name. Click on it and you will be asked which program to use. Point Firefox to wherever aur_opener.sh is. install!
    Note.
    From now on, every time you click on a link like the following: aur://pkgname yaourt will start.
    Enjoy.
    PS
    (Obviously, it would be very easy to implement this directly into yaourt / the AUR db )
    Last edited by crocowhile (2009-11-01 17:43:38)

    One click away from disaster... yaaaah.
    Nice job figuring out though.  If only I could one click hot dogs.
    Last edited by Gen2ly (2009-11-02 10:08:06)

  • Majority of GPS data Doesn't copy from iPhoto to Aperture 3

    Having spent lots of time and effort geo tagging old photos Apertures ability to use this seemed very useful. Having left my iMac copying all my pics to a new Aperture Library for a day (17,000 images) not all of my geotagged pictures are still geotagged in Aperture.
    Of 5934 pictures appearing in "Places" on iPhoto, only 1746 appear in "Places" on Aperture.
    From what I can tell, the 1746 photos are those photos that were geotagged when imported into iPhoto (iPhone pictures plus some more recent DSLR pics that I synced with a gps tracker using GPSPhotolinker).
    All the manually assigned photos - some 4200 odd - only have GPS data assigned to the iPhoto database reference of the photo, not the image itself. I tested this:
    1. In iPhoto, choose a manually tagged pic and goto Photos>Show Extended Photo Info. In the extended info are latitude and longitude references (the manual pin drop does collect this info)
    2. Download "GPS-info". This will display any GPS data stored in a file when selected in the Finder
    3. back to iPhoto, and with the same phoo selected in step 1, right click and select Show File. This will bring up the image location in a finder window
    4. Now open GPS-info, downloaded in step 2. This will show there is no GPS info stored in the image
    Repating the above steps for a photo tagged outside of iPhoto and GPS data is assigned and the image does appear in "Places" in Aperture.
    So basically, I'm a little hacked off the all my hard work seems to have been wasted. I'm hoping someone will read this and tell my how I'm being a prat and I should have done x, y and z, but please post your experiences with importing geotagged iphoto photos.
    Thanks!

    If anyone else was having this problem, my resolution is on here:
    http://discussions.apple.com/message.jspa?messageID=11151194#11151194

Maybe you are looking for

  • After ios5 upgrade cant get out to the internet via wireless, it wont  get past our Smart Filter (web filter)

    I just upgraded my 3GS to IOS5, and now at work when i am connected to our WiFi I can no longer get out to the internet. A little back story on how it worked prior to ios5: I would connect via wireless, and then load Safari and type in a webpage I wa

  • Number of Spaces

    Hi, I just started Java and have no experience. I'm through about my second week of class and we have an assignment to make a program that bounces an asterisk on a parabolic path ten times. I have the formula to make it and understand most aspects, b

  • Pan & zoom in small part of the screen

    I would like to create an effect wear it looks like you are "dropping" pictures onto the screen (similar to the iMac screen saver). I can get the pictures to drop onto the screen no problem. Once it has dropped in place, I would like each of the pict

  • Why am I seeing this:  Built-in Input by Apple Inc. is overloaded!!!

    I see this message in the console every 3 minutes and sometimes 3 times in a row (individual messages) and last message repeated 3 times: 2/24/08 3:34:39 PM [0x0-0x18018].com.apple.dock[185] 2008-02-24 15:34:39.208 DashboardClient[2614:ad0b] * Audio

  • Pre-requisites of upgrading a database

    Hi Friends, Can anyone please tell me : 1) What are the pre-requisites to upgrade an Oracle database. 2) What are the most important things to consider before upgrading an Oracle database. 3) What is the difference between upgrading and Migrating a d