HTTP exception using SampleXML provider
I tried using http:// to download xml feed from a content provider and it returns FileNotFoundException as follows.
While trying to resolving the URL in netscape(ver 4.78) i get a SaveAs dialog to save the xml feed. The portal works fine when i use file:// to access the xml feed from the disk. As suggested in the forum proxy settings in our network looks ok.
I like to have dynamic download capablity for xml feed.
Any suggestions please.
03/27/2003 11:29:55:455 AM EST: Thread[Thread-804,5,main]
ERROR: Exception in HTMLFetcher:run()
java.io.FileNotFoundException:
http://api.yellowbrix.com/api/?service=headlines&id=apidemo&method=xml&passw
ord=m7t2a690&category=AP+Top+Headlines
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:602)
at
sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:881)
at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:449)
at java.net.URLConnection.getContentLength(URLConnection.java:361)
at
com.sun.portal.providers.urlscraper.HTMLFetcher.run(HTMLFetcher.java:199)
03/27/2003 11:29:55:457 AM EST: Thread[Thread-803,5,main]
ERROR: URLScraperProvider.getContent(): fetcher did not finish! 03/27/2003 11:29:55:460 AM EST: Thread[Thread-803,5,main]
ERROR: XMLProvider.doTransform():Error in transforming xml.
; Line#: 1; Column#: -1
javax.xml.transform.TransformerException: Document root element is missing.
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:660)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1118)
at
com.sun.portal.providers.xml.XMLProvider.doTransform(XMLProvider.java:216)
at
com.sun.portal.providers.xml.XMLProvider.getContent(XMLProvider.java:280)
at
com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCaller.java:145)
03/27/2003 11:29:55:461 AM EST: Thread[Thread-803,5,main]
ERROR: XMLProvider.getContent():Error in XML transformation.
Thanks for your interest. I did download 'wget' and i got the xml feed saved in a file '@service=headlines' (no extension)
I assume XMLProvider does use the data packets on the fly from the http:// site; instead referring to some persistent xml file. If XMLProvider does refer to persistent data, i'm not sure how will it recognise this file ?
Thanks.
Similar Messages
-
Unable to connect to https pages using mobile provider
Hello all,
I have a brand new iphone 3GS running 3.1.2 and fully updated.
MY PROBLEM IS:
I cannot connect to any sites that use https when using my mobile service provider, which is MTN in Ghana. I can however access these sites when connecting by WIFI.
Sites I cannot access which use https when connecting via my mobile service provider include:
- gmail.com (which after redirecting, refuses to open the https login page)
- my bank asbbank.co.nz (which redirects to an https page),
- facebook (which after entering login info tries to redirect to an https page) - and - ironically - https://support.apple.com.
The error in each case is a timeout "Cannot open page, safari could not open the page because the server stopped responding". Further, I ALSO cannot access my gmail mail account although everything is configured correctly. This gives me an imap error.
HOWEVER:
-I can access all http websites using my mobile service provider including yahoo mail, just not https
-When connecting via WIFI I CAN access all services and websites, including https and I CAN connect to my gmail mail account (without the imap warning proving I have configured it with the proper settings/password)
I HAVE TRIED (just about everything):
-clearing cache, cookies, history
-restarting the iphone, force restarting
-I have reset all network connections
-I have wiped my whole iphone to reset all settings and delete all content
- I have visited my mobile service provider (MTN Ghana) who assure me my iphone is configured correctly, that their servers do not block iphones. A customer care person was able to connect to gmail in front of me with their blackberry phone via the same MTN network. However when this persons sim card was inserted into my iphone (which is legally unlocked from New Zealand) my iphone could not connect to gmail through safari...
Please, any suggestions are welcome, I have searched long and hard for an answer and am still unsure where the exact problem lies.
Much thanks, RogerSolved. The carrier twice gave me the apn details as wap, and eventually tracked down that it should be 'internet' . Interestingly 2 other carriers in Ghana Tigo and Vodafone also didnt know this and couldnt configure the 3GS...
-
Caching@URLservices How to clear resp. exception after the provider-refresh?
Hello,
we have created a servlet-application "CondorSTAR", running in OC4J via mod_proxy.
Using URLservices at the portal, we get an 405 "Method not allowd". Oops, there was a misconfiguration in the servlet-application, so that was correct.
After repairing the application, we can now connect "native", i.e. via the URL for the OC4J! But that works not in Portal, the "error-page seems to be cached". We get the same error-message 405 Method not allowed...
Then we have restarted httpd (graceful, later restart), we have given a provider refresh, but still the error is there. Oops, there was also an exception...
Has anybody an idea, to clear the cache resp. what about the exception after the provider-refresh?
Thanks
Michael
-----8<---------8<----------8<---------8<---------8<--------8<--
configuration details:
this is PDK Services for Java version 3.0.9.0.5./PDK URL
Services version 3.0.9.0.4. (December-Release)/Oracle Portal Version: 3.0.9.8.0/iAS 1.0.2/SunOS 5.7
-----8<---------8<----------8<---------8<---------8<--------8<--
jserv.properties: wrapper.classpath=/oracle/IAS/web/PDK/JPDK.3.0.9.0.5/jpdk/lib/provider.jar
wrapper.classpath=/oracle/IAS/web/PDK/JPDK.3.0.9.0.5/urlservices/lib/urlservices.jar
wrapper.classpath=/oracle/IAS/web/PDK/JPDK.3.0.9.0.5/urlservices/lib/tidy.jar
-----8<---------8<----------8<---------8<---------8<--------8<--
From jserv.log after the provider.refresh
24/01/2002 10:20:28:199 GMT+01:00] CondorSTAR/ 3.0.9.8.0
[24/01/2002 10:20:28:200 GMT+01:00] CondorSTAR/DefaultProvider.getPortlets() - ProviderId = 83990
57
[24/01/2002 10:20:28:200 GMT+01:00] CondorSTAR/ - start index = 0
[24/01/2002 10:20:28:200 GMT+01:00] CondorSTAR/ - count = 999
[24/01/2002 10:20:28:201 GMT+01:00] CondorSTAR/ - byUser = false
[24/01/2002 10:20:28:224 GMT+01:00] CondorSTAR/ - User = PORTAL30
[24/01/2002 10:20:28:225 GMT+01:00] CondorSTAR/DefaultProvider.getPortlets() - returning 1 of 1 p
ortlets
[24/01/2002 10:20:30:942 GMT+01:00] page/JNI: Exception when trying to connect in 1.
[24/01/2002 10:20:30:953 GMT+01:00] page/Timeout occurred, label=71 url=http://c3po.isae.condor-v
ersicherungen.de:7778/pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
[24/01/2002 10:20:30:953 GMT+01:00] page/ContentFetcher InterruptedIOException Caught, Fetcher Ti
medout name=content-fetcher20
-----8<---------8<----------8<---------8<---------8<--------8<--
From jserv.log after the 405 error is displayed
[24/01/2002 10:24:03:855 GMT+01:00] CondorSTAR/Entering URLSecurityManager hasAccess(Portlet,ProviderUse
r) *****************
[24/01/2002 10:24:03:855 GMT+01:00] CondorSTAR/URLSecurityManager:hasAccess(Portlet). Auhtorize Type Is
non registered, Returningtrue
[24/01/2002 10:24:03:989 GMT+01:00] CondorSTAR/Entering URLSecurityManager hasAccess(PortletReference,Pr
oviderUser) *****************
[24/01/2002 10:24:03:989 GMT+01:00] CondorSTAR/Entering URLSecurityManager hasAccess(Portlet,ProviderUse
r) *****************
[24/01/2002 10:24:03:989 GMT+01:00] CondorSTAR/URLSecurityManager:hasAccess(Portlet). Auhtorize Type Is
non registered, Returningtrue
[24/01/2002 10:24:04:012 GMT+01:00] CondorSTAR/URLSecurityManager:hasAccess(PortletReference: Return Val
ue being returnedtrue
[24/01/2002 10:24:04:098 GMT+01:00] CondorSTAR/renderBody : Entering render ****************************
[24/01/2002 10:24:04:098 GMT+01:00] CondorSTAR/renderBody : DebugLevel = 3
[24/01/2002 10:24:04:098 GMT+01:00] CondorSTAR/ProviderSubscribe : Hashtable doesn't have any values. Lo
ading from file ...
[24/01/2002 10:24:04:098 GMT+01:00] CondorSTAR/URLProvider:init:mapFilePath /oracle/IAS/web/Condor-Provi
der/CondorSTAR
[24/01/2002 10:24:04:099 GMT+01:00] CondorSTAR/URLProvider:storeSubscriberKeyPersistent: Leaving ...
[24/01/2002 10:24:04:099 GMT+01:00] CondorSTAR/URLProvider:loadSubscriberInfo: Entered ...
[24/01/2002 10:24:04:109 GMT+01:00] CondorSTAR/URLProvider:loadSubscriberInfo: Created File Inputstream
...java.io.FileInputStream@119119e
[24/01/2002 10:24:04:151 GMT+01:00] CondorSTAR/URLProvider:loadSubscriberInfo: Exception occured ... jav
a.io.StreamCorruptedException: Caught EOFException while reading the stream header
[24/01/2002 10:24:04:158 GMT+01:00] CondorSTAR/ProviderSubscriber:getSubscriber -- ProviderId & subscrib
erID -- 8399057 & null
[24/01/2002 10:24:04:158 GMT+01:00] CondorSTAR/URLRenderer:renderBody -- subscriberID -- null
[24/01/2002 10:24:04:158 GMT+01:00] CondorSTAR/Before getHtpsProxyInfo
[24/01/2002 10:24:04:158 GMT+01:00] CondorSTAR/No httpsProxy Values specified in provider.xml
[24/01/2002 10:24:04:158 GMT+01:00] CondorSTAR/After checking for httpsProxy proxy tag
[24/01/2002 10:24:04:197 GMT+01:00] CondorSTAR/Inline pageurl received = null
[24/01/2002 10:24:04:197 GMT+01:00] CondorSTAR/getURLStream Inside
[24/01/2002 10:24:04:210 GMT+01:00] CondorSTAR/getURLStream:Session = null
[24/01/2002 10:24:04:210 GMT+01:00] CondorSTAR/getURLStream : Content URL Specified = http://c3po.isae.c
ondor-versicherungen.de:7778/pof/servlet/Welcome
[24/01/2002 10:24:04:224 GMT+01:00] CondorSTAR/getURLStream : URL Constructed = http://c3po.isae.condor
-versicherungen.de:7778/pof/servlet/Welcome
[24/01/2002 10:24:04:267 GMT+01:00] CondorSTAR/Connection type = HTTPClient.HttpURLConnection[http://c3p
o.isae.condor-versicherungen.de:7778/pof/servlet/Welcome]
[24/01/2002 10:24:04:277 GMT+01:00] CondorSTAR/getURLStream : After doInput and doOutput
[24/01/2002 10:24:04:277 GMT+01:00] CondorSTAR/getURLStream : After Connect
[24/01/2002 10:24:04:277 GMT+01:00] CondorSTAR/getURLStream:After open connection
[24/01/2002 10:24:04:277 GMT+01:00] CondorSTAR/getURLStream: Null check for session
[24/01/2002 10:24:04:277 GMT+01:00] CondorSTAR/getURLStream: Check for Cookies != null
[24/01/2002 10:24:04:277 GMT+01:00] CondorSTAR/getURLStream: No cookies found in servlet session.null
[24/01/2002 10:24:04:277 GMT+01:00] CondorSTAR/getURLStream: Before getInputStream
[24/01/2002 10:24:05:823 GMT+01:00] CondorSTAR/getURLStream: After getInputStreamHTTPClient.RespInputStr
eam@1b45f7d
[24/01/2002 10:24:05:823 GMT+01:00] CondorSTAR/getUrlStream: Before returning Input Stream ...
[24/01/2002 10:24:05:823 GMT+01:00] CondorSTAR/UrlStream received = HTTPClient.RespInputStream@1b45f7d
[24/01/2002 10:24:05:823 GMT+01:00] CondorSTAR/renderBody:filter is not null
[24/01/2002 10:24:05:833 GMT+01:00] CondorSTAR/filterContent : Entering HtmlFilter filterContent ******
[24/01/2002 10:24:05:834 GMT+01:00] CondorSTAR/filterContent : Url input stream ---- : HTTPClient.RespIn
putStream@1b45f7d
[24/01/2002 10:24:05:834 GMT+01:00] CondorSTAR/ConvertStreamToStringBuffer: Inside
[24/01/2002 10:24:05:834 GMT+01:00] CondorSTAR/Character encoding = ISO-8859-1
[24/01/2002 10:24:05:834 GMT+01:00] CondorSTAR/ConvertStreamToStringBuffer:Before close
[24/01/2002 10:24:05:834 GMT+01:00] CondorSTAR/ConvertStreamToStringBuffer: Leaving
[24/01/2002 10:24:05:835 GMT+01:00] CondorSTAR/filterContent : HtmlFilter Trim HTML Header Contents :
[24/01/2002 10:24:05:835 GMT+01:00] CondorSTAR/TrimHtmlHeader:Before replacing escape characters
[24/01/2002 10:24:05:835 GMT+01:00] CondorSTAR/TrimHtmlHeader:Token to be replaced<head
[24/01/2002 10:24:05:835 GMT+01:00] CondorSTAR/TrimHtmlHeader:ExcludeString6
[24/01/2002 10:24:05:835 GMT+01:00] CondorSTAR/TrimHtmlHeader:Last occurence found for: <head
[24/01/2002 10:24:05:835 GMT+01:00] CondorSTAR/TrimHtmlHeader: Before returing after trimming
[24/01/2002 10:24:05:835 GMT+01:00] CondorSTAR/filterContent : URL Contents Before footerTrimTag : <HEA
D><TITLE>405 Method Not Allowed</TITLE></HEAD><BODY><H1>405 Method Not Allowed</H1>Initialisation Error:
Welcome null</BODY></HTML>
[24/01/2002 10:24:05:835 GMT+01:00] CondorSTAR/filterContent : Trimming HTML Footer Contents :
[24/01/2002 10:24:05:835 GMT+01:00] CondorSTAR/TrimHtmlFooter:Before replacing escape characters
[24/01/2002 10:24:05:835 GMT+01:00] CondorSTAR/TrimHtmlFooter:Token to be replaced/body>
[24/01/2002 10:24:05:835 GMT+01:00] CondorSTAR/TrimHtmlFooter:Last occurence found for: /body>
[24/01/2002 10:24:05:835 GMT+01:00] CondorSTAR/TrimHtmlFooter: Before returing after trimming
[24/01/2002 10:24:05:835 GMT+01:00] CondorSTAR/filterContent : URL Contents AFTER TRIM HTML FOOTER : <H
EAD><TITLE>405 Method Not Allowed</TITLE></HEAD><BODY><H1>405 Method Not Allowed</H1>Initialisation Erro
r: Welcome null</BODY>
[24/01/2002 10:24:05:836 GMT+01:00] CondorSTAR/filterContent : Processs Request : Before checking base
hrefhttp://c3po.isae.condor-versicherungen.de:7778/pof/servlet
[24/01/2002 10:24:05:836 GMT+01:00] CondorSTAR/********************filterContent : Converting relative
srcs to absolute srcs ********************
[24/01/2002 10:24:05:836 GMT+01:00] CondorSTAR/*********************************************
[24/01/2002 10:24:05:836 GMT+01:00] CondorSTAR/Attribute to be searched for = src
[24/01/2002 10:24:05:836 GMT+01:00] CondorSTAR/**********************************************
[24/01/2002 10:24:05:836 GMT+01:00] CondorSTAR/Total no. of occurences = 0
[24/01/2002 10:24:05:836 GMT+01:00] CondorSTAR/filterContent : Converting relative hrefs to absolute hr
efs
[24/01/2002 10:24:05:836 GMT+01:00] CondorSTAR/*********************************************
[24/01/2002 10:24:05:836 GMT+01:00] CondorSTAR/Attribute to be searched for = href
[24/01/2002 10:24:05:836 GMT+01:00] CondorSTAR/**********************************************
[24/01/2002 10:24:05:836 GMT+01:00] CondorSTAR/Total no. of occurences = 0
[24/01/2002 10:24:05:836 GMT+01:00] CondorSTAR/filterContent : Converting relative actions to absolute
actions
[24/01/2002 10:24:05:836 GMT+01:00] CondorSTAR/*********************************************
[24/01/2002 10:24:05:836 GMT+01:00] CondorSTAR/Attribute to be searched for = action
[24/01/2002 10:24:05:836 GMT+01:00] CondorSTAR/**********************************************
[24/01/2002 10:24:05:836 GMT+01:00] CondorSTAR/Total no. of occurences = 0
[24/01/2002 10:24:05:836 GMT+01:00] CondorSTAR/filterContent : Converting relative backgrounds to absol
ute backgrounds
[24/01/2002 10:24:05:837 GMT+01:00] CondorSTAR/*********************************************
[24/01/2002 10:24:05:837 GMT+01:00] CondorSTAR/Attribute to be searched for = background
[24/01/2002 10:24:05:837 GMT+01:00] CondorSTAR/**********************************************
[24/01/2002 10:24:05:837 GMT+01:00] CondorSTAR/Total no. of occurences = 0
[24/01/2002 10:24:05:837 GMT+01:00] CondorSTAR/filterContent : Convert all href to have a parameter of t
arget=_blank
[24/01/2002 10:24:05:857 GMT+01:00] CondorSTAR/addTargetNew: Inside
[24/01/2002 10:24:05:857 GMT+01:00] CondorSTAR/addTargetNew: HREF Not Found
[24/01/2002 10:24:05:857 GMT+01:00] CondorSTAR/addTargetNew: Before returning
[24/01/2002 10:24:05:857 GMT+01:00] CondorSTAR/filterContent() Before check for AuthType:
[24/01/2002 10:24:05:884 GMT+01:00] CondorSTAR/renderContents:getCharacterEncoding() = ISO-8859-1
[24/01/2002 10:24:05:884 GMT+01:00] CondorSTAR/******************renderContents:Contents to be rendered
[24/01/2002 10:24:05:884 GMT+01:00] CondorSTAR/<FORM NAME="urlservices_parameter_form_1889" METHOD="GET"
ACTION="http://c3po.isae.condor-versicherungen.de:7778/servlet/page"><INPUT TYPE="hidden" name="_pageid
" value="54,56,98,88,90" />^M<INPUT TYPE="hidden" name="_dad" value="portal30" />^M<INPUT TYPE="hidden"
name="_schema" value="PORTAL30" />^M<SCRIPT Language="JavaScript1.1">
function submitURL1889(url)
document.urlservices_parameter_form_1889.p_8401668.value=url;Hi,
Log information shows that the URL you are trying to use =>
"http://c3po.isae.condor-versicherungen.de:7778/pof/servlet/Welcome" always return content
<HTML><HEAD><TITLE>405 Method Not Allowed</TITLE></HEAD><BODY><H1>405 Method Not Allowed</H1>Initialisation Error:
Welcome null</BODY></HTML>
while the exception has nothing to do with the portlet functioning. Please make sure that you are using the right servlet.
Thanks,
Amjad. -
Capture HTTP Referer using Dispatcher
Hello,
I wanted to know if it was possible to capture the HTTP Referrer on a page when using the Dispatcher to change information on the page. For instance, if the referrer was organic search from Google and "my product name" was in the querystring - I'd change the display of a given parsys. My thoughts are the Client Context and Teaser component would be right for this task; however I'm unclear about:
How do you capture the HTTP Referrer using the client context? Are there any examples of this?
Since the client-content is JS, doesn't this mean CQ renders the default then the JS loads the dynamic content into the teaser? If I have this correct, wouldn't this be visible to users on slower systems - like IE7?
Because it is technically dynamic, does this prevent the dispatcher from caching the page or does the dispatcher cache everything except the teaser/client context?
Thanks in advance for any assistance anyone can provide. Using 5.5 SP1Generally client browser will specify an optional header "Referer" containing the address (URI) of the document from which the URI in the request was obtained. Configure dispatcher to allow Referer header and capture using <%=slingRequest.getHeader("Referer") %>
In case you want to refer from querystring you can use request.getParameter("<variableName>"); -
in a future version of ibook author would be very useful to provide for the creation of shared content online.
Teachers can collaborate on the creation of a text. Very useful for teachers to collaborate in the network. sharing sharing sharingAs always, feel free to use the 'Provide iBooks Author Feedback' menu item for features you'd like added in the future, etc.
http://www.apple.com/feedback/ibooks-author.html -
HTTPS communication using HTTP receiver adapter URL address as Address Type
Hi All,
If some one who has tried HTTPS communication using HTTP receiver adapter using URL address as Address type can you please guide me what are the steps need to be done.
Note : Address type is a parameter in HTTP adapter setup .
Regards,
ReddyHi,
Check this,
Configurations in Integration Directory
The plain HTTP adapter gives the receiver system the following specifications:
— Specifications for addressing using a URL address:
Target host, service number, and path prefix including query string:
http://<hostname:port>/<path>?<query-string>
You can identify the target host (HTTP port) of a SAP Web Application Server using
the
ICM monitor
Host and port of the HTTP proxy (optional if there is a firewall between the plain
HTTP adapter and the receiver system)
Authentication data for the receiver system.
See also: transaction Display and Maintain RFC Destinations (SM59).
— Specifications for addressing using an HTTP destination:
HTTP destination
— Parameters from the communication channel for technical routing
Content type (the entry text/XML is expected as default)
Specifies the format that the message contents (the payload) should have.
Optional header fields for the receiver-specific protocol
Attributes for the query string
1. Sender party
2. Sender service
3. Receiver Interface
4. Message ID
5. Quality of service
6. Queue ID
All attributes are selected except for the queue ID. If you do not want a value to be
transferred to the receiver, deselect it. The queue ID is only required if the quality of
service is EOIO.
Specifications for payload manipulation
XML code (default UFT-8)
Specifies the character set.
URL escaping
Presents the XML in a URL-enabled format. Special characters that could be
interpreted as control characters are replaced with escape characters (masked).
Prolog
Enhances the payload for particular servers (optional, see below).
Epilog
Enhances the payload for particular servers (optional, see below).
Enhancing the Payload
Regards
Seshagiri -
MD50 , getting exception "Coverage not provided by Master Plan"
Dear Sir,
We have mate-to-order scenario and MRP run was made using MD50 against a Sale-Order .
After the MRP run , we are getting an exception in MD04 for a Material which is a Bought-out Material . The exception is "Coverage not provided by Master Plan" .
The detail about the Material (X) having exception is as below :
The requirement for the Material X as per BOM is 15 nos . We have 10 numbers quantity for Material X available in own Stock . The Material X has Individual/Collective Indicator set as 2 in MRP view .
After the MRP run under MD04 , for Material X following information appear :
Date MRP Element MRP Element Data Rec./Reqd Qty Available Qty
20.06.2008 Stock 10
24.06.2008 DepReq 1300-100 15- 5-
As a logical for the balance 5 qty , Planned Order of 5 nos qty must be generated . But no Planned Order has been generated . In MD04 view , the Item has exception "Coverage not provided by Master Plan" .
We request , to kindly guide us as what is the reason for the mentioned exception and how to resolve it . Why it has not generated Planned Order for 5 nos qty .
Regards
B Mittalcan you please speicify the what is the MRP type used for materials X, the material for which requirement is not generated in the planning run?
-
How to use Db Provider Factories with System.Data.SqlServerCe
I'm using SQL Server Compact Edition, but in the future I would like to be able to switch to another SQL Server Edition or even a different database. To achieve this, Microsoft recommends using DB Provider Factories (see: Writing Provider Independent Code in ADO.NET, http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=674426&SiteID=1).
I enumerated the available data providers on my PC with:
Code Snippet
System.Reflection.Assembly[] myAssemblies = System.Threading.Thread.GetDomain().GetAssemblies();
The important entry is:
"SQL Server CE Data Provider"
".NET Framework Data Provider for Microsoft SQL Server 2005 Mobile Edition"
"Microsoft.SqlServerCe.Client"
"Microsoft.SqlServerCe.Client.SqlCeClientFactory, Microsoft.SqlServerCe.Client, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"
When executing:
Code SnippetdataFactory = DbProviderFactories.GetFactory("System.Data.SqlServerCe");
I got at first this error run time message:
Failed to find or load the registered .Net Framework Data Provider.
I added a reference to "Microsoft.SqlServerCe.Client" at C:\Programme\Microsoft Visual Studio 8\Common7\IDE\Microsoft.SqlServerCe.Client.dll and the program runs.
Of course, it uses "Microsoft.SqlServerCe.Client" instead of "System.Data.SqlServerCe". Laxmi Narsimha Rao ORUGANTI from Microsoft writes in the post "SSev and Enterprise Library" that "Microsoft.SqlServerCe.Client" is not meant to be used and that we should add the following entry to the machine.config file:
Code Snippet<add name="SQL Server Everywhere Edition Data Provider" invariant="System.Data.SqlServerCe" description=".NET Framework Data Provider for Microsoft SQL Server Everywhere Edition" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
After changing the code to:
Code Snippet
dataFactory = DbProviderFactories.GetFactory("Microsoft.SqlServerCe.Client");
I get the same error message as before, even after adding a reference to "System.Data.SqlServerCe" at C:\Programme\Microsoft Visual Studio 8\Common7\IDE\System.Data.SqlServerCe.dll.
Any suggestion what I should do ? Just use "Microsoft.SqlServerCe.Client" ? Anyway, I don’t like the idea that I have to change the machine.config file, since I want to use click once deployment.It seems there is no DbProviderFactory for System.Data.SqlServerCe. At least I couldn’t find one, no matter how hard I searched on the Internet. I only found Microsoft.SqlServerCe.Client.SqlCeClientFactory. But we are not supposed to use Microsoft.SqlServerCe.Client and the 2 classes do have quiet some differences among their members. So I decided to write my own factory:
Code Snippet
public class SqlCeClientFactory: DbProviderFactory {
public static readonly SqlCeClientFactory Instance = new SqlCeClientFactory();
public override DbCommand CreateCommand() {
return new SqlCeCommand();
public override DbCommandBuilder CreateCommandBuilder() {
return new SqlCeCommandBuilder();
public override DbConnection CreateConnection() {
return new SqlCeConnection();
public override DbDataAdapter CreateDataAdapter() {
return new SqlCeDataAdapter();
public override DbParameter CreateParameter() {
return new SqlCeParameter();
That was easy enough, right ? I spent 1 week investigating the problem, 10 minutes solving it. I wonder why Microsoft didn’t include this class, because they have already the code in Microsoft.SqlServerCe.Client. I guess they have their reasons, but of course, they don’t tell us. After wasting one more month, I probably can tell. Oh, how I hate this.
Or has anyone an idea what might be the problem ? -
Hi,
I am using Data Provider.
Below are the pararmeters I am passing to it,
oms:dataSource <parameter>mslv/oms/oms1/internal/jdbc/DataSource</parameter> DefaultValue=Xquery
oms:sql <parameter>select name from employee where job=?</parameter> DefaultValue=Xquery
in:1
Now I want to pass a dynamic value for the where clause in the Sql.
My Order Data is,
<OrderData>
<Employee>
<Name></Name>
<Job>Engineer</Job>
</Employee>
</OrderData>
Now I want to pass the "Engineer" value to the where clause. How can I define a Xpath or Xquery for the in:1 parameter?
Please help.You can find documentation for the DatabaseAdapter "Data Provider" class (also known as a View Framework Adapter) in the OSM SDK Javadocs. The Javadocs for the class provide information and an example to let you do what you are trying to do. I've copy/pasted them here for your reference:
This class implements a View Framework external instance adapter that executes a SQL statement and builds an XML document based on the result set.
There are two mandatory parameters for this class, oms:sql and oms:dataSource.
oms:dataSource: Refers to the jndi name of a JDBC datasource defined in WebLogic. For example 'mslv/oms/oms1/internal/jdbc/DataSource'
oms:sql: Contains the sql that will be sent to the database. For example 'select * from scott.emp where empno=?'
Additional optional input parameters may be supplied that will be bound to parameters defined in the oms:sql value. For example, in the above sql statement a parameter is used to define the value for 'empno' in the where clause. A value for this parameter may be specified by defining a paremter called "in:1". If there were additional input parameters defined in the sql statement, these could be passed as "in:2", "in:3" and so on.
In all cases these input parameters will be assumed to be string values and bound to the sql statement as string values.
The following is an example of using the DatabaseAdapter to invoke a query:
<instance name="well_paid_salesman" xsi:type="externalInstanceType">
<adapter>com.mslv.oms.view.rule.adapter.DatabaseAdapter</adapter> <parameter
name="oms:dataSource">'mslv/oms/oms1/internal/jdbc/DataSource'</parameter> <parameter
name="oms:sql">"select * from scott.emp where job='SALESMAN' and sal > ?"</parameter> <parameter
name="in:1">1250</parameter> </instance>
The above declaration returns the following XML instance:
<results> <rowSet> <row> <empno>7499</empno> <ename>ALLEN</ename> <job>SALESMAN</job> <mgr>7698</mgr>
<hiredate>1981-02-20 00:00:00.0</hiredate> <sal>1600</sal> <comm>300</comm> <deptno>30</deptno> </row> <row>
<empno>7844</empno> <ename>TURNER</ename> <job>SALESMAN</job> <mgr>7698</mgr> <hiredate>1981-09-08
00:00:00.0</hiredate> <sal>1500</sal> <comm>0</comm> <deptno>30</deptno> </row> </rowSet> </results>
The DatabaseAdapter can also be used to execute SQL stored procedures.
The DatabaseAdapter provides a stored procedure SQL escape syntax that allows stored procedures to be called in a standard way for all RDBMSs. This escape syntax is defined as part of the Java JDBC API.
This escape syntax has one form that includes a result parameter and one that does not. If used, the result parameter must be registered as an OUT parameter. The other parameters can be used for input, output or both. Parameters are referred to sequentially, by number, with the first parameter being 1.
{?= call [,, ...]}
{call [,, ...]}
Values for input parameters to the stored procedure are specified using the in:1, in:2 (etc.) parameters in the same way as they are for regular SQL queries.
Output parameters are specified using out:1, out:2 (etc.). Keep in mind that the parameter number (1, 2, 3, etc.) are numbered sequentially from 1 ordered from left to right in the specified SQL statement including both input and output parameters.
The value of the parameter is the parameter SQL type (see http://java.sun.com/j2se/1.4.2/docs/api/java/sql/Types.html for a list of types).
The following example illustrates how to call a database stored procedure that has one output parameter (the result of the stored procedure call), and one input parameter.
<instance name="lock_count" xsi:type="externalInstanceType">
<adapter>com.mslv.oms.view.rule.adapter.DatabaseAdapter</adapter> <parameter
name="oms:dataSource">'mslv/oms/oms1/internal/jdbc/DataSource'</parameter> <parameter
name="oms:sql">"{? = call om_cartridge_pkg.get_any_cartridge_id('my_cartridge',?)}"</parameter> <parameter
name="out:1">'INTEGER'</parameter> <parameter name="in:2">'1.1'</parameter> </instance>
The above declaration returns the following XML instance:
<results> <outputParameter number="1">1234</outputParameter> </results>
Hope this helps.
Brian. -
How to use JCo Provider Service w/Sneak Preview and Test Drive
I have both SAP Web AS Sneak Preview (6.40) and MiniWas 6.20 Test Drive installed on a single system. I have implemented a Java server program which can be RFC called from an ABAP program using JCO.
The only disadvantage to this process is that I must manually run the server program each time I bring up the J2EE system.
I would like to set things up so that when I start the WebAS 6.40 J2EE system, the server function can be automatically registered (if I'm using the correct terminology - not at all sure about that...). It looks to me that I should be able to use JCo Provider Service to do what I want to do, but I don't know how to do any of the session bean creation and I esp. can't seem to find out how to run the J2EE Visual Administrator, which the documentation I've found leads me to believe needs to be used.
Is there a tutorial, or example, that will lead me through this entire process? I have the ABAP calling program working OK, and I have the Java JCo server program working ok - I just want to create something in Java that will operate like a good old C Language function installed as an RFM.
Can anyone help? Is it possible?Stefan:
Well, I guess I'm stuck at the first step.
As I understand it, I have to use the Visual Administrtor to register the Web AS 6.40 Sneak Preview system as an RFC destination. When I bring up the Visual Administrator, it has essentially two tabs showing: Dispatcher and Server. It's inviting me to define a connection and Login. So, Q1: Is it inviting me to login to the J2EE or the Web AS? Either way, I am never able to login - I get this error:
com.sap.engine.services.security.exceptions.BaseLoginException: Cannot create new RemoteLoginContext
I used all of the NetWeaver sneak preview defaults when installing, and I recorded these:
Type Account
OS User Compaq-laptop/J2EAdm
OS User Compaq-laptop/SAPServiceJ2E
DB User SAPJ2EDB
J2EE Engine User Administrator
J2EE Engine User Guest
Q2: Is it possible to do what I'm trying to do with the Sneak Preview system?
Or am I trying to connect and logon to the Web AS 6.20 Test Drive (I don't think so...)? I used the defaults when installing the Test Drive, and have these users:
BCUSER
DDIC
Is it one of these I should be logging onto?
Also, Visual Administrator wants a port specified on the J2EE Engine connection paramters - what port should I be specifiying?
Can you get me past this dilemma, Stefan? Thanks... -
Raise exception using CX_MAPPING_FAULT
Hi,
I want to raise an exception when an error occured in the ABAP mapping.I can be able to raise single message exception using the above one but I want to raise exception for all the messages from an error message internal table.I collect return codes and error messages into an internal table and want to display them in SXMB_MONI. Is it possible to raise multiple exceptions using CX_MAPPING_FAULT.
Thanks,
RPHi,
Refer,
http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/content.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/content.htm
http://srikanth4xi.blogspot.com/
"Award points if helpful"
Regards,
Jayasimha Jangam -
When you use Safari, you will find that Search engine can provide you with suggestions like this . For example, I am using Bing.
How can I know what IP address Bing is using to provide those suggestions?>open a new tab
>type about:config in the address bar
make sure
1: browser.fixup.alternate.enabled should be false
2: keyword.enabled should be true
3: keyword.URL should be http://www.google.com/search?ie=UTF-8&oe=UTF-8&q= -
Automating Essbase clustering using Hyperion Provider Services
Hi
I am testing Essbase clustering using Hyperion Provider Services for high availability of cubes. I have created an Essbase cluster and added cubes to it using EAS. Since cubes get update during interday, I want to add/remove cubes from the cluster. I could do this process manually in EAS but prefer if I can automate this process. I was told that I could use either JAVA APIs (prefer) or XMLA to automate adding & removing cubes to/from the Essbase cluster. Unfortunately, I cannot find any documentation that mentions the names of the JAVA APIs that I should call to succeed this process. Could anybody help me please?
Regards
ChandraHi,
Assuming you are on V11 then if you have a look in \Hyperion\products\Essbase\aps\samples\japi and there is java example of creating clusters :- CreateCluster.java
Java API docs available in \Hyperion\products\Essbase\aps\docs\japistart.htm
If you are on an earlier version then the directory structure will be a little different.
Cheers
John
http://john-goodwin.blogspot.com/ -
I am running ATG[10.1.2] app on Jboss [EAP 5.1.0 GA] I am able to open dyn/admin however when I start my app I get the below error
java.lang.LinkageError: loader constraint violation: when resolving method "atg.servlet.ServletUtil.setSessionConfNumCacheRequest(Ljavax/servlet/http/HttpServletRequest;)Ljavax/servlet/http/HttpServletRequest;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, atg/filter/dspjsp/PageFilter, and the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) for resolved class, atg/servlet/ServletUtil, have different Class objects for the type javax/servlet/http/HttpServletRequest used in the signature
at atg.filter.dspjsp.PageFilter.doFilter(PageFilter.java:215)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at atg.servlet.ForwardFilter.doFilter(ForwardFilter.java:263)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at atg.servlet.ErrorFilter.doFilter(ErrorFilter.java:279)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:446)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:416)
at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:342)
at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:286)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:680)
11:22:47,413 ERROR [[localhost]] Exception Processing ErrorPage[errorCode=500, location=/global/errorPage500.jsp]The supported JBoss version for 10.1.2 is JBoss EAP 5.1.2 but I don't think that your issue is caused because of this. Your issue is more of an environmental thing as you are probably getting two different versions getting loaded of class javax.servlet.http.HttpServletRequest and so correspondingly two different Class objects as the error shows. One reason for this could be if you include any server-specific libraries (in present case the Servlet API JAR which contains the class javax.servlet.http.HttpServletRequest) of a different version in the /WEB-INF/lib of your web application. Try removing it from there if so and see if that helps.
-
How to log the exception using Log action in Oracle Service Bus
Hi,
Whenever an exception is raised how to log the exception using Log action in oracle service bus.After logging where I have to find the logged message.It would be in the log file for the managed server which ran the request. If you are logging the message at a lower level than your app server, however, you won't see it. You should be logging the exception at Error level.
Maybe you are looking for
-
I can't seem to reopen Firefox. I HAVE, in fact, closed Firefox. I've even "force quit" it. When I shut down my computer and restarted it, I got Firefox back, but then when I went off and tried to come back on, the problem reoccurred. When I try to r
-
I can no longer access Comcast email.
When I (as I have for years) try to access email from my tool bar, I get Comcast's site with a continuously revolving loading circle in the center. Going to Comcast via URL does the same. Going to Comcast on IExplorer works fine. Comcast says because
-
+ Camera Raw Feature Requests +
UPDATE: We're interested in what changes you would like see in our products. Do you have an idea for a feature that would help your workflow? Is there a small change that could be made to make your life a little easier? Let us know! Share an Idea, A
-
MDS persistence for column within a loop
Hello, I am trying out basic setup of MDS. I was able to make it work for most of my columns except for a column within a loop. I also tried using the ADF Read Only Dynamic table and it is not persisting any of the columns of the table, since it is i
-
When updating the order i am getting another credit card field automaticaly
Hi Gurus, I had an requirement of limiting the credit card fields to single card means single credit card payment only. In standard ISA5.0 we have 3 credit card fields shown. i have resticted that to single card. Now the issue is whe