Namespace objects in XI

Hi Experts,
I would like to create two namespaces in IR, but the all object names should be same in both the namespaces. Is it possible in XI?
Regards
Sara

Hi Sara,
you can do it but why?
your shouldn't have replicated objects in XI
as this will create a "mess"
you should try to resue objects from other namespaces
and not create another one with the same objects
maybe you can just move objects from your namespace
to namespace: "http://.....core"
and use it with many scenarios?
if something is possible like other guys mentioned it doesn't mean you should do it
Regards,
michal

Similar Messages

  • Unable to set properties of Namespace-Objects

    hi,
    i've run into a problem with the Namespace-objects. I'm
    unable to set the uri- or the prefix-property - but acording to the
    api - they should be writable.
    var ns:Namespace = new Namespace("aa", "aa:ns/");
    ns.uri = "bb:ns/";
    ns.prefix("bb");
    both ways to set the properties fail ... the first genertates
    a compilererror informing me that the property is read-only. the
    second fails while executing with "Error #1006: value is not a
    function" (tried this because the first way doesn't work).
    so i guess either the information in the api are incorrect or
    somethings wrong with the Namespace-Object.
    since i need to set these properties i would be glad if
    anyone could tell me if there is a workaround.
    thanks
    daniel

    hi there,
    try this:
    Calendar calendar = Calendar.getInstance();
    System.out.println("current week of the year is: " + calendar.get(cal.WEEK_OF_YEAR));
    System.out.println(cal.getTime());
    calendar.set(cal.WEEK_OF_YEAR, 32);
    System.out.println("week of the year is now: " + calendar.get(cal.WEEK_OF_YEAR));
    System.out.println(cal.getTime());
    hope this helps,
    PSChan
    Sun Microsystems

  • Error while activating objects copied into new namespace.

    I am receiving the following error when I am trying to activate objects copied from an existing namespace to new namespace.
    What could be the reason ?
    Activation of the change list canceled Check result for Message Mapping MM_BBP_ESI_ERP_CONTRACT | http://frictionless.esource.com/v2.1:  Namespace http://frictionless.esource.com/v2.1 is not defined in the software component version FCI, 1.0 of frictionless.com   Namespace http://frictionless.esource.com/v2.1 is not defined in the software component version FCI, 1.0 of frictionless.com

    Hi,
    How about activation namespace objects in tab "Change List"?
    Regards,
    Jakub

  • Error in beanshell - class not found in namespace

    We use beanshell to evaluate business rule validations on our application. Below is the calling method...
    private Object callBeanShell(final Object parameters, final String expression)
    throws EvalError {
    if (LogConstants.FINE_ENABLED) {
    logger.log(Level.FINE, "Expression: " + expression);
    beanShell.set("params", parameters);
    Object result = null;
    try {
    result = beanShell.eval(expression);
    } catch (Throwable ex) {
    getErrorHandler().fatalError("Expression: " + expression, ex);
    if (LogConstants.INFO_ENABLED) {
    logger.log(Level.INFO, "Expression: " + expression);
    logger.log(Level.INFO, "Result : " + (result == null ? "null" : result.toString()));
    return result;
    This has been working fine on the application for years, but we've suddenly started getting a problem with evaluations which are called from a SessionBean (via some reflection).
    Every time we try and call a certain set of expressions they fail on a 'class xxx not found in namespace'. This happens both when the expression contains code like:
    com.chubb.euz.SomeClass sc = new com.chubb.euz.SomeClass(); etc...
    or
    import com.chubb.euz.SomeClass; SomeClass sc = new SomeClass(); etc...
    The strange thing is that when I remote debug it & look at the bsh Interpreter what I see is that it's NameSpace object has a table called ImportedClasses on it which before the eval() call contains just bsh.Interpreter and bsh.EvalError but after the eval() it then contains all of the classes I pull in as imports in the expression passed to it, yet it still manages to throw this damn 'class not found in namespace' error!
    It still works whenever else it's called in the app (and this is only happening in our DEV environment). All I can think of now is that it's possibly something to do with the Thread that the beanshell is running on at this time, but that's just a guess as I know bugger all about Threads... I only think this because I can get the thing to work by stopping the processor which was built to run Events (EJB) generated in the app; resetting the Event's Task (regular class) to run again; then restarting the processor (not an option if this goes into PROD with the release!!!)
    Unfortunately, re-factoring the validations we need to run at this point is not really an option, as this is all coming at the tail end of a new release & the amount of code changes & subsequent regression testing required would kill us.
    This is on weblogic 8.1 - with the beanshell jar just embedded in the main application ear (I ran it with bsh.20b4.jar instead of the 1.3 version we were using but that has no effect).
    Any ideas would be more than gratefully appreciated as this is doing my head in!!!

    Hi,
    Thanks for the reply.
    I am trying to reverse SAP tables. Initially the Reversal process stuck at Set MetaData step. I stopped the session and restarted it then Set MetaData completed successfully but Set FlexFields give the error.
    Any idea?
    Regards,
    Arsalan.

  • System settings does not allow changes to be made to object

    Hi,
              In one of my test system, when i tried to change the object  its displaying following error message.
    System settings does not allow changes to made to the object.
    I have checked the settings in se03, regarding modification objects of software components and namespace those are in state of modifiable for this namespace object.
      I would like to know, how to change the object in the namespace.
    Regards
    Srikanth

    Hi,
    In SE06, in addtion to system status and component status, check the namespace status too.
    It would be better if you know the namespace of the object you are trying to modify. Set it to modifiable and retry.
    To find namespace, open the object in SE80 and check the attributes. It would show assigned package, namespace, component etc.
    Regards,
    Srikishan

  • PI Design object import fails

    Hi all,
    I have a problem with Designobjects that have been exported from the Development system and need to be imported
    to the test environment. But I get some strange errors like this and it fails via CTS+:
    SQL error occurred on connection devserver:T50:SAPSR3DB: code=-4,228, state="null", message="[jcc][t4][102][10040][3.58.91] Batch failure.  The batch was submitted, but at least one exception occurred on an individual member of the batch.
    Use getNextException() to retrieve the exceptions for specific batched elements. ERRORCODE=-4228, SQLSTATE=null
    => (-803,23505,Error for batch element #1: DB2 SQL Error: SQLCODE=-803, SQLSTATE=23505, SQLERRMC=1;SAPSR3DB.XI_DIRCACHERCLVIEW, DRIVER=3.58.91)
    => (-803,23505,Error for batch element #2: DB2 SQL Error: SQLCODE=-803, SQLSTATE=23505, SQLERRMC=1;SAPSR3DB.XI_DIRCACHERCLVIEW, DRIVER=3.58.91)
    => (-803,23505,Error for batch element #3: DB2 SQL Error: SQLCODE=-803, SQLSTATE=23505, SQLERRMC=1;SAPSR3DB.XI_DIRCACHERCLVIEW, DRIVER=3.58.91)
    => (-803,23505,Error for batch element #4: DB2 SQL Error: SQLCODE=-803, SQLSTATE=23505, SQLERRMC=1;SAPSR3DB.XI_DIRCACHERCLVIEW, DRIVER=3.58.91)";
    SQL statement is "INSERT INTO "XI_DIRCACHERCLVIEW" ("CHANGELIST","TYPE_ID","OBJECT_ID","SW_COMPONENT","SP") VALUES (?,?,?,?,?)".
    I checked google an it says that the DB tries to insert a value with the same unique ID twice. But I don't know what that could be. I have created and deleted some objects in the DEV environment. But shouldn't the PI get what has to be overwritten and what should be deleted? I exported the objects with deleted objects and without. Both does fail.
    Has somebody had a similar problem or knows what that could be?
    Some further errors are specific to some namespace objects (But the objects are in the transport, I exported everything!) :
    com.sap.aii.ib.core.roa.RoaObjectAccessException: Attempt to read object Message Mapping DownloadFileResponse_to_StyretFiloverfoerselModtagAnmod_I | urn:namespace, type XI_TRAFO from application REPOSITORY on system REPOSITORY failed. Object does not exist. Detailed informatio n: Object Message Mapping DownloadFileResponse_to_StyretFiloverfoerselModtagAnmod_I | urn:namespace not found
    Thanks and best regards,
    Dennis

    Root Exception:
    Thrown:
    com.sap.aii.utilxi.misc.api.BaseRuntimeException: Missing value for objVersion!
         at com.sap.aii.ib.gui.tools.transport.ContentImportProgressDialog.executeConcurrentAction(ContentImportProgressDialog.java:448)
         at com.sap.aii.utilxi.swing.toolkit.ConcurrentProgressDialog$ProgressDialogRunnable.run(ConcurrentProgressDialog.java:251)
         at com.sap.aii.utilxi.misc.thread.ThreadPool$ThreadPoolThread.run(ThreadPool.java:392)
    Caused by: com.sap.aii.utilxi.misc.api.ResourceException: Missing value for objVersion!
         at com.sap.aii.ib.sbeans.gen.BaseSessionBean.wrap(BaseSessionBean.java:138)
         at com.sap.aii.ib.sbeans.gen.BaseSessionBean.wrap(BaseSessionBean.java:111)
         at com.sap.aii.ib.server.transport.TransportServiceBean.importFromImportSource(TransportServiceBean.java:210)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:46)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:22)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:16)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:21)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:16)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
         at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:133)
         at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164)
         at $Proxy1754.importFromImportSource(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sap.engine.services.rmi_p4.P4DynamicSkeleton.dispatch(P4DynamicSkeleton.java:234)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:355)
         at com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.run(ServerDispatchImpl.java:69)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:67)
         at com.sap.engine.services.rmi_p4.P4Message.execute(P4Message.java:41)
         at com.sap.engine.services.cross.fca.FCAConnectorImpl.executeRequest(FCAConnectorImpl.java:977)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:57)
         at com.sap.engine.services.cross.fca.MessageReader.run(MessageReader.java:55)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:115)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:96)
         at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:314)
    Serialized cause: com.sap.aii.ib.sbeans.gen.WrapperClientServerException: Missing value for objVersion!
         ... 41 more
    Serialized cause: com.sap.aii.ib.server.propagation.XIPropagationException: Missing value for objVersion!
         at com.sap.aii.ib.server.propagation.XIPropagationException.createFromException(XIPropagationException.java:54)
         at com.sap.aii.ib.server.propagation.PropagatorImpl.integrateObjectVersions(PropagatorImpl.java:270)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sap.aii.ib.server.pvcadapt.PvcTransactionControlProxy.invoke(PvcTransactionControlProxy.java:79)
         at $Proxy3118.integrateObjectVersions(Unknown Source)
         at com.sap.aii.ib.server.propagation.Propagator.integrateObjectVersions(Propagator.java:103)
         at com.sap.aii.ib.server.workspace.WorkspaceManager.integrateClosedVSetFromImport(WorkspaceManager.java:3085)
         at com.sap.aii.ibrep.server.transport.impl.pvc.RepPvcTransport.pvcIntegrateImportedVersionset(RepPvcTransport.java:119)
         at com.sap.aii.ib.server.transport.impl.service.TransportServiceImpl.integrateVersionset(TransportServiceImpl.java:902)
         at com.sap.aii.ibrep.server.transport.impl.service.RepTransportServiceSeImpl.autoIntegrate(RepTransportServiceSeImpl.java:459)
         at com.sap.aii.ib.server.transport.impl.service.TransportServiceImpl.importZippedStream(TransportServiceImpl.java:1229)
         at com.sap.aii.ib.server.transport.impl.service.TransportServiceImpl.importZippedStream(TransportServiceImpl.java:1096)
         at com.sap.aii.ib.server.transport.impl.service.TransportServiceImpl.importFromImportSource(TransportServiceImpl.java:791)
         at com.sap.aii.ib.server.transport.TransportServiceBean.importFromImportSource(TransportServiceBean.java:207)
         ... 38 more
    Serialized cause: com.sap.aii.ib.core.versioning.integration.VersionSetIntegrationException: Missing value for objVersion!
         at com.sap.aii.ib.core.versioning.integration.VersionSetIntegrationException.createFromException(VersionSetIntegrationException.java:35)
         at com.sap.aii.ib.server.versioning.integration.VersionSetIntegratorImpl.integrateClosedVersionSet(VersionSetIntegratorImpl.java:140)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sap.aii.ib.server.pvcadapt.PvcTransactionControlProxy.invoke(PvcTransactionControlProxy.java:79)
         at $Proxy3125.integrateClosedVersionSet(Unknown Source)
         at com.sap.aii.ib.server.versioning.integration.VersionSetIntegrator.integrateClosedVersionSet(VersionSetIntegrator.java:52)
         at com.sap.aii.ib.server.propagation.PropagatorImpl.integrateObjectVersions(PropagatorImpl.java:259)
         ... 53 more
    Serialized cause: java.lang.IllegalArgumentException: Missing value for objVersion!
         at com.sap.aii.ib.server.versioning.XiRefCreationHelper.createXiReference(XiRefCreationHelper.java:120)
         at com.sap.aii.ib.server.versioning.integration.VersionConflictFactory.createXiRefForCollVersion(VersionConflictFactory.java:304)
         at com.sap.aii.ib.server.versioning.integration.VersionConflictFactory.createXiRefForCollVersion(VersionConflictFactory.java:292)
         at com.sap.aii.ib.server.versioning.integration.VersionConflictFactory.createFromClosedVSIntegration(VersionConflictFactory.java:115)
         at com.sap.aii.ib.server.versioning.integration.VersionSetIntegratorImpl.processNewPersistentPvcCollisions(VersionSetIntegratorImpl.java:433)
         at com.sap.aii.ib.server.versioning.integration.VersionSetIntegratorImpl.processConflictsAfterUnconditionalIntegrate(VersionSetIntegratorImpl.java:406)
         at com.sap.aii.ib.server.versioning.integration.VersionSetIntegratorImpl._integrateUnconditionallyClosedVS(VersionSetIntegratorImpl.java:365)
         at com.sap.aii.ib.server.versioning.integration.VersionSetIntegratorImpl.onUnconditionalIntegration(VersionSetIntegratorImpl.java:170)
         at com.sap.aii.ib.server.versioning.integration.VersionSetIntegratorImpl.integrateClosedVersionSet(VersionSetIntegratorImpl.java:133)
         ... 61 more
    ====================================================================
    == Content from the LogHandler =====================================
    ====================================================================
    #5 19:44:40 [AWT-EventQueue-2] ERROR com.sap.aii.utilxi.swing.toolkit.ExceptionDialog: Throwable
    Thrown:
    com.sap.aii.utilxi.misc.api.BaseRuntimeException: Missing value for objVersion!
         at com.sap.aii.ib.gui.tools.transport.ContentImportProgressDialog.executeConcurrentAction(ContentImportProgressDialog.java:448)
         at com.sap.aii.utilxi.swing.toolkit.ConcurrentProgressDialog$ProgressDialogRunnable.run(ConcurrentProgressDialog.java:251)
         at com.sap.aii.utilxi.misc.thread.ThreadPool$ThreadPoolThread.run(ThreadPool.java:392)
    Caused by: com.sap.aii.utilxi.misc.api.ResourceException: Missing value for objVersion!
         at com.sap.aii.ib.sbeans.gen.BaseSessionBean.wrap(BaseSessionBean.java:138)
         at com.sap.aii.ib.sbeans.gen.BaseSessionBean.wrap(BaseSessionBean.java:111)
         at com.sap.aii.ib.server.transport.TransportServiceBean.importFromImportSource(TransportServiceBean.java:210)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:46)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:22)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:16)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:21)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:16)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
         at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:133)
         at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164)
    Edited by: Dennis Junker on Mar 8, 2011 7:52 PM

  • Naming of Business objects

    Also I would like to know how we name different objects in BI.

    Hi sudha;
    The following namespaces are generally available for BW objects:
    SAP-delivery (Business Content) namespace:
            Objects beginning with 0
            Generated objects in the DDIC beginning with /BI0/
    InfoCube 0SALES, fact table /BI0/FSALES
    Customer namespace:
            Objects beginning with A-Z
            Generated objects in the DDIC beginning with /BIC/
    InfoCube SALES, fact table /BIC/FSALES
    Partner-specific namespace and customer-specific namespace:
            Object begins with /XYZ/ (example)
    Special SAP namespaces for generated objects:
            The prefixes 1, 2, 3, 4, 6, 7, 8 are required in BW for DataSources and InfoSources in special SAP applications.
            The prefix 9A is required for the SAP APO application.
    Hope this helps
    BK

  • Best way to perform the same task wih arrays of different Objects

    Hello all.
    This isn't an XPath question, it's a much lower-level Java Object question, but it involves XPath. I hope that doesn't distract from the question, or confuse anything.
    I have 4-5 different types of Objects (call them A, B, C, etc.) that each contain an array of other Objects (call them a[], b[], c[], etc.)
    a, b, c, etc., each have an Xpath object and and XPathExpression. When I create each XPath object I assign it a NamespaceContext object which contains the namespaces needed for that XPath.
    When I create, for example, an A object, I pass is constructor an array of a and an array of Namespaces. With each a object I need to:
    1. create a NamespaceContext object
    2. go through all the Namespace objects and if its route matches,
    (if Namespace.route == a.getRoute() )
    3. add that Namespace to the NamespaceContext Object,
    4. assign the NamespaceContext to the XPath object, and finally
    5. create the a object, passing it the XPath object
    My problem / question is: I also have to do the same thing with B and b[], C and c[], etc. It's not that long of a process, not that much code, but all the same, I was wondering what the best way to write this code once would be, and have it work for all the different types of Objects.
    In other words, I'd like to write a mehod, call it assignNamespaces(), that accepts an array of Objects(a[], b[], c[], etc.) and an array of Namespaces, creates the XPath Object for each a, b, c, etc., and that creates and returns an array of a[],b[],c[], etc., sending the XPath Object as a parameter.
    That way when I create for example an A Object, I call:
    class A
    ObjectsWithXpath[] objectsWithXPath;
    this..objectsWithXPath = assignNamespaces(objectsWithXPath,namespaces);
    Should the assgnNamespaces() method simply use Class.forName() to see what type of Object it is and do a cast accordingly, or is there some other, more elegant way of doing this?
    I hope I've explained myself, and haven't bored you ...
    Thanks in advance,
    Bob

    Thanks for your reply!
    I poked around a bit looking into Factory classes. I've used them a million times but never actually made one. At any rate, they seem like a good idea when you have a bunch of different classes that are similar but not equal.
    In my case my classes ONLY have the XPathExpression in common. Which means that I'd have to make a base abstract class with a bunch of methods of which only a percentage are defined by any class that extends it. In other words, if I had 3 classes -- a, b and c -- that extend the base abstract class, and each had 5 getters and setters, the base abstract class would have 15 methods, 5 only used by a, 5 only used by b and 5 only used by c.
    It seemed a bit ugly to me. Besides, I only have 3 classes. I decided to factor out the inner loop, which is about 70% of the code, stick it in a utility class, and call it from there. I am repeating some code still, but it isn't that bad, and it saves me having to define an interface, an abstract class, a Factory class, etc.
    It ain't perfect, but then nothing ever is.
    Thanks for all the help! Viva the Java community!
    Bob

  • Namespaces organization

    Hi all,
    I know what is a namespace and I have already read almost all the threads here about it. My question is regarding the context of namespaces in Integration Repository. I have a software component X, and I add to it the namespace "http://test.namespaces/mynamespace". Then, I create a new software component and add to it the same namespace. Unfortunately, it is possible! Does it mean that the namespaces and the software components aren´t related? By this way, I can use the same namespace for all software components I have in my landscape... so, why this is necessary? Is there a way to control centrally the creation of namespaces?
    thanks!
    roberti

    Ok,
    Thank you all for the insights!
    Alex, I already know about the dependencies in SLD, it is not about it, thanks for your "re-read" answer!
    Moorthy, ok, I understood your explain about the structure SWCV/Namespace/object. What I said about the two data types with same name, same namespace and different content, they are in different SWCV too this was the point.
    Wojtek, very helpful to!
    Anybody has already worked with web services? In the WS world, the namespace is absolute over everything. First, I thought it was the same in IR, but now with your help I can understand the differences. Thank you!
    cheers!
    roberti

  • Info Object lengths Desperately needed.

    Dear Gurus,
    Please dont think this question as a simple question.  I desperately need your inputs.
    What are the lengths of info objects according to SAP name space and Customer name spaces.  I can see some Info objects starting with 0 having as long as 11 characters.  And when i try to create one i am able to give only 9 characters.  And when I searched in RSD1 for object lengths there i can see some as long as 14 characters eg:  /BA1/C35DATDOC
    Please tell me clearly what is the maximum length an info object can have.   I tried to read the documentation from the following link.  but I am not able to understand things clearly.
    http://aiokeh.wdf.sap.corp:50000/SAPIKS2/contentShow.sap?_CLASS=IWB_EXTHLP&TMP_IWB_TASK=DISPLAY&_LOIO=53EC2C37B995184890C6D8BA5B668A86&_SLOIO=E3E60138FEDE083DE10000009B38F8CF&RELEASE=700&LANGUAGE=EN&_SEQNUM=14&_SCLASS=IWB_STRUCT
    Kindly help me
    Regards
    Mohan
    Message was edited by:
            mohan kumar

    Hi Mohan,
    SAP-delivery (Business Content) namespace:
    ·        Objects beginning with 0
    ·        Generated objects in the DDIC beginning with /BI0/
    Customer namespace:
    ·        Objects beginning with A-Z
    ·        Generated objects in the DDIC beginning with /BIC/
    Partner-specific namespace and customer-specific namespace:
    ·        Object begins with /XYZ/ (example)
    Special SAP namespaces for generated objects:
    ·        The prefixes 1, 2, 3, 4, 6, 7, 8 are required in BW for DataSources and InfoSources in special SAP applications.
    ·        The prefix 9A is required for the SAP APO application.
    When you create your own objects, therefore, give them technical names that start with a letter.
    The maximum permitted length for a name varies from object to object. Typically, 9 to 11 letters can be used.

  • Is it Possible to Promote DC on a Subnet With Connectivity to a Site DC But Not DC with FSMO Roles???

    I apologize in advance for the rambling novella, but I tried to include as many details ahead of time as I could.
    I guess like most issues, this one's been evolving for a while, it started out with us trying to add a new member 
    to a replication group that's on a subnet without connectivity to the FSMO roles holder. I'll try to describe the 
    layout as best as I can up front.
    The AD only has one domain & both the forest & domain are at 2008R2 function level. We've got two sites defined in 
    Sites & Services, Site A is an off-site datacenter with one associated subnet & Site B with 6 associated subnets, A-F. 
    The two sites are connected by a WAN link from a cable provider. Subnets E & F at Site B have no connectivity to Site A 
    across that WAN, only what's available through the front side of the datacenter through the public Internet. The network 
    engineering group involved refuses to route that WAN traffic to those two subnets & we've got no recourse against that 
    decision; so I'm trying to find a way to accomplish this without that if possible.
    The FSMO roles holder is located at Site A. I know that I can define a Site C, add Subnets E & F to that site, & then 
    configure an SMTP site link between Sites A & C, but that only handles AD replication, correct? That still wouldn't allow me, for example, 
    to enumerate DFS namespaces from subnets E & F, or to add a fileserver on either of those subnets as a member to an existing
    DFS replication group, right? Also, root scalability is enabled on all the namespace shares.
    Is there a way to accomplish both of these things without transferring the FSMO roles from the original DC at Site A to, say, 
    the bridgehead DC at Site B? 
    When the infrastructure was originally setup by a former analyst, the topology was much more simple & everything was left
    under the Default First Site & no sites/subnets were setup until fairly recently to resolve authentication issues on 
    Subnets E & F... I bring this up just to say, the FSMO roles holder has held them throughout the build out & addition of 
    all sorts of systems & I'm honestly not sure what, if anything, the transfer of those roles will break. 
    I definitely don't claim to be an expert in any of this, I'll be the first to say that I'm a work-in-progress on this AD design stuff, 
    I'm all for R'ing the FM, but frankly I'm dragging bottom at this point in finding the right FM. I've been digging around
    on Google, forums, & TechNet for the past week or so as this has evolved, but no resolution yet. 
    On VMs & machines on subnets E & F when I go to DFS Management -> Namespace -> Add Namespaces to Display..., none show up 
    automatically & when I click Show Namespaces, after a few seconds I get "The namespaces on DOMAIN cannot be enumerated. The 
    specified domain either does not exist or could not be contacted". If I run a dfsutil /pktinfo, nothing shows except \sysvol 
    but I can access the domain-based DFS shares through Windows Explorer with the UNC path \\DOMAIN-FQDN\Share-Name then when 
    I run a dfsutil /pktinfo it shows all the shares that I've accessed so far.
    So either I'm doing something wrong, or, for some random large, multinational company, every sunbet & fileserver one wants 
    to add to a DFS Namespace has to be able to contact the FSMO roles holder? Or, are those ADs broken down with a child domain 
    for each Site & a FSMO roles holder for that child domain is located in each site?

    Hi Matthew,
    Unfortunately a lot of the intricacies of DFS leave my head as soon as I’m done with a particular design or troubleshooting situation but from memory, having direct connectivity to the PDC emulator for a particular domain is the key to managing domain based
    DFS.
    Have a read of this article for the differences between “Optimize for consistency” vs “Optimize for scalability”:
    http://technet.microsoft.com/en-us/library/cc737400(v=ws.10).aspx
    In brief, I’d say they mean:
    In consistency mode the namespace servers always poll the PDCe for the latest and greatest information on the namespaces they are hosting.
    In scalability mode the namespace servers should poll the closest DC for information on the namespaces they are hosting.
    The key piece of information in that article about scalability mode is: “Updates are still made to the namespace object in Active Directory on the PDC emulator, but namespace servers do not discover those changes until the updated namespace object replicates
    (using Active Directory replication) to the closest domain controller for each namespace server.”
    I read that as saying you can have a server running DFS-N as long as it has connectivity to a DC but if you want to make changes, do them from a box that has direct connectivity to the PDCe. Then let AD replication float those changes out to your other DCs
    where the remote DFS-N server will eventually pick them up. Give it a try and see how you get on.
    That being said, you may want to double check that you have configured the most appropriate FSMO role placement in your environment's AD design:
    http://technet.microsoft.com/en-us/library/cc754889(v=ws.10).aspx
    And a DFS response probably wouldn’t be complete without an AskDS link:
    http://blogs.technet.com/b/askds/archive/2012/07/24/common-dfsn-configuration-mistakes-and-oversights.aspx
    These links may also help:
    http://blogs.technet.com/b/filecab/archive/2012/08/26/dfs-namespace-scalability-considerations.aspx
    http://blogs.technet.com/b/josebda/archive/2009/12/30/windows-server-dfs-namespaces-reference.aspx
    http://blogs.technet.com/b/josebda/archive/2009/06/26/how-many-dfs-n-namespaces-servers-do-you-need.aspx
    I hope this helps,
    Mark

  • Setting de-batched message specific message context properties in custom disassembler

    I have recently created a custom disassemble component which can handle a message batch. The message batch can contain multiple messages and the custom component during de-batching recognizes this and does appropriate disassembly. All this is working fine.
    The issue I have is that in the disassembler in the disassembled message part I copy the base message context, then assign additional properties. This is resulting in the context of the base message getting modified and as a result, all messages come into
    BizTalk with the same context (which is wrong) but the correct message data.
    So I could trace it to the statement debatchedMessage.Context = pInMsg.Context. It is not the copy but the reference which is being passed which is causing an overwrite and causing me grief.
    Anybody else noticed this behavior? or perhaps knows of a fix? or perhaps knows of a method which will allow me to
    COPY the message context?
    Regards.

    What you are seeing is the expected behavior.  You are correct:
    debatchedMessage.Context = pInMsg.Context
    merely assigns the context as a reference.
    There is no shortcut to copying the context properties as there is in an Orchestration so you have to copy them one by one:
    for (int i = 0; i < pInMsg.Context.CountProperties; i++)
    string Name
    string Namespace;
    object PropValue = pInMsg.Context.ReadAt(i, out Name, out Namespace);
    if (pInMsg.Context.IsPromoted(Name, Namespace))
    outMsg.Context.Promote(Name, Namespace, PropValue);
    else
    outMsg.Context.Write(Name, Namespace, PropValue);

  • Reading extraMetadata

    I must to read Dimensions and others extraMetadata of images.
    How I have to use "metadata" property of a thumbnail?
    thanks
    Ivan

    Ivan,
    I don't know if you have AdobeLibrary3.jsx or not. You can get it by downloading the Import from Camera script on Adobe Exchange.
    In it, I wrote an object to help with things like namespaces.
    Here's an excerpt of that code that defined "namespace objects" that are used to get/set metadata
    new MdNs.MetadataNamespace( "IPTC Core", "http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/", "Iptc4xmpCore" );
    new MdNs.MetadataNamespace( "EXIF", "http://ns.adobe.com/exif/1.0/", "exif");
    new MdNs.MetadataNamespace( "Dublin Core", "http://purl.org/dc/elements/1.1/", "dc" );
    new MdNs.MetadataNamespace( "TIFF", "http://ns.adobe.com/tiff/1.0/", "tiff" );
    new MdNs.MetadataNamespace( "XMP Basic", "http://ns.adobe.com/xap/1.0/", "xmp" );
    new MdNs.MetadataNamespace( "XMP Media Management", "http://ns.adobe.com/xap/1.0/mm/", "xmpMM" );
    new MdNs.MetadataNamespace( "XMP Rights Management", "http://ns.adobe.com/xap/1.0/rights/", "xmpRights" );
    new MdNs.MetadataNamespace( "XMP Basic Job Ticket", "http://ns.adobe.com/xap/1.0/bj/", "xmpBJ" );
    new MdNs.MetadataNamespace( "XMP Paged-Text", "http://ns.adobe.com/xap/1.0/t/pg/", "xmpTPg" );
    new MdNs.MetadataNamespace( "Photoshop", "http://ns.adobe.com/photoshop/1.0/", "photoshop" );
    // new MdNs.MetadataNamespace( "Stock Photo", "http://ns.adobe.com/StockPhoto/1.0/", "bmsp" );
    new MdNs.MetadataNamespace( "Adobe PDF", "http://ns.adobe.com/pdf/1.3/", "pdf" );
    new MdNs.MetadataNamespace( "Camera Raw Settings", "http://ns.adobe.com/camera-raw-settings/1.0/", "crs" );
    // new MdNs.MetadataNamespace( "PNG", "http://ns.adobe.com/png/1.0/", "png" );
    This snippet shows all of the standard XMP namespaces that I was able to find.
    Also look at the MdManager class for getting and setting metadata for a given thumbnail
    Bob
    Adobe Workflow Scripting

  • Regarding Sccm console queries

    Hello,
    I have this node Xml. I want to populate the node with all the sccm clients . I am not habitual of sccm queries. I need to insert the queries in the query tag.
    The queries i am looking for is give me a list of all sccm clients.
    When i using the query like SELECT sms_r_system.Name from sms_r_system where Client=1 its  populating the namespace node with sms_r_system and showing it 2 times. I don't know where i am wrong.
    <RootNodeDescription NamespaceGuid="778d1b97-e41f-4cc5-b6c0-41fc90013c4e" Id="NamespaceObjects" DisplayName="Namespace" Description="Namespace object instance viewer" HelpTopic="">
          <RootNodes>
            <NodeDescription>
              <ScopePaneItemDescriptions>
                <ScopePaneItemDescription NamespaceGuid="91a66c1c-0407-40e7-8696-fd382aca5ad2">
                  <Queries>
                    <QueryDescription NamespaceGuid="a0f56f00-0fce-4fff-a908-0a199f119265" Type="WQL" DisplayName="##SUB:__CLASS##" HelpTopic="">
                      <ViewAssemblyDescriptions>
                        <ViewAssemblyDescription>
                          <Assembly>ConfigMgrObjectsControl.dll</Assembly>
                          <Type>Microsoft.ConfigurationManagement.AdminConsole.ConfigMgrObjectsView.ConfigMgrObjectsViewDescription</Type>
                        </ViewAssemblyDescription>
                      </ViewAssemblyDescriptions>
                      <Query>SELECT sms_r_system.Name from sms_r_system where Client=1</Query>
                    </QueryDescription>
                  </Queries>
                </ScopePaneItemDescription>
              </ScopePaneItemDescriptions>
              <ResultPaneItemDescriptions>
                <ResultPaneItemDescription NamespaceGuid="324a6ff7-2266-4b0a-b0cd-7fc9721e553f" />
              </ResultPaneItemDescriptions>
              <NodeDescriptions />
            </NodeDescription>
          </RootNodes>
     </RootNodeDescription>

    Hi
    I'm not sure exactly what you are trying to do here but from what you have indicated above "showing it 2 times" I would add Distinct to the SQL query. SELECT Distinct sms_r_system.Name from sms_r_system where Client=1.
    Hope this helps
    Regards
    Adrian

  • Vacancy Creation - System is Prompting for Change Request

    Hi Gurus,
       I am opening the vacancy for a particular position through T Code - PO13.
       At the time of saving, Pop-Up for Change Request is coming.
       Kindly let me know How to remove this Pop-Up.
        Thanks a Lot in Advance.
    Regards,
    PKG

    In addition to client setting (SCC4) being set at "No changes allowed", software component settings in System Change Option (SE06) should also be maintained correctly. I haven't worked in R/3 environment for years now but from what I recollect, J1ID is a CIN transaction and hence you should have a corresponding software component or namespace object in system change option that could be maintained. I suspect that your current settings say "Restricted Modifiability". You may have to change it to "modifiable".
    Also, please note that settings in SE06 do not affect client-specific settings.
    Ashutosh

Maybe you are looking for