DataStoreException for multi-table inheritence using numeric indicator value

I am using multi-table inheritance with Kodo 2.5.5
Relevant kodo.properties are:
com.solarmetric.kodo.PersistentTypes=com.letsys.erespond.business.model.netw
ork.PowerTransformer,com.letsys.erespond.business.model.network.Device,com.l
etsys.erespond.business.model.network.ElectricalDevice,com.letsys.erespond.b
usiness.model.network.Switch
javax.jdo.PersistenceManagerFactoryClass=com.solarmetric.kodo.impl.jdbc.JDBC
PersistenceManagerFactory
com.solarmetric.kodo.impl.jdbc.DefaultSubclassProviderClass=com.solarmetric.
kodo.impl.jdbc.ormapping.IntegerSubclassProvider
I have given each of my PC classes s a numeric subclass indicator value (to
improve join performance)
e.g.
<extension vendor-name="kodo" key="subclass-indicator-value" value="1">
</extension>
Here is my query code, the exception is at the end of the email:
Extent e = pm.getExtent(Device.class, true);
Query q = pm.newQuery(e, "active == p1");
q.declareParameters("int p1");
Collection c = (Collection)q.execute(new Integer(1));
Iterator iter = c.iterator();
while (iter.hasNext()) {
Device d = (Device)iter.next();
System.out.println("name="+d.getName());
NOTE: The above code works if I first do a similar query, but specify the
subclass in the pm.getExtent()
It seems to me that the persistent classes listed in kodo.properties are not
getting loaded.
I also get this from debug on startup
421 DEBUG [TestRunner-Thread] kodo.Runtime -
[email protected]067:
registering 1 classes: [class
com.letsys.erespond.business.model.network.Device]
421 DEBUG [TestRunner-Thread] kodo.MetaData - found JDO resource
Device.jdo for com.letsys.erespond.business.model.network.Device at
file:/C:/Dev/projectm/classes/com/letsys/erespond/business/model/network/Device.jdo
421 INFO [TestRunner-Thread] kodo.MetaData -
com.solarmetric.kodo.meta.JDOMetaDataParser@d12eea: parsing source:
file:/C:/Dev/projectm/classes/com/letsys/erespond/business/model/network/Device.jdo
I would have expected it to register all my PC classes at this stage.
Any ideas ???
Regards,
Chris.
[junit] Testcase: testInheritenceQuery took 9.747 sec
[junit] Caused an ERROR
[junit] com.solarmetric.kodo.runtime.DataStoreException: Type "null",
the type registered for subclass indicatorvalue "3", is re
ferenced in the database, but does not exist.
[junit] NestedThrowables:
[junit] com.solarmetric.kodo.runtime.DataStoreException: Type "3" is
referenced in the database, but does not exist.
[junit] com.solarmetric.kodo.runtime.FatalDataStoreException:
com.solarmetric.kodo.runtime.DataStoreException: Type "null", the
type registered for subclass indicatorvalue "3", is referenced in the
database, but does not exist.
[junit] NestedThrowables:
[junit] com.solarmetric.kodo.runtime.DataStoreException: Type "3" is
referenced in the database, but does not exist.
[junit] NestedThrowables:
[junit] com.solarmetric.kodo.runtime.DataStoreException: Type "null",
the type registered for subclass indicatorvalue "3", is re
ferenced in the database, but does not exist.
[junit] NestedThrowables:
[junit] com.solarmetric.kodo.runtime.DataStoreException: Type "3" is
referenced in the database, but does not exist.
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.LazyResultList.instantiateRow(LazyRes
ultList.java:217)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.LazyResultList.get(LazyResultList.jav
a:142)
[junit] at java.util.AbstractList$Itr.next(AbstractList.java:416)
[junit] at
com.solarmetric.kodo.runtime.objectprovider.ResultListIterator.next(ResultLi
stIterator.java:49)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.ResultListFactory.createResultList(Re
sultListFactory.java:82)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
reManager.java:1138)
[junit] at
com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:1
26)
[junit] at
com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.executeQuery(Que
ryImpl.java:1565)
[junit] at
com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:685)
[junit] at
com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:545)
[junit] at
com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:531)
[junit] at
com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:501)
[junit] at
com.letsys.erespond.business.model.network.DeviceAppTest.testInheritenceQuer
y(DeviceAppTest.java:32)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[junit] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
[junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
..java:25)
[junit] NestedThrowablesStackTrace:
[junit] com.solarmetric.kodo.runtime.DataStoreException: Type "null",
the type registered for subclass indicatorvalue "3", is re
ferenced in the database, but does not exist.
[junit] NestedThrowables:
[junit] com.solarmetric.kodo.runtime.DataStoreException: Type "3" is
referenced in the database, but does not exist.
[junit] at
com.solarmetric.kodo.impl.jdbc.ormapping.IntegerSubclassProvider.getType(Int
egerSubclassProvider.java:214)
[junit] at
com.solarmetric.kodo.impl.jdbc.ormapping.SubclassProviderImpl.getType(Subcla
ssProviderImpl.java:97)
[junit] at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.loadPrimaryMappings(Cl
assMapping.java:1060)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.initialize(JDBCStore
Manager.java:374)
[junit] at
com.solarmetric.kodo.runtime.StateManagerImpl.loadInitialState(StateManagerI
mpl.java:215)
[junit] at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectByIdFilter(Pers
istenceManagerImpl.java:1278)
[junit] at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectById(Persistenc
eManagerImpl.java:1196)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.createFromResultSet(
JDBCStoreManager.java:967)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager$2.getResultObject(JD
BCStoreManager.java:1146)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.LazyResultList.instantiateRow(LazyRes
ultList.java:199)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.LazyResultList.get(LazyResultList.jav
a:142)
[junit] at java.util.AbstractList$Itr.next(AbstractList.java:416)
[junit] at
com.solarmetric.kodo.runtime.objectprovider.ResultListIterator.next(ResultLi
stIterator.java:49)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.ResultListFactory.createResultList(Re
sultListFactory.java:82)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
reManager.java:1138)
[junit] at
com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:1
26)
[junit] at
com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.executeQuery(Que
ryImpl.java:1565)
[junit] at
com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:685)
[junit] at
com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:545)
[junit] at
com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:531)
[junit] at
com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:501)
[junit] at
com.letsys.erespond.business.model.network.DeviceAppTest.testInheritenceQuer
y(DeviceAppTest.java:32)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[junit] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
[junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
..java:25)
[junit] NestedThrowablesStackTrace:
[junit] com.solarmetric.kodo.runtime.DataStoreException: Type "3" is
referenced in the database, but does not exist.
[junit] at
com.solarmetric.kodo.impl.jdbc.ormapping.IntegerSubclassProvider.getType(Int
egerSubclassProvider.java:207)
[junit] at
com.solarmetric.kodo.impl.jdbc.ormapping.SubclassProviderImpl.getType(Subcla
ssProviderImpl.java:97)
[junit] at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.loadPrimaryMappings(Cl
assMapping.java:1060)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.initialize(JDBCStore
Manager.java:374)
[junit] at
com.solarmetric.kodo.runtime.StateManagerImpl.loadInitialState(StateManagerI
mpl.java:215)
[junit] at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectByIdFilter(Pers
istenceManagerImpl.java:1278)
[junit] at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectById(Persistenc
eManagerImpl.java:1196)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.createFromResultSet(
JDBCStoreManager.java:967)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager$2.getResultObject(JD
BCStoreManager.java:1146)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.LazyResultList.instantiateRow(LazyRes
ultList.java:199)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.LazyResultList.get(LazyResultList.jav
a:142)
[junit] at java.util.AbstractList$Itr.next(AbstractList.java:416)
[junit] at
com.solarmetric.kodo.runtime.objectprovider.ResultListIterator.next(ResultLi
stIterator.java:49)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.ResultListFactory.createResultList(Re
sultListFactory.java:82)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
reManager.java:1138)
[junit] at
com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:1
26)
[junit] at
com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.executeQuery(Que
ryImpl.java:1565)
[junit] at
com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:685)
[junit] at
com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:545)
[junit] at
com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:531)
[junit] at
com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:501)
[junit] at
com.letsys.erespond.business.model.network.DeviceAppTest.testInheritenceQuer
y(DeviceAppTest.java:32)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[junit] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
[junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
..java:25)
[junit] Testcase: testInheritenceQuery
[junit] TEST com.letsys.erespond.business.model.network.DeviceAppTest
FAILED

Marc,
All of my PC classes are in the result of the api call you suggested:
[junit] Kodo type[0] =
com.letsys.erespond.business.model.network.PowerTransformer
[junit] Kodo type[1] = com.letsys.erespond.business.model.network.Device
[junit] Kodo type[2] =
com.letsys.erespond.business.model.network.ElectricalDevice
[junit] Kodo type[3] = com.letsys.erespond.business.model.network.Switch
However, when doing the query, it only seems to read the parent jdo file
[junit] (kodo.MetaData 89 )
com.solarmetric.kodo.meta.JDOMetaDataParser@16477d9: parsing source:
file:C:/Dev/projectm/classes/com/letsys/erespond/business/model/network/Device.jdo
When I do a Class.forName() on each of the classes, I see that it loads in
all the .jdo files.
Chris.
"Marc Prud'hommeaux" <[email protected]> wrote in message
news:[email protected]..
Chris-
Strange. It does seem like your PersistentTypes property is not being
used at all.
Can you try casting your pmf to a JDBCPersistenceManagerFactory and
seeing if your types have actually been registered with:
String[] types = pmf.getConfiguration ().getPersistentTypeNames ();
In article <bop53p$a5u$[email protected]>, Chris McCarthy wrote:
Hi Patrick,
Just tried it and yes, doing a Class.forName() on the classes I insert
does provide a work-around.
Any idea what is causing this ?
Regards,
Chris.
"Patrick Linskey" <[email protected]> wrote in message
news:boc31n$7do$[email protected]..
Chris,
What happens if you do a Class.forName() (or just a class reference) to
each of your persistent classes before executing any JDO code?
-Patrick
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com

Similar Messages

  • How to tcack the table update event in sap for all tables by use of single

    Hello,
         I want to store the list of all OM,HR tables in a file which are updated after perticular date. For that i tried TRIGGER but i can write only one trigger for one table, i want such a that  i have to write only one trigger which will be invoked affter update operation on every HR,OM tables and i store information in a file  regarding which rows are updated and external application can use it.
    Thanks in advance,     
    SANDIP

    hi all the log for the change of any thing will be available in the tables DBTABLOG..REPOSRC ....
    regards,
    venkat.

  • How to implement line selectability for a table control using table Wizard?

    Hello SDN Community,
    I have created a table control using the Table Wizard.  I found my exact question in this forum, but unfortunately it had not been andsered.  While I cannot paste a screen-print into this plane-text area, here are the steps I followed...
    1) SE51
    2) Create new screen 0100
    3) Click Layout button
    4) Clidk Table Control (with Wizard) and draw box on canvas.
    5) Step is "Start" - click Continue
    6) Step is "Name of Table Control" - provided name
    7) Step is "Table Name" - provided name of dictionary table (AUFK)
    8) Step is "Definition of Columns" - selected order numver and order text
    9) Step is "Table Control Attributes" - Line Selectability is in display mode - cannot set it.
    I would like to have a selectability column for my table.  Would appreciate any insight into how to do this.
    Thank you,
    Dean Atteberry.

    This is a puzzling...
    For the table control wizard, in the Table Control Attributes step, I was able to get line selectability to open up by declaring a char01 data element at the beginning of my type.
    The puzzling is in regards to the "Selection col. fld" entry field.
    If I leave it blank and try to go to the next step, I get message "Enter the name of the selection column if you are using a program table"
    So it looked like it wanted to know the name of my selection column.  So I type in "CHAR1".  and got the message "The field "CHAR1" for the selection column is already contained in the table."
    Hmmmmm.... don't understand............
    Dean Atteberry.

  • OJ syntax for multi-table left outer join with MS Oracle Driver

    I have a multi-table left outer join that works fine in SQL Server ODBC Driver, Oracle ODBC driver 8.01.07.00, but not with Microsoft ODBC Driver for Oracle 2.573.7326.0
    SELECT * from { oj A LEFT OUTER JOIN B ON A.col1 = B.col1 LEFT OUTER JOIN C ON A.col1 = C.col1 }
    I noticed someone had a similar problem (the proposed solution doesn't work):
    http://www.justpbinfo.com/listarchive/msg02874.html
    Does anyone know how to get this working with the Microsoft ODBC Driver for Oracle? Or does it just not work?

    The Microsoft ODBC Driver for Oracle 2.573.7326.0 does perform the same 'fix up' with {oj} in Oracle 8i. The problem is that it doesn't work when joining more than two tables:
    This works:
    SELECT * from { oj A LEFT OUTER JOIN B ON A.col1 = B.col1}
    This doesn't work:
    SELECT * from { oj A LEFT OUTER JOIN B ON A.col1 = B.col1 LEFT OUTER JOIN C ON B.col1 = C.col1 }
    (The second query will work with the Oracle Oracle ODBC driver, with a bit of tweaking. But I haven't found a way to get it to work with the Microsoft ODBC Driver for Oracle 2.573.7326.0. My suspicion is that it just doesn't work.)
    Gavin

  • Required to create a script for base table update using XMLSTORE package.

    Hi can anybody provide me some help full suggestion on how to update base table using XMLSTORE package.
    I created a simple script for Employee table and can able to do the basic operation like Insert and update on the table.
    Query is as follow's
    DECLARE
    insCtx DBMS_XMLSTORE.ctxType;
    rows NUMBER;
    xmlDoc CLOB :=
    '<ROWSET>
    <ROW num="1">
    <EMPLOYEE_ID>922</EMPLOYEE_ID>
    <SALARY>1801</SALARY>
    <HIRE_DATE>17-DEC-2007</HIRE_DATE>
    <JOB_ID>ST_CLERK</JOB_ID>
    <EMAIL>RAUSSJACK</EMAIL>
    <LAST_NAME>JACK</LAST_NAME>
    <DEPARTMENT_ID>20</DEPARTMENT_ID>
    </ROW>
    <ROW>
    <EMPLOYEE_ID>923</EMPLOYEE_ID>
    <SALARY>2001</SALARY>
    <HIRE_DATE>31-DEC-2005</HIRE_DATE>
    <JOB_ID>ST_CLERK</JOB_ID>
    <EMAIL>PATHAK</EMAIL>
    <LAST_NAME>PRATIK</LAST_NAME>
    <DEPARTMENT_ID>20</DEPARTMENT_ID>
    </ROW>
    </ROWSET>';
    BEGIN
    insCtx := DBMS_XMLSTORE.newContext('EMPLOYEES'); -- Get saved context
    DBMS_XMLSTORE.clearUpdateColumnList(insCtx); -- Clear the update settings
    -- Set the columns to be updated as a list of values
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'EMPLOYEE_ID');
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'SALARY');
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'HIRE_DATE');
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'JOB_ID');
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'EMAIL');
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'LAST_NAME');
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'DEPARTMENT_ID');
    -- Insert the doc.
    rows := DBMS_XMLSTORE.insertXML(insCtx, xmlDoc);
    --COMMIT;
    DBMS_OUTPUT.put_line(rows || ' rows inserted.');
    -- Close the context
    DBMS_XMLSTORE.closeContext(insCtx);
    END;
    SELECT employee_id, LAST_name FROM employees WHERE employee_id = 114;
    DECLARE
    updCtx DBMS_XMLSTORE.ctxType;
    rows NUMBER;
    xmlDoc CLOB :=
    '<ROWSET>
    <ROW>
    <EMPLOYEE_ID>114</EMPLOYEE_ID>
    <LAST_NAME>PRABHU</LAST_NAME>
    </ROW>
    </ROWSET>';
    BEGIN
    updCtx := DBMS_XMLSTORE.newContext('EMPLOYEES'); -- get the context
    DBMS_XMLSTORE.clearUpdateColumnList(updCtx); -- clear update settings
    -- Specify that column employee_id is a "key" to identify the row to update.
    DBMS_XMLSTORE.setKeyColumn(updCtx, 'EMPLOYEE_ID');
    rows := DBMS_XMLSTORE.updateXML(updCtx, xmlDoc); -- update the table
    DBMS_XMLSTORE.closeContext(updCtx); -- close the context
    commit;
    END;
    Nowi want little modification on this above query like as i am passing static XML tags and i want it to pick the dynamic XML from web and use the XMLSTORE for the update.
    and also for complex XML having 2-3 levels how this query needs to be changed.As i am new to this Oracle utillity any help from xepert will be a great help for me.
    Thanks

    Nowi want little modification on this above query like as i am passing static XML tags and i want it to pick the dynamic XML from webFrom a Web Service?
    You'll need UTL_HTTP or HttpUriType interface to send the request and receive the XML response.
    Search in the forum, there are already a lot of useful examples available.
    and also for complex XML having 2-3 levels how this query needs to be changed.DBMS_XMLStore is OK for readily processing a canonical XML format (/ROWSET/ROW/COLUMN structure or alike).
    However, if you have to deal with a more complex structure, you either have to :
    - use a target object table that matches the XML structure
    - preprocess the input document using XSLT to transform it to canonical format
    That's why DBMS_XMLStore is not appropriate for multilevel documents, especially if they contain nested repeating groups.
    In this case, XMLTable is a more flexible way of parsing the XML and process it relationally at the same time.
    Depending on the size of the document, performance may be improved with schema-based object-relational storage.
    For more help, please post a new thread in the {forum:id=34} forum, with the following information :
    - database version (select * from v$version)
    - a sample XML document (the complex one)
    - DDL of your target table
    - mapping between XML elements and columns (ie which tag goes to which column?)
    - an XML schema (if you have one)

  • Scheduler for Export Table utility using PL/SQL developer Tool

    Hi,
    Is there any way by which i can schedule manually export tables from a user using PL/SQL developer tool 'Export Tables' utility.
    As i have lot many schema a for each i have to manually exporting all tables using this utility.
    Please suggest.
    Thanks,

    Hello,
    do you mean PL/SQL developer from Allroundautomation? Then this is the wrong forum.
    Do you mean the export feature from SQL Developer, that you can invoke on right click in a result pane? You cannot automate it.
    But if you tell us more about your requirements we might be able to find a good solution for you. Yet this is a question for the {forum:id=75} forum. There is a FAQ {message:id=9360007}. This combined with dbms_scheduler or a scheduled job on your computer might solve the problem.
    Regards
    Marcus

  • Scheduler for Export Table utility using PL/SQL developer

    Hi,
    Is there any way by which i can schdule manually export tables from a user using PL/SQL developer 'Export Tables' utility.
    As i have lot many schema a for each i have to manually exporting all tables using this utility.
    Please suggest.
    Thanks,

    My suggestion is you re-ask this question on the forums of the vendor of PL/SQL Developer, Allround automations, http://www.allroundautomations.com
    If you are asking about SQL Developer, it has it's own forum on OTN.
    Sybrand Bakker
    Senior Oracle DBA

  • Can't create object for multi instance when using GetObject("myconfig1")

    Hello,
    I have the Indesign Server CS6 Multi Instance. I create an instance using the InDesign Server Windows Service:
    Port: 12000
    Args: -configuration myconfig1
    Now I tried in Visual Basic: GetObject("myconfig1")
    Then I get a can't create ActiveX component exception.
    Notes:
    The service "InDesignServerService x64" is running.
    The InDesign Server instance was started.
    I can access the instance via SOAP: http://localhost:12000/
    Why can I not create the object in Visual Basic?
    Thank you for help!
    Harald

    I found that you need to create the object if it does not already exist, to I implemented that with a try catch, try to get it and if you can't then create it. when you start it I also found it was slow so I have to put a pause in to wait for it. The below code should hopefully be enough to help.
      Private Sub AttachToInstance(ObjectName As String, InDesignAppPath As String, ByRef Restarted As Boolean)
            Try
                oInDesign = GetObject(ObjectName)
            Catch ex As Exception ' instance not running, start it
                Restarted = True
                StartInDesignInstance(ObjectName, InDesignAppPath)
                Threading.Thread.Sleep(5000)
                oInDesign = GetObject(ObjectName)
            End Try
        End Sub
        Private Sub StartInDesignInstance(ObjectName As String, InDesignAppPath As String)
            Dim ProcessProperties As New ProcessStartInfo
            ProcessProperties.FileName = "InDesignServer"
            ProcessProperties.Arguments = "-configuration " & ObjectName
            ProcessProperties.CreateNoWindow = True
            ProcessProperties.WorkingDirectory = InDesignAppPath
            Dim myProcess As Process = Process.Start(ProcessProperties)
        End Sub

  • Program Installation for Multi-CD Software using USB mass storage

    Since IdeaPad S series laptop pc has no cd rom device, programs may be installed by using mass storage device, such as usb flash memory. It works fine for programs that have size of single cd. However, when the size of program is bigger than one cd, then I don't know how to react upon asking "Insert Next CD and click OK". Please let me know how to do.
    Solved!
    Go to Solution.

    Ah

  • Control the Batch Size for inseting tables using xi

    Hi Friends,
    Please let me know if we are able to control the batch size for inserting data using procedures for staging tables. Using SAP XI. Any blogs on this. or any information. please let us know.
    Thank you
    Regards
    Ramidi

    Hi Ramidi,
    There is something called message split on adapter engine but it won't guarantee a sequence of adapter calls.
    here is a blog about it:
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Maybe there is also an another simple way to do it.
    Regards,
    Wojciech
    <i>** Please reward points if found it useful **</i>

  • Multi-table INSERT with PARALLEL hint on 2 node RAC

    Multi-table INSERT statement with parallelism set to 5, works fine and spawns multiple parallel
    servers to execute. Its just that it sticks on to only one instance of a 2 node RAC. The code I
    used is what is given below.
    create table t1 ( x int );
    create table t2 ( x int );
    insert /*+ APPEND parallel(t1,5) parallel (t2,5) */
    when (dummy='X') then into t1(x) values (y)
    when (dummy='Y') then into t2(x) values (y)
    select dummy, 1 y from dual;
    I can see multiple sessions using the below query, but on only one instance only. This happens not
    only for the above statement but also for a statement where real time table(as in table with more
    than 20 million records) are used.
    select p.server_name,ps.sid,ps.qcsid,ps.inst_id,ps.qcinst_id,degree,req_degree,
    sql.sql_text
    from Gv$px_process p, Gv$sql sql, Gv$session s , gv$px_session ps
    WHERE p.sid = s.sid
    and p.serial# = s.serial#
    and p.sid = ps.sid
    and p.serial# = ps.serial#
    and s.sql_address = sql.address
    and s.sql_hash_value = sql.hash_value
    and qcsid=945
    Won't parallel servers be spawned across instances for multi-table insert with parallelism on RAC?
    Thanks,
    Mahesh

    Please take a look at these 2 articles below
    http://christianbilien.wordpress.com/2007/09/12/strategies-for-rac-inter-instance-parallelized-queries-part-12/
    http://christianbilien.wordpress.com/2007/09/14/strategies-for-parallelized-queries-across-rac-instances-part-22/
    thanks
    http://swervedba.wordpress.com

  • Activate change logs for the table V_T007K

    Hi,
    Change log check box is activated in table and change logs is activated in system. But still I am not able to view any change logs recorded for the table V_T007K using SCU3 transaction.
    I tried by changing some data and than checked the SCu3 transaction. nothing is recorded against the table.
    Please let me know what needs to be done to capture the change logs for the changes done to the data in the table V_T007k table.
    Thanks in Advance.
    Thanks & Regards,
    Madhuri.

    Hi
    The table u mentioned V_T007k  is not a transparent table
    .its a view only for views u cant track changes.
    But only for transparent tables u can only track changes thru SCU3
    Also u can find the changes in a table from SAP TABLE
    CDHDR and CDPOS.
    if helpful reward me points.
    Regards
    Manas Ranjan Panda

  • Custom code for Multi-org - Use x_all tables or views with set_client_info?

    Trying to determine what is normal for custom sql and plsql within 11i. I am trying to find out what other 11i installations are using in regards to custom code. Are you using the all tables or using the views utilizing setclient_info. Any feedback would be appreciated.
    Note: We have converted to multi-org and are setup as a single organization.
    Thanks, Ira

    Hi,
    Using views or table are depend upon the requirement of clinets and implementation.
    If one need to access multiple tables, its always good to have a view and access that... else its same to access view or table...
    Thanks
    Yogi

  • VLD-1119: Unable to generate Multi-table Insert statement for some or all t

    Hi All -
    I have a map in OWB 10.2.0.4 which is ending with following error: -
    VLD-1119: Unable to generate Multi-table Insert statement for some or all targets.*
    Multi-table insert statement cannot be generated for some or all of the targets due to upstream graphs of those targets are not identical on "active operators" such as "join".*
    The map is created with following logic in mind. Let me know if you need more info. Any directions are highly appreciated and many thanks for your inputs in advance: -
    I have two source tables say T1 and T2. There are full outer joined in a joiner and output of this joined is passed to an expression to evaluate values of columns based on
    business logic i.e. If T1 is available than take T1.C1 else take T2.C1 so on.
    A flag is also evaluated in the expression because these intermediate results needs to be joined to third source table say T3 with different condition.
    Based on value taken a flag is being set in the expression which is used in a splitter to get results in three intermediate tables based on flag value evaluated earlier.
    These three intermediate tables are all truncate insert and these are unioned to fill a final target table.
    Visually it is something like this: -
    T1 -- T3 -- JOINER1
    | -->Join1 (FULL OUTER) --> Expression -->SPLITTER -- JOINER2 UNION --> Target Table
    | JOINER3
    T2 --
    Please suggest.

    I verified that their is a limitation with the splitter operator which will not let you generate a multi split having more than 999 columns in all.
    I had to use two separate splitters to achieve what I was trying to do.
    So the situation is now: -
    Siource -> Split -> Split 1 -> Insert into table -> Union1---------Final tableA
    Siource -> Split -> Split 2 -> Insert into table -> Union1

  • Can you use the value from a numeric indicator in a numeric control?

    Hi!
         I have to develop a code where I have to find the maximum value of a waveform and draw a line at 50% of the value. So I chose to find the amplitude of say 10 cycles of waveforms and found the maximum value out of the amplitudes. 
    But my real problem is, I have to use the maximum amplitude value that I get from the max. array VI and put it back in program to calculate the 50% value. 
    So is it possible to use the value from a numeric indicator and put it in a numeric control? Like in MATLAB or C, you give the variable a name and use it later to do any computations. Is it possible to do something similar in LabVIEW? 
    Solved!
    Go to Solution.

    Hi!
         Thank you very much for taking some time out. I have been trying to do this since 2 months and I am stuck right where I am.
    The situation is, I have to calculate the amplitude of the irregular waveform for a few trials and then find the maximum amplitude out of the trials and display a line at whatever % of amplitude the user chooses. I tried using property nodes but I am getting Error 1055 for some unknown reason. Then I decided to draw the line using DC offset but it turns out it calculates the amplitude each time and so the line keeps dancing everytime. Now my challenge is to have the amplitude calculated for say, 20 loops and then calculate the max from that. I ran out of ideas so I am posting here. I am using LabVIEW version 8, and I'll upload a few of my attempts. I hope I am not troubling you'll much.
    Attachments:
    amplitude display.vi ‏217 KB
    amplitude display 1.vi ‏148 KB
    Using property node.vi ‏56 KB

Maybe you are looking for

  • Page cannot be displayed while  running report in OAS (10.1.2.3)form/report

    Hi All, I have a report which take 4 hrs time to execute the report If i run this 4 hrs report,the report runs sucessfully when we see in particular report server in application server. But, we wont get any pop up to open report after executing suces

  • Backing up iPhoto keywords

    Hi all I've spent a good amount of time assigning keywords to all of the photos in my iPhoto library. It's made life wonderful but I want to back up my time investment. What's the best way to back up iPhoto so that it will retain all of my keywords?

  • Transport Doubt

    Hi Transport Gurus If cube is collected in a request and released and not migrated to other system. I make changes to cube and save it to a new request. What will happen to the not yet migrated request it fails after migrating if all dependent object

  • Can't connect to WebCenter Discussions server

    Hello, I configured the discussions server under the WebCenter section in the Enterprise Manager, but after restarting everything, I keep getting the following message: failure to authenticate the user weblogic, due to: Unexpected error occurred, due

  • Help me to sort out this problem...

    hi, i am doing an assignment in jsp..there i have a problem.. i am accessing s database table and printing it on a table like.. ResultSet rs=st.executeQuery("select * from staff"); while (rs.next()) { j=j+1;%> <tr><td align="center"><%=rs.getString(1