Transformerfactory changing InputStream target

Here is the calling code:
sheet = "xslt/out/out.xsl";
// following line goes just fine
InputStream in = customFactory.getClass().getResourceAsStream(sheet);
// no problem here
StreamSource s = new StreamSource(in);
// throws exception
Transformer trans = factory.newTransformer(s);  the out.xsl contains:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheetversion="1.0"xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
// it can`t find this
<xsl:import href="out_util.xsl"/> 
<xsl:output method="xml" indent="yes" encoding="ISO-8859-1"/>
<xsl:template match="/">
...all the stylesheets are in the same folder ( /out/) and the import tag`s href points to the same directory ( I guess? )
True path for the out.xsl AND out_util.xsl is c:\projects\transformer\edu\xml\transform\xslt\out\
The Exception says:
java.io.FileNotFoundException: C:\projects\transformer\out_util.xsl (The system cannot find the file specified)So it cuts a part of the path away!
How to fix the paths?! Is it that the TransformerFactory somehow does not know the location of the out_util.xsl despite it finds the out.xsl??
Regards,
Steve

I just noticed that the
java.io.FileNotFoundException: C:\projects\transformer\out_util.xsl (The system cannot find the file specified)wrong path depends on the directory you are calling the main program...confused...

Similar Messages

  • Need to change the targeting group of a Rule or monitor after a alert is created.

    Hi All,
    I have created many alerts and they are working fine. Currently due to business requirement we have installed Windows server 2012 operating systems in our production environment. But we have targeted the
    "Windows server 2008 r2 full operation system" group as per the below screen shot. As we now have to import the management pack for Windows server 2012 as well.
    What we have planned is to change the targeting group from "Windows server 2008 r2 full operation system"
    to "Windows server operating system group" so the alert / monitor or rule will target all windows server which has been discovered in SCOM rather that only the servers running Windows server 2008 r2.
    I was also not able to set overrides for this as that server was not coming under Windows server 2008 r2 full operation system as it was a Windows server 2012 agent.
    I can also go ahead and create new alerts but i have created custom of 1000 alerts and i cannot go ahead and re create them.
    Is there any way to change them. If yes Can i do a bulk change via powershell ?
    Below is the screenshot of what i really want. Can any on e please help.
    Gautam.75801

    You can't really change the target class of a monitor in a sealed vendor pack. If this is your own custom pack, then you can change the target class no problem, but this would need to be done on the unsealed XML (using VSAE or some other authoring tool).
    Then you can seal the pack and re-import (should be upgrade compatible, since you are just changing the target).
    I'm not familiar with this particular monitor in your screenshot, but it looks like this should probably target Exchange? If this is the case, then I would recommend targeting the closest typed class that the monitor should run against. In this case, some
    type of Exchange class that is already in the Exchange management pack.
    Otherwise, you can also create your own custom class for targeting, which I describe in detail on my blog.
    Here are all my sample VSAE fragments.
    Here is an example of
    using the Application Component base for your new class.
    Here is an example of
    using Local Application base for your new class.
    Jonathan Almquist | SCOMskills, LLC (http://scomskills.com)

  • Problem when changing the target quantity for a contract

    Hello,
    I have a problem when i try to change the target quantity for a contract through the BAPI 'BAPI_CONTRACT_CHANGE'.
    I filled the tables 'item' and 'itemx' with new values. the BAPI 'BAPI_CONTRACT_CHANGE' returns no error, but after using the BAPI 'BAPI_TRANSACTION_COMMIT' I get an info message from SAP and the modification does not pass.
    In debugger I could locate the error. In fact, the appeal of FM 'ME_UPDATE_DOCUMENT is done with a table XEKKN with the new values of the quantity and a KZ code equal to ' I ' to insert, then it must have the value ' U 'for update .
    Is someone can help me to solve this problem?
    Thank you in advance.

    Have you tried selecting the page, and then changing the theme directly on that page?

  • Changing default target namespace for a JPD

    Hi,
    Is there a way in Workshop 8.1 to change the target namespace used when a WSDL
    is generated from a JPD? Currently, Workshop uses http://www.openuri.org. I
    have tried to use the @common:target-namespace annotation in my JPD, but that
    appears to only be valid for JWS files. Is there a way to globally set the default
    target namespace for an entire Workshop project?
    Thanks,
    Nick

    And to just make it more clear :
    and here is the SAP help on the subject:
    Transport Layer in ABAP Workbench
    The Change and Transport System supports the distribution of development work on large projects across multiple SAP Systems.
    The packages in each development system are grouped into one transport layer.
    The transport layer determines whether objects are assigned to a local or transportable change request.
    Use
    Each of your SAP development systems is assigned a transport layer as its standard transport layer. If you use Extended Transport Control, you can assign different standard transport layers to certain clients.
    You can define at the most one consolidation target for each SAP System and transport layer.
    When you create a package, it is assigned the standard transport layer of the SAP System.
    If you want to assign a different transport layer to a package, you require the administration authorization for the Change and Transport System.
    The objects in a package automatically have the transport attributes defined for the corresponding transport layer.
    If a consolidation route originating in their SAP System is defined, then the objects are assigned to a transportable request, and transported into the consolidation target when it is released.
    If a consolidation route is not defined, the objects are assigned to a local request, and are not transported.
    Customizing settings are not assigned to a package. They have the transport attributes of the standard transport layer of the system or client.
    It is best to assign a package a standard transport layer for which a consolidation route originating in the development system is defined.
    To display and maintain the transport layers and routes, use the Transport Management System (transaction STMS).
    Only the system adminstrator can make changes.
    Caution:
    The tables TSYST, DEVL, TWSYS, TASYS are no longer productive as of Release 4.0A and cannot be maintained.
    Best regards,
    Menelaos

  • [FlashPro CC & AIR] Icons are reset each time I change the target Air Platform

    Hi guys,
    I have an annoying bug with my Flash CC : I'm building an Air app and each time I change the target platform (either Android or iOS or Windows) the <icon> tag is cleaned... so I have to set all the icons files again. Each and every time. All the icons.
    Is it a known bug ? Is there a fix ? Is it a feature ? I tried to uninstall and clean all the cache, it does nothing. I have Flash CC on my work computer and on my laptop and the problem is on both computers...
    I have the latest version of Flash CC and it's not linked to an Air version.
    Thanks in advance for your help !

  • Changing the Target data store dynamically

    Hi,
    I have a requirement to load same kind of data into 12 different target tables. Client maintains data in period vise, i.e. Jan data in a table TABLE_01, Feb data in TABLE_02, Dec data in TABLE_12 etc. The structures of all these tables are same.
    My program will process only one period’s data at a time and processed data will be loaded into a table TABLE_SRC. After this, according to the processing period, I need to post the data into the target tables TABLE_01, TABLE_02 etc. i.e. if the data is for period Jan then to TABLE_01, data is for period Feb then to TABLE_02 and so on.
    For accomplishing the same, I need to create 12 different interfaces. So is there any way to accomplish the same using a single interface by changing the target data store dynamically? I am looking for a solution other that creating procedures.
    Any Help is appreciated.
    Thanks in advance.
    DJ

    Yes, it is possible....
    1) at the target datastore use a variable at resource
    2) create a query that returns all target tables in a source tab (procedure step)
    3) at target tab, call the interface scenario send the query result as parameter.
    That will allow you execute the same interface for disitnct targets.
    Does it help you?

  • Powershell Script to change the target destination on a shortcut file.

    Hi All,
    I am in a middle of a new file server implementation and have come across a problem where the items on the old file server has been archived and moved to another server and in place a shortcut is left at the original location. The current target of those
    shortcut is going to be changed and thus I need to change the Target destination on those various shortcuts files. I am new to powershell and will really appreciate if someone can assist me with a powershell script for the below steps:
    To find all shortcut files (Excel, word, powerpoint and other types) whose current target destination is \\abcserver\z\abcpath
    Change the Target destination to \\xyzserver\z\abcpath on the shortcut file and apply the change.
    Effectively only change shortcut files whose current target begins with "\\abcserver\" and change to "\\xyzserver\"
    Search for the next shortcut and continue changing it.
    Hope the above makes sense and appreciate the assistance.
    Thanks!

    Did you look?
    https://www.google.com/?gws_rd=ssl#newwindow=1&q=powershell+change+shortcut+path
    ¯\_(ツ)_/¯

  • FDMEE - Change registered target HFM application

    Hello Experts,
    In FDMEE (11.1.2.3.100) is it feasible to change the target application once registered as target within FDMEE.
    Eg. If I have identical HFM applications HFMAPP1 and HFMAPP2 (for testing different approaches), and HFMAPP1 is registered in FDMEE as target and there are ~20 locations and 25 rules associated with all the mappings in place. Load into HFMAPP1 from FDMEE is smooth. Is it possible to load the same data into HFMAPP2 by changing some property or name within FDMEE. Believe this was possible in earlier versions of FDM by changing the integration settings.
    Thanks,
    Venki.

    Hi,
    you can change the Target Application within the location configuration.
    Bear in mind that you will have to create an Import format for HFMAPP2 and assign it to the location as well.
    Hope that helps
    Blog: akafdmee.blogspot.com
    Twitter: @akafdmee

  • CommandLink and commandButtonand changing form target

    We're observing some odd behaviour when using a <h:commandLink ...> in a form which also has normal Submit actions.
    If our commandLink has a target="_blank" (for contextual help) this link works and brings up in a new window. But after that, all form submits using commandButton come up in a new window too.
    <h:commandLink action="#{bean.help}" value="Help" target="_blank" />
    <h:commandButton action="#{bean.submit}" value="Submit" />Click Submit after clicking Help and it also brings up a new window, when it should have submitted to the same window.
    The javascript that runs on commandLink set the target of the form to _blank until the page is re-rendered.
    So then we modified the commandButton's behaviour with this hack:
    <h:commandLink action="#{bean.help}" value="Help" taget="_blank"/>
    <h:commandButton action="#{bean.submit}" onclick="this.form.target='_self'" value="Submit" />Which was working until we tried it on Safari. In Safari, click Help and up comes a new window, then click Submit and it stays in the same window but runs the action #{bean.help}
    Anybody come across this?
    Many thanks,
    Andy.

    In this particular case the help page changes depending on whether we're creating or editing the application. I'll hard-code both urls in there as you suggest and render the correct one accordingly.
    As a correction to Safari's behaviour, in both 1.2_03 and 1.2_04 it is actually invoking the correct action, but when that action returns null to indicate staying on the same page that's when it gets 'hijacked' by the previous commandLink's view.
    I'll get some proper test cases and file a bug in both cases.
    Thanks!

  • Changing source/target structure without recreating mapping

    Hi Experts,
    There is a requirement where we need to add one field in target structure of an interface. Based on my limited knowledge, I know that if source or target structures are changed then the entire mapping has to be recreated from scrach. Is my understanding correct? If not, how do I go about this change?
    Thanks,
    Dhawal

    In any version of XI/ PI you can insert the new fields/ nodes at the end of the parent segment....if done in this manner then the mapping wont be lost:
    Old:
    <SRC>
    <Name>
    <First>
    </Name>
    </SRC>
    New
    <SRC>
    <Name>
    <First>
    <Last>
    </Name>
    </SRC>
    In this case the mapping wont be lost....however if you add a new node somewhere in middle or at the top of the existsing nodes then mapping will be lost:
    <SRC>
    <Name>
    <Last>
    <First>
    </Name>
    </SRC>
    In short the sequencce of apperance of nodes should not change
    Regards,
    Abhishek.

  • Changing default Target Group when creating transports.

    Hi All,
    We have 4 different target groups for the transports created in development systems. I would like to make one transport group default which is mainly used by majority of consultants.
    How to make one transport group default during creation of transport.
    Regards,
    Krishna

    And to just make it more clear :
    and here is the SAP help on the subject:
    Transport Layer in ABAP Workbench
    The Change and Transport System supports the distribution of development work on large projects across multiple SAP Systems.
    The packages in each development system are grouped into one transport layer.
    The transport layer determines whether objects are assigned to a local or transportable change request.
    Use
    Each of your SAP development systems is assigned a transport layer as its standard transport layer. If you use Extended Transport Control, you can assign different standard transport layers to certain clients.
    You can define at the most one consolidation target for each SAP System and transport layer.
    When you create a package, it is assigned the standard transport layer of the SAP System.
    If you want to assign a different transport layer to a package, you require the administration authorization for the Change and Transport System.
    The objects in a package automatically have the transport attributes defined for the corresponding transport layer.
    If a consolidation route originating in their SAP System is defined, then the objects are assigned to a transportable request, and transported into the consolidation target when it is released.
    If a consolidation route is not defined, the objects are assigned to a local request, and are not transported.
    Customizing settings are not assigned to a package. They have the transport attributes of the standard transport layer of the system or client.
    It is best to assign a package a standard transport layer for which a consolidation route originating in the development system is defined.
    To display and maintain the transport layers and routes, use the Transport Management System (transaction STMS).
    Only the system adminstrator can make changes.
    Caution:
    The tables TSYST, DEVL, TWSYS, TASYS are no longer productive as of Release 4.0A and cannot be maintained.
    Best regards,
    Menelaos

  • Changing FPGA target types after Obselescence

    Hi. Can anyone advise of a clean way to migrate or copy / paste my CLIP modules between FPGA targets, please? I've about 30 test rigs, each testig a different product. Each contains a PXI-7833R card. We had one fall over recently and I learned that the card is now obsolete. The PXI-7842R is touted as a drop-in replacement. I'm finding the software support for migrating in the project to the new FPGA somewhat cumbersome. I had hoped I could simply change the device type in FPGA target properties, but it appears that I can't change the FPGA target type; apparently the target device can only be set when the target is first created in the project. Normally, this wouldn't be a problem, since the contents of the old (7833) target can be copied and pasted into the new (7842) target within the project. However, my FPGAs are now using VHDL components and the CLIP properties cannot be copied / pasted: they need to be added and configured manually, which is quite labourious. Each of my pijects might have 10 CLIP modules to manually configure and I'm dreading it, but in order to minimise test rig downtime in the event of a failure, I wish to build each of these projects for the new PXI-7842R target hardware in advance of requiring it. Anything the community can suggest would be a help. Thanks.

    It probably would have been a good idea to hit "Preview" before posting. This is a re-post, but much more pleasing to the eyes!!
    Can anyone advise of a clean way to migrate or copy / paste my CLIP modules between FPGA targets, please?
    I've about 30 test rigs, each testing a different product. Each contains a PXI-7833R card. We had one fall over recently and I learned that the card is now obsolete. The PXI-7842R is touted as a drop-in replacement. I'm finding the software support for migrating in the project to the new FPGA somewhat cumbersome.
    I had hoped I could simply change the device type in FPGA target properties, but it appears that I can't change the FPGA target type; apparently the target device can only be set when the target is first created in the project. Normally, this wouldn't be a problem, since the contents of the old (7833) target can be copied and pasted into the new (7842) target within the project. However, my FPGAs are now using VHDL components and the CLIP properties cannot be copied / pasted: they need to be added and configured manually, which is quite labourious.
    Each of my projects might have 10 CLIP modules to manually configure and I'm dreading it, but in order to minimise test rig downtime in the event of a failure, I wish to build each of these projects for the new PXI-7842R target hardware in advance of requiring it.
    Anything the community can suggest would be a help.
    Thanks.

  • Change output target

    How can I change the output SWF target for Run, Debug and Profile? I want to have different run configurations for each that output different SWFs?

    Create different launch configurations by revelaing the run configurations menu from the debug button and hitting + for Web Application.
    In the newly created launch configuration, uncheck "Use default" and type in your own SWF path.
    Note that the compiler will still only generate one output SWF (that comes from the Build path property page). You'll have to manually copy the right swfs to the path you point in the launch config.
    -Anirudh

  • 12c change host target name / ip address without reinstalling agent

    Is there a way, to change the configuration?
    Details: Host target was added manually, agent was deployed successfully, the host name is an IP address, dns is not working here.
    Now the IP address was changed, I can not add a new host using the new address, because em says the agent base directory is not empty...
    I just want to add a new host without removing the previous agent installation.
    Or even simpler, change the configuration of the existing host (that is name displayed in EM and host IP address).
    I am somewhat confused, it seems to be not possible, or I cannot see it after searching quite some time through the different menus and the documentation.
    Any hint, please?
    Edited by: Gerrit Haase on 22.03.2012 12:27

    We have tested steps to re-point an existing agent to a new OMS without requiring re-push of the agent binaries. The same steps should work for what you are trying at achieve, although note you will have to remove the original targets, so target history will be lost. The only piece this avoids is re-push of the agent binaries. The steps are:
    1. Shut down the running 12c agent with the below command:
    $AGENT_INSTANCE_HOME/bin/emctl stop agent
    2. Remove the agent instance home:
    rm -rf $AGENT_INSTANCE_HOME
    3. Manually remove the targets monitored by the agent in the EM console.
    4. Create a new instance home pointing to the new oms:
    $AGENT_BASE_DIR/core/12.1.0.1.0/sysman/install/agentDeploy.sh
    AGENT_BASE_DIR=<location of the agent base dir> OMS_HOST=<oms hostname>
    EM_UPLOAD_PORT=<http/https upload port>
    @ AGENT_REGISTRATION_PASSWORD=<registration password>
    AGENT_INSTANCE_HOME=<absolute path where the instance home has to be created>
    -configOnly
    We will get these steps added to the official documentation. Let us know if you run into difficulties.
    Thanks, Mark.

  • Change plugin target from CS 5.5 to CS 5.0

    Hi all,
    I would like to ask, what steps I should proceed to support both versions of InDesign cs 5.0 and 5.5?
    Iam using cs 5.5 SDKs on mac os, should I add something in resource files?
    Thanks in advice

    Yes you will have to create a set of release and debug XCConfig files for you new target. Basically the other XCConfig contains the settings pertaining to the project as a whole and the project file should be based on it. After that the settings specific to a debug or release builds are placed in the other config files based on which we create our targets.
    Now as regards to the path to the sdk, what i do is i give all the path the say Header search path etc relative to the Adobe SDK using a macro so all i need to just change the value of this macro and i am all set to create a new target for myself.
    I hope i have made myself more clear in this post.
    If you find this post useful then pls mark it as helpful or correct so that others could also benefit from it. I have observed that a lot of problems arise due to poor project setting which wastes time, everytime we need to extend the project for ex. we add a new module to the project or as in your case create a new target.
    It would be very nice if other august members could also contribute and share their wisdom on this thread.
    Manan Joshi
      - Efficient InDesign Solutions -
    MetaDesign Solutions
    http://metadesignsolutions.com/services/indesign-development.php

Maybe you are looking for