Authenticates but throws AuthenticationFailedException?!??!?
I have got the following code used for sending a simple mail over a SMTP with Authentication connection.
boolean debug = true;
// Create a mail session
java.util.Properties props = new java.util.Properties();
props.put("mail.smtp.host", smtpHost);
props.put("mail.smtp.port", ""+smtpPort);
props.put("mail.smtp.auth", "true");
Authenticator passwordAuth = new SMTPAuthenticator(from,passFrom);
Session session = Session.getDefaultInstance(props, null);
session.setDebug(debug);
Transport transport = session.getTransport("smtp");
// Construct the message
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(from));
msg.setRecipient(Message.RecipientType.TO, new InternetAddress(to));
msg.setSubject(subject);
msg.setText(content);
// Send the message
transport.connect("hostname","loginame","password");
//transport.connect();
transport.send(msg);Now there comes the funny part:
DEBUG SMTP: connected to host "hostname", port: 25
EHLO SIECSC_SDS03
250-hostnamehostname
250-PIPELINING
250-SIZE 2556000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "SIZE", arg "2556000"
DEBUG SMTP: Found extension "VRFY", arg ""
DEBUG SMTP: Found extension "ETRN", arg ""
DEBUG SMTP: Found extension "STARTTLS", arg ""
DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN"
DEBUG SMTP: Found extension "AUTH=PLAIN", arg "LOGIN"
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "DSN", arg ""
DEBUG SMTP: Attempt to authenticate
AUTH LOGIN
334 VXNlcm5hbWU6
Z2dhbHZhbw==
334 UGFzc3dvcmQ6
YXB0NTAz
235 2.0.0 Authentication successful
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:306)
at javax.mail.Service.connect(Service.java:156)
at javax.mail.Service.connect(Service.java:105)
at javax.mail.Transport.send0(Transport.java:168)
at javax.mail.Transport.send(Transport.java:98)
at br.gov.trern.siasf.util.MailSender.send(MailSender.java:73)
at br.gov.trern.siasf.util.MailSender.sendMail(MailSender.java:85)
at br.gov.trern.siasf.util.TesteMail.main(TesteMail.java:28)
Now, that's really crazy. Firstly it says: Authentication Succesful, then it says AuthenticationFailedException! w00t?
Message was edited by:
Gabriel.Galvao
Thank you very much...
I didn't know that Transport.send creates its own connection! Thanks a lot!
Similar Messages
-
I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 professional. The create new report VI opens Excel but throws error (-2147167262- from automation open VI) when I try to open MS word. please help...
Hi Leo22,
Does this error occur if you use any of the example programs that come shipped with LabVIEW? I would try opening one of the examples that write data to Word and see if those give you an error. Also, have you tried just putting down a New Report.VI and change the report type to Word? If this simple vi (that's all you need to open Word) breaks, I would check to see if there are any instances of Word still open. Check the task manager to see if any word processes are still open. There should not be a problem accessing Word 2003 from LabVIEW 7.0. If neither of these solutions work, please give some more detail about your application and we can research further. Thanks!
Jeremy L.
National Instruments
Jeremy L.
National Instruments -
Transport.send(Message) sends mail but throws exception
Is it possible in any scenario that Transport.send(Message) method deliveres the message successfully, but throws an exception also?
Any help is appreciated. Thanks.Yes, but only if you've configured it to do so.
See the javadocs for the com.sun.mail.smtp package for the property
you can set to cause it to do that.
If you haven't set that property and you're seeing that behavior, please provide
more detail, including especially the protocol trace. -
UWCMailJSPProvider with proxyauth throws AuthenticationFailedException
hi all,
i currently do a portal setup using portal server 7.1. Everythings works
fine, except UWC Mail Provider.
I get a AuthenticationFailedException. I did a lot of debugging an investigating but now i am out of ideas...
This is my current situation:
I run JES4 UWC, MMP and AccessManager on a frontend system (mfe) and my MailStore is located on a backend system (mbe).
My portal 7.1 (portal) is running on a seperate system.
I setup my own meta adapter (metaUWCmail) using SUN-UWC-MAIL meta adapter as meta adapter basis.
I customized the following settings as meta-adapter attributes within my new meta adapter :
clientHost = mfe (UWC, AM, MMP, IMAP, SMTP Frontend)
clientPort = 80
clientProtocol = http
domain = <EMPTY>
enableProxyAuth = true
host = mfe (UWC, AM, MMP, IMAP, SMTP Frontend)
port = 143
protocol = imap
proxyAdminPassword = <CORRECT ADMIN PASSWORD>
proxyAdminUid = admin
serverSSOEnabled = true
smtpPort = 25
smtpServer = mfe (UWC, AM, MMP, IMAP, SMTP Frontend)
ssoClassName = com.sun.ssoadapter.impl.JavaMailSSOAdapter
subType = sun-one
type = MAIL-TYPE
URLBuilderClass = com.sun.portal.comm.url.UWCURLBuilder
userAttribute = uid
uwcContext = uwc
i created a SSO adapter (adapUWCmail) based on this meta-adapter (metaUWCmail) on my organisation location.
When i am l logged on to my portal system, i can access my uwc url via browser and my uwc system is acceptig all cookies, that means to me AccessManager SSO in general works fine !
for testing proxyauth from portal server to my mmp/uwc frontend i run
telnet mfe 143
a1 login admin ********
a2 proxyauth myUserName
a3 select inbox
this works fine ! So this means to me: proxy auth in general works fine !
i added a UWCMailJSPProvider to my portal and changed the property ssoAdapter to my freshly created own adapter (adapUWCmail).
when i logon to my portal and want to access my UWCMailJSPProvider I get:
"Channel has not been configured."
my portal log files says:
[#|2008-01-12T18:42:27.186+0100|INFO|SJS Portal Server|debug.com.sun.portal.ssoadapter.impl|ThreadID=93; ClassName=com.sun.ssoadapter.impl.JavaMailSSOAdapter; MethodName=getConnection; |PSSA_CSSI0032:sso adapter failed to establish connection to mail server
javax.mail.AuthenticationFailedException: Authentication failed
at com.sun.mail.imap.IMAPStore.protocolConnect(Unknown Source)
at javax.mail.Service.connect(Unknown Source)
at com.sun.ssoadapter.impl.JavaMailSSOAdapter.getStore(Unknown Source)
at com.sun.ssoadapter.impl.JavaMailSSOAdapter.getConnection(Unknown Source)
at com.sun.portal.wireless.taglibs.mail.MailContext.initMail(Unknown Source)
at com.sun.portal.wireless.taglibs.mail.MailContext.init(Unknown Source)
at com.sun.portal.wireless.taglibs.base.Context.getContext(Unknown Source)
at com.sun.portal.wireless.taglibs.mail.MailContext.getContext(Unknown Source)
at com.sun.portal.wireless.taglibs.mail.MailContextTag.findContext(Unknown Source)
at com.sun.portal.wireless.taglibs.base.ContextTag.doStartTag(Unknown Source)
at jsps.var._opt._SUNWportal._portals._Pp4._desktop._p4v1_en_US._top_tabs._Comms._UWCmail._html._content_jsp._jspService(_content_jsp.java:361)
at com.sun.portal.providers.jsp.jasper3.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at com.sun.portal.providers.jsp.JspServletWrapper.service(Unknown Source)
at com.sun.portal.providers.jsp.JSPProvider.processJspFile(Unknown Source)
at com.sun.portal.providers.jsp.JSPProvider.processJspFile(Unknown Source)
at com.sun.portal.providers.jsp.JSPProvider.getContent(Unknown Source)
at com.sun.portal.desktop.context.ReusableProviderCaller.run(Unknown Source)
|#]
i run a tcpdump and recognized what my portal server is doing. When i access UWCMailJSPProvider via
my portal i see:
portal server request: a0 apability
server response: <all mailserver capabilities>
portal server request: a1 authenticate plain
server response: +
portal server request: <encrypted stuff>
server response: NO authentication failed
So this seems to be the main problem ! I also checked my mmp/imap log files and i there also found the incorrect login.
I double-checked the proxy admin credentials more that 20 times and i am sure these creds are correctly stored on my
portal server configuration.
Did anybody had similiar issues, or does anybody has an idea how to solve this issue ?
I am out of any new ideas :-(
So many thanks for any ideas !!
cheers
majoThank you very much...
I didn't know that Transport.send creates its own connection! Thanks a lot! -
my ipad 4 don´t turn on, I'm very stressed.
Yesterday i took a photo and when I wanted to see it my ipad is restarted. took too long to turn on and turn off once was.
I've tried many ways to change the lightning cable, pc change, restoring the apple mobile device usb, but itunes still throwing me the error 4005.
I have proven with other software like redsnow but mark me the error as it does not support ios 7.1.2.
when i connect the ipad in Itunes, it says me that my idevice is in recovery mode.
when this happened it was the battery to 100 percentTry this - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430
Frozen or unresponsive iPad
Resolve these most common issues:
• Display remains black or blank
• Touch screen not responding
• Application unexpectedly closes or freezes
http://www.apple.com/support/ipad/assistant/ipad/
iPhone, iPad, iPod Touch: Troubleshooting Touchscreen Response
http://support.apple.com/kb/ts1827
iPad Frozen, not responding, how to fix
http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/
iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
Black or Blank Screen on iPad or iPhone
http://appletoolbox.com/2012/10/black-or-blank-screen-on-ipad-or-iphone/
What to Do When Your iPad Won't Turn On
http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
iOS: Not responding or does not turn on
http://support.apple.com/kb/TS3281
iPad: Basic troubleshooting
http://support.apple.com/kb/TS3274
iOS: Restore errors 4005, 4013, and 4014
http://support.apple.com/kb/TS5314
Cheers, Tom -
Working in firefox, but throwing up errors in IE related to null objects
firefox has no problems with my very simple spry data example but IE throws up the following errors, can anyone help?
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; HPNTDF; InfoPath.2)
Timestamp: Thu, 9 Sep 2010 17:31:34 UTC
Message: 'Spry.Debug' is null or not an object
Line: 961
Char: 41
Code: 0
URI: file:///C:/Users/Gabriel/Documents/My%20Dropbox/GFA/website/dev/friedmanstudios.ca/SpryAss ets/SpryData.js
Message: 'Spry.Data.initRegionsOnLoad' is null or not an object
Line: 4855
Char: 65
Code: 0
URI: file:///C:/Users/Gabriel/Documents/My%20Dropbox/GFA/website/dev/friedmanstudios.ca/SpryAss ets/SpryData.jsin my header:
<script src="SpryAssets/xpath.js" type="text/javascript"></script>
<script src="SpryAssets/SpryData.js" type="text/javascript"></script>
<script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
<script type="text/javascript">
var ds1 = new Spry.Data.XMLDataSet("GFAWORKS.xml", "dataroot/GFAWORKS");
var ds2 = new Spry.Data.XMLDataSet("GFAWORKS.xml", "dataroot/GFAWORKS");
</script>
within a script tag near the end
Spry.$$(".RowContainer").addEventListener("click", function(){ alert("clicked!"); }, false);
earlier on in the body:
<div spry:repeat="ds2" class="RowContainer">
<div class="RowColumn">{Name}</div>
<div class="RowColumn">{Type}</div>
<!-- test for url writing -->
<div class="RowColumn"><a href="{Code}.html">project link</a></div>
<div class="contentPlaceholder"> </div>
</div> -
JNI Application running in ms-dos but throws an exception in applet
Hi! I have a java application which calls a DLL using the JNI. This works perfect if I execute the java program from my command line (in ms-dos) But when I try to do it in an applet, it indeed runs and do everything ok, but at the end of the execution I get a EXECUTION_EXCEPTION.
This is how is working:
1.- jnidllmyclass, this is where I call the native method of my DLL
2.- intermediate DLL which writes to files to c:\temporal and it calls several functions from other DLL
3.- other DLL which writes more files (among other things)
4.- applet class with a call to jnidllmyclass
Now the DLL what does is to open a connection to a usb scanner, then send commands to it to scann somethings, save front and back images to c:\temporal (obviously, all of this is done in the user system, using certificates) and write other file and close the connection. This works! it write the images well and write everything... but after that the exception arises... I have doubt of what is it, because if it does all, what is causing the exception?
Thanks for your help!Hi! Applet can access the DLL. The scanners works, but the C DLL throws an exception. Nevertheless, I've managed to see what was going on. When you click a JButton in a GUI, it enters only one to the actionlistener, but if this is done in an Applet, enters twice, so... the first time worked fine, but the second no because there was nothing to scann.
This theme is a bit creepy, if you want help just ask! I give snippets, not just advices... I hate those people, so fell free to ask.
Greetings! -
Can't Authenticate - but I'm the admin!
I have a problem. I can't authenticate anything that needs an admin password. Take software update for instance. It says 'Type an administrator's name and password to make changes to Software Update.' So I enter my name and my password and it denies it! Here is the context 1) I am the only OSX user (obviously there are other users, mysql, wheel, etc) 2) I am marked as Admin in the 'Accounts' panel.
Here's the clincher: this happened to me yesterday as well. I didn't try to find a suitable answer and I enabled the root user with NetInfo. Then I entered the user 'root' and the root password into my 'Authenticate' window and life was good. I disable the root user and went back to normal life.
But today, I cant do that. Why? Because I have to Authenticate even to enable the root user! My admin longname and shortname both do not work. (Yes, I am sure it is the right password. No, my capslock is not on...)
Any suggestions? I can program perl, so I am not afraid of the command-line if that is what I need to do. (I can still sudo stuff!)
-Nate
Powerbook G3 Mac OS X (10.4.3)My answer was found in Oreilly's 'Mac OSX Tiger for UNIX Geeks'.
Somehow I had removed myself from the admin group.
Here's what I had to do:
sudo dscl . merge /groups/admin users myusername
I tried flushing the lookupd cache, but that didnt work, I had to restart for it to take effect. -
Fire event works ok in NWDS simulator but throws exception in the PDA MI7.1
Hi:
I developed an app, it works OK in NWDS´ simulator but the fireevent explotes when it´s run in the PDA.
Any idea?.
Thanks a lot for your time in this post.
Rocío.Hi Christoph!:
I don´t know why PIOS exception is throw. I comment some lines in my code and what generates this error is the wdfire*event in the main controller.....( event handler was declared but without custom code).
Thanks a lot for your time.
Rocío. -
Reading private key: works in jdk 1.5, but throws exception in 1.4
Hello,
I am trying to read an RSA private key from a file. I am using the following code snippet:
KeySpec spec = new RSAPrivateKeySpec(modulus, pExp);
KeyFactory factory = KeyFactory.getInstance("RSA");
PrivateKey key = factory.generatePrivate(spec);
This runs perfectly fine under jdk 1.5 on keys I generate with OpenSSL. However, if I recompile and run under jdk 1.4, I get the following exception:
java.security.spec.InvalidKeySpecException: Unknown key spec.
at com.sun.net.ssl.internal.ssl.JS_KeyFactory.engineGeneratePrivate(DashoA6275)
at com.sun.net.ssl.internal.ssl.JSA_RSAKeyFactory.engineGeneratePrivate(DashoA6275)
at java.security.KeyFactory.generatePrivate(KeyFactory.java:237)
I have also tried using RSAPrivateCrtKeySpec but I get the same error. Can anyone shed some light on what is going on?
Thank you.'Unlimited Strength Jurisdiction Policy Files 1.4' Could be the solution.
I had a similar problem with java 1.4 and those files do the work.
... finally the problem was that the password that protectd the keystore had 7 characters, using one of 5 characters works ok... -
How do I give a "gift card" but throw the internet directly to another apple ID?
My friend's b-day is today, and I'd like to give him some credits to spend on the mac app store or on the app store... There are any way that I can give him some money by my apple ID to be credit in his apple ID? Thank you!
ok, i've got that... but I wanna give him credits(money) that can spend by his own with things he like... it's possible? Thank you!
-
Query working fine in 9i but throwing an error in Oracle 10g
Hi All,
I am having a query which contains large number of When clauses inside a case statement.
The Same SQL is working fine in 9i, but not working in 10G.
If we try to remove one of the When clause in the query, its working fine else it is giving the error ORA-00939 Too many arguments for functions.
Can any one tell me the solution for this and what is the maximum number of when clauses allowed inside case statemen in oracle 10g.
Thanks in advance
Regards
Karthikit should not have worked in 9iR2... it is correct according to the doc to return an error message when using more than 255 expressions...
SQL> select version from v$instance;
VERSION
9.2.0.7.0
SQL> select case 1
2 when 2 then 3
3 when 4 then 5
4 when 6 then 7
5 when 8 then 9
6 when 10 then 11
7 when 12 then 13
8 when 14 then 15
9 when 16 then 17
10 when 18 then 19
11 when 20 then 21
12 when 22 then 23
13 when 24 then 25
14 when 26 then 27
15 when 28 then 29
16 when 30 then 31
17 when 32 then 33
18 when 34 then 35
19 when 36 then 37
20 when 38 then 39
21 when 40 then 41
22 when 42 then 43
23 when 44 then 45
24 when 46 then 47
25 when 48 then 49
26 when 50 then 51
27 when 52 then 53
28 when 54 then 55
29 when 56 then 57
30 when 58 then 59
31 when 60 then 61
32 when 62 then 63
33 when 64 then 65
34 when 66 then 67
35 when 68 then 69
36 when 70 then 71
37 when 72 then 73
38 when 74 then 75
39 when 76 then 77
40 when 78 then 79
41 when 80 then 81
42 when 82 then 83
43 when 84 then 85
44 when 86 then 87
45 when 88 then 89
46 when 90 then 91
47 when 92 then 93
48 when 94 then 95
49 when 96 then 97
50 when 98 then 99
51 when 100 then 101
52 when 102 then 103
53 when 104 then 105
54 when 106 then 107
55 when 108 then 109
56 when 110 then 111
57 when 112 then 113
58 when 114 then 115
59 when 116 then 117
60 when 118 then 119
61 when 120 then 121
62 when 122 then 123
63 when 124 then 125
64 when 126 then 127
65 when 128 then 129
66 when 130 then 131
67 when 132 then 133
68 when 134 then 135
69 when 136 then 137
70 when 138 then 139
71 when 140 then 141
72 when 142 then 143
73 when 144 then 145
74 when 146 then 147
75 when 148 then 149
76 when 150 then 151
77 when 152 then 153
78 when 154 then 155
79 when 156 then 157
80 when 158 then 159
81 when 160 then 161
82 when 162 then 163
83 when 164 then 165
84 when 166 then 167
85 when 168 then 169
86 when 170 then 171
87 when 172 then 173
88 when 174 then 175
89 when 176 then 177
90 when 178 then 179
91 when 180 then 181
92 when 182 then 183
93 when 184 then 185
94 when 186 then 187
95 when 188 then 189
96 when 190 then 191
97 when 192 then 193
98 when 194 then 195
99 when 196 then 197
100 when 198 then 199
101 when 200 then 201
102 when 202 then 203
103 when 204 then 205
104 when 206 then 207
105 when 208 then 209
106 when 210 then 211
107 when 212 then 213
108 when 214 then 215
109 when 216 then 217
110 when 218 then 219
111 when 220 then 221
112 when 222 then 223
113 when 224 then 225
114 when 226 then 227
115 when 228 then 229
116 when 230 then 231
117 when 232 then 233
118 when 234 then 235
119 when 236 then 237
120 when 238 then 239
121 when 240 then 241
122 when 242 then 243
123 when 244 then 245
124 when 246 then 247
125 when 248 then 249
126 when 250 then 251
127 when 252 then 253
128 when 254 then 255
129 when 256 then 257
130 end x from dual;
X
SQL> select version from v$instance;
VERSION
10.2.0.2.0
SQL> select case 1
2 when 2 then 3
3 when 4 then 5
4 when 6 then 7
5 when 8 then 9
6 when 10 then 11
7 when 12 then 13
8 when 14 then 15
9 when 16 then 17
10 when 18 then 19
11 when 20 then 21
12 when 22 then 23
13 when 24 then 25
14 when 26 then 27
15 when 28 then 29
16 when 30 then 31
17 when 32 then 33
18 when 34 then 35
19 when 36 then 37
20 when 38 then 39
21 when 40 then 41
22 when 42 then 43
23 when 44 then 45
24 when 46 then 47
25 when 48 then 49
26 when 50 then 51
27 when 52 then 53
28 when 54 then 55
29 when 56 then 57
30 when 58 then 59
31 when 60 then 61
32 when 62 then 63
33 when 64 then 65
34 when 66 then 67
35 when 68 then 69
36 when 70 then 71
37 when 72 then 73
38 when 74 then 75
39 when 76 then 77
40 when 78 then 79
41 when 80 then 81
42 when 82 then 83
43 when 84 then 85
44 when 86 then 87
45 when 88 then 89
46 when 90 then 91
47 when 92 then 93
48 when 94 then 95
49 when 96 then 97
50 when 98 then 99
51 when 100 then 101
52 when 102 then 103
53 when 104 then 105
54 when 106 then 107
55 when 108 then 109
56 when 110 then 111
57 when 112 then 113
58 when 114 then 115
59 when 116 then 117
60 when 118 then 119
61 when 120 then 121
62 when 122 then 123
63 when 124 then 125
64 when 126 then 127
65 when 128 then 129
66 when 130 then 131
67 when 132 then 133
68 when 134 then 135
69 when 136 then 137
70 when 138 then 139
71 when 140 then 141
72 when 142 then 143
73 when 144 then 145
74 when 146 then 147
75 when 148 then 149
76 when 150 then 151
77 when 152 then 153
78 when 154 then 155
79 when 156 then 157
80 when 158 then 159
81 when 160 then 161
82 when 162 then 163
83 when 164 then 165
84 when 166 then 167
85 when 168 then 169
86 when 170 then 171
87 when 172 then 173
88 when 174 then 175
89 when 176 then 177
90 when 178 then 179
91 when 180 then 181
92 when 182 then 183
93 when 184 then 185
94 when 186 then 187
95 when 188 then 189
96 when 190 then 191
97 when 192 then 193
98 when 194 then 195
99 when 196 then 197
100 when 198 then 199
101 when 200 then 201
102 when 202 then 203
103 when 204 then 205
104 when 206 then 207
105 when 208 then 209
106 when 210 then 211
107 when 212 then 213
108 when 214 then 215
109 when 216 then 217
110 when 218 then 219
111 when 220 then 221
112 when 222 then 223
113 when 224 then 225
114 when 226 then 227
115 when 228 then 229
116 when 230 then 231
117 when 232 then 233
118 when 234 then 235
119 when 236 then 237
120 when 238 then 239
121 when 240 then 241
122 when 242 then 243
123 when 244 then 245
124 when 246 then 247
125 when 248 then 249
126 when 250 then 251
127 when 252 then 253
128 when 254 then 255
129 when 256 then 257
130 end x from dual;
when 16 then 17
ERROR at line 9:
ORA-00939: too many arguments for function
SQL> del 129
SQL> /
X
---------- -
Analytical function fine within TOAD but throwing an error for a mapping.
Hi,
When I validate an expression based on SUM .... OVER PARTITION BY in a mapping, I am getting the following error.
Line 4, Col 23:
PLS-00103: Encountered the symbol "OVER" when expecting one of the following:
* & = - + < / > at in is mod remainder not rem then
<an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
LIKE4_ LIKEC_ between || multiset member SUBMULTISET_
However, using TOAD, the expression is working fine.
A staging table has got three columns, col1, col2 and col3. The expression is checking for a word in col3. The expression is as under.
(CASE WHEN SUM (CASE WHEN UPPER(INGRP1.col3) LIKE 'some_value%'
THEN 1
ELSE 0
END) OVER (PARTITION BY INGRP1.col1
,INGRP1.col2) > 0
THEN 'Y'
ELSE 'N'
END)
I searched the forum for similar issues, but not able to resolve my issue.
Could you please let me know what's wrong here?
Many thanks,
Manoj.Yes, expression validation in 10g simply does not work for (i.e. does not recognize) analytic functions.
It can simply be ignored. You should also set Generation mode to "Set Based only". Otherwise the mapping will fail to deploy under certain circumstances (when using non-set-based (PL/SQL) operators after the analytic function). -
IOS Remote Desktop App resolves hostname but throws Host is not reachable error.
Hello,
I am trying to use the Remote Desktop app on my iPad running iOS 7.0.2 to connect to a server through our Juniper VPN. When I type the hostname or IP address I get an error that say "Host is not reachable". If I connect through my Mac I have no
problem when on the same VPN. I have looked through all of the setting in Junos Pulse and it is setup to route all traffic through the VPN, and I do not know of anything that would be blocking it on the network end.
Edit: I am connecting to a Windows Server 2008 R2 box with RDP turned on with all types of connections.
Here is the log data for my latest attempt.
[2013-Nov-19 11:23:42] RDP (0): *** Application lauched ***
[2013-Nov-19 11:23:43] RDP (0): Application became foreground application
[2013-Nov-19 11:24:30] RDP (0): ----- BEGIN ACTIVE CONNECTION -----
[2013-Nov-19 11:24:30] RDP (0): client version: 8.0.24094 on iPad3,4 (iPhone OS 7.0.3)
[2013-Nov-19 11:24:30] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
[2013-Nov-19 11:24:30] RDP (0): Showing credentials dialog
[2013-Nov-19 11:24:49] RDP (0): Final rdp configuration used: {
activeUsername = "DOMAIN\\UserName";
arcTimeout = 1800;
cacheId = BEBD1725D63BB841;
configurationVersion = 8;
console = 0;
host = "server.mysite.com";
label = "Server";
mouseMode = "-1";
port = 3389;
soundMode = 1;
swapMouseButtons = 0;
type = rdp;
utilityBar = "-1";
kCFProxyTypeKey = kCFProxyTypeNone;
[2013-Nov-19 11:24:49] RDP (0): --- BEGIN INTERFACE LIST ---
[2013-Nov-19 11:24:49] RDP (0): lo0 af=18 addr= netmask=
[2013-Nov-19 11:24:49] RDP (0): lo0 af=30 (AF_INET6) addr=::1 netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
[2013-Nov-19 11:24:49] RDP (0): lo0 af=2 (AF_INET) addr=127.0.0.1 netmask=255.0.0.0
[2013-Nov-19 11:24:49] RDP (0): lo0 af=30 (AF_INET6) addr=fe80::1%lo0 netmask=ffff:ffff:ffff:ffff::
[2013-Nov-19 11:24:49] RDP (0): en0 af=18 addr= netmask=
[2013-Nov-19 11:24:49] RDP (0): en0 af=30 (AF_INET6) addr=fe80::66:9d3c:3d77:5cce%en0 netmask=ffff:ffff:ffff:ffff::
[2013-Nov-19 11:24:49] RDP (0): en0 af=2 (AF_INET) addr=192.168.114.44 netmask=255.255.252.0
[2013-Nov-19 11:24:49] RDP (0): awdl0 af=18 addr= netmask=
[2013-Nov-19 11:24:49] RDP (0): awdl0 af=30 (AF_INET6) addr=fe80::3c11:d7ff:feb2:7a82%awdl0 netmask=ffff:ffff:ffff:ffff::
[2013-Nov-19 11:24:49] RDP (0): en2 af=18 addr= netmask=
[2013-Nov-19 11:24:49] RDP (0): utun0 af=18 addr= netmask=
[2013-Nov-19 11:24:49] RDP (0): utun0 af=2 (AF_INET) addr=10.100.01.01 netmask=255.255.255.255
[2013-Nov-19 11:24:49] RDP (0): --- END INTERFACE LIST ---
[2013-Nov-19 11:24:49] RDP (0): Not using any proxy
[2013-Nov-19 11:24:49] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
[2013-Nov-19 11:24:49] RDP (0): Resolved 'server.mysite.com' to '10.100.01.01' using NameResolveMethod_Unknown(0)
[2013-Nov-19 11:25:09] RDP (0): Exception caught: Exception in file '/Users/build/jenkins/workspace/rc-ios-develop/protocols/RDP/cftcpendpoint.cpp' at line 242
User Message : Host is not reachable
[2013-Nov-19 11:25:09] RDP (0): Error message: Host is not reachable(phase: 0, type: 0, reason: 0, systemCode: -1, systemMessage: )
[2013-Nov-19 11:25:09] RDP (0): Protocol state changed to: ProtocolDisconnecting(7)
[2013-Nov-19 11:25:09] RDP (0): Protocol state changed to: ProtocolDisconnected(8)
[2013-Nov-19 11:25:09] RDP (0): ------ END ACTIVE CONNECTION ------
CameronHi,
According to the log, your iPad tried to connect the remote server with IP address 10.100.01.01/32. Please check if it is the correct IP address of the server.
Also, please make sure that your iPad can connect to your VPN network successfully and get a valid IP address so that it can remote your internal server.
Thanks.
Jeremy Wu
TechNet Community Support -
Error in MB1C but works perfectly in MIGO for movement type 501.
Hi
I get an error in MB1C but works perfectly in MIGO for movement type 501
here is the error Account 353300 requires an assignment to a CO object.
I know for this if we add the co object in OKB9 it works.
But my question is - how it works in MIGO transaction but throws an error in MB1C
Any idea ? has any one faced this kind of an issue ? Please let me know.
Thanks
DkmurthyHi
Are the entires same in both the transactions? Means did you check 353300 GL was hit when you posted through MIGO?
Check in FS00 - for GL account 353300 - under bank/interest tab - double click on field status variant -> under Additional account assignments - CO object is ticked as mandatory?
Thanks
Maybe you are looking for
-
HP Password Encryption Utility
Hi There, I have HP Z230 Workstation. I want to use HP Password Encryption Utility to create a BIOS password which will be saved in an encrypted file. I have downloaded the SoftPaq from HP website (sp69088) but after installation of this SoftPaq I a
-
[Question] New Button from Toolbar which creates a new Outlook Mail?
Hello together, I am faced with an issue by using a button from the toolbar in order to create a new outlook mail. Do you know the functionality from html? href="mailto:email@email?subject=CRM%20Feedback&body=Bereich%20(z.B.%20Opportunity%.... This c
-
Cannot Connect iPod to Itunes or Computer
When i connect my ipod through the usb port, nothing comes up on itunes or my computer to say it is connected and i can begin synching my music. Any help?
-
Hi all, am going to do "Oracle Database 10g : Performance Tuning" course in an workforce development program institute. they said i will get a voucher from them.may i use the voucher to write any exam ? Or is their any limits.In simple,is those vouch
-
IMovie import stopped working on my account
I am using iMovie V 8.0.5 on a Mac Mini with Snow Leopard. After a few days of use, the "Import Movie" function started hanging (beach ball) when the form is displayed. Also, no files show in the folder area. This only happens in my account (Admin),