Custom XPath Extensions vs Custom Java
So, I was taking a look at some Custom Java abilities inside a BPEL process. It seemed to me that this was not too re-usable. So, I thought, maybe we could wrap this inside a custom XPath expression. The result of which you could just pass to a variable.
However, there seems to be some limitations or lack of availability of some inherently available features in the Custom Java. IE. Lookup, get, set etc. Is there an easy way to get at the builtins for the custom java sections inside a custom xpath expression? Within an XPath extension, can I just get the context from the InitialContext() with no env specified?
Am I taking a wrong approach here? Should I just stick with the Custom Java tasks?
Thanks,
BradW
Thanks for the reply, I tried with
public static String[] myUppercaseStringArray(String[] arg) in java file
and Ljava.lang.String; myUppercaseStringArray([Ljava.lang.String;) in my xml config file, It doesnt work.
Please suggest.
Similar Messages
-
Use of X Queries in custom Xpath functions ?
Hi all,
I have used java classes in custom x path functions, similarly can we use x query in custom Xpath functions instead of java ? I mean can we use XQuery in domain level rather than project level ?
Thank YouYes. In 10.1.2 BPEL install, $ORACLE_HOME\integration\orabpel\samples\demos\XSLMapper\ExtensionFunctions describes how to write extension functions for the XSL processor.
-
Is it possible to throw a BPELFault from a custom xpath function?
I'm probably revealing my lack of java chops here, but I'd like to know if there's a way to throw a BPELFault from the "call" method within a custom xpath function.
The interface for IXPathFunction seems to dictate that "call" throws only an XPathFunctionException and the bpel server doesn't handle this exception properly. It records the exception in the logs but then the process just dies.
Right now I have this (simplified code):
public Object call(IXPathContext context,
List args) throws XPathFunctionException
if (args.size() == 1)
// do some stuff and return a value
throw new XPathFunctionException( "hexToInt() requires one string argument." );
What I want to have is something like this:
public Object call(IXPathContext context,
List args) throws BPELFault
if (args.size() == 1)
// do some stuff and return a value
BPELFault fault = new BPELFault(
new javax.xml.namespace.QName("http://schemas.xmlsoap.org/ws/2003/03/business-process/",
"selectionFailure"));
fault.setPart("code", "intToHex");
fault.setPart("summary", "hexToInt() requires one string argument.");
throw fault;
If I do this, the compiler rejects it saying that "call" must throw XPathFunctionException. Is there a way to extend the IXPathFunction interface to allow it to throw a useful fault?
Thanks!
SeanYeah, I'm using that patch (otherwise the process just crashes and you don't have a chance to catch the fault, even in a catchAll). Within the catchAll you can get the details from the error with something like this:
<copy>
<from expression="concat(ora:getFaultName(),'')"/>
<to variable="processFault" part="payload" query="/ns4:summary"/>
</copy>
<copy>
<from expression="concat(ora:getFaultAsString(),'')"/>
<to variable="processFault" part="payload" query="/ns4:detail"/>
</copy> -
Error using custom xpath function with XSL transformations in BPM
Hi,
We have created a custom xpath function for use with SOA Suite and BPM. This has been built as per specified within the http://docs.oracle.com/cd/E29597_01/dev.1111/e10224/bp_appx_functs.htm#SOASE11100. We have also reviewed the Oracle Sample for mapper-107-ExtensionFunctions (sample demonstrates the use of user-defined extension functions). This has been registered with jDeveloper and SOA within the oracle.soa.ext_11.1.1 (run ant to include in oracle.soa.ext.jar)
We ideally want to use this is BPM within an xsl. However when consuming this function is either BPEL or BPM using an xsl, the xsl fails with an error such as:
XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is ora:doXSLTransformForDoc("xsl/Transformation_1.xsl", $inputVariable.payload). The XPath expression failed to execute; the reason was: javax.xml.transform.TransformerException: oramds:/deployed-composites/default/gwCustomXpathUtil_rev1.0/xsl/Transformation_1.xsl<Line 9, Column 113>: XML-22043: (Error) Extension function error: Method not found 'getWeekDayDate'. Check the detailed root cause described in the exception message text and verify that the XPath query is correct.
In an Assign it operates fine and returns the expected result. We have included a combination of both of the Config files (ext-mapper-xpath-functions-config.xml and ext-soa-xpath-functions-config.xml) in the META-INF folder, however neither allow the use of this function in the XSL.
I believe there may be an issue getting the custom xpath functions within XSL files. Hence I have also raised an SR. Has anyone experiences of this?
Our SOA / BPM suite environment is using 11.1.1.6.4 and has the following patches applied:
13801175
14406487 (11.1.1.6.4 SOA Bundle)
13896993
13088538
Regards Dave
Edited by: DavidGaskell on Mar 14, 2013 10:08 PMHi All,
I am also facing the same issue...Experts can you please help us.
hi DavidGaskell, did you find any resolution, if so can you share it with me.....
Thanks,
RR -
OSB: class not found in custom xpath function
Hi,
This week I was struggling with custom xpath functions in OSB. First I created a jar file that contained the class and the complete functionality including logging. It contains a class that does a DVM Lookup from the database. As a standalone function, called from JUnit test cases it functions perfectly. I use Apache commons logging with the libraries from the Weblogic installation.
But when I put this OSB Util Services jar in the osb-home/config/xpath-function, it turns out that somehow the Weblogic Console gets a conflict with the commons-logging libraries. So I deployed it just as an application library in weblogic console, to solve this breakage.
Then I created a simple separate class that only calls the method in the deployed library. I packaged that as a custom-osb-functions.jar for the osb-home/config/xpath-function. I managed to get if visible in OEPE. But when I test the xquery transformation resource on the server, I get:
Error executing the XQuery transformation: {http://www.bea.com/wli/common/xquery}XQueryException: Error invoking custom xquery java function: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
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.bea.wli.sb.stages.functions.XQueryExternalFunction.execute(XQueryExternalFunction.java:111)
at com.bea.wli.sb.stages.functions.XQueryExternalFunction.init(XQueryExternalFunction.java:61)
at weblogic.xml.query.iterators.FirstOrderIterator.open(FirstOrderIterator.java:169)
at weblogic.xml.query.runtime.typing.SeqTypeMatching.open(SeqTypeMatching.java:129)
at weblogic.xml.query.iterators.FirstOrderIterator.open(FirstOrderIterator.java:167)
at weblogic.xml.query.runtime.core.ExecutionWrapper.open(ExecutionWrapper.java:58)
at com.bea.wli.common.xquery.iterators.XQueryVariableMapper.getObjects(XQueryVariableMapper.java:459)
at com.bea.wli.common.xquery.iterators.XQueryVariableMapper.getObjects(XQueryVariableMapper.java:447)
at com.bea.wli.sb.test.transform.XQueryProcessor.invoke(XQueryProcessor.java:165)
at com.bea.wli.sb.test.TestServiceImpl.invoke(TestServiceImpl.java:172)
at com.bea.wli.sb.test.client.ejb.TestServiceEJBBean.invoke(TestServiceEJBBean.java:167)
at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.invoke(Unknown Source)
at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:252)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: java.lang.NoClassDefFoundError: nl/darwin-it/osb/dvm/DomainValueMap
at nl.darwin-it.osb.xpath.DomainValueMapLookup.lookupDVM(DomainValueMapLookup.java:35)
... 28 more
Caused by: java.lang.ClassNotFoundException: nl.darwin-it.osb.dvm.DomainValueMap
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
... 29 more
Can any one explain to me how I can get the OSB Util Services jar library in the same classpath as the custom-xpath-functions jar, without having it put along the custom-xpath-functions jar in the osb-home/config/xpath-functions folder (since that somehow breaks the weblogic console)?
How does the OSB classpath/classloading mechanisms work in this?
Thanks in advance,
Regards,
MartienI am running the plugin registration utility but it generates the error mentioned below. I have verified the structure of my zip file and the structure of zip file is:
-> SelfRegisterUserCustomValidator.zip
->Plugin.xml
->/lib/SelfRegisterUserCustomValidator.jar
->/resources/
Following our contents of plugin.xml:
<?xml version="1.0" encoding="UTF-8"?>
<oimplugins>
<plugins pluginpoint="oracle.iam.request.plugins.RequestDataValidator">
<plugin pluginclass= "com.infotech.tra.CustomValidator.SelfRegisterUserCustomValidator" version="1.0.0" name="SelfRegisterUserCustomValidator">
</plugin>
</plugins>
</oimplugins>
Following is the error being generated:
Enter name (complete file name with path) of the plugin file:
/u01/oracle/Middleware/Oracle_IDM1/server/plugin_utility/SelfRegisterUserCustomValidator.zip
[java] Java Result: 1
[echo] Exception in thread "main" java.lang.NoClassDefFoundError: oracle/iam/platformservice/utils/PluginUtility
[echo] Caused by: java.lang.ClassNotFoundException: oracle.iam.platformservice.utils.PluginUtility
[echo] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[echo] at java.security.AccessController.doPrivileged(Native Method)
[echo] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[echo] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[echo] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[echo] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[echo] Could not find the main class: oracle.iam.platformservice.utils.PluginUtility. Program will exit. -
Custom Xpath registration failed
Hi,
BPEL version : 10.1.2.0.2
I am trying to register custom xpath function but I am getting an error in domain.log in server start up time.
<2007-05-18 09:52:33,703> <WARN> <default.collaxa.cube.xml> XPathService
ORABPEL-09501
Failed to register xpath function.
Error while registering xpath function "GetParamValueByName", the reason is my.test.GetParamValueByName.
Please verify the xpath function "GetParamValueByName" is defined in the domain property file.
at com.collaxa.cube.xml.xpath.XPathService.registerFunctions(XPathService.java:164)
at com.collaxa.cube.xml.xpath.XPathService.loadXPathConfigFile(XPathService.java:104)
at com.collaxa.cube.xml.xpath.XPathService.load(XPathService.java:58)
at com.collaxa.cube.engine.CubeEngine.__load(CubeEngine.java:611)
at com.collaxa.cube.engine.CubeEngine.load(CubeEngine.java:474)
at com.collaxa.cube.admin.ServerManager.loadDomain(ServerManager.java:1095)
Here is my configuration for my 'GetParamValueByName' in xpath-functions.xml.
<function id="GetParamValueByName">
<classname>my.test.GetParamValueByName</classname>
<comment>
<![CDATA[This function extracts param value from param list with parameter name.
<p/>
The signature of this function is <i>bpws:GetParamValueByName ('variableName')</i>. The arguments are:
<ol type="1">
<li>variableName - the source variable for the data
</ol>
<p/>
If the given property selects a node set of a size other than one during execution, then the standard fault bpws:selectionFailure is thrown.]]>
</comment>
<property id="namespace-uri">
<value>http://xmlns.oracle.com/test</value>
<comment>Namespace URI for this function</comment>
</property>
<property id="namespace-prefix">
<value>test</value>
<comment>Namespace prefix for this function</comment>
</property>
</function>
The class my.test.GetParamValueByName is implemented using com.oracle.bpel.xml.xpath.IXPathFunction. The class file is located at
$ORABPEL_HOME\integration\orabpel\system\classes.
I am not sure what is mssing here. If someone could shed me a light on this, I would appreciate it.
ImjuImju,
You mentioned that your class file is located in $ORABPEL_HOME\integration\orabpel\system\classes, but considering your package name this should be $ORABPEL_HOME\integration\orabpel\system\classes\my\test. The alternative, as I just saw you already found out, is putting it in a jar file and place that in the applib directory (although this does not seem to work any more in 10.1.3). The fact that you don't get the error any more during startup probably means that your function is registered successfully now.
My guess is that the problem you are facing now is in the .bpel file itself, where you use your custom function. To use your custom function in a process, you'll have to first define the "test" prefix in the .bpel file by adding
xmlns:test="http://xmlns.oracle.com/test"
to the <process> tag at the beginning of the file. Then, everywhere where you use your function, you'll have to type: test:GetParamValueByName(...)
Hope this helps.
Peter -
Query about tag extensions and custom tags
Hello,
Can u please clarify me where are these tag extensions and custom tags are actually used. (in which conditions)
What are the advantages in using them...
thanks in advance..
Jaagy.You have to remember that .tag are, in a way, jsp pages, so you can use other custom tags, etc.
We use them when we need template that are mostly html, with a little bit of logic in them that we want to reuse.
For example, we made one for or header and footer. In header.tag, we set all of our http info, from doctype to body, including default css, title, etc if they are not supplied as parameter, and in our footer we put the /body and /html tags. Now, our typical pages look like
<%@ taglib tagdir="/WEB-INF/tags" prefix="custom" %>
<custom:header title="Page title" />
... page content
<custom:footer />Now, if we want to change some attribute for the whole page, or to put a signature in each page, we just have to change the corresponding .tag file and the whole site is update.
Also, .tag file can be used to display selectively page fragment.
Take a look at Sun's tutorial for more info:
http://java.sun.com/webservices/docs/1.3/tutorial/doc/JSPTags5.html#wp89664
Hope this helps!
Patrick -
Custom Xpath testing : avoid server restart (domain reload) ?
Hi,
We are planning to have a centralized BPEL server for several developers. But apparently, when a developer is working on a custom XPath / XQuery functions, we must retart the server in order to test them ... so the other developers cannot work anymore !
Is there any way to avoid the server restart, and only reload a single domain ?
Thank you.Absolutely, this is what we will do.
However, we still have an organization problem due to Xquery/Xpath functions, because of the following limitations:
- Xpath functions are per domain as Xquery functions are per server. Can't Xquery functions be per domain ?
- There is no versioning of Xpath/Xquery functions. This is quite annoying especially since Oracle BPEL PM can handle versioning of BPEL Processes.
- Same kind of problem with Jdeveloper : when starting Jdev it would be nice to be able to choose what repository of Xquery functions to use.
- Xpath/Xquery functions need to be deployed manually (XML cut/paste + copy of *.class/*.JAR), there is no standard way to identify a Xpath/Xquery function in a Jdeveloper project so that we can deploy them easily.
We have imagined work-arounds, but they are not fully satisfying:
- Handle Xpath/Xquery versioning in the Java code, by having one parameter as the version number => still a problem for code maintenance, and problem because we need more or less to hard code the version number in our BPEL processes.
- Run multiple instances of BPEL PM on the same application server, so that we can isolate Xquery/Xpath function per version => high server load, expensive.
- Write a Jdeveloper launcher to choose the Xquery functions to use.
- Write a custom deployment tool for Xquery/Xpath => could be quite painful. -
Opening BATCH file through custom file extension
I have a situation where I've created my own filetype (.gme) to open my main java file. Each filetype has a corresponding ID which tells the application what instance of it to load. I want the file type to open a batch file which will in turn open the application. Is there code that I can give a custom file extension to open a batch file?
Check the permissions of that batch file.
It should be executable for the PI user (<sid>adm in Unix)
Regards
Stefan -
How to Test SSRS Custom Data Extension in TSql
Hi There,
I have created a custom data extenstion for SSRS 2008 Reporting Service.
I can test the CDE in the Report DataSet -> DataSet Properties -> Query Designer -> Run Query.
In the Command Text I pass parameters to the invoked VB code which is of type "BaanstedeCds" then name of my custom data extension.
I can even Attach the Visual Studio VB Code Project that is invoked by the Query Designer an debug the code.
The custom data extension works perfectly in SSRS.
However I have not found a way yet to run BaanstedeCds (with a parametertext) from within SSMS 2008 by using an T-SQL statement!!! Is there a way to use the SSRS Custom Data Extension in Sql Server Management Studio using the dataset type I used in
SSRS 2008?
Because I am leaving the path of using Custom Assemblies in SSMS, for deploying an testing that way is undoable for me.
I is to complicated and in order to properly debug these routines the entire solution of multiple projects is deployed each time even the slightest change has been made to the VB code. Also if I want to deploy from Test to Production it is very hard. I have
to detach the databases etc, ect. Note my previous question about this subject that remained unanswered!!!
Using the Custom Data Extension the problems are a lot less. However I how do I use a routine in the CDS in T-SQL, like I could invoke a routine in the Custom Code Assemblies?
I "hate" CLR routines. I have extreme trouble managing these CLR's as I explained in my post and other posts in the past.
You just cannot build a maagable system that way.
I had to convert all the CLR's (I had a lot of them) to Custom Data Extension Functions, as they do not have all the drawbacks of CLR's.
And using the CDE with all the converted CLR's in it works much better for me in the Report Manager.
However in order to test de CDE I must invoke the CDE in a Windows Form something like this:
Private Sub cmdGetData_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdGetData.Click
Dim CommandText As String = ""
' Get Parameters for CDE GetData
CommandText = txtAdoCds.Text
Dim Rdr As New BstCds.BaanstedeCdsReader(CommandText)
' Invoke GetData Function of CDE Rdr
' Input: CommandText: txtAdoCds.Text = TextBox on TestForm
' Output: DataTable: RdrDataTable
Call Rdr.GetData(CommandText)
If Not Rdr.RdrRetVal Then
GoTo End_Method
End If
' Show DataTable: RdrDataTable (in Excel)
If Not BstOff.ToonTabel(DataTabel:=Rdr.RdrDataTable) Then
Exit Sub
End If
End_Method:
End Sub
'=========================================================================
' File: BaanstedeCdsReader.vb
' Summary: Provides a means of reading one or more forward-only streams
' of result sets obtained by executing a command at a data source,
' and is implemented by Baanstede Data Processing Extensions
' that access BaanstedeIw3-routines.
'=========================================================================
Public Class BaanstedeCdsReader
Implements IDataReader
#Region "Public Variables"
Public RdrRetVal As Boolean = False
Public RdrSqlSel As String = ""
Public RdrDataTable As DataTable = New DataTable
#End Region
#Region "Constructors"
#End Region
#Region "IDataReader Members"
#End Region
' GetData '
#Region "GetData Method"
'==================================================================================================
'We are executing the command using the connection string that connects to the Active Directory.
'Hard coding of the connection string is because it is the same for all the ADs.
'Once we read the data using a DataReader, we place the same in a DataTable so that can be used for
'Other processings.
' Public Sub GetData(ByVal _CommandText As String)
' Output in Public RdrDataTable As DataTable
'==================================================================================================
Public Sub GetData(ByVal _CommandText As String)
' Ophalen Data in DataTabel '
RdrRetVal = False
' Fills RdrDataTable Using _COmmandText
RdrRetVal = True
End Sub
But can I invoke Report Manager Source Type BaanstdeCds's .BaanstedeCdsReader.GetData(CommandText) in TSQL any other way then using CLR ?
Regards Jos
It works, but it does not work (The program runs, but does not produce the desired result)Hi Josje,
Thank you for your question.
I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
Thank you for your understanding and support.
Thanks,
Wendy Fu
Wendy Fu
TechNet Community Support -
Error while deploying ABCS with custom XPATH using AID
Hi All,
I use a custom xpath function as given below in the Provider ABCS BPEL.
<copy>
<from expression="sql:queryToWhereClause(ora:getNodes('xxx','xxxx','xxxxxxxx'))"/>
<to variable="variableName" part="predicate"/>
</copy>
When I deploy this ABCS from jdeveloper, everything works fine.
When I try to deploy the ABCS composite using the AID, it throws this error,
[scac] error: in QueryPersonEbizProvABCSImplProcess.bpel(733): could not resolve xpath function "queryToWhereClause", because function "sql:queryToWhereClause" not registered.
I have dropped the classe into $SOA_HOME/soa/modules/oracle.soa.ext_11.1.1/classes, and it still looks like the AID is not able to locate the class. Am I dropping the classes into the right location, or is it something else that is missing? Any pointers are appreciated.
Thanks
Anish.Anish,
this comes from the fact that the SOA compilation tools don't include $SOA_HOME/soa/modules/oracle.soa.ext_11.1.1 in the class path, e.g. in $SOA_HOME/bin/ant-sca-compile.xml which is in turn used by AID for compiling composites.
You can work around this by adding the custom classes/libraries to the classpath in $SOA_HOME/bin/ant-sca-compile.xml. Insert the following entry in section '<path id="scac.tasks.class.path">':
<pathelement path="${oracle.home}/soa/modules/oracle.soa.ext_11.1.1/oracle.soa.ext.jar"/>
With that ant-sca-compile.xml and therefore also AID will be aware of your custom xpath function and the compilation error should disappear.
Gerhard -
Bpel Server Does Not Catch Exceptions Thrown By Custom Xpath Functions
Hi.
I am using some custom xpath functions in a bpel process and whenever they fail I get an XPathExecutionError with summary:
XPath expression failed to execute.
Error while processing xpath expression, the expression is "<my function>", the reason is FOTY0001: type error.
Please verify the xpath query.
I am forcing my function to fail by giving a wrong input, which should result in an XPathFunctionException("Input does not respect format").
There is a note on Metalink with ID 458434.1 on this subject which says that patch 5926809 should fix my problem.
Patch 5926809 fixes Bug 5926809 - ORA:PARSEESCAPEDXML XPATH EXPRESSION FAILED TO EXECUTE FOTY0001: TYPE ERROR.
I am using it, but it does not work :(
I am using version 10.1.3.3.0 of App Server with various patch sets, including fix for bug 5926809.
Has anyone suggestions on how to overcome this problem?
ThanksHello,
I am trying to add a custom xpath function to the BPEL server, and I see that you made it work. I am using Oracle SOA Suite 10.1.3.3 and jDeveloper 10.1.3.4. I am using this function inside an xsl mapping file, although I am able to compile and deploy the Bpel Process to the server, it stops mapping where I placed the function and I have not seen any meaningful message from the domain/log/ files.
Can you tell me how you did it?
I think you will tell me faster than Oracle support, I already placed an SR but they just give me superficial advice.
I appretiate your time and advice,
Guillermo -
DW CS3 - custom file extension no longer working correctly
Hi - for a particular job, I needed to use a custom file
extension .htmx and it has been working fine.
However, I went into DW CS3 today, and the file opens in the
DW editor, but the code coloring and code hints etc seem to be
broken.
I've checked the Extensions.txt and MMDocumentTypes.xml
files, and all seems present and correct - see
this screencast to
see the problem.
Any ideas why it's not working? (I'm on Vista Business, but
it has definitely been working and now isn't....)
MikeWell, I managed to fix it by overwriting my
MMDocumentTypes.xml file with a clean version from another machine.
Weird. -
Error in the execution of custom billing extension in PA module
Hi All ,
We had a requiremnet for creating the custom billing extension similar to the standard Revenue calculation billing extension . The change required in the formula for calculating the revenue was the Actual total burdened cost will be the Actual total burdened hours and Budgeted baselined burdened cost will be the Budgeted baselined burdened hours .Rest of the entity in the standard revenue calculation program will be as per the standard revenue billing extension.
The standard formula is as follows :
(1) revenue amount = Lesser of (Remaining Funding Available if hard limit used) and ((AC / BC (BR – ER) – AR)
I created a package which will get the value of AC and BC as per the client requirement . Defined the Extension using PROJECT BILLING SUPERUSER >> SETUP>> Billing >> Extension screen .
This extension was then assigned to a project type . WE created a project using the same project type . When we fire PRC: Generate Draft Revenue for single project and pass the project number it first calls the Standard billing extension and then the custom one becoz of this there is error in calculating the revenue through it .
We are not sure where we are going wrong . The standard extension has been end dated too ..still everytime it executes the standard and then the custom one .
Has one faced such issue ? Request for some pointers to solve the issue.
Thanks and Regards
MNHi,
My issue got solved. It was beacause there was a method in a Bean Interface which did not have an implementation in the Bean EJB.
appc just gave a NPE.
The issue came out when i did a weblogic.ejbc.
Thanks. -
I'm trying to use a custom file extension for the Microsoft Access Text Driver (*.txt, *.csv) driver.
I have updated the FileExtns registry to have my new extension.
When I issue the following it does not work.
select [NoName]
from openrowset('MSDASQL'
,'Driver={Microsoft Access Text Driver (*.txt, *.csv)};
DefaultDir=c:\filedir'
,'select * from "file.lst"')
If I make the file a .csv it works fine. However, if it has an extension of not CSV or TXT (in this case .lst, which is in the registry setting) extension it throws the following error and cannot seem to find a solution to it.
OLE DB provider "MSDASQL" for linked server "(null)" returned message "[Microsoft][ODBC Text Driver] Cannot update. Database or object is read-only.". Msg 7350, Level 16, State 2, Line 1 Cannot get the column information from
OLE DB provider "MSDASQL" for linked server "(null)".
In addition, (although I can probably find this elsewhere), I need to have the first line 'BLANK' so that it does not miss data (there is no header row). Is there a way to use OPENROWSET without BULK to basically include all rows as data?
Any help is appreciated.Hi,
According to your description, I did a test with your script, and got the same message as your post. Usually, by default, the Microsoft Access Text Driver (*.txt, *.csv) supports the four extensions file, such as *.asc, *.csv, *.tab, *.txt. To solve this issue,
I recommend you try to save the LST file in the above format, then use OPENROESET to get data from the supported extensions file in SQL Server.
In addition, the
OPENROWSET function is mainly used to retrieve remote data from an OLEDB data source, when you use OPENROWSET without BULK, provider_name is a necessary parameter in the script. However, the OPENROWSET (BULK...) is mainly called from a SELECT…FROM clause
within an INSERT statement, when importing bulk data from a data file into SQL Server table. Thus if you need to import bulk data, you should use the basic syntax: INSERT ... SELECT * FROM OPENROWSET(BULK...), also there are some alternatives, such as
BULK INSERT
and
BCP .
Thanks
Lydia Zhang
Maybe you are looking for
-
Have been using Bridge for ages but ran across a problem this morning I had not seen before. Creating some web galleries for a couple of customers I used Bridge to Create a Flash Gallery and then posted on my web site. All worked just fine and with o
-
Hi, I would like to work with the XML abilities of Oracle. I have installed Oracle Personal Edition 8i on a Windows 98. It seems that XDK is available only for Windows NT. Is this correct? Is it possible to use the XDK on Windows 98? If so, I have an
-
Bootcamp running XP & effects on PC gaming
Has anyone tried to run Bootcamp on an Intel Core Duo system and played some PC games on the Mac? I've invested several hundreds of dollars in PC games (because no one develops games for Mac) and want to know if the gaming performace from an Intel Co
-
I was very disapointed to learn Siri is not available in Canada
Does anyone know when it will be released in Canada? I just picked up a 4Gs and heard its not ready in Canada... I have heard some posts but have not got a clear answer anyone have one?
-
VLD-10005: The following path in this process flow is a loop and may cause
Hi, [The following path in this process flow is a loop and may cause the process to loop infinitely..] The messages comes under following scenario S -> Map1 -> Error -> OR1 Map1 -> Map2 -> Error -> OR1 OR1 -> End_ERROR Map2 -> End_SUCCESS Any reasons