Commit happened in activity/function Exception When Launching CREATEPO WF

<p>
Hi all,
</p>
<p>
Got a good one here. Client is receiving the error above in the standard eBusiness Suite Req Approval Workflow. The problem has been narrowed down to the responsibility level. When the final approver is logged is as one Responsibility, the error does not occur. When the final approval is done through logging in as another Responsibility, the error halts the workflow.
</p>
<p>
All profile options are the same for both responsibilities. Both responsibilities use the same function 'Advanced Worklist' to display the Workflow Notifications. This started happening after an upgrade to 11.5.10.2.
</p>
<p>
There is one hit on Metalink but this didn't work (note: 603475.1).
</p>
<p>
I have been through the PL/SQL code and found that there is infact a commit statement in there. The PO Requisition Approval Workflow is calling the Create PO workflow and the error occurs when the wf_engine.StartProcess call is hit. Code flow below.
</p>
<p>
I was always under the impression that commit statements were a big 'no no' in Workflow? I could always take it out but this is standard 11.5.10.2 code so I assume it is there for a reason. Ultimately there must be something wrong with the Responsibility but I cannot for the life of me see it. I suspect that this is tied in with the way Workflow uses the responsibility.
</p>
<p>
<u>Code Flow</u>
<sup>PO_REQAPPROVAL_LAUNCH.LAUNCH_CREATEPO_WF - called from Workflow function.
PO_REQAPPROVAL_LAUNCH.LaunchCreatePOWF
PO_REQAPPROVAL_LAUNCH.CreateWFInstance
PO_AUTOCREATE_DOC.start_WF_process
commit;
wf_engine.CreateProcess - (item type - CREATEPO)
wf_engine.StartProcess - exception!
</sup>
</p>
<p>
Any help or comments appreciated.
</p>
<p>
Cheers,
</p>
<p>
Jon.
</p>

Not that I think that it will make any difference, BUT - have you seen MetaLink note 465827.1?
I can't see why that would make any difference - but I also disagree with the "solution" proposed in 603475.1. That particular "fix" seems to be to workaround the problem rather than actually address the fundamental flaw in the process, i.e. an activity invoked by a Workflow should NEVER issue a commit or a rollback. I'd guess that the PO team need to revisit this completely - the commit was introduced to fix a bug (which I don't have visibility of), but seems to have intoduced more problems further down the line.
My gut feeling says that the initial response from Oracle will be to determine why one responsibility is causing problems - which again is a fudge of the real problem. If you can, avoid going down this route :)
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://www.workflowfaq.com/blog ?
WorkflowFAQ support forum: http://forum.workflowfaq.com

Similar Messages

  • 3146: Commit happened in activity/function 'MAIN_REQAPPRV_PROCESS

    I am currently getting this error within requisition approval for our test environment. What is happenning is that the requsition is getting approved anf when it goes to be created into a PO it errors with the 3146 error above. I have checked the code and only found one commit statement, which may be something that causes the error, but even after it has been commennted out it still errors. THe wf is eactly the same in our dev environment and we have no problems there.
    Any ideas greatfully accepted.
    3146: Commit happened in activity/function 'MAIN_REQAPPRV_PROCESS:LAUNCH_CREATE_PO_WF/PO_REQAPPROVAL_LAUNCH.LAUNCH_CREATEPO_WF'

    There could be one more commit causing this issue. :)
    Whenver workflow engine executes a function activity, it sets a savepoint before calling the function activity procedure so that if there is an exception within the called procedure, the transaction is rolled back till the point of entry for that current activity alone and the rest of the trasanction committed to the database.
    If there is a commit inside the called procedure, the savepoint is erased and then if the procedure throws an exception, the workflow engine attempts to rollback and causes no_savepoint exception that results in this error.
    Rollback to a savepoint causes no_savepoint exception only if the savepoint is erased. Only a commit inside the procedure could have erased the savepoint. Please check again.
    Thanks

  • 3146: Commit happened in activity/function - Workflow Bug?????

    Here is my problem:
    I get a 3146: Commit happened in activity/function error in my workflow.
    Yes many state that I should remove all commits from my code and let the workflow do it for me BUT... there are no commits in my code, I removed them all.
    Anybody has an idea? Is this some sort of workflow bug? Is there a workaround?
    --Dmitry                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    This is not a workflow bug. There is a commit inside the code being called for that activity. :) May be somewhere inside the downstream APIs called from within your code.
    Try a simple function activity code with simple statements. You will not see this error.
    The reason for this error is, the workflow engine sets a savepoint just before executing a function activity so that in case of an error, it can rollback to that savepoint. If it does not find the savepoint after the function activity completes, engine assumes only a commit could have removed it after it was set. So check what could have erased the commit.
    Thanks

  • Unhandled Exception when launching Company Settings Center or UevSqmSession.exe

    Hi there,
    using UE-V 2.0 we get some errors. Currently we're still evaluating and therefore only have 5 installations. 2 out of them do have unhandled exceptions thrown. I think UevSqmSession is starting by task scheduler:
    Application: UevSqmSession.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.Management.ManagementException
    Stack:
    at System.Management.ManagementException.ThrowWithExtendedInfo(System.Management.ManagementStatus)
    at System.Management.ManagementScope.InitializeGuts(System.Object)
    at System.Management.ManagementScope.Initialize()
    at System.Management.ManagementObject.Initialize(Boolean)
    at System.Management.ManagementClass.GetInstances(System.Management.EnumerationOptions)
    at Microsoft.Uev.UevSqmSession.Program.Main(System.String[])
    Application: UevSqmSession.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.Management.ManagementException
    Stack:
    at System.Management.ManagementException.ThrowWithExtendedInfo(System.Management.ManagementStatus)
    at System.Management.ManagementScope.InitializeGuts(System.Object)
    at System.Management.ManagementScope.Initialize()
    at System.Management.ManagementObject.Initialize(Boolean)
    at System.Management.ManagementClass.GetInstances(System.Management.EnumerationOptions)
    at Microsoft.Uev.UevSqmSession.Program.Main(System.String[])

    Another Exception is thrown when launching the Company Settings Center by either from start menu or by double clicking tray icon (which IS running)
    Faulting application name: TemplateConsole.exe, version: 2.0.319.2, time stamp: 0x52eeb1b5
    Faulting module name: KERNELBASE.dll, version: 6.1.7601.18229, time stamp: 0x51fb1677
    Exception code: 0xe0434352
    Fault offset: 0x000000000000940d
    Faulting process id: 0xda0
    Faulting application start time: 0x01cf2d8b46916427
    Faulting application path: C:\Program Files\Microsoft User Experience Virtualization\Agent\TemplateConsole.exe
    Faulting module path: C:\Windows\system32\KERNELBASE.dll
    Report Id: 85c91347-997e-11e3-b8d7-0027133d35ca
    Application: TemplateConsole.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.InvalidOperationException
    Stack:
    at System.Windows.Window.set_Owner(System.Windows.Window)
    at Microsoft.Uev.TemplateConsole.Utils.AlertMessage(System.Windows.Window, System.String, System.String, System.String, Microsoft.Uev.Management.NotifyIcon, System.String, System.String, System.String, System.String, Boolean, System.Windows.Media.ImageSource)
    at Microsoft.Uev.TemplateConsole.Utils.AlertMessage(System.Windows.Window, Microsoft.Uev.TemplateConsole.AlertId, System.String, System.Object[])
    at Microsoft.Uev.TemplateConsole.App.Application_DispatcherUnhandledException(System.Object, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs)
    at System.Windows.Threading.Dispatcher.CatchException(System.Exception)
    at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
    at System.Windows.Threading.Dispatcher.WrappedInvoke(System.Delegate, System.Object, Int32, System.Delegate)
    at System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
    at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
    at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
    at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
    at System.Windows.Application.RunInternal(System.Windows.Window)
    at System.Windows.Application.Run()
    at Microsoft.Uev.TemplateConsole.App.Main()
    The miracle is other applications using this very same .NET framework version are running without problems. Also - as mentioned - the tray icon is running. Sync also does work as expected.
    Is there anybody else experiencing this issue ? Can MS please have a look ?
    thanks,
    Stefan

  • What happens to the function keys when i unplug the extended keyboard?

    i use my laptop (12 function keys) with a wired apple aluminum extended keyboard (19 function keys). i assigned a few functions (screen shots mostly) to the upper function keys on the keyboard... f16-f19. but when i unplug the keyboard i'm not sure how to get those functions on the laptop keyboard.
    what happens to those functions when the keyboard is unplugged? is there a way to map those functions to the keyboard so that they are re-assigned when it's unplugged?

    wilyliang wrote:
    question still remains: do f16, etc., exist or can they be re-invented once the USB keyboard is removed (besides having to re-map the shortcuts each time)?
    I haven't found a way, though there might be.
    or even: is it possible to assign two different key combos/function keys to a single command/shortcut?
    Now that depends on the application that's assigning the shortcuts. Some Microsoft and Adobe apps allow multiple shortcuts per function, I've taken advantage of those a few times myself. But cheaper apps often cut you off at one shortcut.

  • Class not found exception when launching opencounterslogger.bat

    PORTAL_HOME=D:\bea\alui\ptportal\10.3.0
    Expected PORTAL_HOME=D:\bea\alui\ptportal\10.3.0
    claspath is D:\bea\alui\ptportal\10.3.0\lib\java\jakarta-oro-2.0.7.jar;D:\bea\alui\ptportal\10.3.0\lib\java\openfoundation.jar;D:\bea\alui\ptportal\10.3.0\lib\java\openlog-framework.jar;D:\bea\alui\ptportal\10.3.0\lib\java\openconfig.jar;D:\bea\alui\ptportal\10.3.0\lib\java\openkernel.jar;D:\bea\alui\ptportal\1
    0.3.0\lib\java\pmb.jar;D:\bea\alui\ptportal\10.3.0\lib\java\opencounters.jar
    Exception in thread "Main Thread" java.lang.NoClassDefFoundError: com/plumtree/openkernel/impl/counters/adaptor/logger/PTRemoteCounterLoggerMain
    Press any key to continue . . .
    The class PTRemoteCounterLoggerMain is not in any of the jars in the classpath. Also opencountersconsole.bat is not to be seen is the installation

    Hi Mark,
    I have seen your two posts and there are something you need to notice:
    Where the ClassNotFound exception you got? From deployment tool or
    application server kjs process?
    Of course, you need not to add supporting classes to each ejb jars or ears.
    1. If you use deployment tool to package your application, I'm sure you'll
    fail to resovle your classes without supporting classes added to jars.
    Please select Edit->Preference,in Classpath entry, enter the supporting
    classes(packaged to jar files) location. This should work.
    2. After deploy to ias, please edit the registry using kregedit which you
    described in your posts.
    Regards,
    Johnson
    "Mark Priest" <[email protected]> wrote in message
    news:9s6h33$[email protected]..
    When I deploy EJBs to the iPlanet app server I find that I need to include
    all supporting classes in each ejb jar file. According to the
    Administrator's manual I should be able to modify the kjs classpath bydoing
    the following:
    On Windows
    a.. Open iPlanet Registry Editor.
    (See About iPlanet Registry Editor)
    b.. Open the following key:
    SOFTWARE\iPlanet\Application Server\6.0\Java\
    c.. Modify the class path and restart the server for the change to take
    effect.
    However, when I add my supporting classes to a jar in this directory Istill
    get a class not found exception when I run the deployment tool.
    Adding the classes to each EJB jar is redundant and introduces lots of
    problems. How should I configure iPlanet so I only need to put my
    supporting classes in one place?
    Thanks,
    Mark

  • Class Cast Exception when launching ACC against the CSC module

    Hi All,
    Hoping that someone can shed some light on the issue I am facing. many thanks.
    I am enabling the CSC as a deployment agent using the switchable datasources. I have configured the DeploymentAgent as well as the ConfigFileSystem nucleus components to enable switchable deployments. The deployments to the CSC module is function correctly. However when I launch the ACC against the CSC module I am receiving a Class Cast Exception against the atg.vfs.switchable.SwitchableLocalFileSystem class.
    java.lang.ClassCastException: atg.vfs.switchable.SwitchableLocalFileSystem
         at atg.versionmanager.VersionManager.setUpSets(VersionManager.java:1475)
         at atg.versionmanager.VersionManager.getVersionedVirtualFileSystemsSet(VersionManager.java:1173)
         at atg.ui.common.model.VersionAgentImpl.containsVersionedVirtualFileSystem(VersionAgentImpl.java:91)
         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:592)
         at atg.security.proxy.UserSessionProxy$SessionSkeletonHandler.invoke(UserSessionProxy.java:251)
         at atg.rmi.context.ContextualSkeletonImpl.invoke(ContextualSkeletonImpl.java:103)
         at sun.reflect.GeneratedMethodAccessor355.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:592)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
         at sun.rmi.transport.Transport$1.run(Transport.java:153)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
         at java.lang.Thread.run(Thread.java:595)
    java.lang.NullPointerException
         at atg.ui.common.menu.Item.setPrivilege(Item.java:105)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at atg.beans.BeanPropertyMapper.setPropertyValue(BeanPropertyMapper.java:162)
         at atg.beans.DynamicBeans.setPropertyValue(DynamicBeans.java:500)
         at atg.xcl.DefaultPropertyBuilder.assignProperty(DefaultPropertyBuilder.java:71)
         at atg.xcl.XclContextBuilder.assignPropertyElement(XclContextBuilder.java:550)
         at atg.xcl.XclContextBuilder.assignProperties(XclContextBuilder.java:519)
         at atg.xcl.XclContextBuilder.buildObjectElement(XclContextBuilder.java:231)
         at atg.xcl.XclContextBuilder.buildObject(XclContextBuilder.java:308)
         at atg.xcl.XclContextBuilder.buildObjectElement(XclContextBuilder.java:260)
         at atg.xcl.XclContextBuilder.buildObject(XclContextBuilder.java:308)
         at atg.xcl.XclContextBuilder.buildObjectElement(XclContextBuilder.java:260)
         at atg.xcl.XclContextBuilder.buildObject(XclContextBuilder.java:308)
         at atg.xcl.XclContextBuilder.buildObjectElement(XclContextBuilder.java:260)
         at atg.xcl.XclContextBuilder.buildObject(XclContextBuilder.java:308)
         at atg.xcl.XclContextBuilder.buildContext(XclContextBuilder.java:186)
         at atg.xcl.SerializableTemplate.buildContext(SerializableTemplate.java:141)
         at atg.ui.common.menu.XuillDevActionSet.mergeHierarchy(XuillDevActionSet.java:93)
         at atg.ui.common.menu.XuillDevActionSet.mergeHierarchy(XuillDevActionSet.java:84)
         at atg.ui.common.MenuFactory.mergeHierarchies(MenuFactory.java:452)
         at atg.ui.common.MenuFactory.mergeActionSets(MenuFactory.java:325)
         at atg.ui.hub.Hub.constructHubMenu(Hub.java:1367)
         at atg.ui.hub.Hub.moduleInit(Hub.java:1283)
         at atg.ui.hub.Hub.initializeClient(Hub.java:669)
         at atg.ui.common.DevApp.connectToServer(DevApp.java:269)
         at atg.ui.hub.Hub$5.run(Hub.java:1937)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    java.lang.NullPointerException
         at atg.ui.common.menu.Item.getKey(Item.java:69)
         at atg.ui.common.menu.ActionItem.toString(ActionItem.java:85)
         at java.lang.String.valueOf(Unknown Source)
         at java.lang.StringBuilder.append(Unknown Source)
         at atg.xcl.DefaultPropertyBuilder.assignProperty(DefaultPropertyBuilder.java:87)
         at atg.xcl.XclContextBuilder.assignPropertyElement(XclContextBuilder.java:550)
         at atg.xcl.XclContextBuilder.assignProperties(XclContextBuilder.java:519)
         at atg.xcl.XclContextBuilder.buildObjectElement(XclContextBuilder.java:231)
         at atg.xcl.XclContextBuilder.buildObject(XclContextBuilder.java:308)
         at atg.xcl.XclContextBuilder.buildObjectElement(XclContextBuilder.java:260)
         at atg.xcl.XclContextBuilder.buildObject(XclContextBuilder.java:308)
         at atg.xcl.XclContextBuilder.buildObjectElement(XclContextBuilder.java:260)
         at atg.xcl.XclContextBuilder.buildObject(XclContextBuilder.java:308)
         at atg.xcl.XclContextBuilder.buildObjectElement(XclContextBuilder.java:260)
         at atg.xcl.XclContextBuilder.buildObject(XclContextBuilder.java:308)
         at atg.xcl.XclContextBuilder.buildContext(XclContextBuilder.java:186)
         at atg.xcl.SerializableTemplate.buildContext(SerializableTemplate.java:141)
         at atg.ui.common.menu.XuillDevActionSet.mergeHierarchy(XuillDevActionSet.java:93)
         at atg.ui.common.menu.XuillDevActionSet.mergeHierarchy(XuillDevActionSet.java:84)
         at atg.ui.common.MenuFactory.mergeHierarchies(MenuFactory.java:452)
         at atg.ui.common.MenuFactory.mergeActionSets(MenuFactory.java:325)
         at atg.ui.hub.Hub.constructHubMenu(Hub.java:1367)
         at atg.ui.hub.Hub.moduleInit(Hub.java:1283)
         at atg.ui.hub.Hub.initializeClient(Hub.java:669)
         at atg.ui.common.DevApp.connectToServer(DevApp.java:269)
         at atg.ui.hub.Hub$5.run(Hub.java:1937)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
         at atg.ui.common.menu.Item.getKey(Item.java:69)
         at atg.ui.common.menu.ActionItem.toString(ActionItem.java:85)
         at java.lang.String.valueOf(Unknown Source)
         at java.lang.StringBuilder.append(Unknown Source)
         at atg.xcl.DefaultPropertyBuilder.assignProperty(DefaultPropertyBuilder.java:87)
         at atg.xcl.XclContextBuilder.assignPropertyElement(XclContextBuilder.java:550)
         at atg.xcl.XclContextBuilder.assignProperties(XclContextBuilder.java:519)
         at atg.xcl.XclContextBuilder.buildObjectElement(XclContextBuilder.java:231)
         at atg.xcl.XclContextBuilder.buildObject(XclContextBuilder.java:308)
         at atg.xcl.XclContextBuilder.buildObjectElement(XclContextBuilder.java:260)
         at atg.xcl.XclContextBuilder.buildObject(XclContextBuilder.java:308)
         at atg.xcl.XclContextBuilder.buildObjectElement(XclContextBuilder.java:260)
         at atg.xcl.XclContextBuilder.buildObject(XclContextBuilder.java:308)
         at atg.xcl.XclContextBuilder.buildObjectElement(XclContextBuilder.java:260)
         at atg.xcl.XclContextBuilder.buildObject(XclContextBuilder.java:308)
         at atg.xcl.XclContextBuilder.buildContext(XclContextBuilder.java:186)
         at atg.xcl.SerializableTemplate.buildContext(SerializableTemplate.java:141)
         at atg.ui.common.menu.XuillDevActionSet.mergeHierarchy(XuillDevActionSet.java:93)
         at atg.ui.common.menu.XuillDevActionSet.mergeHierarchy(XuillDevActionSet.java:84)
         at atg.ui.common.MenuFactory.mergeHierarchies(MenuFactory.java:452)
         at atg.ui.common.MenuFactory.mergeActionSets(MenuFactory.java:325)
         at atg.ui.hub.Hub.constructHubMenu(Hub.java:1367)
         at atg.ui.hub.Hub.moduleInit(Hub.java:1283)
         at atg.ui.hub.Hub.initializeClient(Hub.java:669)
         at atg.ui.common.DevApp.connectToServer(DevApp.java:269)
         at atg.ui.hub.Hub$5.run(Hub.java:1937)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

    Change the configuration of config file system to oot......and check it out.

  • Regex - match a word except when it's preceeded by another word

    Does anyone know how to write a regular expression that will match an occurrence of a word except when it's preceeded by another word? I'm trying to match all occurrences of the word "function" except when it's part of the phrase "end function". Is that possible in a single regular expression?

    Maybe this is just how it works, but I'm not sure why a string
    with one space wouldn't match but a string with two would.At the beginning of the spaces, the lookbehind causes the match to fail, but then the Matcher bumps ahead one position and tries again. At that point, the lookbehind expression doesn't apply anymore, so you get a match. (You should be able to confirm this by counting the spaces in your output.) I tried using the "aggressive plus" to force it to treat all the spaces as one atom, but that didn't work:
      Pattern p = Pattern.compile("(?<!end)(\\s++)function");I don't see how to do this using "pure" lookaround, but if you don't mind matching the preceding word, this will work:
      Pattern p = Pattern.compile("(^|(?!end\\b)\\b\\w+ +)function\\b",
                                  Pattern.MULTILINE);Getting pretty hairy, I know, but it matches the word "function", either as the first thing on the line, or preceded by a word that is not "end" (those first couple of \b's are there to ensure that only the whole word "end" will block the match). Here's how you would use this pattern to replace "function" with "method", except when it's preceded by "end":
    import java.util.regex.*;
    public class Test
      public static void main(String[] args)
        String target = "end function\n"
                      + "function test\n"
                      + "functioning test\n"
                      + "test function\n"
                      + "test function end\n"
                      + "end    function\n"
                      + "ending function\n"
                      + "rend   function\n"
                      + "end   functioning\n";
        Pattern p = Pattern.compile("(^|(?!end\\b)\\b\\w+ +)function\\b",
                                    Pattern.MULTILINE);
        Matcher m = p.matcher(target);
        target = m.replaceAll("$1method");
        System.out.println(target);
    }Here's the output I get:
    end function
    method test
    functioning test
    test method
    test method end
    end    function
    ending method
    rend   method
    end   functioningOf course, if you do know that there will always be exactly one space between "end" and "function", none of this is necessary; you can just use dcostakos's original lookbehind regex--except that I would add word boundaries:
    Pattern p = Pattern.compile("(?<!end\\s)\\bfunction\\b");

  • Nothing happens when launching illustrator cc 2014

    i was having illustrator cc and it launch then crash now i installed adobe illustrator cc2014 from creative cloud app in windows now nothing even happens when launching cc2014 :
    no loading screen no error pop up even no illustrator task in task manager
    so ... whats the solution for  this problem i really need it for my work and shipping
    anyway thanks for anyone who answer this question   

    Mr,
    Just to make sure, are all the faces of the Verdana and Tahoma fonts installed and enabled/activated through the OS (not font mangement) as TTF (not OTF)?
    Failing that, this may be one for this specialized forum (where you may be able find the answer from previous threads),
    http://forums.adobe.com/community/download_install_setup
    or for Customer Care (tick I Still Need Help and hope for an agent available for a chat),
    http://helpx.adobe.com/contact.html?product=illustrator&topic=downloading-installing-and-s etting-up
    or for Adobe Support (phone),
    http://helpx.adobe.com/adobe-connect/adobe-connect-phone-numbers.html

  • Had to restore my iMac from Time Machine. After the restoration all programs are functioning except my Adobe Creative Suite 4 Design Premium. When I start any program in the suite the error message, "Licensing for this product has stopped working." I rest

    I had to restore my iMac from Time Machine. After the restoration all programs are functioning except my Adobe Creative Suite 4 Design Premium. When I start any program in the suite the error message, "Licensing for this product has stopped working." I restarted the computer and tried again to run Photoshop and the same error message appeared. The message was followed by a message that stated that I needed to contact Adobe technical support and mention Error: 150.30. I need Adobe technical support to provide me a solution for my problem so I can continue using my Adobe products installed on my computer.

    Unfortunately when Adobe products are restored from backup, especial CS4 and especially Mac, it breaks licensing.
    There is a python script included in the license recovery kit that should work if you are familiar with Terminal.
    If not, you must reinstall your CS4 suite.  You don't need to delete your preferences, so it should be the same as before.
    Error "Licensing has stopped working" | Mac OS
    Gene

  • I am trying to generate purchase order and i create a BAPI also which is active. But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)".

    i am trying to generate purchase order and i create a BAPI also which is active.
    But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)".

    Hi,
    Yeah i tried my Z_BAPI in R3 and then giving some ERROR.
    This is my CODE-
    FUNCTION ZBAPIPOTV2.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(POHD) TYPE  ZPOHD OPTIONAL
    *"     VALUE(POITEM) TYPE  ZPOITEM OPTIONAL
    *"  TABLES
    *"      RETURN STRUCTURE  BAPIRET1 OPTIONAL
    data: ls_pohd type bapimepoheader,
             ls_pohdx TYPE bapimepoheaderx,
             lt_poit TYPE TABLE OF bapimepoitem,
             lt_poitx TYPE TABLE OF bapimepoitemx,
             ls_poit TYPE bapimepoitem,
             ls_poitx TYPE bapimepoitemx.
       MOVE-CORRESPONDING pohd to ls_pohd.
       MOVE-CORRESPONDING poitem to ls_poit.
       ls_pohdx-comp_code = 'x'.
       ls_pohdx-doc_type = 'x'.
       ls_pohdx-vendor = 'x'.
       ls_pohdx-purch_org = 'x'.
       ls_pohdx-pur_group = 'x'.
       ls_poit-po_item = '00010'.
       APPEND ls_poit to lt_poit.
       ls_poitx-po_item = '00010'.
       ls_poitx-po_itemx = 'x'.
       ls_poitx-material = 'x'.
       ls_poitx-plant = 'x'.
       ls_poitx-quantity = 'x'.
       APPEND ls_poitx to lt_poitx.
    CALL FUNCTION 'BAPI_PO_CREATE1'
       EXPORTING
         POHEADER                     = ls_pohd
        POHEADERX                    =  ls_pohdx
    *   POADDRVENDOR                 =
    *   TESTRUN                      =
    *   MEMORY_UNCOMPLETE            =
    *   MEMORY_COMPLETE              =
    *   POEXPIMPHEADER               =
    *   POEXPIMPHEADERX              =
    *   VERSIONS                     =
    *   NO_MESSAGING                 =
    *   NO_MESSAGE_REQ               =
    *   NO_AUTHORITY                 =
    *   NO_PRICE_FROM_PO             =
    *   PARK_COMPLETE                =
    *   PARK_UNCOMPLETE              =
    * IMPORTING
    *   EXPPURCHASEORDER             =
    *   EXPHEADER                    =
    *   EXPPOEXPIMPHEADER            =
      TABLES
        RETURN                       = return
        POITEM                       = lt_poit
        POITEMX                      = lt_poitx
    *   POADDRDELIVERY               =
    *   POSCHEDULE                   =
    *   POSCHEDULEX                  =
    *   POACCOUNT                    =
    *   POACCOUNTPROFITSEGMENT       =
    *   POACCOUNTX                   =
    *   POCONDHEADER                 =
    *   POCONDHEADERX                =
    *   POCOND                       =
    *   POCONDX                      =
    *   POLIMITS                     =
    *   POCONTRACTLIMITS             =
    *   POSERVICES                   =
    *   POSRVACCESSVALUES            =
    *   POSERVICESTEXT               =
    *   EXTENSIONIN                  =
    *   EXTENSIONOUT                 =
    *   POEXPIMPITEM                 =
    *   POEXPIMPITEMX                =
    *   POTEXTHEADER                 =
    *   POTEXTITEM                   =
    *   ALLVERSIONS                  =
    *   POPARTNER                    =
    *   POCOMPONENTS                 =
    *   POCOMPONENTSX                =
    *   POSHIPPING                   =
    *   POSHIPPINGX                  =
    *   POSHIPPINGEXP                =
    *   SERIALNUMBER                 =
    *   SERIALNUMBERX                =
    *   INVPLANHEADER                =
    *   INVPLANHEADERX               =
    *   INVPLANITEM                  =
    *   INVPLANITEMX                 =
    ENDFUNCTION.
    i am trying to generate purchase order and i create a BAPI also which is active. But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)". 

  • Installed iTunes on Win 7. Everything is there except when I hook up my phone the mene has all the active buttons, but there's no lettering on the screen to see what they are

    Installed iTunes on Win 7. Everything is there except when I hook up my phone the mene has all the active buttons, but there's no lettering on the screen to see what they are

    (Apologies for butting in wiclee.)
    The effect is usually caused by trouble with the Segoe UI fonts on your system. Unfortunately it's a bit trickier to deal with on Windows 7 systems than Vista or XP. (The "Vortical" instructions which can fix it for almost all folks on Vista and XP aren't applicable to Windows 7.)
    Try having a look through the following (unfortunately very long) topic. It contains a lot of information on the Windows 7 variants of this, and possible methods for fixing the various Segoe UI-related issues that might be in play:
    iTunes 10.1 Missing Text

  • Using latest iTunes, my AppleTV sees as many as 30 active iTunes computers when Homesharing turned on.  What is happening?

    Using latest iTunes, my AppleTV sees as many as 30 active iTunes computers when Homesharing turned on.  Computer and AppleTV are ethernet connected to router (an Airport Base Station) What is happening?

    Note--the equipment indicated above is wrong.  I am running the latest version of iTunes and Yosemite on a newer Mini and didn't have the problem with Mavericks and the previous version of iTunes.

  • HT201401 My new Iphone 4 camera is not functioning.  When I click the phone icon. The photo shutter appears, but nothing else happens.  I've shut the phone off and turned on serveral times.  The same thing occures.,

    My new iphone 4S camera is not functioning.  When I click the phone icon, the shutter appears.  Then the screen only shows the shutter.  When I go back to the home screen and click the phone icon again.  The photo screen only shows a black screen.  The button to take photos is locked the entire time.  I've turned the phone on and off several times.

    Basic troubleshooting steps outlined in the User Guide are restart, reset, restore from backup, restore as new.  Have these ALL been tried?

  • Java exception "Too many rows" when launching

    Hi,
    I'm trying to run SQLDeveloper on AIX 5.2
    The Java software is the JAVA 1.5 :
    $ ./java -version
    java version "1.5.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build pap64devifx-20070725 (SR5a))
    IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc64-64 j9vmap6423-20070426 (JIT enabled)
    J9VM - 20070420_12448_BHdSMr
    JIT - 20070419_1806_r8
    GC - 200704_19)
    JCL - 20070725
    When launching sqldeveloper, I get more than 3000 error lines...
    Here are the beginning :
    java.io.FileNotFoundException: <INSTALLATION-PATH>/jdev/extensions/oracle.jdeveloper.db.sqlplus.jar (Too many open files)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
    at oracle.ide.boot.JarDirs.getDirsImpl(JarDirs.java:75)
    at oracle.ide.boot.JarDirs.<init>(JarDirs.java:63)
    at oracle.ide.boot.SharedJarByPackage.<init>(SharedJarByPackage.java:19)
    at oracle.ide.boot.IdeSharedCodeSourceFactory.createCodeSource(IdeSharedCodeSourceFactory.java:30)
    at oracle.classloader.SharedCodeSourceFactory.create(SharedCodeSourceFactory.java:43)
    at oracle.classloader.SharedCodeSourceSet.subscribe(SharedCodeSourceSet.java:315)
    at oracle.classloader.SharedCodeSourceSet.subscribe(SharedCodeSourceSet.java:174)
    at oracle.classloader.SharedCodeSourceSet.subscribe(SharedCodeSourceSet.java:148)
    at oracle.classloader.SharedCodeSourceSet.subscribe(SharedCodeSourceSet.java:215)
    at oracle.classloader.PolicyClassLoader.addCodeSource(PolicyClassLoader.java:874)
    at oracle.ideimpl.extension.ExtensionManagerImpl.addToPolicyClassLoader(ExtensionManagerImpl.java:1464)
    at oracle.ideimpl.extension.ExtensionManagerImpl.addURLToClassPath(ExtensionManagerImpl.java:1401)
    at oracle.ideimpl.extension.ExtensionManagerImpl.mav$addURLToClassPath(ExtensionManagerImpl.java:116)
    at oracle.ideimpl.extension.ExtensionManagerImpl$4.addToClasspath(ExtensionManagerImpl.java:690)
    at javax.ide.extension.spi.BaseExtensionVisitor.addExtensionSourceToClasspath(BaseExtensionVisitor.java:278)
    If it could help you, the splash screen is display a short time and the progression bar is beginning but for a short time only, after what the process is dying.
    Thanks,
    Christian

    java.io.FileNotFoundException: <INSTALLATION-PATH>/jdev/extensions/oracle.jdeveloper.db.sqlplus.jar (Too many open files)
    You have exceeded your max open files limit as determined by your operating system. You need to talk to your system administrators.

Maybe you are looking for

  • TS3999 How do I get rid of recurring invitation on iphone and iPad that doesn't appear on iMac.  The calendar is in iCloud .

    I have a recurring invitation on my iphone and ipad devices that I cannot get rid of.  I made it disappear on my imac, I was able to delete it from the google calendar that was syncing also.  I dumped the google calendar. Now it appears in the icloud

  • Material  stock to be  posted to restricted stock( urgent please)

    Hi genius,                  This is below my scenario, Please let me the solution . 1.  Material to be received thro’ GR ( MIGO ) and which has to be posted to unrestricted stock. 2.  Material will be reserved by the users as on when required thro’ M

  • Table for Reserved quantity in MMBE.

    Hi All, In transaction code MMBE, there is field 'Reseved stock' Please let me know SAP table& field for it.. Best Regards, Shailendra

  • Exporting PDF proof Question/Problem

    Hi. I have a strange problem. Has anyone ever heard of a issue with the exported PDF's not showing up on a Blackberry? My client is claiming that although the PDF proofs look great on the computer, when he's away from his desk, he's unable to view th

  • Airdisk Inconsistencies

    I have an iMac G5 and an iBook G4. I also have two external hard drives (one is a Maxtor and one is an Iomega, both are formatted in HFS+) plugged into a USB hub that is connected to the new Airport Extreme Base Station. The Iomega drive mounts autom