Mapping Problem using hibernate and annotations

Hi,
i am German student and new to hibernate. I established a mn conetction between to entities using hbm.xml mapping files. now I try to create the same connection applying annotations. unfortunately it does not work and I do not now why. First my error message followed by my classes and xml's:
Initial SessionFactory creation failed.org.hibernate.AnnotationException: mappedBy reference an unknown target entity property: domain.Termin.person in domain.Person.termine
Exception in thread "main" java.lang.ExceptionInInitializerError
at services.HibernateUtil.sessionFactory(HibernateUtil.java:39)
at services.HibernateUtil.getSessionFactory(HibernateUtil.java:20)
at test.Test.main(Test.java:20)
Caused by: org.hibernate.AnnotationException: mappedBy reference an unknown target entity property: domain.Termin.person in domain.Person.termine
at org.hibernate.cfg.annotations.CollectionBinder.bindStarToManySecondPass(CollectionBinder.java:552)
at org.hibernate.cfg.annotations.CollectionBinder$1.secondPass(CollectionBinder.java:517)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:43)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1130)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:316)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1286)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
at services.HibernateUtil.sessionFactory(HibernateUtil.java:36)
... 2 more
package domain;
import java.util.LinkedList;
import java.util.List;
import domain.Termin;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.Table;
@Entity
@Table(name = "PERSON")
public class Person {
   private long id;
   private String vorname;
   private String nachname;
   private List<Termin> termine=new LinkedList<Termin>();
   public Person() {
   @Id @GeneratedValue(strategy=GenerationType.AUTO)
   public long getId() {
      return id;
   public void setId(long id) {
      this.id = id;
   public String getNachname() {
      return nachname;
   public void setNachname(String nachname) {
      this.nachname = nachname;
   public String getVorname() {
      return vorname;
   public void setVorname(String vorname) {
      this.vorname = vorname;
   public void addTermin(Termin termin){
      termine.add(termin);
   @ManyToMany(mappedBy="person")
   public List<Termin> getTermine() {
      return termine;
   public void setTermine(List<Termin> termine) {
      this.termine = termine;
package domain;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.Table;
@Entity
@Table(name = "TERMIN")
public class Termin {
   private long id;
   private String titel;
   private Person eigentuemer;
   private List<Person> teilnehmer= new ArrayList<Person>();
   public void addTeilnehmer(Person person){
      teilnehmer.add(person);
   @ManyToMany
   public List<Person> getTeilnehmer() {
      return teilnehmer;
   public void setTeilnehmer(List<Person> teilnehmer) {
      this.teilnehmer = teilnehmer;
   public Termin() {
   @Id @GeneratedValue(strategy=GenerationType.AUTO)
   public long getId() {
      return id;
   public void setId(long id) {
      this.id = id;
   public String getTitel() {
      return titel;
   public void setTitel(String titel) {
      this.titel = titel;
   public Person getEigentuemer() {
      return eigentuemer;
   public void setEigentuemer(Person eigentuemer) {
      this.eigentuemer = eigentuemer;
package test;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
import services.HibernateUtil;
import domain.Person;
import domain.Termin;
public class Test {
   public static void main(String[] args) {
      Session session = null;
      HibernateUtil.setRecreateDB(true);
      session = HibernateUtil.getSessionFactory().getCurrentSession();
      /*      Person person1 =new Person();
      person1.setNachname("P1");
      Transaction transaction = session.beginTransaction();
      session.save(person1);
      transaction.commit();
      Person person2 =new Person();
      person2.setNachname("P2");
      session = HibernateUtil.getSessionFactory().getCurrentSession();
      transaction = session.beginTransaction();
      session.save(person2);
      transaction.commit();
      Termin termin1 =new Termin();
      termin1.setTitel("T1");
      termin1.setEigentuemer(person1);
      termin1.addTeilnehmer(person1);
      termin1.addTeilnehmer(person2);
      session = HibernateUtil.getSessionFactory().getCurrentSession();
      transaction = session.beginTransaction();
      session.save(termin1);
      transaction.commit();
   Termin termin2 =new Termin();
      termin2.setTitel("t2");
      termin2.setEigentuemer(person1);
      termin2.addTeilnehmer(person1);
      termin2.addTeilnehmer(person2);
      transaction = session.beginTransaction();
      session.save(termin2);
      transaction.commit();
      session.close();
package services;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.AnnotationConfiguration;
import domain.Person;
import domain.Termin;
public class HibernateUtil {
   private static boolean recreateDB = false;
   public static void setRecreateDB(boolean recreateDB) {
      HibernateUtil.recreateDB = recreateDB;
   public static SessionFactory getSessionFactory() {
      if (sessionFactory == null) {
         sessionFactory = sessionFactory("hibernate.cfg.xml");
      return sessionFactory;
   private static SessionFactory sessionFactory = null;
   private static SessionFactory sessionFactory(String configurationFileName) {
      try {
         AnnotationConfiguration annotationConfiguration =
            new AnnotationConfiguration()
            .addAnnotatedClass(Person.class)
            .addAnnotatedClass(Termin.class);
         if (recreateDB) annotationConfiguration.setProperty("hibernate.hbm2ddl.auto", "create");
         annotationConfiguration.configure();
         return annotationConfiguration.buildSessionFactory();
      } catch (Throwable ex){
         System.err.println("Initial SessionFactory creation failed." + ex);
         throw new ExceptionInInitializerError(ex);
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration
    PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
    "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
    <session-factory >
      <property name="hibernate.connection.driver_class">org.gjt.mm.mysql.Driver</property>
        <property name="hibernate.connection.password">application</property>
        <property name="hibernate.connection.url">jdbc:mysql://localhost/test</property>
        <property name="hibernate.connection.username">application</property>
        <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
       <property name="current_session_context_class">thread</property>
      <property name="hibernate.show_sql">true</property>
    </session-factory>
</hibernate-configuration>

The error message is pretty much telling you the problem:
mappedBy reference an unknown target entity property: domain.Termin.person in domain.Person.termine
This tells you that there's a mappedBy setting on the Person class's termine property annotation, and that the property it's referring to (the person property of the Termin class) doesn't exist.
@ManyToMany(mappedBy="person")
public List<Termin> getTermine() {
   return termine;
}If we have a look at the Termin class, indeed it has the following properties:
id
teilnehmer
titel
eigentuemerAnd no person property. Remember, a property is defined by the existence of a get/set pair for the name. It's unrelated to the types returned by them and the private variables implementing them.
mappedBy has the equivalent effect to the inverse property in a hbm.xml mapping file - it defines which entity's property will cause the foreign key value to be updated (persisting the relationship to the database). From the context of your code, I'm guessing you really want the annotation to read:
@ManyToMany(mappedBy="teilnehmer")

Similar Messages

  • Any problem using bseg and bkpf tables

    For fico details i using  bseg  and bkpf  tables.
    I noted that programming is very difficult because of these tables are cluster table.
    plz give me other tables
    if i using these tables any problem will come?

    >
    mysvijai197715 wrote:
    > Hi Aniesh,
    >
    >            BSEG and BKPF are cluster tables. It contains transperant tables like BSIS, BSIK etc. For example to take vendor details usr the BSIK.If you use BSEG and BKPF it will take long time search. suppose your concern having lot of data means may be your server will get shutdown. So use only trasnperant tables like BSIS, BSIK etc.
    >
    >
    > Regards
    > R.Vijai
    Incorrect.  BKPF is a transparent table and not a cluster table and you can use it just like any other transparent table.  BSEG is a cluster table but there is no problem selecting from it so long as you use the key of BUKRS, BELNR, GJAHR - unless you are selecting a very large amount of data, but then this can cause problems when selecting from any type of table.
    The advantage of using BSEG over the other FI line item tables such as BSIS and BSIK is that it holds all the lines of an FI document while the others will hold only a subset eg BSIK will only hold lines that contain a vendor reference and BSAS holds only cleared GL account lines.  Though you can only use it when you have the key.  If you need to search on vendor, you can use BSIK as a starting point, but since I usually need to get hold of all the lines on an FI document, I then have to select from BSEG anyway.

  • Color palette problems using Toolbar and ImageList ActiveX Controls

    I'm using Toolbar and ImageList ActiveX controls to implement toolbar functionality in a top-level VI.
    I designed the icons used in the toolbar with a 256 color palette. When I initially added the icon images to the ImageList control and ran the VI, the icons were properly displayed in the toolbar, as expected. After saving VI, exiting LabVIEW, and reloading, it appears that a different palette has been applied to the images in the ImageList control. I'm attaching a screenshot of the problem as well.
    Has anyone encountered this type of problem before? Any suggestions you provide will be greatly appreciated.
    Thanks,
    Zach
    Software Engineer
    OnWafer Technologies, Inc.
    www.onwafer.com
    Attachments:
    icon.zip ‏3 KB

    I'm using Toolbar and ImageList ActiveX controls to implement toolbar functionality in a top-level VI.
    I designed the icons used in the toolbar with a 256 color palette. When I initially added the icon images to the ImageList control and ran the VI, the icons were properly displayed in the toolbar, as expected. After saving VI, exiting LabVIEW, and reloading, it appears that a different palette has been applied to the images in the ImageList control. I'm attaching a screenshot of the problem as well.
    Has anyone encountered this type of problem before? Any suggestions you provide will be greatly appreciated.
    Thanks,
    Zach
    Software Engineer
    OnWafer Technologies, Inc.
    www.onwafer.com
    Attachments:
    icon.zip ‏3 KB

  • BUG? JDev 10.1.3.1.0 on MacBook Pro - problem using space and delete keys

    Is anyone using JDev 10.1.3.1.0 production release on a Macbook Pro? I am experiencing problems using the delete and space keys. The delete key no longer seems to work at all when using any of the key bindings including Default MacOS X. Using the spacebar also seems to have a conflict with the code completion feature. I am finding that the code completion always pops up when the space bar is used and no space is inserted with the editor. The space bar only works when used in conjuction with the shift key. Can anyone verify if they are able to use these keys in JDeveloper 10.1.3.1.0 on a Macbook Pro?
    Thanks,
    Richard

    This was from the dmg file.
    I found that in Preferences | Accelerators, Completion Insight lists 'Space' as an accelerator, right after 'CommandAIC'. Removing that fixed the problem, but I still can't fix the Delete issue.
    The Delete action is assigned to the 'Delete' key, which is recognizes as the key combination fn-Delete. I tried to assign the Delete Previous Char to just the delete key, but pressing the Delete key while in the New Accelerator field is not recognized - it just pretends as if I had not pressed a key.
    I'm looking at the the file:
    jdevhome/system/oracle.jdeveloper.10.1.3.39.84/Default_macosx.kdf
    trying to find entries for Delete and they are not in there - is there some other place I should be looking?
    Thanks,
    --ee                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Problems using Hotmail and Twitter in Firefox

    I'm having problems using both Hotmail and Twitter in Firefox (and Google Chrome) but they both seem to work fine in Internet Explorer. I can log-in to both sites but in Hotmail the drop-down menus and links don't work, and in Twitter the stream does not appear at all.
    I've tried everything: deleted cache, history, cookies, disabled add-ons etc... I've also tried re-installing both new and older versions of Firefox and I've still had no joy. If anybody has any ideas for a fix I'd really appreciate it. I can't stand using IE but I am forced to at the moment.

    My problem with Firefox & yahoo seems similar - so you are not alone.

  • Problems using MAX and PXI 8186 RT

    Hi all !
    I'm facing to problems using MAX
    1) We have a 1GB switch in order to connect my PXI 8186 RT controller and the host PC, when i use this switch, and i try to access the cards plugged in the PXI card with MAX, MAX crash! When i use a 10/100 Mb switch everything is ok, i can access to the card without any problem ! I know the PXI 8186 controller is only fitted with a 10/100 Mb Ethernet card, but i think that must not be a problem , am i wrong ? Is this problem a known bug ??
    2) I want to install all software used by my application on the host computer (in order to be able to reinstall the PXI8186 controller in case of a crash)! To do that i installed MAX 3.1.1, then all drivers NI-DAQmx 7.4, CAN2.2, VISA 3.3, and finally Labview RT 7.1 Embedded on my gost computer! After that i tried to download these software in the controller using MAX! The problem is these software are on the host computer (there are visible in system/ software) , but when i try to install them on the controller, max don't see them ! I tried to uninstall and re-install all software but no changes ... Is there a procedure or an order to install all these software ??? What should i do ???

    Hello,
    The process to install software on RT controller is :
    1/ Install LabVIEW Real-Time 7.1 on your host computer
    2/ Install all driveres you need on your RT target
    3/ On your host machine, in MAX, go to "remote targets"
    4/ Expand "Software"
    5/ Clik on "Install" button.
    This application note will give you more details about above process.
    Our controller is only provided with 10/100 MB network device. You have to check if you can configure your 1GB switch into 10/100 MB.
    Regards,
    Isabelle
    Ingénieur d'applications
    National Instruments France

  • Field mapping problem using EntityManager.refresh(...) and @SecondaryTable

    I am experiencing an exception indicating a missing mapping for a field. My problem is that I have a mapping! I suspect the problem has something to do with the fact the field in question is also the @PrimaryKeyJoinColumn. Am I doing something wrong or is this a bug in the refresh() method code since the find() method works with no problem? Thanks in advance.
    Code and log excerpts follow:
    Calling Code...
    TaxableDescription description = em.find( TaxableDescription.class, cusip );
    if (refreshEntity) {
    {color:#ff0000}em.refresh( description );{color}
    Entity Code..
    @Entity
    {color:#ff0000}@Table( name="f_ISSUE" )
    @SecondaryTable(
    name="f_COUPON_INFO",
    pkJoinColumns=@PrimaryKeyJoinColumn(
    referencedColumnName="issue_id", name="issue_id"
    ){color}
    @NamedQueries({
    @NamedQuery(
    name="TaxableDescription.findByCusip",
    query="SELECT d FROM TaxableDescription d WHERE d.cusip = :cusip"
    public class TaxableDescription
    extends Description implements Serializable
    private long issueID;
    private long fkIssueID;
    private String interestFrequencyCode;
    private Date nextCallDate;
    private double nextCallPrice;
    private Date parCallDate;
    private double parCallPrice;
    private boolean defaulted;
    private String variableCouponType;
    //@Id
    @Column( name="issue_id", table="f_ISSUE" )
    public long getIssueID() {
    return issueID;
    public void setIssueID( long issueID ) {
    this.issueID = issueID;
    @Override
    @Id
    @Column( name="CUSIP_nbr" )
    public String getCusip() {
    return super.getCusip();
    @Override
    public void setCusip(String cusip) {
    super.setCusip(cusip);
    @Override
    @Column( name="maturity", updatable=false, insertable=false )
    @Temporal(TemporalType.DATE)
    public Date getMaturity() {
    return super.getMaturity();
    @Override
    public void setMaturity(Date maturity) {
    super.setMaturity(maturity);
    {color:#ff0000} @Column( table="f_COUPON_INFO", name="issue_id", insertable=false, updatable=false )
    {color} public long getFkIssueID() {
    return fkIssueID;
    public void setFkIssueID( long fkIssueID ) {
    this.fkIssueID = fkIssueID;
    @Override
    @Column( table="f_COUPON_INFO", name="coupon", updatable=false, insertable=false )
    public double getCoupon() {
    return super.getCoupon();
    @Override
    public void setCoupon(double coupon) {
    super.setCoupon( coupon );
    @Column( table="f_COUPON_INFO", name="interest_frequency", updatable=false, insertable=false )
    public String getInterestFrequencyCode() {
    return interestFrequencyCode;
    public void setInterestFrequencyCode( String interestFrequencyCode ) {
    this.interestFrequencyCode = interestFrequencyCode;
    @Override
    @Column( table="f_COUPON_INFO", name="dated_date", updatable=false, insertable=false )
    @Temporal( TemporalType.DATE )
    public Date getDatedDate() {
    return super.getDatedDate();
    @Override
    public void setDatedDate(Date datedDate) {
    super.setDatedDate(datedDate);
    @Override
    @Column( table="f_COUPON_INFO", name="first_interest_date", updatable=false, insertable=false )
    @Temporal( TemporalType.DATE )
    public Date getFirstInterestDate() {
    return super.getFirstInterestDate();
    @Override
    public void setFirstInterestDate(Date firstInterestDate) {
    super.setFirstInterestDate(firstInterestDate);
    @Column( name="next_call_date", updatable=false, insertable=false )
    @Temporal( TemporalType.DATE )
    protected Date getNextCallDate() {
    return nextCallDate;
    protected void setNextCallDate( Date date ) {
    this.nextCallDate = date;
    @Column( name="next_call_rate", updatable=false, insertable=false )
    protected double getNextCallPrice() {
    return nextCallPrice;
    protected void setNextCallPrice( double value ) {
    this.nextCallPrice = value;
    @Column( name="par_call_date", updatable=false, insertable=false )
    @Temporal( TemporalType.DATE )
    protected Date getParCallDate() {
    return parCallDate;
    protected void setParCallDate( Date date ) {
    this.parCallDate = date;
    @Column( name="par_call_rate", updatable=false, insertable=false )
    protected double getParCallPrice() {
    return parCallPrice;
    protected void setParCallPrice( double value ) {
    this.parCallPrice = value;
    @Column( name="moodys_code", updatable=false, insertable=false )
    public Integer getIntegerMoodysCode() {
    return super.getMoodysCode();
    public void setIntegerMoodysCode(Integer moodysCode) {
    super.setMoodysCode( moodysCode != null ? moodysCode : 99 );
    @Column( name="s_p_code", updatable=false, insertable=false )
    public Integer getIntegerSpCode() {
    return super.getSpCode();
    public void setIntegerSpCode(Integer spCode) {
    super.setSpCode( spCode != null ? spCode : 99 );
    @Column( name="fitch_code", updatable=false, insertable=false )
    public Integer getIntegerFitchCode() {
    return super.getFitchCode();
    public void setIntegerFitchCode(Integer fitchCode) {
    super.setFitchCode( fitchCode != null ? fitchCode : 99 );
    @Override
    @Column( name="principal_amt", updatable=false, insertable=false )
    public double getPrincipalAmount() {
    return super.getPrincipalAmount();
    @Override
    public void setPrincipalAmount(double principalAmount) {
    super.setPrincipalAmount(principalAmount);
    @Transient
    public boolean getDefaulted() {
    return defaulted;
    @Transient
    public boolean isDefaulted() {
    return defaulted;
    public void setDefaulted( boolean defaulted ) {
    this.defaulted = defaulted;
    @Column( name="defaulted", updatable=false, insertable=false )
    public String getDefaultedFlag() {
    return defaulted ? "Y" : "N";
    public void setDefaultedFlag( String defaultedFlag ) {
    this.defaulted = "Y".equalsIgnoreCase( defaultedFlag );
    @Column( table="f_COUPON_INFO", name="coupon_change_indicator", updatable=false, insertable=false )
    public String getVariableCouponType() {
    return variableCouponType;
    public void setVariableCouponType( String variableCouponType ) {
    this.variableCouponType = variableCouponType;
    @OneToMany( targetEntity=com.bondtrac.entities.TaxableCouponStepEntity.class )
    @JoinTable(
    name="f_CHANGE_SCHEDULE",
    joinColumns=@JoinColumn( name="issue_id", referencedColumnName="issue_id" )
    public List getCouponSteps() {
    return super.getCouponStepSchedule();
    public void setCouponSteps( List couponSteps ) {
    super.setCouponStepSchedule( couponSteps );
    @PostLoad
    private void postLoad() {
    if ( interestFrequencyCode != null &&
    interestFrequencyCode.length() &gt; 0 )
    int intFreq = 2;
    try {
    intFreq = Integer.parseInt( interestFrequencyCode );
    catch ( Exception e ) {}
    if ( intFreq &lt;= 0 ) intFreq = 2;
    super.setInterestFrequency( intFreq );
    else {
    super.setInterestFrequency( 2 );
    if ( nextCallDate != null || parCallDate != null ) {
    CallSchedule _callSchedule = super.getCallSchedule();
    if ( _callSchedule == null ) {
    _callSchedule = new CallSchedule();
    super.setCallSchedule( _callSchedule );
    if ( nextCallDate != null ) {
    _callSchedule.addCall( nextCallDate, nextCallPrice );
    if ( parCallDate != null ) {
    _callSchedule.addCall( parCallDate, parCallPrice );
    @PrePersist
    @PreUpdate
    private void preUpdate() {
    switch ( super.getInterestFrequency() ) {
    case 2 : interestFrequencyCode = "2"; break;
    case 1 : interestFrequencyCode = "1"; break;
    case 4 : interestFrequencyCode = "4"; break;
    case 12 : interestFrequencyCode = "12"; break;
    case 99 : interestFrequencyCode = "99"; break;
    default : interestFrequencyCode = "2"; break;
    nextCallDate = null;
    nextCallPrice = 0.0;
    parCallDate = null;
    parCallPrice = 0.0;
    CallSchedule _callSchedule = super.getCallSchedule();
    if ( _callSchedule != null ) {
    Call call = _callSchedule.getNextCall();
    if ( call != null ) {
    nextCallDate = call.getDate();
    nextCallPrice = call.getAmount();
    call = _callSchedule.getNextParCall();
    if ( call != null ) {
    parCallDate = call.getDate();
    parCallPrice = call.getAmount();
    @Override
    public int hashCode() {
    return cusip != null ? cusip.hashCode() : 0;
    @Override
    public boolean equals( Object o ) {
    if ( !( o instanceof TaxableDescription ) ) return false;
    TaxableDescription otherDescription = (TaxableDescription)o;
    if ( cusip == otherDescription.cusip ) return true;
    if ( cusip != null ) return cusip.equals( otherDescription.cusip );
    return false;
    Server log entry...
    [#|2008-11-20T17:41:42.389-0600|WARNING|sun-appserver9.1|oracle.toplink.essentials.session.file:/opt/SUNWappserver/domains/domain1/applications/j2ee-apps/Bondtrac-EE/Bondtrac-EE-pu.jar-BondtracPU|_ThreadID=36;_ThreadName=p: thread-pool-1; w: 44;_RequestID=5b92f658-e52c-4b83-aafc-454a052fc30b;|
    Local Exception Stack:
    Exception [TOPLINK-45] (Oracle TopLink Essentials - 2.0.1 (Build b04-fcs (04/11/2008))): oracle.toplink.essentials.exceptions.DescriptorException
    {color:#ff0000}Exception Description: Missing mapping for field [f_COUPON_INFO.issue_id].{color}
    Descriptor: RelationalDescriptor(com.bondtrac.entities.TaxableDescription --&gt; [DatabaseTable(f_ISSUE), DatabaseTable(f_COUPON_INFO)])
    at oracle.toplink.essentials.exceptions.DescriptorException.missingMappingForField(DescriptorException.java:901)
    at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.addPrimaryKeyForNonDefaultTable(ObjectBuilder.java:154)
    at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.buildRowForTranslation(ObjectBuilder.java:899)
    at oracle.toplink.essentials.queryframework.ReadObjectQuery.prepareForExecution(ReadObjectQuery.java:502)
    at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:622)
    at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:692)
    at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:746)
    at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2233)
    at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:952)
    at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:909)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.refresh(EntityManagerImpl.java:389)
    at com.sun.enterprise.util.EntityManagerWrapper.refresh(EntityManagerWrapper.java:511)
    at com.bondtrac.ejb.DescriptionDAOBean.getDescription(DescriptionDAOBean.java:76)
    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:597)
    at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
    at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
    at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2895)
    at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
    at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:197)
    at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:83)
    at $Proxy197.getDescription(Unknown Source)
    at com.bondtrac.offeringprocessor.OfferingProcessorBean.process(OfferingProcessorBean.java:1373)
    at com.bondtrac.offeringprocessor.OfferingProcessorBean.processOfferingEntity(OfferingProcessorBean.java:642)
    at com.bondtrac.offeringprocessor.OfferingProcessorBean.calculateOfferings(OfferingProcessorBean.java:926)
    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:597)
    at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
    at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
    at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2895)
    at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:203)
    at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:77)
    at $Proxy198.calculateOfferings(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:597)
    at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:154)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:687)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:227)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1846)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1706)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1088)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:223)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:806)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    |#]

    What database are you using? My guess is that the database you are using returns field names in Uppercase. While the database may not be case sensitive, most databases will convert the field names to either all upper or lower case when returning the metadata - which associates the fields to the values. In this case, it is looking for a value for "issue_id" in the returned results, when I suspect that the database returned a value for "ISSUE_ID". Try having your column names match what the database will return and see if you still get problems.
    The other part to this problem is that it does not appear mapped correctly. The primarykeyJoincolumn isn't using primary key fields (CUSIP_nbr is specified as the id), and you have a join table also using the "issue_id" field, so it really should be the id. Either way, the Secondary table is specifying f_ISSUE.issue_id to be a foreign key to f_COUPON_INFO.issue_id, and so the getFkIssueID annotation should be marked insertable=true, updateable =true and the annotation on getIssueID marked insertable=false, updatable=false,since it is set through the f_COUPON_INFO.issue_id field. Fixing this will also likely resolve the issue - the error says it can't find a mapping for the f_COUPON_INFO.issue_id but from looking at the code, what I believe it means is that it can't find a writable mapping. Reading this over again, it looks very confusing but I dont know if I can explain it much better. The field f_COUPON_INFO needs to be writeable and set by the application because you have marked it as controlling the field in f_ISSUE. The field in f_ISSUE needs to be read only, because the value is set/controlled by the value in f_COUPON_INFO.
    Best Regards,
    Chris

  • Problems using BDC and/or HR_INFOTYPE_OPERATION

    Hi Gurus.
    Our team is developing several inbound HR interfaces but in integrated test in QAS env something really strange is happening during the tests.
    We are using BDC data for data input in infotypes 0000 and 0001 through PA30 and for all the other infotypes we use HR_INFOTYPE_OPERATION.
    Sometimes data input for 0000 and 0001 works, sometimes no, our table log gives us that the data was processed but when we check on the infotypes there is no data there. The BDC mapping was checked several times and we did some tests in another enviroment, everything is ok, the data is processed but in QAS we are having this problems.
    With HR_INFOTYPE_OPERATION, when we run in background mode it give us strange error logs like "a complex application error occurs" but when i did a debug inside of that FM there is nothing missing or nothing wrong.
    The enviroment seems to be very instable but basis teams says that there is no log error, but i've never seems errors like these, sometimes works, sometimes no.
    The last info that i had is QAS instance that we are using was deleted 3 weeks ago and restored again.
    Any suggestions?
    Thanks a lot.

    Hi,
    If your BDC mapping is correct, check the return code after your BDC is excuted with - BDCMSG. Make sure that you give Refresh BDCDATA for every loop.
    Having said this, I have also had issues with BDC every there was no error at the end, however the infotype never got updated.
    Please double check all the relevant screens. I found that for a particular Inf that I was updating, the subtypes belonged to differnt screens. Can you test with the same data in your Dev or some other box? If that doesnt work, there might be a data issue.
    Generally the complex application error occurs when a screen have been modified to prohibit batch processing. It is very difficult to diagnose the error in such cases. Make sure that you are passing all the important data to the FM. You might be able to get more help by searching in this forums as well.
    Regards, Liz

  • E71: Why does Google Maps not use GPS and track my...

    Why is it that Google maps only gives me a GPS signal accurate to 60-2000m. (depending on where I am)
    Nokia Maps 2.0 would follow me down roads and footpaths, but Google maps just gives a rough approximation inside a large circle. My friend had an N95 Black and now an N97, and has testified to the exact same problem.
    If I could get Google Maps to work with my GPS I would probably delete Nokia Maps, as it is otherwise mostly inferior.
    (I've gone through the laborious process to download Maps 3.0 and it is pretty rubbish to be honest - big, bloated with inferior maps)
    Message Edited by alexjholland on 24-Aug-2009 05:07 PM

    Google Maps can be set to use your GPS if your phone is equipped with it.
    Simply run Google Maps...
    Options > Tools > Use GPS (check it or uncheck it for on and off, it toggles)
    Current version is 3.2.0 which supports layers and Latitude.
    The good thing is that it will get a cell tower lock (where supported) first before it establishes a satellite lock so you get a position, albeit approximate, faster. 
    You can tell it has established satellite lock when a small box on the top right corner of your app shows you "GPS active (x)" where x = number of satellites locked.
    Unfortunately, it does not seem to support the magnetometer on the newer phones yet for compass heading.
    Good luck. 
    Message Edited by mouserider on 25-Aug-2009 07:53 AM

  • Problem using JDBC and MS SQL Server

    I got a problem trying to acces a database on my SQL Server. I created the table and my connection seems ok, but when i try to get some data from a table, this happens (see below).
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'players'.
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6879)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7036)
    at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3065)
    at sun.jdbc.odbc.JdbcOdbcStatement.execute (JdbcOdbcStatement.java:338)
    at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:253)
    at Team.<init>(Team.java:18)
    at Simulator.main(Simulator.java:5)
    here's the code that i used to access the db with:
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn = DriverManager.getConnection
    ("jdbc:odbc:BRAIN2WINXPPJH","sm","sm");
    Statement stm = conn.createStatement();
    String query = "Select * from players where teamnr = " + nr +
    " order by squadnr";
    ResultSet rs = stm.executeQuery(query);
    any help is more than welcome
    tnx
    Jo

    If all the tables are in the same database, you can use
    Connection.setCatalog("db-name")
    to change the current database. But the suggestion to include the database name in the SQL statement is safer, because you do not need to worry about changing the database at the right point.
    Thomas

  • PROBLEMS USING WEBUTIL_FILE_TRANSFER AND CLIENT_HOST COMMAND TO VIEW BLOB

    I am using webutil_file_transfer.DB_To_Client_with_progress to retrieve a blob
    from the database (that was saved in a word format) into a .doc file on the
    client.
    1st problem: The document that is being saved is not readable. It has all
    kind of special characters in it.
    Then using the client_host command, I open the document into ms word.
    2nd problem: The document opens fine (again not readable in garbage
    characters) but when I close the document, notepad pops up blank with nothing
    in it.
    Below is a sample of the code.:
    PROCEDURE DOWNLOAD_DB IS
    l_success boolean;
    username varchar2(30);
    document_name varchar2(20);
    wordexe varchar2(20);
    BEGIN
         username := webutil_clientinfo.get_user_name;
         document_name := 'wo'||:wod.fk_work_order_number||'.doc';
         :locals.file_name := 'Documents and Settings\'||username||'\my documents\'||document_name;
    l_success := webutil_file_transfer.DB_To_Client_with_progress
    (clientFile => 'C:\'||:locals.file_name
    ,tableName => 'DEFECTS'
    ,columnName => 'DESCRIPTION'
    ,whereClause => 'FK_WORK_ORDER_DATE_ID = '||:DEF.FK_WO_DATE_ID
    ,progressTitle => 'Defect document being opened'
    ,progressSubTitle=> 'Please wait'
    if l_success
    then
    CLIENT_HOST('cmd /c start /wait winword.exe C:\'||'"'||:locals.file_name||'"');
    else
    message('File download from Database failed');
    end if;
    exception
         when others
         then
         message('File download failed: '||sqlerrm);
    END;
    Any ideas?

    Hello,
    I use this kind of code with 9i and 10g and it works fine with word, excel and any of windows files.
    I think that, if the file is not correct, the cause may be the first save of the file in the database.
    Which instruction did you use to save first the doc in the BLOB column ?
    Francois

  • Character encoding problem using XSLT and Tomcat on Linux

    Hi,
    I have an application running on a Tomcat 4.1.18 application server that applies XSLT transformations to DOM objects using standard calls to javax.xml.transform API. The JDK is J2SE 1.4.1_01.
    It is all OK while running on a development enviroment (which is Windows NT 4.0 work station), but when I put it in the production enviroment (which is a red hat linux 8.0), it comes up with some kind of encoding problem: the extended characters (in spanish) are not shown as they should.
    The XSL stylesheets are using the ISO-8859-1 encoding, but I have also tried with UTF-8.
    These stylesheets are dynamicly generated from a JSP:
    // opens a connection to a JSP that generates the XSL
    URLConnection urlConn = (new URL( xxxxxx )).openConnection();
    Reader readerJsp = new BufferedReader(new InputStreamReader( urlConn.getInputStream() ));
    // Gets the object that represents the XSL
    Templates translet = tFactory.newTemplates( new StreamSource( readerJsp ));
    Transformer transformer = translet.newTransformer();
    // applies transformations
    // the output is sent to the HttpServletResponse's outputStream object
    transformer.transform(myDOMObject, new StreamResult(response.getOutputStream()) );Any help would be appreciated.

    Probably you need to set your LANG OS especific environment variable to spanish.
    Try adding this line:
    export LANG=es_ES
    to your tomcat/bin/catalina.sh, and restart tomcat.
    It should look like this:
    # OS specific support.  $var _must_ be set to either true or false.
    cygwin=false
    case "`uname`" in
    CYGWIN*) cygwin=true;;
    esac
    export LANG=es_ES
    # resolve links - $0 may be a softlink
    PRG="$0"
    .(BTW, keep using ISO-8859-1 encoding for your XSL)
    HTH
    Un Saludo!

  • Serious resource utlization problem using SOAP and 8.0.2

    Hi,
    I'm running into a fairly serious issues whilst trying to download large attachments from a Groupwise 8.0.2 server using SOAP.
    Basically, the problem is as follows: at a client site, there's an inbox with an email that has an attached avi file of about 330mb. Our SOAP client tries to retrieve this file in chunks of 1mb in size (if you try to set the size of the chunks any larger, Groupwise will give you a 59922 error, as 1mb is apparently some sort of hard coded limit). So that attachment corresponds to roughly 330 AttachmentRequestMessage's and their responses, each with a 1mb payload.
    When we run our client, the cpu utilization of the Groupwise server takes about a dozen seconds to climb to 100%, every single time we try. Since 100% cpu utilization renders all GW clients more or less inoperable (or at least extremely slow) this is a non-starter.
    We changed our client to wait 2 secs. in between requesting each chunk of the attachment. This seemed to help initially, but by the time we had transferred 100mb of the file, cpu utilization climbed to 95% and stayed there until the file transfer was completed.
    This is a little disconcerting. We're requesting a megabyte of data from an attachment every 2 seconds, and Groupwise seems to have all sorts of problems in trying to service these requests. As you can imagine, client performance isn't that great at 95% server utilization either. I suppose we could increase the pause to something like 5 seconds, but it seems ridiculous that such simple requests are generating this amount of load.
    So my question is 2-fold:
    1. can I increase the maximum size of an attachment part chunk? 1mb is not very much at all, seeing as our server is on the same gigabit lan segment as the GW server
    2. why does cpu utilization shoot up to 95% while servicing what seem to be fairly simple requests, and how do I avoid this by some means other than increasing my pause time?
    Thanks in advance,
    Maarten
    PS I spent some time looking for the 59922 error code in the docs, but turned up nothing

    The 59922 error is just a warning.
    You should use the HTTP GET construct to get large
    attachments. It is orders of magnitude faster than
    using getAttachmentRequest.
    >>> On Friday, August 20, 2010 at 11:06 AM,
    mdirkse<[email protected]> wrote:
    > Hmm, could you perhaps point me to where in the docs?
    >
    > Because as far as I know you have to download an attachment using a
    > getAttachmentRequest ('Novell Doc: NDK: GroupWise Web Services ‑
    > getAttachmentRequest'
    >
    (http://developer.novell.com/document...a/b7m3i5b.html
    > )),
    > which takes a length parameter, and if you set that to > 1mb, Groupwise
    > returns a 59922 error which, I'm pretty sure, *isn't* in the docs.
    >
    > Ray;2013273 Wrote:
    >> You can download the complete attachment
    >> in 1 go over HTTP using a SOAP login session.
    >>
    >> It's all in the docs...
    >>
    >> Am 19.08.2010 16:06, schrieb mdirkse:
    >> >
    >> > Hi,
    >> > I'm running into a fairly serious issues whilst trying to download
    >> > large attachments from a Groupwise 8.0.2 server using SOAP.
    >> >
    >> > Basically, the problem is as follows: at a client site, there's an
    >> > inbox with an email that has an attached avi file of about 330mb.
    >> Our
    >> > SOAP client tries to retrieve this file in chunks of 1mb in size (if
    >> you
    >> > try to set the size of the chunks any larger, Groupwise will give you
    >> a
    >> > 59922 error, as 1mb is apparently some sort of hard coded limit). So
    >> > that attachment corresponds to roughly 330
    >> AttachmentRequestMessage's
    >> > and their responses, each with a 1mb payload.
    >> >
    >> > When we run our client, the cpu utilization of the Groupwise server
    >> > takes about a dozen seconds to climb to 100%, every single time we
    >> try.
    >> > Since 100% cpu utilization renders all GW clients more or less
    >> > inoperable (or at least extremely slow) this is a non‑starter.
    >> >
    >> > We changed our client to wait 2 secs. in between requesting each
    >> chunk
    >> > of the attachment. This seemed to help initially, but by the time we
    >> had
    >> > transferred 100mb of the file, cpu utilization climbed to 95% and
    >> stayed
    >> > there until the file transfer was completed.
    >> >
    >> > This is a little disconcerting. We're requesting a megabyte of data
    >> > from an attachment every 2 seconds, and Groupwise seems to have all
    >> > sorts of problems in trying to service these requests. As you can
    >> > imagine, client performance isn't that great at 95% server
    >> utilization
    >> > either. I suppose we could increase the pause to something like 5
    >> > seconds, but it seems ridiculous that such simple requests are
    >> > generating this amount of load.
    >> >
    >> > So my question is 2‑fold:
    >> > 1. can I increase the maximum size of an attachment part chunk? 1mb
    >> is
    >> > not very much at all, seeing as our server is on the same gigabit
    >> lan
    >> > segment as the GW server
    >> > 2. why does cpu utilization shoot up to 95% while servicing what
    >> seem
    >> > to be fairly simple requests, and how do I avoid this by some means
    >> > other than increasing my pause time?
    >> >
    >> > Thanks in advance,
    >> > Maarten
    >> >
    >> > PS I spent some time looking for the 59922 error code in the docs,
    >> but
    >> > turned up nothing
    >> >
    >> >

  • Problems using JNI and JSP in WebLogic 6.0

    Hello everybody. My problem is that I've got a Java class that is called from a JSP. That class connects to a C function and it returns a String. A want this string to be shown by the JSP. The code is:
    JSP
    <html>
    <head>
    <title>prueba JNI</title>
    </head>
    <body>
    <%@ page import="ejemplosJNI.*, conversiones.*;"%>
    <%
    Texto texto = new Texto();
    out.println(texto.realizado());
    %>
    </body>
    </html>
    Java class
    package ejemplosJNI;
    public class Texto
    private native String getLine(String prompt);
    String input = null;
    public static void main(String args[])
    Texto t = new Texto();
    static
    System.loadLibrary("MyImpOfPrompt");
    public String realizado()
    input = this.getLine("Mando una l�nea desde Java");
    return input;
    C function
    #include <stdio.h>
    #include <jni.h>
    #include "Texto.h"
    JNIEXPORT jstring JNICALL
    Java_Texto_getLine(JNIEnv *env, jobject obj, jstring prompt)
    char buf[128];
    const char str = (env)->GetStringUTFChars(env, prompt, 0);
    (*env)->ReleaseStringUTFChars(env, prompt, str);
    return (*env)->NewStringUTF(env, str);
    I compile de C function and put the .dll library in the 'bin' folder in webLogic.
    When I call the JSP, I get the next exception:
    Servlet failed with Exception
    java.lang.UnsatisfiedLinkError: getLine
    at ejemplosJNI.Texto.getLine(Native Method)
    at ejemplosJNI.Texto.realizado(Texto.java:19)
    at jsp_servlet._jsp._pruebasjni._prueba1._jspService(_prueba1.java:93)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:213)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:246)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:1265)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:1622)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Is there any place where I have to put the .dll?
    Is there any place where I have to put the generated .lib?
    Where do I have to put the Texto.h file generated with javah?
    Can anybody help me to solve this problem?
    Thanks in advance.

    Hi, jschell! Maybe you can see my problem if I give you the code. My Java class and the C funtions are:
    Java class
    package ejemplos.cadena;
    public class Texto
    private native String getLine(String prompt) throws Exception;
    String cadenaFinal = null;
    public static void main(String args[])
    Texto t = new Texto();
    static
    System.loadLibrary("LibreriaCadena");
    public String realizado(String cadena)
    try
    cadenaFinal = getLine(cadena);
    catch(Exception e)
    System.out.println(e.toString());
    return cadenaFinal;
    C code
    #include <stdio.h>
    #include <jni.h>
    #include "ejemplos_cadena_Texto.h"
    JNIEXPORT jstring JNICALL
    Java_ejemplos_cadena_Texto_getLine(JNIEnv *env, jobject obj, jstring prompt)
    int cero =0;
    int division = 10 / cero;
    const char str = (env)->GetStringUTFChars(env, prompt, 0);
    (*env)->ReleaseStringUTFChars(env, prompt, str);
    return (*env)->NewStringUTF(env, str);
    I have done something like "int division = 10 / cero;" in order to get an exception in my C code. When I run my Java class I get an error message and the application breaks. I would like to know how to catch the C exception in order to pass it to my Java class that can manage it into the try-catch clause. I have read I have to use something like "FindClass" or "ThrowNew", but my problem is that I have no idea about C programming.
    Can you help me?
    Thanks for your time.

  • Mapping Networkdrive using GPO and Item-Level Targeting - Same Letter in two groups

    Hi.
    I'm using one GPO to Map networkdrives, we are using it with Item-Level Targeting which targets on Security Group, so a Member of "SecurityGroup" gets the Drive, we have several drives and we are using all the Letters that are available, now I'm
    in a pickle and need help with If a User is part of two Security Groups that uses the same letter to map the drive, Example: User1 is a part of two security groups "Drive-Sales" and "Drive-Account" these two Security Groups uses the same
    Letter in the GPO to map the drive, so if the User is in both Groups he only gets the "Sales Drive" but not "Account Drive".
    So what I need is that can the GPO assign next Available letter on the computer that "user1" is logged on, and can it be signed on the "Account Drive". ?
    Hope you understand what I'm going for
    Kind Regards
    Haflidi Fridthjofsson.

    > we are using all the Letters that are available
    You should eventually switch to DFS Namespaces and Access based
    enumeration - so each user will have the DFS root assigned and can only
    see the subfolders he has access to.
    > So what I need is that can the GPO assign next Available letter on the
    > computer that "user1" is logged on, and can it be signed on the "Account
    > Drive". ?
    Yes: Create another assigment with an ILT of "user is member of BOTH
    groups" and use "next available" in this assignment.
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

Maybe you are looking for