* newbie alert * kodo persistence problem

Trying to follow this oh so easy example:
http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/JDev11gExperience/JDev11gExperience.html
Here's the last few lines of the exception error...
The following providers:
kodo.persistence.PersistenceProviderImpl
org.apache.openjpa.persistence.PersistenceProviderImpl
Returned null to createEntityManagerFactory.
     at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)
     at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
     at sample.model.JavaServiceFacade.<init>(JavaServiceFacade.java:12)
     at sample.model.JavaServiceFacade.main(JavaServiceFacade.java:19)
Process exited with exit code 1.
Connecting through an JDBC-ODBC bridge to an Ingres database (other locking issues make it difficult to connect using native ODBC driver)
fairly simple logic... connect to a single table then display one field out of the table to the console
[Tuserprof.java]
@Entity
@NamedQueries({
@NamedQuery(name = "TUserprof.findAll", query = "select o from TUserprof o")
[JavaServiceFacade.java]
public static void main(String [] args) {
final JavaServiceFacade javaServiceFacade;
javaServiceFacade = new JavaServiceFacade();
// TODO: Call methods on javaServiceFacade here...
List<TUserprof> emps = javaServiceFacade.getTUserprofFindAll();
for (TUserprof tUserprof : emps) {
System.out.println(tUserprof.getFirst_name());
Here's the persistence.xml file
<?xml version="1.0" encoding="windows-1252" ?>
- <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
- <persistence-unit name="Model-1" transaction-type="RESOURCE_LOCAL">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<class>sample.model.TUserprof</class>
- <properties>
<property name="eclipselink.jdbc.driver" value="sun.jdbc.odbc.JdbcOdbcDriver" />
<property name="eclipselink.jdbc.url" value="jdbc:odbc:sys10 sql" />
<property name="eclipselink.jdbc.user" value="report" />
<property name="eclipselink.jdbc.password" value="C21EECE0FBC5CC41A77C390BE52548ED" />
<property name="eclipselink.logging.level" value="FINER" />
<property name="eclipselink.target-server" value="WebLogic_10" />
</properties>
</persistence-unit>
- <persistence-unit name="Model">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<jta-data-source>java:/app/jdbc/jdbc/sys10sqlDS</jta-data-source>
<class>sample.model.TUserprof</class>
- <properties>
<property name="eclipselink.target-server" value="WebLogic_10" />
<property name="javax.persistence.jtaDataSource" value="java:/app/jdbc/jdbc/sys10sqlDS" />
</properties>
</persistence-unit>
</persistence>
NO CLUE on how to solve the error... any assistance would be appreciated...
Edited by: shawnc on Mar 14, 2011 2:58 PM

NO CLUE on how to solve the errorFirst step STOP using a JEE server to figure out the problem.
Write a simple Java console app to test your ODBC set up. If you can't get that to work then you can't get it to work in JEE.

Similar Messages

  • Kodo.persistence.ArgumentException: You cannot perform operation persist on...

    Hello,
    I'm doing the following:
    User user = new User("Dave", "[email protected]");
    dao.begin(); // calls entityManager.getTransaction().begin();
    dao.create(user); // calls entityManager.persist(object);
    dao.commit(); // calls entityManager.getTransaction().commit();
    And I get the following stack trace:
    Feb 19, 2006 11:26:12 PM org.springframework.web.servlet.FrameworkServlet
    processRequest
    SEVERE: Could not complete request
    <4|false|4.0.0EA3> kodo.persistence.ArgumentException: You cannot perform
    operation persist on detached object "sofa.model.User@36e7a9". This
    operation only applies to managed objects.
    FailedObject: sofa.model.User@36e7a9
         at kodo.kernel.BrokerImpl.getDetachedException(BrokerImpl.java:2481)
         at kodo.kernel.BrokerImpl.persist(BrokerImpl.java:2426)
         at kodo.kernel.BrokerImpl.persistSafe(BrokerImpl.java:2379)
         at kodo.kernel.BrokerImpl.persist(BrokerImpl.java:2366)
         at kodo.kernel.DelegatingBroker.persist(DelegatingBroker.java:1275)
         at kodo.persistence.EntityManagerImpl.persist(EntityManagerImpl.java:
    519)
         at sofa.jpa.JpaDao.create(JpaDao.java:23)
         at sofa.controller.SignUpController.processFormSubmission
    (SignUpController.java:42)
    ... and so on
    My User class:
    @Entity(access=AccessType.FIELD)
    public class User {
         @Id(generate=GeneratorType.AUTO)
         private Long id;
         private String name;
         private String emailAddress;
         private String password;
         public User(String name, String emailAddress) {
              this.id = System.currentTimeMillis(); // workaround for bug
              this.name = name;
              this.emailAddress = emailAddress;
    ... getters and setters
    Any ideas?
    thanks,
    dave

    The problem is that "id" is auto-generated, but you're initializing it
    to a non-default value. This makes Kodo think that this is an existing
    database object.
    I suggest downloading EA 4 from www.solarmetric.com. It solves previous
    issues with null primary key values, so you should be able to leave "id"
    null and therefore avoid confusing Kodo by initializing "id" yourself.
    (Note, however, that EA 4 implements the public draft of the spec, and
    there have been changes to some annotations.)

  • My iMac 27" Late 2012 has Image Persistence Problem

    I'm wondering what to do about an annoying image persistence problem on my 27" late 2012 iMac. I got the iMac just a few days ago. Monday actually, so 4 days ago.
    It's the 3.4GHz i7, 8GB, NVIDIA 680MX 1TB fusion drive model.
    Overall it has become the love of my life, but the image persistence thing is getting harder to ignore. This happens after only a few minutes of use. If I follow Apple's instruction on dealing with LCD image persistence, I can make it go away for a while, but it comes back very quickly.
    It is extremely noticeable on a plan dark background. It looks as thought he screen has been left on for a very long time with the same windows open, but it occurrs in less than 5 minutes of use with nothing more intense than a bit of web surfing.
    I've read that this is happening a great deal on these new iMacs, particularly teh 27" machines.
    While the problem seems to be known to those of us afflicted I don't know if Apple has acknowledged an issue or not.
    Here is a sample of the complaints: http://forums.macrumors.com/showthread.php?t=1509571
    I can make the ghost image vanish by bringing up an all white scree for a minute or so or using LCD Scrub.
    I'm wondering if anyone else has foun a solution other than asking for a replacement computer, which Apple seems to be granting on this issue?

    Avoiding image persistence on Apple (IPS) displays
    Avoiding image persistence on Apple LCD displays
    If you cannot resolve the issue yourself, then return the computer for a replacement. You may do this freely within 14 days from date of purchase, so don't delay.

  • MANIFEST.MF included with kodo-persistence.rar

    The MANIFEST.MF included with the kodo-persistence.rar in kodo 4.1.1 has only info about "JDO" and not "JPA". Was it incorrectly packaged? Is there another kodo-persistence.rar that can be downloaded for JCA? Here are the contents of the MANIFEST.MF in kodo-4.1.1/jca/persistence/META-INF/kodo-persistence.rar
    Premain-Class: kodo.enhance.PCEnhancerAgent
    Main-Class: kodo.enhance.PCEnhancer
    Built-By: BEA Systems, Inc.
    Implementation-Vendor: BEA Systems, Inc.
    Implementation-Version: 4.1.1
    OpenTools-UI: kodo.jdbc.integration.jbuilder.KodoTools
    OpenTools-Build: kodo.jdbc.integration.jbuilder.KodoBuilder
    OpenIDE-Module: kodo.jdbc.integration.netbeans/1
    OpenIDE-Module-Name: Kodo
    OpenIDE-Module-Short-Description: Kodo for SunOne-NetBeans
    OpenIDE-Module-Install: kodo/jdbc/integration/netbeans/KodoModule.class
    OpenIDE-Module-Module-Dependencies: org.netbeans.modules.java/1 > 1.7
    OpenIDE-Module-Layer: kodo/jdbc/integration/netbeans/kodo-layer.xml
    Name: kodo/
    Specification-Title: Java Data Objects
    Specification-Vendor: Sun
    Implementation-Vendor: BEA Systems, Inc.
    Specification-Version: 2.0.0
    Implementation-Version: 4.1.1
    Implementation-Title: kodo
    Name: kodo/jdbc/integration/netbeans/KodoMenuAction.class
    OpenIDE-Module-Class: Action
    Name: kodo/jdbc/integration/netbeans/MappingDataLoader.class
    OpenIDE-Module-Class: Loader
    Install-Before: org.openide.loaders.XMLDataObject, org.netbeans.module
    s.xml.core.XMLDataObject
    Name: kodo/jdbc/integration/netbeans/JDODataLoader.class
    OpenIDE-Module-Class: Loader
    Install-Before: org.openide.loaders.XMLDataObject, org.netbeans.module
    s.xml.core.XMLDataObject

    The manifest should be seen only as a file that can contain information about the files packaged in a JAR file. There is no requirement to contain information about all the files packaged in the jar.
    You are using the correct rar file.
    Laurent

  • Alert 'There were problems downloading some purchased items' won't clear for the same 6 songs.

    Alert 'There were problems downloading some purchased items' won't clear for the same 6 songs (see screenshot). Every time I download something new this alert comes up, yet when I check for available downloads there aren't any (see second screenshot). Also the 6 songs that are being flagged as having problems are already downloaded to my library, so literally it's just the alert/ notification that seems to be stuck. I've tried signing in and out of iTunes, re-installing itunes, re-starting the computer, emptying the cache etc, and but everytime I sign back in or re-open itunes the alert comes straight back up and it's driving me insane.
    Can anyone help either clear the alert or stop it so that it doesn't pop up every time I try and download something else??

    P.S the error message i got during the download is (err = - 5000)
    Thanks in advance

  • Newbie alert - opening swf

    I just downloaded the Flash demo, the purchased copy with
    books and the other books I ordered have not arrived. But I cannot
    wait to try this stuff. So NEWBIE ALERT
    I have an swf file from our web devloper that I want to look
    at, take apart and see how it works. When I open it in the flash 8
    all I can see is the end product. How can I see what went into
    this? Do I need other files he might have?
    Sorry for this silly question but you know how it is when you
    are starting a new project....

    Thanks! My designer is sending me the correct
    files.

  • Newbie Alert: Problem with saving downloads to a network drive

    I'm a new Mac user so, I apologize for the newbie question.
    I've have a NAS on my home network. I can see it and access it just fine. I have Firefox set to ask me where I want something downloaded. I don't get the option of putting, say a PDF in a folder on my network storage device.
    I can put it anywhere on the iMac's hard drive or even a USB/Firewire drive but not a network location. In Windows, you'd map a drive and be off to the races.
    How do I do this on a Mac?
    Thank you in advance,
    Rick

    AFAIK, not doable for NAS HDs. Since you're new to Macs, you're going to have erase windoze stuff from you lexicon, check these out:
    Switching from Windows to Mac OS X,
    Basic Tutorials on using a Mac,
    MacFixIt Tutorials, and
    MacTips Learning Centre.
    Additionally, *Texas Mac Man* recommends:
    Quick Assist.
    Welcome to the Switch To A Mac Guides, and
    A guide for switching to a Mac.

  • Monitor sensor stopped responding alerts and typing problems with external keyboard.

    The past few days I have been getting these alerts. Also, I use my MacBook as a desktop about 60% of the time and like to hook up a full size keyboard. It's worked fine for two years but now I can only type a few words before there is a stall and I can't type anything for 30 seconds. It has happened on both a Kensington keyboard and on a 10-year-old iMac keyboard. They have both worked perfect in the past. Also, both work just fine on an old iBook and on an old iMac slot loader.

    Rudegar wrote:...
    held down the button on the back the on/off button and closed and started it again and all was well again
    try it
    Thanks, Rudegar, for the suggestion. 
    But as I said above, "Mr H, with the magic touch, went to the iMac - opened a new text edit doc and started typing - no problem, opened Google - typed into search field - no problem..." which is to say the problem has solved itself by just regrouping itself after all peripherals were detatched and HDs no longer involved?  We'll see if it reproduces itself next time I do this HD-HD copy.
    I don't know why it's fixed, but since all is well, the permissions are repaired, and I've put it to sleep and awakened it, and it's still running fine (indeed I'm typing on the iMac now), I am loathe to do anything to solve a problem that seems to no longer exist.
    If things go awry I will first try a restart or perhaps just shut down from the Apple menu.  As I said I was worried about doing this fearing I'd have to log in and not be able to do it - but the auto login setting works to my advantage here.
    Anyone else have any ideas on what went wrong???
    Thanks again,
    Mrs H

  • Recent batches 30" with shadow imprint/persistence problems

    Recently changed 2!!! displays, and both 30" had the same shadow imprints or what some would call persistence. You do not need to leave the display on for a long time, just on it for about a minute, and set any coloured image on a dark bg, eg dark blue, and later switch to the complete bg which had the same dark blue background, u'll definetly be able to see the imprint or shadow coloured image which u viewed previously, its so obvious u wouldnt miss it.

    from wat i understand, it is the vendor thats supplying apple with the "problematic" panels..so the recent batches of the 30" all have the shadow imprint problem, thats why apple is saying that its within specification as they cant reject all the panels from the vendor. Right now i am being in a difficult position as i know i will get back a recent batch with the same problem even if i changed another display.

  • Persistence problems wit seam/hibernate and EntityHome

    This is the scenario(using JBoss Seam 2.2 and JBoss Application Server 5.1.0.):
    I've got TestCases and TestSteps. One TestCase has multiple TestSteps. I have a table that displays the steps and actions like "addStep" and "deleteStep".
    I use rich:inplaceInput to edit existing steps. This works perfectly.
    Adding or deleting a step however does not. When adding, I create an "empty" step which is displayed in the table and the user can then edit it.
    I can't explain how it persists changes to existing steps, but doesn't cooperate when list TestCaseHome.testSteps changes in size.
    Entity TestStep:
    @Entity
    @Table(name = "teststeps")
    public class TestStep implements java.io.Serializable {
         private static final long serialVersionUID = 6534546556882292702L;
         private long id;
         private TestCase testCase;
         private String test;
         private String expectedResult;
         private long ordering;
         @ManyToOne(fetch = FetchType.LAZY)
         @JoinColumn(name = "tc_id")
         public TestCase getTestCase() {
              return this.testCase;
         public void setTestCase(TestCase testCase) {
              this.testCase = testCase;
    }Entity TestCase: Entity CoreTestObject isn't really relevant, TestCase just inherits it's id from it.
    @Entity
    @Table(name = "testcases")
    @PrimaryKeyJoinColumn(name="id")
    public class TestCase extends CoreTestObject implements java.io.Serializable{     
         private Set<TestStep> testSteps = new HashSet<TestStep>(0);
         public TestCase(Set<TestStep> testSteps, ...) {
              this.testSteps = testSteps;
         @OneToMany(fetch = FetchType.LAZY, mappedBy = "testCase")
         @OrderBy("test")
         public Set<TestStep> getTestSteps() {
              return this.testSteps;
         public void setTestSteps(Set<TestStep> testSteps) {
              this.testSteps = testSteps;
    }TestCaseHome:
    @Name("testCaseHome")
    @Scope(ScopeType.CONVERSATION)
    public class TestCaseHome extends EntityHome<TestCase> {     
         @DataModel
         private List<TestStep> testSteps;
         /*@param step The Step after which the new Step is to be inserted*/
         public void addStep(TestStep step){
              testSteps = new ArrayList<TestStep>(this.getInstance().getTestSteps());
              long id, ordering;
              [...] // here I find the id and ordering of step
              testSteps.add(new TestStep(id+1, this.getInstance(), "", "", ordering+1));     
              this.getInstance().setTestSteps(new HashSet<TestStep>(testSteps));
         /*@param step The Step to be deleted*/
         public void deleteStep(TestStep step){
              int index = testSteps.indexOf(step);          
              testSteps.remove(index);
              this.getInstance().setTestSteps(new HashSet<TestStep>(testSteps));          
    }EntityHome:
    public class EntityHome<E> extends Home<EntityManager, E>
       @Transactional
       public String update()
          joinTransaction();
          getEntityManager().flush();
          updatedMessage();
          raiseAfterTransactionSuccessEvent();
          return "updated";
       @Transactional
       public String persist()
          getEntityManager().persist( getInstance() );
          getEntityManager().flush();
          assignId( PersistenceProvider.instance().getId( getInstance(), getEntityManager() ) );
          createdMessage();
          raiseAfterTransactionSuccessEvent();
          return "persisted";
    }View:
    <rich:dataTable value="#{testCaseHome.testSteps}" var="_testStep"
              id="testStepsTable" rowKeyVar="row" autoresize="true">
         <rich:column sortBy="#{_testStep.ordering}"
              sortOrder="ASCENDING" style=" width : 20px;">
              <f:facet name="header">Order</f:facet>
              <rich:inplaceInput layout="block" value="#{_testStep.ordering}"
                   selectOnEdit="true" editEvent="onclick">
                   <a:support event="onviewactivated" ajaxSingle="true"
                        reRender="testStepsTable" />
              </rich:inplaceInput>
         </rich:column>
         <rich:column sortBy="#{_testStep.expectedResult}" [...] </rich:column>     
         <rich:column sortBy="#{_testStep.test}"> [...] </rich:column>
         <rich:column style=" width : 80px;">
              <f:facet name="header">
                   Action
                        </f:facet>
              <a:commandLink ajaxSingle="true" id="deletelink"
                   reRender="testStepsTable"
                   action="#{testCaseHome.deleteStep(_testStep)}">
                   <h:graphicImage value="/img/delete.gif" />
                   <f:param name="testCaseId" value="#{testCaseHome.instance.id}" />
                   <f:param name="testStepFrom" value="TestCase" />
              </a:commandLink>
              <a:commandLink ajaxSingle="true" id="addlink"
                   reRender="testStepsTable"
                   action="#{testCaseHome.addStep(_testStep)}">
                   <h:graphicImage value="/img/plus_icon.gif" style=" width : 16px; height : 16px;"/>
                   <f:param name="testCaseId" value="#{testCaseHome.instance.id}" />
                   <f:param name="testStepFrom" value="TestCase" />
                   <s:conversationId />     <!-- <<<<I thought that might help but it didn't-->
              </a:commandLink>
         </rich:column>
    </rich:dataTable>
    <div class="actionButtons">
         <h:commandButton id="save"
              value="Save" action="#{testCaseHome.persist}"
              disabled="#{!testCaseHome.wired}"
              rendered="#{!testCaseHome.managed}" />
         <h:commandButton id="update"
              value="Save" action="#{testCaseHome.update}"
              rendered="#{testCaseHome.managed}" />
    </div>I cut a lot from the code, I hope I didn't leave anything relevant out. I also hope this is the right place for this question, excuse me if not (noob here).
    I would very much appreciate your help since I'm trying to fix this for weeks. Thank you!

    Hello gimbal2,
    yes, I initialized the collection by myself now and it works better.
    But I think there is a general Problem in the order-Example. The Example isn't implemented as described in the written part of the tutorial and has several other
    bugs with persistence in this example.
    I've installed the turorial with Update Tool. Is it possible that the samples in the update contain a newer/older version than the code that is described in the PDF?
    Thanks,
    Johann

  • Persistence problems

    Hello. I have made myself a web app using Java Server Faces which I am running on Glass Fish V2.
    The problem that I am having is that while the program complies and runs without throwing any exceptions. My entities are not beeing saved to the database when I call the persist() method on them. The primary key of the entity objects (which is set to auto generate) is updated after the call to persist(), and the sequence database table is also updated. But no data is entered in to the database table for the entity object.
    My app reads data from the database that I have inserted via SQL commands by running Queries made in the Java persistencve query lanuage and returns entity objects as you would expect.
    Here is the entity object I am trying to save.
    @Entity
    @NamedQueries({
    @NamedQuery(name="getTimeSheetsBetween",
                query="Select ts From TimeSheet ts Where ts.startDate >= :startDate AND ts.endDate <= :endDate"),
    @NamedQuery(name="getTimeSheetsFor",
                query="Select ts From TimeSheet ts Where ts.timeSheetUser = :user")})
    public class TimeSheet implements Serializable {
        private static final long serialVersionUID = 1L;
        @Id
        @GeneratedValue(strategy = GenerationType.AUTO)
        private Long id;
        @ManyToOne
        private TimeSheetUser timeSheetUser;
        @Temporal(TemporalType.DATE)
        private Date startDate;
        @Temporal(TemporalType.DATE)
        private Date endDate;
        private boolean signedOff;
        @OneToMany(cascade=CascadeType.ALL)
        private List<TimeSheetDay> timeSheetDays;
        public TimeSheet(){
        public TimeSheet(TimeSheetUser pUser, Calendar pStartDate, Calendar pSettingsStartDate, int pLength){
            Calendar testEndDate = (GregorianCalendar) pSettingsStartDate.clone();//modifications to objects passed as method parameters are not reverted after the method is finished
            Calendar testStartDate = (GregorianCalendar) pSettingsStartDate.clone();//so we create new date values to change which will not effect the pSettingsStartDate object
            testEndDate.add(Calendar.DAY_OF_MONTH, pLength);
            while(!(pStartDate.after(testStartDate) && pStartDate.before(testEndDate))){
                testStartDate.add(Calendar.DAY_OF_MONTH, pLength);
                testEndDate.add(Calendar.DAY_OF_MONTH, pLength);
            }//not sure if this is the best way to work this out. Refacter later
            startDate = testStartDate.getTime();
            endDate = testEndDate.getTime();
            signedOff = false;
            timeSheetUser = pUser;
            timeSheetDays = new ArrayList(pLength);
            for(int counter = 1; counter <= pLength; counter++){
                TimeSheetDay day = new TimeSheetDay(testStartDate.getTime());
                timeSheetDays.add(day);
                testStartDate.add(Calendar.DATE, 1);
        Here is the method that saves data
    package timesheet2;
    import java.io.Serializable;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.GregorianCalendar;
    import java.util.List;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.persistence.EntityExistsException;
    import javax.persistence.EntityManager;
    import javax.persistence.Query;
    import javax.persistence.EntityManagerFactory;
    import javax.persistence.Persistence;
    import javax.persistence.PersistenceUnit;
    import javax.persistence.TransactionRequiredException;
    import timesheet2.entities.PayPeriodSettings;
    import timesheet2.entities.TimeSheet;
    import timesheet2.entities.TimeSheetUser;
    import timesheet2.exceptions.*;
    public class DataBaseAccess implements Serializable{
        private static final Logger logger = Logger.getLogger("timeSheet.DataBaseAccess");
        private List<PayPeriodSettings> periodSettings;
        private TimeSheetUser currentUser;
        @PersistenceUnit
        private EntityManagerFactory emf;
        public DataBaseAccess() throws Exception{
            logger.log(Level.INFO, "DBAO being created, timeSheet.DataBaseAccess");
                try{
                    emf = Persistence.createEntityManagerFactory("TimeSheet2PU"); //emf is not injected into the object, don't know why.
                catch(Exception e){
                    System.out.println("there was a problem with making the em " + e.getMessage());
        public TimeSheet getTimeSheet(TimeSheetUser pUser, Date pDate)throws NoPeriodSettingsFound, UserNotFound{
            EntityManager em;
            List<TimeSheet> userTimeSheets = pUser.getTimeSheets();    
            for(TimeSheet ts : userTimeSheets){           
                if(pDate.after(ts.getStartDate()) && pDate.before(ts.getEndDate())) return ts;
            //if we get this far the user does not have a time sheet that covers the given date
            Calendar date = new GregorianCalendar();
            date.setTime(pDate);
            PayPeriodSettings settings = getPayPeriodSettings(date);
            TimeSheet timeSheet = new TimeSheet(pUser, date, settings.getSettingsStartDate(), settings.getPeriodLength());
            try{
                em = emf.createEntityManager();
                System.out.println("Time sheet id = " + timeSheet.getId());
                em.persist(timeSheet);
                System.out.println("Time sheet id = " + timeSheet.getId()); //id is updated at this time.
            catch(EntityExistsException e){
                System.out.println("EntityExistsException with persist method call. " + e.getMessage());
            catch(IllegalStateException ise){
                System.out.println("IllegalStateException with persist method call. " + ise.getMessage());
            catch(IllegalArgumentException iae){
                System.out.println("IllegalArgumentException with persist method call. " + iae.getMessage());
            catch(TransactionRequiredException tre){
                System.out.println("TransactionRequiredException with persist method call. " + tre.getMessage());
            catch(Exception e){
                logger.log(Level.INFO,"Exception: DateBaseAccess.getTimeSheet", e);
            pUser.addTimeSheet(timeSheet);
            return timeSheet;
        }

    Hi,
    We are using JDeveloper 11.1.1.6. We have enabled the MDS on this setup.
    Though its working fine with all the defined components , its not working for af:panelsplitter.
    Can you please update if MDS is working fine with af:panelsplitter in JDeveloper 11.1.1.6?

  • Script Alert: ...problem with Internet connection

    Since upgrading to 1.0.3, I get this alert every time I launch Bridge. There is a problem with your Internt connection. Please check that you are connected to the Internet and please try again."
    I am definitely connected to the Internet and there's nothing wrong with the connection when this happens.
    Any way to get it to stop?
    WinXP Illy CS2 installed, none of the other suite.
    Thanks in advance,
    T Toomey

    Toni,
    That is Adobe StockPhoto attempting to go out and touch it's server on startup.
    The only fix I know of is to rename the ols.jsx file to something like old.jsxNoLoad or move it to another folder.
    That script list located in the startup scripts folder:
    PC - c:\Program Files\Common Files\Adobe\StartupScripts
    Mac - /Library/Application Support/Adobe/StartupScripts
    I am not certain of what effect this has on StockPhoto. (I don't work on StockPhoto, I am only relaying information to you from the Bridge forums). If it breaks StockPhoto and you need it, you can rename the file back to ols.jsx when you need to use it and are connected to the internet.
    Bob
    Adobe Workflow Scripting

  • Alert log monitoring problem

    Hi guys!
    I have found good simple script for alert log monitoring BUT it doesnt shows date and time. How to format it so that i could see date and time as well in log output?
    +#!/bin/sh+
    +#GLOBS+
    ALERT="ORA-";
    LOGFILE=/path/to/my/alert_X.log
    MYFILE=/home/user/test.log
    +##+
    +#get the errors out of the logfile.+
    grep -h "$ALERT" $LOGFILE >> $MYFILE
    +#count number of lines in myfile, and print.+
    +VAR=`wc -l $MYFILE | awk -F" " '{print $1}'`+
    +#echo $VAR+
    +# if the amount of lines is greater than 0, then cat the file and send it to me. if not then echo all clear.+
    +#size variable is the number of errors the last time the script ran+
    +size=`wc -l test.last | awk -F" " '{print $1}'`+
    echo $size
    +# if the amount of lines is greater than 0, then cat the file and send it to me. if not then echo all clear+
    +if [[ $VAR -gt $size ]] ; then+
    cat $MYFILE | mail -vs "oralert" [email protected] ;
    else
    echo "All clear.."
    fi;
    rm test.last
    mv test.log test.last
    touch test.log

    The alert_log is know to first put the date of the message into it, and then on the next line the ORA- error message.
    So in the case you would find an ORA-error here, then what is the problem into going into the file and start looking at what time it occured.
    Otherwise you would have to modify the script in such way that it will get more info than a 'grep' at the moment it finds the error, like using "grep -l" option, that simply matches the lines.
    Then a while loop in the script could "walk" trough these lines and get the surrounding lines around that line number from the alert_log.
    But, again, if an error pops up, you do want to go into the alert-file, looking up all given info e.g. about the object(s) involved, the users, if a tracefile was generated...etc,etc,.
    FJFranken

  • Use persistEntity problem

    Dear all:
    I hava dropped a constructor and a persistEntity from the Data controls palette ,to insert a record ,and in this table has a column which type is number(6,2), when i run the project and click the persistEntity button,errors diplay as follows:
    JBO-29000: Unexpected exception caught: java.lang.IllegalArgumentException, msg=argument type mismatch,
    and the af:inputText's value is number(10.00 or 10),why is that?
    Thanks

    Thanks for you help and it runs well!
    but i am confused about when i use ${bindings.VsaMirOfferInfo.result} ,except the double type column has problem, other type columns(e.g:Intger String) are good.
    Alex

  • NewBe Query Master Data Problem

    Hi Forum,
    I am facing a BI newbe problem with some queries.
    I defined a Characteristic InfoObject (ZSID) with two attributes (ZHOST, ZDB). From a master data table I imported some data into this InfoObject. Now when defining a query in the Query Designer, where ZSID is a Row and the two attributes are Columns, I see in the result just the ZSID objects, for the two attributes a “#” gets displayed.
    For all InfoObjects I enabled the “with masterdata” checkbox…
    Any ideas what to change???

    Hi Chris,
    Check your Info object data in Maintain master data.
    'display attribute' can be displayed in query,
    after drag the parent characteristic into 'row' area (or 'free characteristic'), right click the characteristic and you will see 'attributes', cursor position on it and all the attributes will be shown, choose the attribute(s) to be included in query.
    hope this helps.
    cheers
    Sunil

Maybe you are looking for

  • How do i extract photos from a flash drive

    I just recently switched from Windows to Mac, and haven't taken a class on how to fully use my computer yet. But I do have a flash drive that I put all of my photos on from my windows computer, and I would like to know after I plug in my flash drive,

  • Very basic questions about a db in windows

    I have a db (9.2.0) in a W-XP machine and I have started it up via windows services. (The db was created when installing the software). My questions are: 1. When I connect to the db with the system user it connects to the only db that is created in m

  • Missing Files. LR 1.1.

    All of a sudden I've got 590 'Missing Files'. All from the same folder. None are marked with a '?'. No folders are 'Red Flagged'. When using 'Show in Explorer', the files are shown to exist, in the relevant folder, exactly as they should. So they're

  • How do i log onto websites?

    it's probably really obvious, but i just got my phone today. i can get online, but when i get to ebay i don't know how to enter my screen name and password. how do i make the keyboard come up so i can enter info and log in?

  • Support functionality for ADR tunnelcode: how to get it?

    Hi, There seems to be a note for supporting ADR tunnel code. The only note I can find about this topic is note 1105036. However when looking in OSS this note doesn't exist anymore. I hardly can't find any information. I t seems that it is possible to