PS: Set-ADAccountPassword - Complexity Exception

I've got problems with setting new passwords via Powershell on Server 2012 R2:
Set-ADAccountPassword -Identity testuser48 
-OldPassword (ConvertTo-SecureString -AsPlainText "HelloPassword123#" -Force)
-NewPassword (ConvertTo-SecureString -AsPlainText "April456#@123" -Force)
I tried many different passwords but there's always an ADPasswordComplexityException.
FullyQualifiedErrorId : ActiveDirectoryServer:1325,Microsoft.ActiveDirectory.Management.Commands.SetADAccountPasword
Are there any other things I could try? All password complexity rules (incl. length, ...) are disabled.

I agree with David.
That being said, to answer your question - is it possible that you have a password history issue you're running into while testing this?  The error I'm getting is probably the same as yours:
Set-ADAccountPassword : The password does not meet the length, complexity, or
history requirement of the domain.
I am using a test account that I literally just created, and the account is set to not force the user to change password upon first logon.  Because this example is changing the password rather than resetting it, the password age may not be old enough
when you're executing the command, so you get the generic failure.
I hope this post has helped!

Similar Messages

  • How to set password complexity

    How to set password
    complexity on windows server 2012
    but fulfills 4 features Inglés
    uppercase characters (A through
    Z) Inglés lowercase characters
    (a through z) Base 10
    digits (0 through 9) Non-alphabetic
    characters (for example,!, $,
    #,%), currently only 3 of the 4
    options.
    thanks
    Guillermo Ledesma

    Windows has only one complexity filter built in and that is not configurable.
    You could develop your own or check for existing third party software.
    http://technet.microsoft.com/en-us/library/hh994562(v=ws.10).aspx
    http://msdn.microsoft.com/en-us/library/windows/desktop/ms721766(v=vs.85).aspx
    MCP/MCSA/MCTS/MCITP

  • Issue with Set-adaccountpassword

    I have tried to reset the password for account which is in different domain by using set-adaccountpassword cmdlt but it not allowing me to reset it.
    Here the script i used
    Set-ADAccountPassword -name redmond -Identity skur -OldPassword (ConvertTo-SecureString -AsPlainText "password@dfejw" -Force) -NewPassword (ConvertTo-SecureString -AsPlainText "rwwjebrwebb@1254" -Force)
    here domain - redmond
    account name :skur
    can you some some correct me if i am wrong

    Hi There,
    The cmdlet parameters appear to be incorrect. There is no -name parameter in the Set-ADAccountPassword cmdlet.
    Instead, you could try:
    Set-ADAccountPassword -Server <name of a redmond dc> -Identity skur -OldPassword
    (ConvertTo-SecureString -AsPlainText "password@dfejw" -Force)
    -NewPassword (ConvertTo-SecureString -AsPlainText "rwwjebrwebb@1254"
    -Force)
    You'll need to set the <name of a redmond dc> to the host name of one of the DCs for this domain.
    HTH

  • How do I permanently set a popup exception. I can set an exception, but everytime I leave FF and connect again, I have to set the exception again.

    How do I permanently set a popup exception. I can set an exception, but every time I leave FF and connect again, I have to set the exception again. Can I set it once on a permanent basis?

    In case you are using "Clear history when Firefox closes":
    *do not clear Site Preferences
    *Tools > Options > Privacy: History: [X] Clear history when Firefox closes > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.

  • Pls help..Constructor,setter, getter and Exception Handling Problem

    halo, im new in java who learning basic thing and java.awt basic...i face some problem about constructor, setter, and getter.
    1. I created a constructor, setter and getter in a file, and create another test file which would like to get the value from the constructor file.
    The problem is: when i compile the test file, it come out error msg:cannot find symbol.As i know that is because i miss declare something but i dont know what i miss.I post my code here and help me to solve this problem...thanks
    my constructor file...i dont know whether is correct, pls tell me if i miss something...
    public class Employee{
         private int empNum;
         private String empName;
         private double empSalary;
         Employee(){
              empNum=0;
              empName="";
              empSalary=0;
         public int getEmpNum(){
              return empNum;
         public String getName(){
              return empName;
         public double getSalary(){
              return empSalary;
         public void setEmpNum(int e){
              empNum = e;
         public void setName(String n){
              empName = n;
         public void setSalary(double sal){
              empSalary = sal;
    my test file....
    public class TestEmployeeClass{
         public static void main(String args[]){
              Employee e = new Employee();
                   e.setEmpNum(100);
                   e.setName("abc");
                   e.setSalary(1000.00);
                   System.out.println(e.getEmpNum());
                   System.out.println(e.getName());
                   System.out.println(e.getSalary());
    }**the program is work if i combine this 2 files coding inside one file(something like the last part of my coding of problem 2)...but i would like to separate them....*
    2. Another problem is i am writing one simple program which is using java.awt interface....i would like to add a validation for user input (something like show error msg when user input character and negative number) inside public void actionPerformed(ActionEvent e) ...but i dont have any idea to solve this problem.here is my code and pls help me for some suggestion or coding about exception. thank a lots...
    import java.awt.*;
    import java.awt.event.*;
    public class SnailTravel extends Frame implements ActionListener, WindowListener{
       private Frame frame;
       private Label lblDistance, lblSpeed, lblSpeed2, lblTime, lblTime2, lblComment, lblComment2 ;
       private TextField tfDistance;
       private Button btnCalculate, btnClear;
       public void viewInterface(){
          frame = new Frame("Snail Travel");
          lblDistance = new Label("Distance");
          lblSpeed = new Label("Speed");
          lblSpeed2 = new Label("0.0099km/h");
          lblTime = new Label("Time");
          lblTime2 = new Label("");
          lblComment = new Label("Comment");
          lblComment2 = new Label("");
          tfDistance = new TextField(20);
          btnCalculate = new Button("Calculate");
          btnClear = new Button("Clear");
          frame.setLayout(new GridLayout(5,2));
          frame.add(lblDistance);
          frame.add(tfDistance);
          frame.add(lblSpeed);
          frame.add(lblSpeed2);
          frame.add(lblTime);
          frame.add(lblTime2);
          frame.add(lblComment);
          frame.add(lblComment2);
          frame.add(btnCalculate);
          frame.add(btnClear);
          btnCalculate.addActionListener(this);
          btnClear.addActionListener(this);
          frame.addWindowListener(this);
          frame.setSize(100,100);
          frame.setVisible(true);
          frame.pack();     
        public static void main(String [] args) {
            SnailTravel st = new SnailTravel();
            st.viewInterface();
        public void actionPerformed(ActionEvent e) {
           if (e.getSource() == btnCalculate){
              SnailData sd = new SnailData();
           double distance = Double.parseDouble(tfDistance.getText());
           sd.setDistance(distance);
                  sd.setSpeed(0.0099);
              sd.setTime(distance/sd.getSpeed());
              String answer = Double.toString(sd.getTime());
              lblTime2.setText(answer);
              lblComment2.setText("But No Exception!!!");
           else
           if(e.getSource() == btnClear){
              tfDistance.setText("");
              lblTime2.setText("");
       public void windowClosing(WindowEvent e){
                   System.exit(1);
        public void windowClosed (WindowEvent e) { };
        public void windowDeiconified (WindowEvent e) { };
        public void windowIconified (WindowEvent e) { };
        public void windowActivated (WindowEvent e) { };
        public void windowDeactivated (WindowEvent e) { };
        public void windowOpened(WindowEvent e) { };
    class SnailData{
       private double distance;
       private double speed;
       private double time;
       public SnailData(){
          distance = 0;
          speed = 0;
          time = 0;
       public double getDistance(){
          return distance;
       public double getSpeed(){
          return speed;
       public double getTime(){
          return time;
       public void setDistance(double d){
          distance = d;
       public void setSpeed(double s){
          speed = s;
       public void setTime(double t){
          time = t;
    }Pls and thanks again for helps....

    What i actually want to do is SnailTravel, but i facing some problems, which is the
    - Constructor,setter, getter, and
    - Exception Handling.
    So i create another simple contructor files which name Employee and TestEmployeeClass, to try find out the problem but i failed, it come out error msg "cannot find symbol".
    What i want to say that is if i cut below code (SnailTravel) to its own file(SnailData), SnailTravel come out error msg "cannot find symbol".So i force to put them in a same file(SnailTravel) to run properly.
    I need help to separate them. (I think i miss some syntax but i dont know what)
    And can somebody help me about Exception handling too pls.
    class SnailData{
       private double distance;
       private double speed;
       private double time;
       public SnailData(){
          distance = 0;
          speed = 0;
          time = 0;
       public double getDistance(){
          return distance;
       public double getSpeed(){
          return speed;
       public double getTime(){
          return time;
       public void setDistance(double d){
          distance = d;
       public void setSpeed(double s){
          speed = s;
       public void setTime(double t){
          time = t;

  • HT1212 I received a replacement iphone for one that went bad and I think I have everything set up ok, except that on my mail account on the screen it is registering 373 pieces of mail and I can not get it to go away.  There isn't any mail in the email acc

    I had an iphone that would not work and they sent me a replacement.  I have everything set up the same as my last one except that now on the screen it registers 373 on the mail button.  I don't have any mail in my mail box.  Everything is cleaned out but it still registers 373 on the front of my phone.  How do I get this to go back to normal?

    If your email account offers a webmail access, I suggest checking the webmail - log in to your account using the webmail access, and I predict you will see all those "unread" emails there and can dispose of them from there.
    This happens because the iPhone that went bad, when reading those emails, did not remove them from your email provider's servier.

  • Result set is close exception

    here am sending with my code which i comile gets resultset is closed exception.am using this for my jsp page.
    team1Players gives the playerId of 11 players, and using this i wants to get the eir names from the second query,ie team1PlayerName.when i compile this the second query is executed and the message shows result set is closed,am not closing the result set any where.
    pls help
    package com.cricinfo.manager;
    import com.cricinfo.bizobj.*;
    import com.cricinfo.statuscodes.*;
    import java.sql.*;
    import java.util.HashMap;
    public class reporterMatchDetails
         public void reporterMatchDetails(){
         public HashMap matchDetails(Connection con,String matchId)
              HashMap <String,Object> responseMap=new HashMap <String,Object>();
              try
                   Statement st=con.createStatement();
                   String teamPlayerQuery="SELECT * from CRICINFOMATCHPLAYERTABLE where matchId='"+matchId+"'";
                   ResultSet teamPlayerSet=st.executeQuery(teamPlayerQuery);
                   if (teamPlayerSet.next())
                        String team1Players=teamPlayerSet.getString("team1PlayerId");
                        System.out.println("team1 playerId is "+team1Players);
                        String team1PlayerQuery="SELECT * FROM CRICINFOPLAYERTABLE WHERE playerId in ("+team1Players+")";
                        System.out.println(team1PlayerQuery);
                        ResultSet team1PlayerSet=st.executeQuery(team1PlayerQuery);
                        while (team1PlayerSet.next())
                             String team1PlayerId=team1PlayerSet.getString("playerId");
                             String team1PlayerName=teamPlayerSet.getString("playerName");
                             System.out.println("team1 playerId is "+team1PlayerId);
                             System.out.println("team1 PlayerName is "+team1PlayerName);
              catch (Exception e)
                   e.printStackTrace();
              return responseMap;
    }

    well i completely agree with what the previous poster has said...
    you need to associcate the second resultset to a different statement altogether in this senario.
    package com.cricinfo.manager;
    import com.cricinfo.bizobj.*;
    import com.cricinfo.statuscodes.*;
    import java.sql.*;
    import java.util.HashMap;
    public class reporterMatchDetails{
    public void reporterMatchDetails(){
    public HashMap matchDetails(Connection con,String matchId){
    HashMap <String,Object> responseMap=new HashMap <String,Object>();
    try{
    Statement st = con.createStatement();
    Statement st1 = con.createStatement();
    String teamPlayerQuery="SELECT * from CRICINFOMATCHPLAYERTABLE where matchId='"+matchId+"'";
    String team1PlayerQuery="SELECT * FROM CRICINFOPLAYERTABLE WHERE playerId in ("+team1Players+")";
    ResultSet teamPlayerSet = st.executeQuery(teamPlayerQuery);
    if (teamPlayerSet.next()){
      String team1Players=teamPlayerSet.getString("team1PlayerId");
      System.out.println("team1 playerId is "+team1Players);
      System.out.println(team1PlayerQuery);
       ResultSet team1PlayerSet=st1.executeQuery(team1PlayerQuery);
       while (team1PlayerSet.next()){
         String team1PlayerId=team1PlayerSet.getString("playerId");
         String team1PlayerName=teamPlayerSet.getString("playerName");
         System.out.println("team1 playerId is "+team1PlayerId);
         System.out.println("team1 PlayerName is "+team1PlayerName);
    catch (Exception e){
    e.printStackTrace();
    return responseMap;
    } check the above code.
    hope that might help :)
    REGARDS,
    RaHuL

  • Why am I getting popups when I have it set for no exceptions?

    advertisement popups happen frequently from all kinds of sites at any time during my session, and I I have no exceptions set in the options menu. They always open in another window underneath the current one and are not always noticed immediately.

    You have most likely picked up some adware from the internet or something you have downloaded/installed.
    Download, install and update as many of the following as possible until your infections are cleaned.
    #The '''<u>free versions</u>''' of these scanners will detect infections and clean your system; no need to purchase
    #'''<u>Different malware scanners detect some malware that other scanners do not.</u>'''
    #If you are unable to download the malware programs,
    #* change the name of the installer program before saving the download to your hard drive, and
    #* once installed, go to the installation folder for the program and change the name of the program executable file (i.e., for Malwarebytes Anti-Malware, change mbam.exe to xyz-mb.exe), then update the program and run the scan.
    #* you may need to download on an un-infected computer, change the name of the installer program, copy the installer to a CD or USB thumb drive, and transport to your system for installation.
    #Some stubborn malware will need to be removed in '''Windows Safe Mode with Networking'''. See:
    #*http://www.pbcomp.com.au/using-windows-safe-mode.html
    #*http://www.malwarehelp.org/restart-into-safe-mode-how-to-2010.html
    *Malwarebytes' Anti-Malware - http://www.malwarebytes.org/mbam.php
    *SuperAntispyware - http://www.superantispyware.com/
    *AdAware - http://www.lavasoftusa.com/software/adaware/
    *Spybot Search & Destroy - http://www.safer-networking.org/en/index.html
    *Windows Defender - http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
    *Dr. Web Cureit - http://www.freedrweb.com/cureit/
    If these don't find or can't clear the infection(s), post in one of these forums for specialized malware removal help:
    #Read and follow their rules for posting
    #Follow their instructions '''to the letter'''
    #Be patient; you are put in a queue and you will get a response when they get to your post
    *http://bleepingcomputer.com
    *http://www.spywareinfoforum.com/
    *http://www.spywarewarrior.com/index.php
    *http://forum.aumha.org/
    <br />
    The information submitted with your question indicates that you have out of date plugins with known security and stability issues that should be updated. To see the plugins submitted with your question, click "More system details..." to the right of your original question post.
    *Shockwave Flash 10.0 r32
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update the [[Managing the Flash plugin|Flash]] plugin''' to the latest version.
    #*Download and SAVE to your Desktop so you can find the installer later
    #*If you do not have the current version, click on the "Player Download Center" link on the "Download..." page below
    #*After download is complete, exit Firefox
    #*Click on the installer you just downloaded and install
    #**Windows 7 and Vista: may need to right-click the installer and choose "Run as Administrator"
    #*Start Firefox and check your version again or test the installation by going back to the download link below
    #*Download and information: http://www.adobe.com/software/flash/about/
    #**Use Firefox to go to the above site to update the Firefox plugin (will also install plugin for most other browsers; except IE)
    #**Use IE to go to the above site to update the IE ActiveX

  • Setting up complex wake up & sleep schedules

    Hi,
    I'm wanting to set up a complex wake up & sleep schedule to allow various tasks to run at various times. Eg. Clone a disk at 4am on Mondays & Thursdays, as well as do a network backup at midnight on Sundays. I can set up the clone & network backup programs fine, but I can't find a way to wake the Mac up from sleep with this schedule. The Energy Saver schedules don't allow for more than one wake up time per week.
    Is there any other way to make wake up/sleep schedules?
    Thanks.

    This article may help you.
    Create multiple unique wake schedules

  • How to set password complexity and expiration for ClearPass admin users

    Requirement:
    As a server admin, i wish to set complexity for my ClearPass admin (management login) password and also as per company policy wish to set password expiration. This document explains how it can be achieved.
    Solution:
    From ClearPass 6.5.0 a new Password Policy Settings form was added for both local users and admin users.
    Configuration:
    To use this option, go to either Administration > Users and Privileges > Admin Users > Password Policy or Configuration > Identity > Local Users > Password Policy. Options that can be configured for the password include length, complexity, disallowed characters, disallowed words, disallowed user ID or repeated characters, and the number of days to expiration.
    Admin User
    Local User
    Verification
    In Password Policy updated the password complexity as following (atleast one uppercase and one lowercase letter and 3 as disallowed character). Also set the Password expiration to 5 days.
    After that tried to reset the admin password with character 3 and got an error as following

    Please follow below steps:-
    This is available starting in RUP4.
    The script to expire all passwords in the fnd_user table is $FND_TOP/patch/115/sql/AFCPEXPIRE.sql.
    It can be executed from SQL*Plus or as a Concurrent Program: sqlplus -s APPS/ @AFCPEXPIRE.sql
    or Submit concurrent request: CP SQL*Plus Expire FND_USER Passwords
    This script sets the fnd_user.password_date to null for all users which causes all user passwords to expire.The user will need to create a new password upon the next login.
    Thanks,
    JD

  • How can I set VM parameters except Xms and Xmx?

    I can set the Xms and Xmx as the following:
    <j2se version="1.4+" initial-heap-size="80m" max-heap-size="80m"/>
    but how can I set other VM parameter such as Xmn,XX:SurvivorRatio,and some which to special JVM(for example:JRockit)?

    There is a whole list ov vm-args considered "safe" by java web start listed in the developers guide at:
    http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/syntax.html#resources
    these can be set with the new arg to the j2se element, vm-args like this:
    <j2se version="1.5.0+" java-vm-args="-esa -Xnoclassgc"/>
    /Andy

  • Can set any date except 28-03-2004 02:00:00

    It seems I cannot set the datetime to 28/03/2005 02:00:00 (the problem is the hour).
    I have the following pieces code:
    1.
    Date d0 = new Date("03/28/2004 02:00:00");
    System.out.println(d0);
    prints out Sun Mar 28 03:00:00 CEST 2004: the hour is 3 instead of 2
    2.
    Calendar startCal = GregorianCalendar.getInstance(Locale.ITALY);
    startCal.set(Calendar.DAY_OF_MONTH, 28);
    startCal.set(Calendar.MONTH, Calendar.MARCH);
    startCal.set(Calendar.YEAR, 2004);
    startCal.set(Calendar.HOUR_OF_DAY, 0);
    startCal.set(Calendar.MINUTE, 0);
    startCal.set(Calendar.SECOND, 0);
    startCal.set(Calendar.MILLISECOND, 0);
    Date start = startCal.getTime();
    Calendar endCal = GregorianCalendar.getInstance();
    endCal.set(Calendar.DAY_OF_MONTH, 28);
    endCal.set(Calendar.MONTH, Calendar.MARCH);
    endCal.set(Calendar.YEAR, 2004);
    endCal.set(Calendar.HOUR_OF_DAY, 5);
    endCal.set(Calendar.MINUTE, 0);
    endCal.set(Calendar.SECOND, 0);
    endCal.set(Calendar.MILLISECOND, 0);
    Date end = endCal.getTime();
    while(!startCal.getTime().after(end)){
    startCal.add(Calendar.HOUR_OF_DAY, 1);
    System.out.println(startCal.getTime());
    It prints out
    Sun Mar 28 01:00:00 CET 2004
    Sun Mar 28 03:00:00 CEST 2004
    Sun Mar 28 04:00:00 CEST 2004
    Sun Mar 28 05:00:00 CEST 2004
    Sun Mar 28 06:00:00 CEST 2004
    and it skips Sun Mar 28 03:00:00 CEST 2004
    3.
    Calendar cal = GregorianCalendar.getInstance(Locale.ITALY);
    cal.set(Calendar.DAY_OF_MONTH, 28);
    cal.set(Calendar.MONTH, Calendar.MARCH);
    cal.set(Calendar.YEAR, 2004);
    cal.set(Calendar.HOUR_OF_DAY, 2);
    cal.set(Calendar.MINUTE, 0);
    cal.set(Calendar.SECOND, 0);
    cal.set(Calendar.MILLISECOND, 0);
    Date d = cal.getTime();
    System.out.println(d);
    it prints out Sun Mar 28 03:00:00 CEST 2004 !!!!
    It seems I am unable to set hour to 2 am for the 28th March 2004. The same for 27th 2005.
    Where I am wrong ? Is it a bug ? For the other days it works correctly.
    thanks for your help

    Hi
    Your problem is due to Daylight Saving Time. The dates you are using are the dates seheduled for the switch between GMT+1 and GMT+2
    See: http://wwp.greenwichmeantime.com/time-zone/europe/italy/

  • Any way to set global variables except EAS console?

    Hi pros,
    I am searching for a way to set global variables (used by business rules) automatically.
    I got several variables which should change each month. I know the rule to set them.
    However, I cannot find any way to set them through scripting or something else.
    I tried to research EAS repository. The one that I found relevant is HBRVariables table.
    I cannot find any tool can help this.
    Any one knows how?
    Appreciated......
    Casp Huang

    Yes you can use substitution variables in business rules and they are widely used, it is relatively easy to automate the changing of values for subtitution values.
    You can also put a sub var into the default value for a global variable in business rules.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Can't access internet since I set Firefox as my default, I could before. Set firefox as exception to firewall, even tried disabling firewall totally. Still can't get service on my other computer.

    I was able to access firefox before I set it as my default browser.Have called my internet company but they were not able to help. I can access email just fine so I know my connection is fine. I have tried deleting history, cookies, etc. I have tried unplugging modem and restarting.

    When going to a website the picture was small - tried changing the Zoom size , tried Zoom Reset - the text did change size but the layout distorts - found under View - Zoom - Zoom Text Only was checked --- Removed this check mark and the website returned to normal size and Zoom worked normally again. I am 99.9999% sure I did NOT check this myself and there is no one else on the computer to cause it. Maybe this will help.

  • Transient Sybase SET CHAINED Tx exception.

    Hi,
    I've been experiencing a bit of strange behavior with WebLogic 6.1 SP3
    and Sybase 11.9.2.4. We are using the Sybase driver that comes with WL
    6.1. We are seeing occasional SQLExceptions concerning transactional
    modes for stored procedures running in our non-Tx datasource and regular
    SQL run in our Tx-datasource. I got the following for the stored
    procedure call:
    =========================
    com.sybase.jdbc.SybSQLException: Stored procedure 'weeklyflow..getWeeklyComplexContacts' may be run only in unchained transaction mode. The 'SET CHAINED OFF' command will cause the current session to use unchained transaction mode.
    at com.sybase.tds.Tds.processEed(Tds.java)
    at com.sybase.tds.Tds.nextResult(Tds.java)
    at com.sybase.jdbc.ResultGetter.nextResult(ResultGetter.java)
    at com.sybase.jdbc.SybStatement.nextResult(SybStatement.java)
    at com.sybase.jdbc.SybStatement.queryLoop(SybStatement.java)
    at com.sybase.jdbc.SybCallableStatement.executeQuery(SybCallableStatement.java)
    at weblogic.jdbc.pool.PreparedStatement.executeQuery(PreparedStatement.java:51)
    at weblogic.jdbc.rmi.internal.PreparedStatementImpl.executeQuery(PreparedStatementImpl.java:56)
    at weblogic.jdbc.rmi.SerialPreparedStatement.executeQuery(SerialPreparedStatement.java:42)
    at org.ici.weeklyflow.dao.SyBaseWeeklyDataDAOImpl.getWeeklyComplexContacts(SyBaseWeeklyDataDAOImpl.java:3233)
    at org.ici.weeklyflow.ejb.WeeklyFlowSBean.getComplexContacts(WeeklyFlowSBean.java:137)
    at org.ici.weeklyflow.ejb.WeeklyFlowSBean_1tv6ke_EOImpl.getComplexContacts(WeeklyFlowSBean_1tv6ke_EOImpl.java:785)
    at org.ici.weeklyflow.ejb.WeeklyFlowSBean_1tv6ke_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:274)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    =======================
    All of our stored procedures used for retrieving data have been created
    with the 'anymode' transaction mode. They will run correctly for a while
    and then occasionally the error will occur.
    The regular SQL in the Tx-datasource resulted in the following:
    =======================
    com.sybase.jdbc.SybSQLException: SET CHAINED command not allowed within multi-statement transaction.
    at com.sybase.tds.Tds.processEed(Tds.java)
    at com.sybase.tds.Tds.nextResult(Tds.java)
    at com.sybase.jdbc.ResultGetter.nextResult(ResultGetter.java)
    at com.sybase.jdbc.SybStatement.nextResult(SybStatement.java)
    at com.sybase.jdbc.SybStatement.updateLoop(SybStatement.java)
    at com.sybase.jdbc.SybStatement.executeUpdate(SybStatement.java)
    at com.sybase.jdbc.SybPreparedStatement.executeUpdate(SybPreparedStatement.java)
    at com.sybase.tds.Tds.setOption(Tds.java)
    at com.sybase.jdbc.SybConnection.setAutoCommit(SybConnection.java)
    at weblogic.jdbc.jts.Connection.getOrCreateConnection(Connection.java:594)
    at weblogic.jdbc.jts.Connection.prepareStatement(Connection.java:115)
    at weblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.java:135)
    at weblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.java:78)
    at org.ici.weeklyflow.dao.SyBaseWeeklyApplicationDAOImpl.removePrivilegedUser(SyBaseWeeklyApplicationDAOImpl.java:312)
    at org.ici.weeklyflow.ejb.WeeklyFlowSBean.removePrivilegedUser(WeeklyFlowSBean.java:322)
    at org.ici.weeklyflow.ejb.WeeklyFlowSBean_1tv6ke_EOImpl.removePrivilegedUser(WeeklyFlowSBean_1tv6ke_EOImpl.java:1049)
    at org.ici.weeklyflow.ejb.WeeklyFlowSBean_1tv6ke_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:274)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    =====================================
    I saw other postings concerning this message but those seemed to be in
    regards to errors that occurred all the time, does anyone have any ideas?
    Thanks,
    -Ben DeVore
    Tallan, Inc.

    You need a patch for SP3. Send an email to Joe Weinstein.
    Benjamin DeVore <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I've been experiencing a bit of strange behavior with WebLogic 6.1 SP3
    and Sybase 11.9.2.4. We are using the Sybase driver that comes with WL
    6.1. We are seeing occasional SQLExceptions concerning transactional
    modes for stored procedures running in our non-Tx datasource and regular
    SQL run in our Tx-datasource. I got the following for the stored
    procedure call:
    =========================
    com.sybase.jdbc.SybSQLException: Stored procedure'weeklyflow..getWeeklyComplexContacts' may be run only in unchained
    transaction mode. The 'SET CHAINED OFF' command will cause the current
    session to use unchained transaction mode.
    at com.sybase.tds.Tds.processEed(Tds.java)
    at com.sybase.tds.Tds.nextResult(Tds.java)
    at com.sybase.jdbc.ResultGetter.nextResult(ResultGetter.java)
    at com.sybase.jdbc.SybStatement.nextResult(SybStatement.java)
    at com.sybase.jdbc.SybStatement.queryLoop(SybStatement.java)
    atcom.sybase.jdbc.SybCallableStatement.executeQuery(SybCallableStatement.java)
    atweblogic.jdbc.pool.PreparedStatement.executeQuery(PreparedStatement.java:51)
    atweblogic.jdbc.rmi.internal.PreparedStatementImpl.executeQuery(PreparedStatem
    entImpl.java:56)
    atweblogic.jdbc.rmi.SerialPreparedStatement.executeQuery(SerialPreparedStateme
    nt.java:42)
    atorg.ici.weeklyflow.dao.SyBaseWeeklyDataDAOImpl.getWeeklyComplexContacts(SyBa
    seWeeklyDataDAOImpl.java:3233)
    atorg.ici.weeklyflow.ejb.WeeklyFlowSBean.getComplexContacts(WeeklyFlowSBean.ja
    va:137)
    atorg.ici.weeklyflow.ejb.WeeklyFlowSBean_1tv6ke_EOImpl.getComplexContacts(Week
    lyFlowSBean_1tv6ke_EOImpl.java:785)
    atorg.ici.weeklyflow.ejb.WeeklyFlowSBean_1tv6ke_EOImpl_WLSkel.invoke(Unknown
    Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
    atweblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
    :93)
    atweblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:274)
    atweblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:2
    2)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    =======================
    All of our stored procedures used for retrieving data have been created
    with the 'anymode' transaction mode. They will run correctly for a while
    and then occasionally the error will occur.
    The regular SQL in the Tx-datasource resulted in the following:
    =======================
    com.sybase.jdbc.SybSQLException: SET CHAINED command not allowed withinmulti-statement transaction.
    at com.sybase.tds.Tds.processEed(Tds.java)
    at com.sybase.tds.Tds.nextResult(Tds.java)
    at com.sybase.jdbc.ResultGetter.nextResult(ResultGetter.java)
    at com.sybase.jdbc.SybStatement.nextResult(SybStatement.java)
    at com.sybase.jdbc.SybStatement.updateLoop(SybStatement.java)
    at com.sybase.jdbc.SybStatement.executeUpdate(SybStatement.java)
    atcom.sybase.jdbc.SybPreparedStatement.executeUpdate(SybPreparedStatement.java
    at com.sybase.tds.Tds.setOption(Tds.java)
    at com.sybase.jdbc.SybConnection.setAutoCommit(SybConnection.java)
    at weblogic.jdbc.jts.Connection.getOrCreateConnection(Connection.java:594)
    at weblogic.jdbc.jts.Connection.prepareStatement(Connection.java:115)
    atweblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.ja
    va:135)
    atweblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.java:78
    atorg.ici.weeklyflow.dao.SyBaseWeeklyApplicationDAOImpl.removePrivilegedUser(S
    yBaseWeeklyApplicationDAOImpl.java:312)
    atorg.ici.weeklyflow.ejb.WeeklyFlowSBean.removePrivilegedUser(WeeklyFlowSBean.
    java:322)
    atorg.ici.weeklyflow.ejb.WeeklyFlowSBean_1tv6ke_EOImpl.removePrivilegedUser(We
    eklyFlowSBean_1tv6ke_EOImpl.java:1049)
    atorg.ici.weeklyflow.ejb.WeeklyFlowSBean_1tv6ke_EOImpl_WLSkel.invoke(Unknown
    Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
    atweblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
    :93)
    atweblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:274)
    atweblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:2
    2)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    =====================================
    I saw other postings concerning this message but those seemed to be in
    regards to errors that occurred all the time, does anyone have any ideas?
    Thanks,
    -Ben DeVore
    Tallan, Inc.

Maybe you are looking for