Setting packetSize given in JDBCDriver.

I am using, Java, Jboss, Hibernate, SqlServer 2008 R2, getting following exception
WARNING [com.microsoft.sqlserver.jdbc.internals.TDS.Reader] (pool-26-thread-7) ConnectionID:4 TDS header contained invalid packet length:12590; packet size:8000
SEVERE [com.microsoft.sqlserver.jdbc.internals.TDS.Reader] (pool-26-thread-7) ConnectionID:4 got unexpected value in TDS response at offset:7992
ERROR [STDERR] (pool-25-thread-2) Exception in thread "pool-25-thread-2"
ERROR [STDERR] (pool-25-thread-2) org.hibernate.TransactionException: JDBC rollback failed
[STDERR] (pool-25-thread-2) at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:204)
[STDERR] (pool-25-thread-2) at com.wideplay.warp.persist.hibernate.HibernateLocalTxnInterceptor.rollbackIfNecessary(HibernateLocalTxnInterceptor.java:149)
[STDERR] (pool-25-thread-2) at com.wideplay.warp.persist.hibernate.HibernateLocalTxnInterceptor.invoke(HibernateLocalTxnInterceptor.java:72)
[STDERR] (pool-25-thread-2) at com.softpak.marserm.engine.library.impl.JobReportStatusUtil.updateReportStatus(Unknown Source)
[STDERR] (pool-25-thread-2) at com.softpak.marserm.engine.library.impl.ExecutableJob.run(Unknown Source)
[STDERR] (pool-25-thread-2) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[STDERR] (pool-25-thread-2) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[STDERR] (pool-25-thread-2) at java.lang.Thread.run(Thread.java:662)
[STDERR] (pool-25-thread-2) Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The connection is closed.
[STDERR] (pool-25-thread-2) at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:170)
[STDERR] (pool-25-thread-2) at com.microsoft.sqlserver.jdbc.SQLServerConnection.checkClosed(SQLServerConnection.java:304)
ERROR [STDERR] (pool-25-thread-2) at com.microsoft.sqlserver.jdbc.SQLServerConnection.rollback(SQLServerConnection.java:1655)
ERROR [STDERR] (pool-25-thread-2) at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcRollback(BaseWrapperManagedConnection.java:697)
ERROR [STDERR] (pool-25-thread-2) at org.jboss.resource.adapter.jdbc.WrappedConnection.rollback(WrappedConnection.java:500)
ERROR [STDERR] (pool-25-thread-2) at org.hibernate.transaction.JDBCTransaction.rollbackAndResetAutoCommit(JDBCTransaction.java:217)
ERROR [STDERR] (pool-25-thread-2) at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:196)
ERROR [STDERR] (pool-25-thread-2) ... 7 more
I need to increase packetSize given in JDBCDriver (sqljdbc4), How can I do this?
I tried many things including defining <packetSize>32767</packetSize> in ds.xml but no use, getting this exception now
SEVERE [com.microsoft.sqlserver.jdbc.internals.TDS.TOKEN] (pool-27-thread-7) ConnectionID:1: FetchBufferTokenHandler: Encountered unexpected unknown token (0x30)
SEVERE [com.microsoft.sqlserver.jdbc.internals.TDS.Reader] (pool-27-thread-7) ConnectionID:1 got unexpected value in TDS response at offset:7282
SEVERE [com.microsoft.sqlserver.jdbc.internals.TDS.TOKEN] (pool-27-thread-7) ConnectionID:1: getNextResult: Encountered unexpected unknown token (0x30)
SEVERE [com.microsoft.sqlserver.jdbc.internals.TDS.Reader] (pool-27-thread-7) ConnectionID:1 got unexpected value in TDS response at offset:7282
Edited by: 1007286 on 22-May-2013 00:23

This isn't the place to ask questions about Microsoft products. I would try to find a manual for the JDBC driver on the Microsoft website if I were you. But I'm a curious chap so I did a quick Google for "sqlserver jdbc packetsize" and turned this up as the first result:
http://msdn.microsoft.com/en-us/library/ms378988%28v=sql.90%29.aspx
This documentation lists the property exactly as you say. However one (old) source of information is not enough, I check more results.
http://docs.oracle.com/cd/E13157_01/wlevs/docs30/jdbc_drivers/mssqlserver.html
This documentation has an interesting tidbit:
"NOTE: If SSL is enabled, the driver communicates with database protocol packets set by the server’s default packet size. Any value set by the PacketSize property is ignored. "
I would read more documentation if I were you.

Similar Messages

  • Set a given style to a given layer

    Hello there,
    My question touches cartography day to day problem with extract files from external cartography/ GIS programs to Adobe Illustrator format but can be seen in wider context.
    Let assume I have an exported ai file (map) that containt about 30-40 layers.
    Each layer keep structurized items that present given  map layer:
    poligon layers - lakes, forest, urban areas (closed shapes),
    line layers -  (rivers, roads, railways) etc.
    Thus I get about 30-40 layers.
    The name of the layers are always the same and each time I want to apply graphic style to given layer (all items in that layer) I have to manually pick up the style from graphic style library press and apply it to selected layer.
    I don't have to say I have to make it one by one to each of mentioned 40 layers....
    Is there any way to automate it via script ? like:
    If the name of layer is "Rivers" apply graphic style to it called "rivers_style"
    loop till the last layer in the defined list.
    Thank you in adance for any help,
    Regards
    Gregory

    Another option would be to create blank, template *.ai document with the same layers structure etc. where the style is assigned to the layer via "target button" on the layer pallet and then copy to that blank document with "paste remember layers" the map (ai) document I want to style and save with new proper name.
    Thus any items moved or copied to that documents will be restyled.
    http://www.cartotalk.com/index.php?showtopic=6019&st=0&p=33678&#entry33678
    Again it's semiautomated solution. But ... so let's redifine the question?
    Can anyone provide a script that in batch mode copy content of one file to another one, one by one:
    1.copy content of  "Map1_raw_data_unstyled" to "BLANK, TEMPLATE"
    2. save as (give an option to name it or save it with the same name "Map1_raw_data_unstyled" ),
    3.copy content of  "Map2_raw_data_unstyled.ai" to "BLANK_TEMPLATE.ai"
    4. save as (give an option to name it or save it with the same name "Map2_raw_data_unstyled")
    Any thoughts on this ?

  • Query to Identify Sets Having Given Pattern

    Hi,
    Assume that i have following table
    Id Code
    1 aaa
    1 bbb
    1 ccc
    2 aaa
    2 bbb
    2 ddd
    3 bbb
    3 eee
    The records will be grouped by Id. I want to identify sets having following criteria
    1. Set should have at least one record with code like 'a%'
    and should have at least one record for codes 'bbb', 'ccc' (in this case group 1 would be selected)
    2. Set should have at least one record with code like 'a%'
    and should have at least one record for either 'bbb' or 'ccc' (in this case group 1and 2 would be selected)
    Does anyone have idea about how this could be achieved efficiently? Any pointers, references would be appreciated
    Regards
    ~Pravin.

    Problem 1 Can be solved like:
    SQL> select * from t;
            ID CODE
             1 aaa
             1 bbb
             1 ccc
             2 aaa
             2 bbb
             2 ddd
             3 bbb
             3 eee
    8 rows selected.
    SQL> select id
      2  from t
      3  group by id
      4  having sum(case when code like 'a%' then 1 else 0 end) > 0
      5  and sum(decode(code,'bbb',1,0)) > 0
      6  and sum(decode(code,'ccc',1,0)) > 0;
            ID
             1
    <br>
    <br>
    Similarly Problem 2 can also be solved...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Ms Project 2013 report for resource name, tasks less than 100% complete within a date range I can set each time

    I have seen I can create a report for a resource name with a specified date range, and one that can show me for a resource name any incomplete tasks, but I want to do the following and cant work out how to state it in the report constructor:
    resource name equals - {I want to set a given resource in here}
    % complete is less than 100%
    start - date range is between [today -7 days] and [today +7 days]
    Please can someone show me how this is possible, I know it will be and it is me that has been defeated!!

    workspacedesign,
    Oops, my bad. I missed the point that the Name field for assignment rows will be the task name and that's not what you want. There is also a glitch in the date range filter. So, here's how to fix that.
    First, in the Resource Usage view, copy the Name field to Text1. Now select the resource line and do a fill down for all assignments under that resource. Do that for each resource. This could be automated with VBA, but for now, a manual setup should work
    fine.
    Second, instead of testing for the Name field in the filter, test for the Text1 field.
    Third, change the Finish test to be "less than or equal to".
    Now when you apply that filter, enter beginning date of your range and then the ending date of your range followed by the resource name. You should get the data you want.
    Unfortunately formulas in custom fields are not as flexible in Project as they are in Excel. For example, in Project a formula can only operate on data for that row. Further, even if you use the formula Today() +7 for your filter criteria, the first time
    the filter is used, Project will hard code today's date into the filter. The normal way around both of these shortcomings is to use VBA.
    Hope this helps.
    John

  • How to set a menu as a top or root one

    Hello to all,
    I am using Encore CS5.1
    1)The problem.
    I would like to set the first menu in the sequence as the "Root menu" (or "Top menu" depending on the remote control).
    Unfortunately in the DVD I have made each time I click on the key "Top menu" the DVD comes back to a submenu.
    2)The details
    Let's look at the following flowchart.
    I would like to transform the menu "Nicole_et_JP" (yellow circle) as the "Top menu". The problem is that when I click on the "Top menu" key on my remote control the DVD player goes to "C_etait_nous_menu" (red circle).
    Maybe the numbers B2 (for the first one) and B1 (for the second one) are related to the problem.
    3)The question
    I have not found out the answer in the help. So could you help me to learn how to set a given menu as a root (or top) one.
    Any help appreciated, thank you.
    Jean-Paul

    I don't know where I got this note, but it illustrates why I stay confused about remotes:
    DVDs have a title or top menu, which will take the user to the menu specified for title remote. Timelines have a menu property, which takes you to the menu specified for the timeline (menu remote). The two should not be confused.
    Go to the Flowchart and select the Disc icon. Then look at the Properties panel. Set the title remote as you wish - where will the user go when they push the top menu button.
    So, logically, I suspect that you do not have the "title remote" set correctly.
    But it may also turn out that the buttons are not doing what the Adobe help file says. (I suspect that is where I got the above verbiage. But I can't find it now.) And I have not gotten around to testing this. It is one of those things that can only be tested using real remotes and not computer player.
    Maybe the numbers B2 (for the first one) and B1 (for the second one) are related to the problem.
    The B1 and B2 show the default button for the menu.

  • Cycle sets in Counter plan

    How is it possible to create two cycle sets in one plan. I create one counter plan with one cycle set and save. Plan no is generated. Then how can i create a second cycle set for same plan no as the system is designed for Internal numbering of plan.
    Please explain me the real use of cycle set in multi counter plan. where it is used and when . for what purpose and steps on how to create two cycle sets for one multiple counter plan.
    Thanks in advance
    Murad shaikh

    Hi ,
    Check your config setting as given below
    Plant Maintenance and Customer Service> Maintenance Plans, Work Centers, Task Lists and PRTs> Maintenance Plans> Configure Special Functions for Maintenance Planning.
    The check box should be ticked.
    This allows the maintenance of multiple cycle sets in one plan. Thus you can define different cycle sets, and thus cycles, for calculating the dates within a plan. You can use the assignment between cycle sets and the maintenance item to control that only certain maintenance items generate a call object for certain dates. In the simplest case, a cycle set such as A - B - A - B can be defined. "A" leads to a small inspection and "B" leads to a big inspection.
    Also check below link
    http://help.sap.com/saphelp_di471/helpdata/EN/c9/fccf28f79611d4961300a0c93029cf/content.htm

  • Set hostname from wgm computer record?

    We used to set a given client Mac's "sharing name" via a little check-box. We maintained computer lists for print, app, and dock settings already, so why not control their names as well in one go? After a netinstall, each client would rename itself, not as part of the netboot process, but from its computer record in wgm (we don't use the "Sharing Name" for file sharing, but do use the name extensively for ARD, tracking software, content filter logs, etc). That way, even moving machines around without netinstalling them would still allow for quick setting-changes, including hostname, as soon as the client Mac booted. For the life of me I cannot find how to dictate down hostnames in 10.5 server.
    If this functionality has been removed (sigh), then what should I be doing? The goal, of course is to simplify our deployment process, be it new hardware or a swap, so that only one list needs to be changed (preferably server-side as with a wgm computer record). I'm comfortable with any calibre of solution so long as it is very robust and reliable, and will allow for an easy final process. That is, I'll make the time- and learning- investment to set up "the right way" now, be it a new server or to learn Bombich's [PHPServices|http://www.bombich.com/software/docs/netrestore/English/index.html ], or, or whatever... just so when 300 clients need to be deployed by our horrifically understaffed IT trench guys, they don't have to authenticate 900 times and rename 300 times.
    If I'm doing it all wrong, let me know... really, any advice appreciated.
    Cheers, Joel

    Workgroup Manager > Computer or Group > Preferences > Login > Options > Set computer name...

  • Profile set creation problem..

    Hi,
    I was trying to create profile set..but when I select attribute list from left, I am unable to expand data source ( attribute set & attribute )  & hence unable to drag to modelling area....don't know where did i mess up...?
    Your guidance will be appreciated
    Thanks in advance
    Anil

    Hi Deepak,
    sorry. lemme tell you what z happening.
    Everything is ok till maintaing data source for segment builder.attribute list is created with attribute set. i can see assigned attributes & these are filtered as well.basically in this section I can see my attribute set & expand these to see filtered attributes.no problem so far.
    now coming to segment builder craete profile set, then camapign execution then camapign, new profile set is given a name.If i go left to attribute set & scroll to my attribute list I cannot see anything below attributes in component area. it seems nothing is being selected. i tried to save & see. no results.Obviously no drag/drop in staging area.
    I know this is a very basic problem but i have nobody around me who i can sit with & sort out. I am just referring different materials & practising on my system.
    If you can reply on anilbatra1athotmail.co.uk as i think i shouldn't waste everybody's precious time on such a basic operational issue.
    Your prompt reply will be highly appreciated.
    regards.
    Anil

  • What is an ideal Mac video production set-up?

    G’day y’all,
    I am running the Final Cut Pro Studio version.
    I have done some basic Avid editing professionally over the past several years and purchased my PowerBook G4 to produce some family videos.
    I have been producing personal videos on my PowerBook for 2 years using Final Cut and are beginning to find some limitations like when I’m trying to have several video clips flying across the screen in Motion.
    What is an ideal Mac hardware video production set-up, given that I don’t have a huge budget? And what soft ware should I have in addition to Final Cut Pro Studio and Photoshop?
    Cheers and thanx m8s.
    PowerBook G4   Mac OS X (10.4.8)   2 GB DDR SDRAM 1 250 GB LaCie, 1 500 GB LaCie

    -MacPro...best model you can afford.
    -2.5GB RAM
    -250GB system drive.
    -500GB SATA drives installed internally...as many as you need. 750GB if you need more room. Go internal before you go external.
    -Two Apple Cinema Displays or Two Dell 2407 24" monitors. Dells are cheaper, but the Apple one would be good for:
    -Matrox MXO. This, in conjunction with an Apple Cinema Display means that you can look at your footage on the ACD at BROADCAST QUALITY. Yes, you can turn your ACD into a broadcast monitor. Huge plus.
    -Mackie 1402 Mixer. Just something to monitor the audio from a few sources.
    -M-Audio speakers (studio monitors)
    Final Cut Studio
    Photoshop if you intend on using stills.
    After Effects, Shake...if you plan on compositing.
    That should cover it.
    Shane

  • What is regular expression for cheking a set operation

    I want a regular expression for checking the syntax of the set operation given as input
    ex:
    the input should be
    [1,2,3]+[2,3] or [1,2]-[2] or [1,2,3]*[1,2]
    is should check the square bracket and the operator between two set operands

    I think you should code that from scratch. When you validate input, you usually want to tell the user what they did wrong, but a regex will only tell you whether it matches or not.

  • Correlation set & onMessage

    Hi.
    I have process with many receive operations. There is defined Correlation set and properties. Everything goes fine: I can send messages to process and get reply :o)
    But when I add onMessage branch to process scope with same Correlation set and add property with setting for given operation, I can't send message to operation which is defined as onMessage.
    Thanks for advice.

    I made some changes in wsdl (remove imported xsd) and now I get
    ORABPEL-03810 Conflicting receive. Another receive activity or equivalent (currently, onMessage branch in a pick activity) has already been enabled with the partnerLink "client", operation name "Cancel" and correlation set "{{http://xmlns.oracle.com/Process/correlationset}orderId_property={http://xmlns.oracle.com/Process/correlationset}orderId_property=}" (or conversation id). Appendix A - Standard Faults in the BPEL 1.1 specification specifies a fault should be thrown under these conditions.
    I don't understand it. I have this operation only one time.
    First receive -> operation: Initiate
    onMessage -> operation: Cancel
    Where is the conflict?

  • Setting image as wallpaper

    does anyone know how to programatically set an given image as the windows
    background (wallpaper)?
    pat

    Hmm- this was asked quite recently as I recall, and the suggestion at the
    time was to set the background to be a web page, updating periodically, and
    have your VI simply update the web page.
    The direct approach which I'd try myself is to, via ActiveX, try and find
    the function IE calls when you pop the right mouse button menu over an image
    to use that image as the desktop image. This would require some browsing
    through the various properties and methods in the Internet Explorer classes.
    Both options require Internet Explorer. To do it without, you would need to
    go into the Windows API and figure out how to update the desktop image at
    the lower level.
    patrick sincebaugh wrote in message
    news:[email protected]..
    >
    > does any
    one know how to programatically set an given image as the windows
    > background (wallpaper)?
    >
    > pat

  • ClassCastException in KodoHelper

    Hi Folks
    I received a ClassCastException when invoking KodoHelper.getPersistenceManagerFactory(File). The exception implies to me that Kodo is casting its PersistenceManagerFactoryImpl class to some incompatible type.
    Here is the contents of kodo.properties:
    javax.jdo.PersistenceManagerFactoryClass=kodo.jdo.PersistenceManagerFactoryImpl
    kodo.ConnectionURL=jdbc:hsqldb:file://c:/projects/temporal/db/temporaldb
    kodo.ConnectionDriverName=org.hsqldb.jdbcDriver
    kodo.ConnectionUserName=sa
    kodo.ConnectionPassword=
    kodo.MetaDataFactory=jdo
    kodo.Log=DefaultLevel=WARN, Runtime=TRACE, Tool=TRACE
    Here is the log output:
    C:\dev\jdk1.5.0_07\bin\java -Didea.launcher.port=7542 "-Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA 5.1\bin" -Dfile.encoding=windows-1252 -classpath "C:\dev\jdk1.5.0_07\jre\lib\charsets.jar;C:\dev\jdk1.5.0_07\jre\lib\deploy.jar;C:\dev\jdk1.5.0_07\jre\lib\javaws.jar;C:\dev\jdk1.5.0_07\jre\lib\jce.jar;C:\dev\jdk1.5.0_07\jre\lib\jsse.jar;C:\dev\jdk1.5.0_07\jre\lib\plugin.jar;C:\dev\jdk1.5.0_07\jre\lib\rt.jar;C:\dev\jdk1.5.0_07\jre\lib\ext\dnsns.jar;C:\dev\jdk1.5.0_07\jre\lib\ext\localedata.jar;C:\dev\jdk1.5.0_07\jre\lib\ext\sunjce_provider.jar;C:\dev\jdk1.5.0_07\jre\lib\ext\sunpkcs11.jar;C:\projects\temporal\build\classes;C:\dev\kodo-4.0.1\lib\xml-apis.jar;C:\dev\kodo-4.0.1\lib\sqlline.jar;C:\dev\kodo-4.0.1\lib\jdbc2_0-stdext.jar;C:\dev\kodo-4.0.1\lib\xalan.jar;C:\dev\kodo-4.0.1\lib\jdo.jar;C:\dev\kodo-4.0.1\lib\kodo.jar;C:\dev\kodo-4.0.1\lib\jpa.jar;C:\dev\kodo-4.0.1\lib\xercesImpl.jar;C:\dev\kodo-4.0.1\lib\wldfchart.jar;C:\dev\kodo-4.0.1\lib\kodo-api.jar;C:\dev\kodo-4.0.1\lib\jdbc-hsql-1_8_0.jar;C:\dev\kodo-4.0.1\lib\jline.jar;C:\dev\kodo-4.0.1\lib\jca1.0.jar;C:\dev\kodo-4.0.1\lib\jndi.jar;C:\dev\kodo-4.0.1\lib\kodo-runtime.jar;C:\dev\kodo-4.0.1\lib\jta-spec1_0_1.jar;C:\dev\kodo-4.0.1\lib\kodo-wl81manage.jar;C:\dev\kodo-4.0.1\lib\kodo-jboss4manage.jar;C:\projects\temporal\build\config;C:\Program Files\JetBrains\IntelliJ IDEA 5.1\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain net.uk.roos.util.SeedDatabase
    Using kodo configuration from resource: C:\projects\temporal\build\config\kodo.properties
    0 TRACE [main] kodo.Runtime - Setting the given properties into configuration: {kodo.Log=DefaultLevel=WARN, Runtime=TRACE, Tool=TRACE, kodo.ConnectionPassword=, kodo.ConnectionURL=jdbc:hsqldb:file://c:/projects/temporal/db/temporaldb, javax.jdo.PersistenceManagerFactoryClass=kodo.jdo.PersistenceManagerFactoryImpl, kodo.MetaDataFactory=jdo, kodo.ConnectionUserName=sa, kodo.ConnectionDriverName=org.hsqldb.jdbcDriver}
    281 INFO [main] kodo.Runtime - Starting Kodo 4.0.1
    281 DEBUG [main] kodo.Runtime - License capabilities: "Kodo Standard Edition,Remote Commit Listeners,Kodo Community Edition,Datacache Plug-in,Enterprise Databases,Query Extensions,Performance Pack,Statement Batching,Kodo Enterprise Edition,Custom Fetch Groups,Managed Environment,Developer Tools,Custom DBDictionaries" Expiration: "-" Maintenance expiration: "-"
    281 TRACE [main] kodo.Runtime - kodo.ManagementConfiguration: none
    kodo.PersistenceServer: false
    kodo.Compatibility: default
    kodo.OrphanedKeyAction: log
    kodo.jdbc.Schemas:
    kodo.jdbc.LRSSize: query
    kodo.DynamicDataStructs: false
    kodo.RetryClassRegistration: false
    kodo.jdbc.SchemaFactory: dynamic
    kodo.ConnectionURL: jdbc:hsqldb:file://c:/projects/temporal/db/temporaldb
    kodo.jdbc.SynchronizeMappings: false
    kodo.BrokerImpl: default
    kodo.ConnectionDriverName: org.hsqldb.jdbcDriver
    kodo.MetaDataFactory: jdo
    kodo.jdbc.MappingDefaults: jdo
    kodo.ManagedRuntime: auto
    kodo.QueryCompilationCache: true
    kodo.ReadLockLevel: read
    kodo.jdbc.FetchDirection: forward
    kodo.DataCacheTimeout: -1
    kodo.ClassResolver: default
    kodo.ConnectionUserName: sa
    kodo.jdbc.TransactionIsolation: default
    kodo.IgnoreChanges: false
    kodo.InverseManager: false
    kodo.ConnectionRetainMode: on-demand
    kodo.Sequence: table
    kodo.SavepointManager: in-mem
    kodo.ConnectionPassword:
    kodo.AutoDetach:
    kodo.TransactionMode: local
    kodo.NontransactionalRead: true
    kodo.DetachState: loaded
    kodo.AutoClear: datastore
    javax.jdo.PersistenceManagerFactoryClass: kodo.jdo.PersistenceManagerFactoryImpl
    kodo.BrokerFactory: jdbc
    kodo.Multithreaded: false
    kodo.Log: DefaultLevel=WARN, Runtime=TRACE, Tool=TRACE
    kodo.QueryCache: true
    kodo.jdbc.UpdateManager: default
    kodo.jdbc.ResultSetType: forward-only
    kodo.ProxyManager: default
    kodo.LockTimeout: -1
    kodo.RetainState: true
    kodo.RestoreState: immutable
    kodo.FlushBeforeQueries: true
    kodo.ConnectionFactoryMode: local
    kodo.FetchBatchSize: -1
    kodo.Optimistic: true
    kodo.jdbc.EagerFetchMode: parallel
    kodo.FetchGroups:
    kodo.LockManager: pessimistic
    kodo.jdbc.SubclassFetchMode: join
    kodo.NontransactionalWrite: false
    kodo.WriteLockLevel: write
    Exception in thread "main" java.lang.ClassCastException: kodo.jdo.PersistenceManagerFactoryImpl
         at kodo.runtime.KodoHelper.getPersistenceManagerFactory(KodoHelper.java:66)
         at net.uk.roos.util.SeedDatabase.go(Unknown Source)
         at net.uk.roos.util.SeedDatabase.main(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.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
    Process finished with exit code 1
    Thanks and regards, Robin.
    Robin Roos (robin at roos dot uk dot net)

    I solved my problem by defining a Properties object with the required configuration information and using JDOHelper.getPersistenceManagerFactory(Properties) instead of (File).
    Kind regards, Robin.

  • WBS Element in Production Order

    Hi Gurus,
    Just would like to briefly understand, how I can make use of the WBS Element in the Production Order (Assignment tab) to use as cost settling for a production order? How do i automate the WBS Element in the production Order for a set of given parameters? Is there a config I can use to set a profile?
    I have a scenario here as below:
    I have various types of production orders:
    PO 1 = Production A
    PO 2 = Production B
    PO 3 = Production C
    And for each of the above, I will individually have a WBS Element.
    PO1 - WBS Element A
    PO2 - WBS Element B
    PO3 - WBS Element C
    And WBS Element A, B and C is a Level 2 WBS Element which are tied to WBS Element Z (Level 1 WBS Element), which will be settled to a project.
    Appreciate your kind feedback on the above on how I can make it work by settling the cost to the WBS Element.
    Thanks.
    Rgds.

    hi,
    mainatain the settlement profile in order type. in txn oko7 settlement profile vaild receivers select wbse as settlement optional.
    in production orderheadersettlement rule maintain category as wbse and run the settlement txn ko88. now the actual production cost debit the wbse.
    regards,

  • How to make a handwriting font look like real handwriting in InDesign CS5

    This is a script I've written (AppleScript) that addresses the  problem most handwriting fonts have — they look like fonts, mostly  because they're settled so regularly along the baseline and their glyphs  are so uniform.
    It began as a way for me to address a  need for a project I was working on, something designed to look like a  scrapbook. I was using the "Journal" typeface designed by Fontourist  (http://www.dafont.com/journal.font), which gave me a good balance of  readability and organic feel, but of course it had the same issues as  all other fonts of its ilk.
    To address that I wrote a  script to trawl the taxt frames in a specified CS5 INDD document,  looking fist to see if they had that font as their active one, after  which the script shifts each glyph up or down the baseline by a random  amount, gives each glyph a random stroke weight change, and finally  tints each glyph a random amount off of its basic tint.
    Each  of these changes is very subtle, with the result being something that  looks considerably more organic and hand-made than the font did out of  the can. The script should be easily modified by anyone who wants to run  it using a different font instead of "Journal". Here it is. Enjoy!
    -- This script changes the  baseline offset, stroke width, and color tint
    -- of any type set in the "Journal" typeface to randomized values,  giving
    -- the text a much more organic look and feel.
    -- Written by Warren Ockrassa,  http://indigestible.nightwares.com/
    -- Free to use, modify and distribute, but I'd prefer attribution.
    -- Note that this script can take quite a while to execute with  larger
    -- or more complex files.
    set theItem to 0
    set theItem to choose file with prompt "Select a CS5 InDesign  document to modify..."
    if theItem is not equal to 0 then
         tell application "Adobe InDesign CS5"
             open theItem
             tell active document
                 -- Determine how many text frames we need to change
                 set myFrames to the number of text frames
                 if myFrames is not equal to 0 then
                     set theFrame to 1
                     repeat until theFrame > myFrames
                         set myText to text frame theFrame
                         set myFont to applied font of character 1 of myText  as string
                         -- Check to make sure we're only modifying text  frames
                         -- that have been set in the "Journal" typeface
                         if word 1 of myFont is "Journal" then
                             repeat with thisCharacter in (characters of  myText)
                                 -- Randomize the values of baseline shift,  stroke, and tint
                                 set baselineShift to ((random number from -5  to 5) / 10)
                                 set strokeWeight to (((random number 10)) /  100)
                                 set myTint to (100 - (random number 10))
                                 set fillColor to fill color of thisCharacter
                                 set baseline shift of thisCharacter to  baselineShift
                                 set stroke color of thisCharacter to  fillColor
                                 set stroke weight of thisCharacter to  strokeWeight
                                 set fill tint of thisCharacter to myTint
                                 set stroke tint of thisCharacter to myTint
                             end repeat
                         end if
                         set theFrame to (theFrame + 1)
                     end repeat
                 end if
             end tell
         end tell
         beep
         display dialog "Modifications finished!" buttons {"Groovy!"} default  button 1
    else
         display dialog "Operation cancelled" buttons {"OK"} default button 1
    end if

    For the fonts, the really cheap and dirty method would probably be to load the names of the fonts you want to use into an array variable in the AppleScript, then get a random index count to grab one of the font names out of that array.
    The script as it exists now goes character by character - you'd want to revise it so it went word by word instead, or else you'd end up setting each word's character to one of your random font choices. Instead of
    repeat with thisCharacter in (characters of  myText)
    you'd do something like
    repeat with thisWord in (words of  myText)
    As for loading an array variable in AppleScript - I've not done that before, but it's probably something like:
    set myFontArray to {"Papyrus", "Arial", "Comic Sans"}
    The curly braces are necessary, as it appears that AppleScript supports lists rather than arrays (a minor but not entirely unimportant detail). Anyway, from there, you'd grab one font at a time, randomly, probably like this:
    set myWordFontNumber to random ( length of myFontArray ) - 1
      set myWordFont to item myWordFontNumber of myFontArray
    You do the first line to get a random number based on the number of items in your list of fonts. You subtract 1 from it because the count on the actual list begins at 0 rather than 1, which means that sometimes you'll get a random number that's actually 1 larger than the number of items in the list, and you'll never see the first item (which is at position 0). This is a very old-school gotcha when working with arrays and lists - a ten-item list will count from 0 to 9, not 1 to 10.
    From there, you'd set the given word in your text frame's font to the name of the font you pulled out of the myFontArray variable. You'll want to make sure that the font names you load into your list are the actual names of the fonts you're working with - the examples I used here probably won't work.
    Please note that this is just a high-level gloss of what you'd need to do in order to modify the script. You'll have to hit the AppleScript documentation (and InDesign's scripting documentation) to get the precise syntax.

Maybe you are looking for

  • How do I insert a spry bar?

    Hi, I'm designing my 1st website and I started it in  photoshop cs5.5. I imported my site into Dreamweaver cs5.5 and uploaded it to my server. The problem I'm having is that when I try to insert a drop down menu bar, I get gaps within my page. How do

  • Why is my iphone 4 such a nightmare to sync lately?

    I get hung up on the backup --- hours and hours, and it all seems to freeze up. I have recently updated to itunes 10.4.1.10 Any ideas?

  • No Categories in Address Book = none in Palm

    Just switched over from Windows - happily - and all my Contacts are now in Apple's AddressBook. I use MissingSync to sync AddressBook to my Treo, but since there's no Category field in AddressBook, I cannot sort by categories in my Palm. I found that

  • Import Web Service Problem

    I am using LabVIEW 2011, and I am trying to use the import web service function.  I tried to follow the instruction in http://zone.ni.com/devzone/cda/tut/p/id/4728  When I got to the select method to import section, no methods appeared, unlike the t

  • How to change local draft folder loaction in sharepoint server

    Hi, please help me that how to change local draft folder location for documnet libery in sharepoint server. because by default when we check out document that documnet store in c:/documnet setting folder in our local drive. i want to store in another