OnlineInteractiveForm Unauthorized exception
Hi, all:
I just want run the demo "local/TutWD_OnlineInteractiveForm", but below exception raised, I really don't know what's happened.
com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://localhost:50000/AdobeDocumentServices/Config?style=document"
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:976)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1423)
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:82)
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:99)
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:279)
(I logon by ADSUser account), is it the matter of ADS configuration?
And any help will be appreciated, Thanks Orz
Tony
Hi,
Just test your configuration.
Go to http://<server>:<port>/AdobeDocumentServices/Config
Go for test.
It should return the version number.
Do go through the configuration guide.
Regards,
Vijith
Similar Messages
-
Notification Hub - 401 Unauthorized exception
I followed the lesson
http://azure.microsoft.com/en-us/documentation/articles/notification-hubs-windows-store-dotnet-get-started/. But in result got 401 Unauthorized
exception after var result = await hub.RegisterNativeAsync(channel.Uri). I have checked settings (hub name, connection string) twice. After that I even created a new application and new hub. But got the same error.
I found it works on emulator, but does not on real device. Nokia Lumia 630, OS version 8.10.12397.895
Could you give me any ideas how to fix this error?This could happen if there is a clock synchronization issue on the phone. Can you ensure
that clock on the phone is correct and if not can you manually set the clock
and try again? <o:p></o:p>
Previously we
use to see this kind of issue with Window phone emulator (not with the real
device). Please see below article on this.<o:p></o:p>
http://blogs.msdn.com/b/msftgeek/archive/2013/11/01/notification-hubs-and-the-dreaded-registrationauthorizationexception.aspx<o:p></o:p>
Thanks,
Sateesh<o:p></o:p>
Mark Post as helpful if it provides any help.Otherwise,leave it as it is. -
Hi, I am trying to implement custom hold order / send to in sharepoint 2010 to send files in to holds / record center.
I am at the last step where I am trying submit the metadata using soap call- submit file
[SoapDocumentMethod("http://schemas.microsoft.com/sharepoint/soap/recordsrepository/SubmitFile", RequestNamespace = "http://schemas.microsoft.com/sharepoint/soap/recordsrepository/", ResponseNamespace = "http://schemas.microsoft.com/sharepoint/soap/recordsrepository/", Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public string SubmitFile([XmlElement(DataType = "base64Binary")] byte[] fileToSubmit, [XmlArrayItem(IsNullable = false)] Microsoft.SharePoint.RecordsRepositoryProperty[] properties, string recordRouting, string sourceUrl, string userName)
return (string)base.Invoke("SubmitFile", new object[] { fileToSubmit, properties, recordRouting, sourceUrl, userName })[0];
I am getting an error "The request failed with http status 401: Unauthorized".
Actual file was transferred successfully but while transferring the properties (metadata) I am getting this exception.
ganeshHi ganesh,
Please try to disable the loop back check, compare the result:
In Registry Editor, locate and then click the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
Right-click Lsa, point to New, and then click DWORD Value.
Type DisableLoopbackCheck, and then press ENTER.
Right-click DisableLoopbackCheck, and then click Modify.
In the Value data box, type 1, and then click OK.
Quit Registry Editor, and then restart your computer.
In addition, please check if these links are useful:
http://www.sharepointpills.com/2011/10/send-sharepoint-2010-document-to.html
http://www.codeproject.com/Articles/497729/UploadingplusDocumentsplusProgramaticallyplustoplu
I hope this helps.
Thanks,
Wendy
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Wendy Li
TechNet Community Support -
UnAuthorized Exception while testing Entity Service
Hi, I have created a plain java class method as webservice.While creating the webservice from the IDE i have selected Default Configuration type as Basic Auth SOAP.I am using this webservice as external service in CAS project.But when i tested this entity service i am getting the Unuthorized exception.This is not the case when i am creating the webservice with configuration Simple SOAP.Kindly help me on this regard.
Hi Sudhir,
While configuring the external service in service registry,select the basic authenitication option and set the user id and password.
Hope this will work.
Sampath.G -
Getting the "401 : Unauthorized" exception with bulk edit tool in Project Server 2010
Hi all,
We are using the Bulkedit tool in our Project server 2010 environment.
When users click the button "bulk edit projects" from the ribbon, it is giving the error with a correlation id.
I checked the id in uls logs and find that it is giving the below message.
Does anyone know why we are getting this error ?
Best Regards
Anil Kumar AlladiHi Paul,
Thanks for your reply.
The loopbackcheck was already disabled. The users who are accessing the url from the client machines also getting this error.
Best Regards
Anil Kumar Alladi -
Receiver SOAP Adapter Problem-HTTP 401 Unauthorized
We are using XI-7.0. We have scenario IDOC >> XI >> SOAP by making asynchornous call.
Vendor has two web server - A and B. Both the servers set up are identical in the vendor system.
Web server "A" works fine from XML spy tool as well as XI for sending service order SOAP messages.
Web server "B", we are able to send SOAP messages from XML spy successfully and vendor also confirms that it updates database in their system.
But we are not able to send SOAP messages from XI on Server "B". We are getting following error message in the adpter engine.
Can someone please help me? Thanks!
<i>SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 401 Unauthorized
MP: exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 401 Unauthorized
Exception caught by adapter framework: SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 401 Unauthorized
Delivery of the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 401 Unauthorized.</i>
Thanks!
MPHi Riya,
For SSL configuration you can check,
Rajendra's blog http://scn.sap.com/people/rajendra.badi/blog/2011/11/23/pi-711-transport-level-secuirty-communicating-with-external-web-service-from-soap-adapter-through-ssl
Khade's blog http://scn.sap.com/people/s.khade/blog/2011/09/06/secured-connection-to-external-web-service-using-sap-xipi.
Regards. -
Error While creating users in managed system.
Dear All,
I am configuring SAP Solution Manager 7.1. I am in stage of Managed System Configuration (for JAVA).
In step 6 Create user: While creating (System) user SM_COLL_<SID> I am getting error :
An error occurred while processing the UME command READ_USER from agent <hostname> : Server returned: 401 Unauthorized. Please check SMD agent application logs.
And for ABAP System,
SMDAGENT_XXX Technical User (in Managed System <SID> Client 000)
while creating user SMDAGENT_<SID> and SAPSUPPORT
I am getting error:
No CENTRAL nor DIALOG instance known for system <SID>
But in SM51 I can see Server Status Active.
and Users are not present.(Checked it through SU01)
I am not getting why this is happening.
Please help me regarding the same.
Thanks & Regards
AjitabhHi,
I am pasting the SMD agent application logs:
<!LOGHEADER[START]/>
<!HELP[Manual modification of the header may cause parsing problem!]/>
<!LOGGINGVERSION[1.5.3.7185 - 630]/>
<!NAME[SMDAgentAppLog]/>
<!PATTERN[SMDAgentApplication.log]/>
<!FORMATTER[com.sap.tc.logging.TraceFormatter(%d [%t] %10s %m)]/>
<!ENCODING[Cp1252]/>
<!FILESET[0, 10, 1000000]/>
<!PREVIOUSFILE[SMDAgentApplication.9.log]/>
<!NEXTFILE[SMDAgentApplication.1.log]/>
<!LOGHEADER[END]/>
Nov 29, 2011 2:02:09 PM [Thread[Connector,5,main]] Warning com.sap.smd.wily.hostagent.mai.MaiAdapter - init: Introscope Host Adapter is not active, no Introscope metrics from MAI
Nov 29, 2011 2:21:01 PM [Thread[Thread-33,5,main]] Warning com.sap.smd.wily.hostagent.mai.MaiAdapter - init: Introscope Host Adapter is not active, no Introscope metrics from MAI
Nov 29, 2011 2:38:31 PM [Thread[Thread-67,5,main]] Warning com.sap.smd.wily.hostagent.mai.MaiAdapter - init: Introscope Host Adapter is not active, no Introscope metrics from MAI
Nov 30, 2011 1:26:19 PM [Thread[ExRun:OutsideDiscovery_1,5,OutsideDiscovery:ExecTG]] Path Caught java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:521)
at com.sap.smd.agent.plugin.connectors.http.ConnectionExtendedImpl.openSocket(ConnectionExtendedImpl.java:2025)
at com.sap.smd.agent.plugin.connectors.http.ConnectionExtendedImpl.open(ConnectionExtendedImpl.java:1398)
at com.sap.smd.agent.plugin.connectors.http.ConnectionExtendedImpl.sendInternal(ConnectionExtendedImpl.java:1552)
at com.sap.smd.agent.plugin.connectors.http.ConnectionExtendedImpl.send(ConnectionExtendedImpl.java:1483)
at com.tssap.dtr.client.lib.protocol.requests.RequestBase.perform(RequestBase.java:570)
at com.tssap.dtr.client.lib.protocol.requests.RequestBase.perform(RequestBase.java:693)
at com.sap.smd.agent.plugin.connectors.http.HTTPConnectorService.performRequest(HTTPConnectorService.java:548)
at com.sap.smd.agent.plugin.connectors.http.HTTPConnectorService.performRequest(HTTPConnectorService.java:673)
at com.sap.smd.agent.plugin.connectors.http.HTTPConnectorService.performRequest(HTTPConnectorService.java:638)
at com.sap.smd.agent.plugin.connectors.http.HTTPConnectorService.performRequest(HTTPConnectorService.java:624)
at com.sap.smd.agent.plugin.connectors.webservice.SAPHostAgentTrustedConnectionConfigurator.setupTrustedConnection(SAPHostAgentTrustedConnectionConfigurator.java:81)
at com.sap.smd.agent.plugin.connectors.webservice.WSConnectorFactory.configureLocalSAPHostAgentEndPoint(WSConnectorFactory.java:244)
at com.sap.smd.agent.plugin.hostagent.check.HostAgentCheckService.getHostAgentVersion(HostAgentCheckService.java:105)
at com.sap.smd.agent.plugins.dcc.util.WSProxyManager.checkSAPHostAgentVersion(WSProxyManager.java:287)
at com.sap.smd.agent.plugins.dcc.util.WSProxyManager.initSAPHostControlWebServiceClient(WSProxyManager.java:112)
at com.sap.smd.agent.plugins.dcc.util.WSProxyManager.getSAPHostControlProxy(WSProxyManager.java:75)
at com.sap.smd.agent.plugins.dcc.job.PhysicalHostPushJob.run(PhysicalHostPushJob.java:195)
at com.sap.smd.server.exec.TaskRunner.run(TaskRunner.java:46)
at com.sap.smd.server.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:781)
at java.lang.Thread.run(Thread.java:679)
Nov 30, 2011 1:26:19 PM [Thread[ExRun:OutsideDiscovery_1,5,OutsideDiscovery:ExecTG]] Error Pb:
[EXCEPTION]
java.rmi.RemoteException: Error to perform http request cause by java.io.IOException: Unable to open connection to host "FQDN:1128". The host is down or unavailable...; nested exception is:
java.io.IOException: Unable to open connection to host "FQDN:1128". The host is down or unavailable.
Dec 2, 2011 4:56:53 PM [Thread[Thread-368,5,main]] Warning [Setup]Step Id 1051 has no step description
Dec 2, 2011 4:56:53 PM [Thread[Thread-368,5,main]] Warning [Setup]Step Id 1051 has no step description
Dec 2, 2011 5:02:05 PM [Thread[Thread-363,5,main]] Error [Setup]Failed to get a soap response from http://FQDN:50000/spml/spmlservice
Dec 2, 2011 5:02:05 PM [Thread[Thread-363,5,main]] Error [Setup]An error occured while processing the UME command READ_USER from agent HOSTNAME : Server returned: 401 Unauthorized
[EXCEPTION]
com.sap.sup.admin.xmlsoap.core.soap.NativeSOAPException: Server returned: 401 Unauthorized
Kindly help me out guys.
Thanks & Regards
Ajitabh -
Authentication in Sender SOAP Adapter
Hi experts,
We have a scenario were EP sends SOAP Message to XI. We have created the WSDL from XI and it has been consumed by EP. When EP tries to send the SOAP Request to XI we get UnAuthorized Exception.
Below is the Exception
#1.5#001372E937FC00670000012000000D8C0004298100849F8B#1171533943519#com.sap.portal.portal#sap.com/irj#com.sap.portal.portal#CLASP#6953####18f1d310bcdc11db9500001372e937fc#SAPEngine_Application_Thread[impl:3]_29##0#0#Warning#1#/System/Server#Java###Call failed
[EXCEPTION]
#1#com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: Problem in server response: [Unauthorized].
at com.sap.engine.services.webservices.jaxm.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:207)
at com.sap.engine.services.webservices.jaxm.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:163)
at com.sap.engine.services.webservices.jaxm.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:325)
at com.sapportals.portal.prt.service.soap.SOAPService.call(SOAPService.java:152)
at com.sapportals.portal.prt.service.soap.PRTSOAPCall.invokeMethod(PRTSOAPCall.java:209)
at service.XIUserCreateCall.IOS_UserCreate(XIUserCreateCall.java:168)
at service.XIUserComp.doContent(XIUserComp.java:46)
I tried to send the basic authentication details in my URL. But it didn't work.
Pl. help me resolve this.HI,
for XI EP
Please see the below links so that you can have clear Idea..
/people/saravanakumar.kuppusamy2/blog/2005/02/07/interfacing-to-xi-from-webdynpro
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/integrating%20web%20dynpro%20and%20sap%20xi%20using%20jaxb%20part%20ii.article
Consuming XI Web Services using Web Dynpro Part II-/people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii
Consuming XI Web Services using Web Dynpro Part I -/people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i
/people/sap.user72/blog/2005/09/15/creating-a-web-service-and-consuming-it-in-web-dynpro
/people/sap.user72/blog/2005/09/15/connecting-to-xi-server-from-web-dynpro
Regards
Chilla.. -
Problems setting up 2way SSL with option Client certs requested Not Enfor
Hi,
Iam having problems trying to set up 2 way SSL with the option "Clients Certs Requested But Not Enforced". I am using DefaultIdentityAsserter with my own implementation of UserNameMapper. And I have the login-config set to CLIENT-CERT in web.xml. I have tested this setup and it works when I have "Client Certs Requested and Enforced" but when I change it to "Requested and not enforced" it gives an 401 unauthorized exception.
Any help with this will be greatly appreciated.
Thanks
Praveena.Hi Peter,
I'm afraid not, I turned to Apple support forums, followed their advice for troubleshooting Mac Mail (obviously not relevant to you using Outlook) but It involved scanning ports checking firewalls etc, all of this was clear and I just cannot see the problem.
I even got one of the Livechat BC guys to look into it, by setting up a dummy email address on the client's account, I think he was rather intrigued, but I'm not sure he's had much luck as he still hasn't got back to and that was over 20 hours ago.
Can your client receive emails? I can only get my client's account receiving emails, when I try to send an email I just keep receiving an message telling me that it cannot connect to smtp!
According to the BC fact sheet for sending and receiving emails: "By Default, email software will set the SMTP port to 25, which is the standard port for the smtp protocol. However our mail service has two alternative ports available that you can send through. 8025 or 587.
However it's not blocked and those port settings didn't work either.
The Apple fact sheet made mention to firewall settings possibly also blocking, but it's not relevant to me using my version of OS.
Good luck, and please repost if you get any further.
I am now just looking for a reason that my client's mail WONT work on Mac Mail, just so I can sound professional when I tell them the answer is "no".
Penny -
Managed to Admin server connection
I've seen many posts on troubles with connecting to an Admin server. I think mines new. Here's the command and the output. Any help?
C:\bea\weblogic600>C:\bea\weblogic600\jdk130\bin\java -server -ms64m -mx64m -cla
sspath .;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;C:\bea -Dweblogic.Domain=aircl
ic -Dweblogic.Name=amonroe -Djava.security.policy==C:\bea\weblogic600/lib/weblog
ic.policy -Dweblogic.management.server=http://APOLLO:7001 -Dweblogic.management.
username=system -Dweblogic.management.password=amy123me weblogic.Server
Starting WebLogic Server ....
The WebLogic Server did not start up properly.
Exception raised: weblogic.management.configuration.ConfigurationException: conn
ecting to http://APOLLO:7001/Bootstrap/ - with nested exception:
[weblogic.net.http.HttpUnauthorizedException: 401]
weblogic.net.http.HttpUnauthorizedException: 401
at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.
java:326)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:230
at weblogic.management.Admin.getBootstrapLocalServer(Admin.java:812)
at weblogic.management.Admin.initialize(Admin.java:289)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:321)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:163)
at weblogic.Server.main(Server.java:35)
--------------- nested within: ------------------
weblogic.management.configuration.ConfigurationException: connecting to http://A
POLLO:7001/Bootstrap/ - with nested exception:
[weblogic.net.http.HttpUnauthorizedException: 401]
at weblogic.management.Admin.getBootstrapLocalServer(Admin.java:877)
at weblogic.management.Admin.initialize(Admin.java:289)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:321)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:163)
at weblogic.Server.main(Server.java:35)
Reason: Fatal initialization exception
thanks,
andyI've got Beta 2 running. Any idea what would cause an Unauthorized exception? The admin server is logging a request and marking it as a 401 error.
andy
Kumar Allamraju <[email protected]> wrote:
Andrew,
Assuming your admin server is running on Domain "aircl" ,& the server is
listening on
APOLLO:7001, your start script seems OK to me.
I don't have beta-1 installed in my machine, but with beta-2 i can
connect to the
admin server. Could you pls try beta-2 and see if that makes any
difference?.
Kumar
Andrew Monroe wrote:
I've seen many posts on troubles with connecting to an Admin server. I think mines new. Here's the command and the output. Any help?
C:\bea\weblogic600>C:\bea\weblogic600\jdk130\bin\java -server -ms64m -mx64m -cla
sspath .;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;C:\bea -Dweblogic.Domain=aircl
ic -Dweblogic.Name=amonroe -Djava.security.policy==C:\bea\weblogic600/lib/weblog
ic.policy -Dweblogic.management.server=http://APOLLO:7001 -Dweblogic.management.
username=system -Dweblogic.management.password=amy123me weblogic.Server
Starting WebLogic Server ....
The WebLogic Server did not start up properly.
Exception raised: weblogic.management.configuration.ConfigurationException: conn
ecting to http://APOLLO:7001/Bootstrap/ - with nested exception:
[weblogic.net.http.HttpUnauthorizedException: 401]
weblogic.net.http.HttpUnauthorizedException: 401
at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.
java:326)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:230
at weblogic.management.Admin.getBootstrapLocalServer(Admin.java:812)
at weblogic.management.Admin.initialize(Admin.java:289)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:321)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:163)
at weblogic.Server.main(Server.java:35)
--------------- nested within: ------------------
weblogic.management.configuration.ConfigurationException: connecting to http://A
POLLO:7001/Bootstrap/ - with nested exception:
[weblogic.net.http.HttpUnauthorizedException: 401]
at weblogic.management.Admin.getBootstrapLocalServer(Admin.java:877)
at weblogic.management.Admin.initialize(Admin.java:289)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:321)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:163)
at weblogic.Server.main(Server.java:35)
Reason: Fatal initialization exception
thanks,
andy -
Trying to make a app that transfers files over bluetooth in java
I am trying to make a program that will send a audio file (for example test.mp3) to another device.
This would be set up as client - server application.
Ideally, the server would be a PC and the client a mobile device.
Is there any source code similar to this?
Or can anyone help make this?
Thanks."You can try the below loop it will allow you to skip Unauthorized files access error:"
Using EnumerateFiles instead of GetFiles doesn't actually avoid the UnauthorizedAccessException that is commonly encountered then SearchOption.AllDirectories is used. There's no way to avoid this problem except by dealing with each directory individually.
And some side notes:
the "select new { File = file }" is completely unnecessary
DirectoryInfo.EnumerateFiles should be used instead of Directory.EnumerateFiles. Enumerating file paths and then creating FileInfo objects is slower than enumerating FileInfo objects in the first place.
No one said EnumerateFiles instead of GetFiles will solve the Unauthorized exception.
Second comment the property File is used within the loop.
The third comment has no effect with lazy execution, and please prove that it is slower. This comment must be sent against the "GetFiles" method not there."The EnumerateFiles and GetFiles methods
differ as follows: When you use EnumerateFiles,
you can start enumerating the collection of names before the whole collection is returned; when you use GetFiles,
you must wait for the whole array of names to be returned before you can access the array. Therefore, when you are working with many files and directories, EnumerateFiles can
be more efficient."
Reference:https://msdn.microsoft.com/en-us/library/dd383571.aspx
Fouad Roumieh -
Please help me with this procedure
Hi guys. i am trying to create a procedure that inserts into the withdrawal table and then prints out the balance of the user. Again i have created a function called get_authority that checks if the user is authorized or not. i have been able to write the procedure but still get an error. please help me correct my mistake. thank u
create or replace procedure do_withdrawal(
p_cust_id in varchar2,
p_acc_id in number,
p_amount in number
as
v_cnr number(9);
unauthorized Exception;
begin
select pk_seq.nextval into v_cnr from dual;
insert into deposition(wit_id,cust_id,acc_id,amount,date_time ) values(v_cnr,p_cust_id,p_acc_id,p_amount,sysdate);
commit;
EXCEPTION
when (get_authority = 0;) then
Raise unauthorized,
dbms_output.put_line('Unauthrorized User')
else
dbms_output.put_line('Dear Customer: Your balance is ')
end;1002942 wrote:
Hi guys. i am trying to create a procedure that inserts into the withdrawal table and then prints out the balance of the user. Again i have created a function called get_authority that checks if the user is authorized or not. i have been able to write the procedure but still get an error. please help me correct my mistake. thank u
Just had a look on your procedure and modified your approach by assuming that you must be knowing what are going to achieve. Even your inputs look unclear and insufficient.
-- Not tested
create or replace procedure do_withdrawal(
p_cust_id in varchar2,
p_acc_id in number,
p_amount in number
is
v_cnr number(9); -- no need
unauthorized Exception; -- no need
begin
--select pk_seq.nextval into v_cnr from dual;
-- use seq directly
if get_authority = 0 then
raise_application_error(-20001, 'Unauthrorized User');
else
insert into deposition(wit_id,
cust_id,
acc_id,
amount,
date_time)
values(pk_seq.nextval,
p_cust_id,
p_acc_id,
p_amount,
sysdate);
commit;
dbms_output.put_line('Dear Customer: Your balance is '||p_amount);
end if;
exception
when others then raise; -- if you still want to catch some undefined error, then just raise it
end; -
What type of authorized items that we can bring for a MCSD exam?
Hi all,
I wonder if I can bring a reference type text book during a MCSD exams?
In the security policy section https://www.microsoft.com/learning/en-us/certification-exam-policies.aspx#security-policies it stated i can not bring unauthorized-items, this mean there are items that are authorized (api reference), is it correct?
Thanks,
SamNope. Basically, everything is unauthorized, except for clothes (excluding a coat). No books of any kind, no writing implements or scratch paper (except for the one that the center supplies), no mobile phones or other electronic devices. In one exam center
they even required that I leave my wallet in a locker outside the exam room. -
Hi All,
I am trying to retrieve list items using listdata.svc REST service in SharePoint 2010. I am able to get the response when I copy/paste the REST URL into browser address window, however, when I invoke the same service from within a Windows Console application,
I am getting a 401 unauthorized exception.
I am wondering how I can authenticate the client to the server?
Thanks!Hi,
The following code for your reference:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RESTList.ListDataService;
using System.Net;
namespace RESTList
class Program
static void Main(string[] args)
VJTestingDataContext dataContext = new VJTestingDataContext(new Uri("http://servername:1111/sites/VJTesting/_vti_bin/listdata.svc/"));
dataContext.Credentials = new NetworkCredential("username", "password", "domain");
var result =from items in dataContext.Tasks select new { Title = items.Title, };
foreach (var item in result)
Console.WriteLine(item);
Console.ReadLine();
More information:
http://www.c-sharpcorner.com/uploadfile/anavijai/rest-api-in-sharepoint-2010-for-listdata-svc-part-2/
http://msdn.microsoft.com/en-us/library/office/hh134614(v=office.14).aspx
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support -
Exception for unauthorized access
If an ejb method is protected by an authorization (role), what is the Exception thrown by the container if I call the method and I have no authorization to do it ?
I've checked it during the night and u're right.
java.lang.SecurityException
Maybe you are looking for
-
I don't know what the update was called. I always trust them. Yet after I opened Firefox, I could not use my bookmarks since they were gone. The back button nor the History feature no longer works either. I followed the prompts and the diagnostic sai
-
Hi, when i checked the status of mass transfer to demand management in MC8i status: Processed successfully Job: S892 TDM S892 TRANSFER TO DEMAND MANAGEMENT Variant: S892 TRF TO DM Info structure: S892 Version: A
-
Find a delete date for FI parked invoice?
Hi, Can any one tell me how to find the date when FI parked invoice is deleted? Any help will be appreciated. Thanks
-
Hi : I am trying to install oracle 11gR2 examples cd on my Linux -86-64 machine. The machine has two oracle Homes . 1. dbhome_1 - contains Software and db 2. applprod - contains just the software When i run the installer to install the examples in th
-
Third party Sales order related issue
Hi, We are facing a strange issue Once a sales order is entered, purchase req is created, the buyer then creates the purchase order. Once the PO is generated, the req is deleted. This in turns creates an incomplete order and the buyer cannot PGI