How to resolve arrayoutofbounds exception on android?
public void fetchcontent() throws IOException
this.open();
ContentValues values = new ContentValues();
String csvFilename = "/mnt/sdcard/content.csv";
// ArrayList<String> al=new ArrayList();
CSVReader csvReader = new CSVReader(new FileReader(csvFilename));
//String row[] = null;
while((row = csvReader.readNext()) != null) {
st1 = row[0];
values.put(DatabaseHandler.Column1,st1);
st2= row[1];
values.put(DatabaseHandler.Column2,st2);
st3= row[2];
values.put(DatabaseHandler.Column3,st3);
st4= row[3];
values.put(DatabaseHandler.Column4,st4);
st5= row[4];
values.put(DatabaseHandler.Column5,st5);
database.insert(DatabaseHandler.Table_Name, null, values);
csvReader.close();
MainActivity.tt1.append("\ncontent table created");
this is my code for inserting data into a table i have created by i am getting arrayoutofbounds exception ..i am a newbiee please guys help..............................
this is the logcat output
02-21 16:27:54.308: E/AndroidRuntime(12511): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.webdata/com.example.webdata.MainActivity}: java.lang.ArrayIndexOutOfBoundsException: length=3; index=3
Hi.
Please always specify the version of JDeveloper you are using when you post.
You are getting this message because the call to <tt>csvReader.readNext()</tt> returns an array with three elements instead of four at least once. You should check your CSV file to see if it contains invalid rows.
Best Regards,
Frédéric.
Similar Messages
-
How to resolve Server Exception during PPR, #16 ?
Hi,
I am getting below stack trace while filtering on table's column.
First time filter is working fine but second time onwards its giving this stack trace and after that everything become stop and I have to reload the whole page again.
<RegistrationConfigurator><handleError> Server Exception during PPR, #16
java.lang.IllegalStateException
at oracle.jbo.uicli.binding.JUSearchBindingCustomizer.getViewCriteria(JUSearchBindingCustomizer.java:2100)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$QueryDescriptorImpl.getFilterCriteria(FacesCtrlSearchBinding.java:1281)
at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer._getFilterCriteria(BaseColumnRenderer.java:1466)
at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.decodeInternal(BaseColumnRenderer.java:730)
at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:293)
at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1107)
at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:701)
at oracle.adfinternal.view.faces.renderkit.rich.table.BaseTableRenderer.decodeColumns(BaseTableRenderer.java:1705)
at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.decodeInternal(TableRenderer.java:124)
at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:293)
at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1107)
at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:701)
at org.apache.myfaces.trinidad.component.UIXTable.decode(UIXTable.java:137)
at org.apache.myfaces.trinidad.component.UIXCollection.processDecodes(UIXCollection.java:187)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ApplyRequestValuesCallback.invokeContextCallback(LifecycleImpl.java:1175)
at org.apache.myfaces.trinidad.component.UIXCollection.invokeOnComponent(UIXCollection.java:1030)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1319)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1369)
at org.apache.myfaces.trinidad.component.UIXDecorateCollection.invokeOnComponent(UIXDecorateCollection.java:121)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1319)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1413)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1319)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1413)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1319)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1413)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1319)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1413)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1319)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1413)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1319)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1413)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1319)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1413)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1319)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1413)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1319)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1369)
at oracle.adf.view.rich.component.fragment.UIXRegion.invokeOnComponent(UIXRegion.java:544)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1319)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1413)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1319)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1413)
at oracle.adf.view.rich.component.rich.RichDocument.invokeOnComponent(RichDocument.java:161)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:313)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
I have dragged and dropped table 2-3 times but getting same problem.
What could be the problem.
regards,
devangHi, I have resolve the problem, the solution, if you uses component TABLE is write in your Backing Bean :
RichTable table = this.getT1();
table.setDisplayRow(table.DISPLAY_ROW_FIRST);
too, you can config from IDE JDEVELOPER -> Porperty Inspector : DisplayRow = First
Greetings from LA PAZ - BOLIVIA -
Dear All,
i want to edit the data when i do the action on button.
for this i wrote the code like this:
try
PreparedStatement ps =
this.getOADBTransaction().getJdbcConnection().prepareStatement("update xxcrm_costsheet_t set approved_status='C' where OPCS_COSTSHEETID=?");
ps.setInt(1, cstid);
ps.executeUpdate();
ps.close();
this.getDBTransaction().commit();
} catch (Exception e)
System.out.println("the exception is" + e);
i am getting the following error only i will try to commit the changes.
i don't know y am getting the error:
pls guide me:
I hope u will help me.
Thanks in Advance
AnushaHi,
Use This Code
try
PreparedStatement ps =
this.getOADBTransaction().getJdbcConnection().prepareStatement("update xxcrm_costsheet_t set approved_status='C' where OPCS_COSTSHEETID=?");
ps.setInt(1, cstid);
ps.executeUpdate();
this.getOADBTransaction().commit();
catch (Exception e)
System.out.println("the exception is" + e);
finally
try
ps.close();
catch(Exception e1)
System.out.println("the exception is" + e1);
Thanks,
Gaurav -
How to resolve resource exception in a web-service
Hi
I have created a web-service which is using KM .It is giving resource exception.
What application references should be added ?I have already included security-api ,
com.sap.km.trex.client and com.sap.km.application.
Thanks in advance.Hi Shaily,
maybe you forgot to add the cluster.jar to your Web Service project.
Here you will find a good tutorial for creating web services based on portal applications:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca4ce590-0201-0010-0ab8-a15f313012d8
Bye Steve -
How to resolve preverifying class exception while building
Hi,
I am new to J2ME, i am getting preverifying class exception when ever building a application using Wireless Toolkit 2.1, JDK1.5, CLDC 1.1.
actually i need to run web application on mobiles (PDA), can any one suggests how to resolve the above exception and what are the jar files required in classpath.
Please let me know.
Thanks
ST_Reddy.Then leave it as it is. If the method doesn't throw the exception it is not a problem.
If you need to throw the exception in some rare cases, then throw RuntimeException. It is not required to declare such exception in interface. -
I am no longer able to double click on a file and have it open. Any suggestions on how to resolve this problem?
Please read this whole message before doing anything.
This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
Test while in safe mode. Same problem?
After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test. -
Please advise how to resolve error message - cannot be synced because it cannot be read from or written to.
Hello Janet,
I would recommend this article named 'Disk cannot be read from or written to' when syncing iPod or 'Firmware update failure' error when updating or restoring iPod found here http://support.apple.com/kb/ht1207
Outdated operating system software
Make sure you have the latest updates for your operating system, which may include improvements for device connections. For example, many USB and FireWire improvements have been included in Windows Service Packs.Check for Mac OS X downloads. Check for Windows updates.
Computer needs updates
Make sure you have the latest updates available for your specific computer model (or components for home-built PCs). These are usually available for download on the support website for the maker of the PC (or component). Many USB updates are listed as "Intel chipset" or just "chipset" updates on PC manufacturer's support and download websites.
Software interference
Some software can interfere with iTunes, making it unable to write files to your iPod. Think about what software you have installed, and try disabling any add-ons that might be interfering with iTunes. Check your suspected software's documentation or contact the software maker if you need assistance with disabling the application. Out-of-date or incorrectly configured security software frequently causes this issue. See these steps for identifying and troubleshooting third-party security software.
Damaged files
If one of your music files or photos is damaged, iTunes may display one of these errors when transferring that file to the iPod. If you identify a file that is causing the error, try deleting that file and reimporting it from a backup file or from the original source. You may be able to repair files by repairing the disk (see the solutions in the next section).
Unregistered .dll files (Windows)
Malware or other software may cause an issue with the digital signing of Windows XP drivers. First try restoringthe iPod using the latest version of iTunes.. If you are unable to restore it or the symptom reappears, follow the steps in this document.
Damaged disk structure
These errors can also appear if the format of your computer's hard drive or your iPod disk is damaged.
To repair your computer's hard disk—Mac OS X users, read this article for instructions. Windows users, search the Help system in Windows for chkdsk to get more information on checking and repairing the disk structure.
To repair an iPod disk—Restore the iPod or iPod shuffle using the latest version of iTunes.
Warning: Be sure to back up your data before restoring an iPod. The restore process cannot be undone. All of your songs and files will be deleted.
Corrupt iPod photo Cache
If you're getting the error when transferring photos to an iPod photo, try deleting the iPod photo Cache and then starting the photo sync again.
Lost connection
Make sure that the connections from your computer to the iPod are snug and do not wiggle or come loose during transfers. For example, if you use the wrong size dock for your iPod, it can put strain on the connectors and cause a bad connection. See these articles for more information:
Learn about iPod Universal Dock
iPod Dock: Specifications
Conflict with third-party hardware
Third-party USB or FireWire devices may also interfere with iTunes' ability to communicate with your iPod. Remove all USB and FireWire devices except the keyboard and mouse before reconnecting your iPod to the computer.
Bad hardware
Hardware failure or non-compliant hardware can cause these errors. This could be an issue with iPod hardware or with the cable or dock you're using, but more often it's an issue with the USB or FireWire card or interface in your computer. Some USB and FireWire interfaces just don't work very well. If you isolate the issue to the USB or FireWire interface in your computer, you may want to try a different port, get the computer serviced, or replace the card or interface with a better one.
If you isolate the issue to an Apple-supplied cable or dock, or the iPod itself, you can get it serviced here.
Take care,
Sterling -
How to resolve 401 error in HWC SMP2.3
Hi All,
I did a login Sample with username and password. till now it is working fine but suddenly it is throwing 401 error,
Below are my logs.
20140501T145911.752|3|zalyjwtjnccw Mydata:1 -- username: supAdmin|||||3296
20140501T145911.752|3|zalyjwtjnccw Mydata:1 -- password: [xxxxxxxx]|||||3296
20140501T145912.792|1|zalyjwtjnccw Mydata:1 -- Request failed|||||3296
20140501T145912.809|1|zalyjwtjnccw Mydata:1 -- Request: <M><H></H><S>Start</S><A>submit</A><VS><V k="username_key" t="T">FATIMA</V><V k="password_key" t="T">welcome123456</V><V k="ErrorLogs" t="L" /></VS></M>|||||3296
20140501T145912.809|1|zalyjwtjnccw Mydata:1 -- ResponseHeader: {"id":"72861383ff6f468ea87f780be40791b7","cid":"8#Mydata:1","pv":"4","sig":"06bf13bf8f834f9ebc2bb2129bd8a603","loginFailed":true,"method":"searchFailed","log":"[{\"level\":5,\"code\":401,\"timestamp\":\"2014-05-01 14:59:12.773\",\"message\":\"Login Failed: user 'supAdmin'\",\"component\":\"fnduser\",\"_op\":\"C\",\"requestId\":\"72861383ff6f468ea87f780be40791b7\",\"operation\":\"search\"}]","mbo":"fnduser","app":"Mydata:1","pkg":"sample:1.0"}|||||3296
I did some r & d i got this link SyBooks Online
my connections were correct, i am able to connect the database still it is showing the same exception.
How to resolve this.
Thanks & Regards,
Sravanya.Jitendra & Midhun,
1. I am able to login the SCC with supAdmin & 12345678 credentials.
2. Yes, i am using the admin security.
3. Yes, i am connecting the SUP server from my workspace.
4. No, i did not select the Dynamic credentials Option.
1. I created a MBO with a oracle function i.e.,
select apps.fnd_web_sec.validate_login(:uname, :pwd) from Dual1
2. Then for Uname & Pwd i created two personalization keys which are with storage type "Transient".
3. I deployed the MBO in server, that is successful.
4. Then I created a Hybrid App Designer, with two editboxes(Username & Password) and one button(Login).
5. I gave the type of Login button is OnlineRequest, selected the MBO, and checked the radio button of ObjectQuery, selected ' findall '.
6. Then i mapped the personalization keys to two editboxes(Username & Password).
7. Then i gave success screen and generated error screen.
8. Then i generated the hybrid app, it was also successful.
9. Now i am able to access my application in my Simulator with the registered device of SCC.
10. Then i gave the Username & Password, clicked on Login button, then it is throwing 401 error.
Thanks & Regards,
Sravanya.K -
How to resolve "getPooledConn: No more connections in the pool for Host"
I am using the wl9.1 proxy in a SunOne WebServer 6.1 (solaris), and I regularly get this error:
getPooledConn: No more connections in the pool for Host
I found several postings with this error, but no reactions on how to solve this.
in the proxy log, I see this info:
================New Request: [wls-app/page.do] =================
Tue Nov 13 13:05:30 2007 <18781194955530286> CookieName is deprecated and replaced by WLCookieName
Tue Nov 13 13:05:30 2007 <18781194955530286> Uri as read from rq (request) data structure /wls-app/page.do
Tue Nov 13 13:05:30 2007 <18781194955530286> Uri after pathTrim /wls-app/page.do
Tue Nov 13 13:05:30 2007 <18781194955530286> Uri resolved to /wls-app/page.do?page=messages
Tue Nov 13 13:05:30 2007 <18781194955530286> resolveRequest return code is [0]
Tue Nov 13 13:05:30 2007 <18781194955530286> URI=[wls-app/page.do?page=messages]
Tue Nov 13 13:05:30 2007 <18781194955530286> INFO: SSL is not configured
Tue Nov 13 13:05:30 2007 <18781194955530286> Found cookie from cookie header: wlsappCookie=H5TccKpNWGqfnvv2wG1znjmJkqNhMyhct0h93HDgfGnc7phpkdxW!-1488879380!864729474
Tue Nov 13 13:05:30 2007 <18781194955530286> Parsing cookie wlsappCookie=H5TccKpNWGqfnvv2wG1znjmJkqNhMyhct0h93HDgfGnc7phpkdxW!-1488879380!864729474
Tue Nov 13 13:05:30 2007 <18781194955530286> getpreferredServersFromCookie: [-1488879380!864729474]
Tue Nov 13 13:05:30 2007 <18781194955530286> primaryJVMID: [-1488879380]
secondaryJVMID: [864729474]
Tue Nov 13 13:05:30 2007 <18781194955530286> No of JVMIDs found in cookie: 2
Tue Nov 13 13:05:30 2007 <18781194955530286> Trying to locate Primary or Secondary using SrvrInfo with JVMID: -1488879380
Tue Nov 13 13:05:30 2007 <18781194955530286> getPreferredFromCookie: Found Primary 10.0.0.102:8514:0
Tue Nov 13 13:05:30 2007 <18781194955530286> Trying to locate Primary or Secondary using SrvrInfo with JVMID: 864729474
Tue Nov 13 13:05:30 2007 <18781194955530286> getPreferredFromCookie: Found Secondary 10.0.0.101:8514:0
Tue Nov 13 13:05:30 2007 <18781194955530286> getPreferredFromCookie: Found 2 servers
Tue Nov 13 13:05:30 2007 <18781194955530286> attempt #0 out of a max of 5
Tue Nov 13 13:05:30 2007 <18781194955530286> trying connect to PRIMARY '10.0.0.102'/8514/0
Tue Nov 13 13:05:30 2007 <18781194955530286> getPooledConn: No more connections in the pool for Host[10.0.0.102] Port[8514] SecurePort[0]
Tue Nov 13 13:05:30 2007 <18781194955530286> INFO: New NON-SSL URL
Tue Nov 13 13:05:30 2007 <18781194955530286> Connect returns -1, and error no set to 150, msg 'Operation now in progress'
Tue Nov 13 13:05:30 2007 <18781194955530286> EINPROGRESS in connect() - selecting
Tue Nov 13 13:05:30 2007 <18781194955530286> Local Port of the socket is 64242
Tue Nov 13 13:05:30 2007 <18781194955530286> Remote Host 10.0.0.102 Remote Port 8514
Tue Nov 13 13:05:30 2007 <18781194955530286> created a new connection to preferred server '10.0.0.102/8514' for '/wls-app/page.do?page=messages', Local port: 64242
Tue Nov 13 13:05:30 2007 <18781194955530286> WLS info : 10.0.0.102:8514 recycled? 0
Tue Nov 13 13:05:30 2007 <18781194955530286> Adding header for WLS 'WL-Proxy-Client-Cert: ###
---removed client cert info---
Tue Nov 13 13:10:30 2007 <18781194955530286> *******Exception type [READ_TIMEOUT] (no read after 300 seconds) raised at line 205 of Reader.cpp
Tue Nov 13 13:10:30 2007 <18781194955530286> caught exception in readStatus: READ_TIMEOUT [os error=0, line 205 of Reader.cpp]: no read after 300 seconds at line 822
Tue Nov 13 13:10:30 2007 <18781194955530286> PROTOCOL_ERROR: Backend Server not responding - isRecycled:0
Tue Nov 13 13:10:30 2007 <18781194955530286> *******Exception type [PROTOCOL_ERROR] (Backend Server not responding) raised at line 842 of URL.cpp
Tue Nov 13 13:10:30 2007 <18781194955530286> got PROTOCOL_ERROR exception in sendRequest phase at line 1364; Msg: PROTOCOL_ERROR [line 842 of URL.cpp]: Backend Server not responding
Tue Nov 13 13:10:30 2007 <18781194955530286> request [wls-app/page.do?page=messages] did NOT process successfully..................
Does anyone know how to resolve this issue ?
Thanks,
Cappaert LucWe are seeing a similar connection pool error captured in the WL proxy log doing load testing. Is there an answer to this question of how to increase this pool size?
Fri Jan 16 14:59:02 2009 <535212321359422334> Trying a pooled connection for '191.228.175.226/7003/0'
Fri Jan 16 14:59:02 2009 <535212321359422334> getPooledConn: No more connections in the pool for Host[191.228.175.226] Port[7003] SecurePort[0]
Fri Jan 16 14:59:02 2009 <535212321359422334> general list: trying connect to '191.228.175.226'/7003/0 at line 1319 for '/SIT-cccpol/PTGadget/SetCookies.jsp'
Fri Jan 16 14:59:02 2009 <535212321359422334> INFO: New NON-SSL URL
Fri Jan 16 14:59:02 2009 <535212321359422334> Connect returns -1, and error no set to 10035, msg 'Unknown error'
Fri Jan 16 14:59:02 2009 <535212321359422334> EINPROGRESS in connect() - selecting
Fri Jan 16 14:59:02 2009 <535212321359422334> Local Port of the socket is 2097
Fri Jan 16 14:59:02 2009 <535212321359422334> Remote Host 191.228.175.226 Remote Port 7003 -
How to resolve Unexpected End of file error in Web Crawling
how to resolve Unexpected End of file error in Web Crawling....
I am getting java.net.SocketException :Unexpected End of file error in Web Crawling.
How to get rid of this error.
Please help anybody ASAP.1. Handle this exception - not recommended since you will be creating an exception handling overhead unnecessarily.
2. Check for EOF using available() method in InputStream. It returns 0 if there are no bytes to read. -
I'm in the process of publishing the following note (134280.1), titled "How to Resolve ORA-29532 Java 2
Permission Problems in RDBMS 8.1.6 and 8.1.7".
It will be accessible from Oracle Support's "Metalink" site.
"How to Resolve ORA-29532 Java 2 Permission Problems in RDBMS 8.1.6 and 8.1.7".
Problem Description
Periodically an application running in the Enterprise Java Engine
(EJE) formerly known as the "Oracle 8i JVM", "the JSERVER component", or
the "Aurora JVM" will fail with a "java 2" permissions error having the
following format :
Note : Message shown below have been reformatted for easier readability.
java.sql.SQLException: ORA-29532: Java call terminated by uncaught Java exception:
usually followed by a detailed error message similar to one of the following
messages :
Example # 1
java.security.AccessControlException: the Permission
(java.net.SocketPermission hostname resolve)
has not been granted by dbms_java.grant_permission to
SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
Example # 2
java.security.AccessControlException: the Permission
(java.util.PropertyPermission * read,write)
has not been granted by dbms_java.grant_permission to
SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
Example # 3
java.security.AccessControlException: the Permission
(java.io.FilePermission \matt1.gif read)
has not been granted by dbms_java.grant_permission to
SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
Explanation
The java 2 permission stated in line # 2 of each of the above "Examples"
has not been granted to the user specified in line 4 of the above "Examples".
Solution Description
The methodology to solve this issue is identical for all java 2 permissions
cases.
1) Format a call "dbms_java.grant_permission" procedure as described below.
2) Logon as SYS or SYSTEM
3) Issue the TWO commands shown below
4) Logoff as SYS or SYSTEM
5) Retry your application
For Example # 1
1) Logon as SYS or SYSTEM
2) Issue the following commands :
a) call dbms_java.grant_permission('SCOTT',
'java.net.SocketPermission',
'hostname',
'resolve');
b) commit;
Note: Commit is mandatory !!
3) Logoff as SYS or SYSTEM
4) Retry your application
For Example # 2
1) Logon as SYS or SYSTEM
2) Issue the following commands :
a) call dbms_java.grant_permission('SCOTT',
'java.util.PropertyPermission',
'read,write');
b) commit;
Note: Commit is mandatory !!
3) Logoff as SYS or SYSTEM
4) Retry your application
For Example # 3
1) Logon as SYS or SYSTEM
2) Issue the following commands :
a) call dbms_java.grant_permission('SCOTT',
'java.io.FilePermission',
'\matt1.gif',
'read');
b) commit;
Note: Commit is mandatory !!
3) Logoff as SYS or SYSTEM
4) Retry your application
References
For more details on java 2 permissions and security within the EJE, review
Chapter 5, in the Java Developer's Guide. entitled,
"Security For Oracle8i Java Applications"
The RDBMS 8.1.7 version can be found at :
http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/index.htmHi, Don,
I solved the problem of security exception I mentioned at java procedure topic as following:
ORA-29532: Java call terminated by uncaught Java exception: java.lang.SecurityException
I tried to use your solution as following:
call dbms_java.grant_permission('SDE', 'java.net.SocketPermission', 'ORCL.COHPA.UCF.EDU','resolve');
but SQL*plus gave me a error message:
invalid collumn.
What's the problem?
However, I call a grant command as following:
SQL> grant JAVASYSPRIV to sde;
and then that exception is gone. What's the difference between dbms_java.grant_permission and grant command?
Thanks
Bing
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by don -- oracle support:
I'm in the process of publishing the following note (134280.1), titled "How to Resolve ORA-29532 Java 2
Permission Problems in RDBMS 8.1.6 and 8.1.7".
It will be accessible from Oracle Support's "Metalink" site.
"How to Resolve ORA-29532 Java 2 Permission Problems in RDBMS 8.1.6 and 8.1.7".
Problem Description
<HR></BLOCKQUOTE>
null -
How to resolve the problem of "Update was terminated" when posting
hello,
please give me a favor. I met a big problem when running FB01, the system give me the error message: Express document "Update was terminated" received from author. I test all clients, all of them have the same problem, how to resolve.
I use SAP ECC6.0 IDES, the error messages recorded by SM16 are:
DDIC_TYPE_INCONSISTENCY
SAPLGIVA
FGVALATT
16
//bas/700_REL/src/krn/runt/abucutil.c#2
ab_RxDdicTypeError
1053
20070528145604
8176
81920
0
37628064
3299600
879552
DG
SAP (R) - R/3(TM) Callstack, Version 1.0
Copyright (C) SAP AG. All rights reserved.
Callstack without Exception:
App : disp+work.EXE (pid=5564)
When : 5/28/2007 14:56:4.843
Threads : 2
Computer Name : EXXEPT01
User Name : SAPServiceER1
Number of Processors: 2
Processor Type: x86 Family 6 Model 15 Stepping 6
Windows Version : 5.2 Current Build: 3790
State Dump for Thread Id d10
eax=00000201 ebx=00000484 ecx=00000210 edx=04bcf0de esi=00000484 edi=00000000
eip=7c82ed54 esp=053cd608 ebp=053cd678 iopl=0 nv up ei pl zr na po nc
eip=7c82ed54 esp=07e5fec0 ebp=07e5ff04 iopl=0 nv up ei pl zr na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000246
function : KiFastSystemCallRet
7c82ed54 c3 ret
7c82ed55 8da42400000000 lea esp,[esp] ss:07e5fec0=7c821514
7c82ed5c 8d642400 lea esp,[esp] ss:29d6e4d3=????????
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
07e5ff04 010f51e5 000006e0 00000000 00000000 0613e580 ntdll!KiFastSystemCallRet
07e5ff84 7c349565 00000000 00000000 00000000 0613e618 disp+work!SigIMsgFunc [signt.c (594)]
07e5ffb8 77e66063 0613e618 00000000 00000000 0613e618 MSVCR71!endthreadex
07e5ffec 00000000 7c3494f6 0613e618 00000000 00000000 kernel32!GetModuleFileNameA
-cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00200246
function : KiFastSystemCallRet
7c82ed54 c3 ret
7c82ed55 8da42400000000 lea esp,[esp] ss:053cd608=7c822124
7c82ed5c 8d642400 lea esp,[esp] ss:272dbc1b=????????
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
053cd678 77e6ba12 00000484 ffffffff 00000000 053cd6ac ntdll!KiFastSystemCallRet
053cd68c 0100a516 00000484 ffffffff 00000002 00000001 kernel32!WaitForSingleObject
053cd6ac 0055ab69 0055aba2 7c38b5c8 7c38b5c8 7c38b5c8 disp+work!NTDebugProcess [ntstcdbg.c (449)]
053cd6b0 0055aba2 7c38b5c8 7c38b5c8 7c38b5c8 01d28c78 disp+work!NTStack [dptstack.c (1365)]
053cd6cc 0055abd6 7c38b5c8 00000000 00852a87 7c38b5c8 disp+work!CTrcStack2 [dptstack.c (352)]
053cd6d8 00852a87 7c38b5c8 00000000 005f0059 00310030 disp+work!CTrcStack [dptstack.c (182)]
053cd6fc 00855dd9 00000020 a02899f8 a02b037c 00000000 disp+work!rabax_CStackSave [abrabax.c (6842)]
053cd7d4 007fa810 0141ec20 0141ebf0 0000041d 203ec5e0 disp+work!ab_rabax [abrabax.c (1213)]
053cd7ec 00a1d65f a0284050 0000007b 053cd868 00000000 disp+work!ab_RxDdicTypeError [abucutil.c (1053)]
053cd818 00a1d747 a02a4fe0 a02a4fe0 a02a4fe0 00000000 disp+work!FirstLevelChildCnt [scsypar.c (3423)]
053cd894 00a1dca1 053cd8cc a02a4fe0 053d0d20 053d0ce4 disp+work!UcTypeToTree [scsypar.c (3578)]
053d0d28 00a1dd69 053d0d44 a02a4fe0 00000000 a02a4fe0 disp+work!UcTypeToFragView [scsypar.c (3845)]
053d0d70 00a170f0 a02a4fe0 104e3ac8 00000000 00a0cfa7 disp+work!sc_tparUcFragView [scsypar.c (3897)]
053d0d80 00a0cfa7 a02a4fe0 00000000 0295d6d4 a01bc106 disp+work!sc_loadflds [scsytyp.c (813)]
053d0d9c 00a1aafa a01bc106 0295d6d4 00000000 0295d6d4 disp+work!sc_ddictab [scsyddic.c (166)]
053d0ef8 00a1b4f8 00000004 053d0f20 a01bc106 0295d6d4 disp+work!simple_type_find_1 [scsytyp.c (2999)]
053d0f24 00a1b762 a01bc106 00000004 0295d6d4 0000000b disp+work!sc_complex_type_find [scsytyp.c (2621)]
053d0f4c 00a13e2b a01bc106 0000000b 00000000 0295d6d4 disp+work!sc_ctypid [scsytyp.c (2447)]
053d0f6c 00b8c83a 00000001 00000005 00000002 053d7a1c disp+work!sc_typid [scsymb.c (1733)]
053d79d4 009d2f1d 000000d1 0294d7d4 02939df8 02939d94 disp+work!rs_expan_abap [rsabap32.c (1241)]
053d79e8 00a08072 000000d1 053d7b04 a01bc0f4 00000000 disp+work!sc_expan [rsyn6.c (2228)]
053d7adc 00a076df 00000000 053d7b04 00000000 00000005 disp+work!parse [rsyn4.c (1398)]
053d7b1c 00a5c027 00000076 00000000 00000001 00000001 disp+work!sc_check [rsyn4.c (402)]
053d816c 00b2b436 00000000 06474310 06495096 00000000 disp+work!sc_inclu [rsyn31.c (1675)]
053debd4 009d2f1d 00000076 0294d7d4 02939124 02939114 disp+work!rs_expan_abap [rsabap31.c
053debe8 00a08072 00000076 053ded04 a01ae0f0 00000000 disp+work!sc_expan [rsyn6.c (2228)]
053decdc 00a076df 00000000 053ded04 00000000 00000005 disp+work!parse [rsyn4.c (1398)]
053ded1c 00a5c027 00000076 00000000 00000001 00000001 disp+work!sc_check [rsyn4.c (402)]
053df36c 00b2b436 00000000 00000000 00000000 00000000 disp+work!sc_inclu [rsyn31.c (1675)]
053e5dd4 009d2f1d 00000076 0294d7d4 02939124 02939114 disp+work!rs_expan_abap [rsabap31.c
053e5de8 00a08072 00000076 053e5f04 a01a00ec 00000000 disp+work!sc_expan [rsyn6.c (2228)]
053e5edc 00a076df 00000000 053e5f04 00000000 00000000 disp+work!parse [rsyn4.c (1398)]
053e5f1c 00a08b07 0295ba90 053e9c88 053e64c8 009ce139 disp+work!sc_check [rsyn4.c (402)]
053e5f2c 009ce139 00000000 00000000 00000000 053e64a0 disp+work!sc_checkStart [rsyn4.c (24
053e64c8 007e0f7f 053e9c88 00000001 00000000 00000000 disp+work!cg_generate [cgmain2.c (65
053e6510 0057a552 053e9c88 00000000 00000000 053ec954 disp+work!ab_gabap [abgen.c (1592)]
053e9cf8 007e1558 00000041 a0828954 00000000 00000000 disp+work!dy_gen_abap [dynpabsv.c (2
053ec914 00656064 a0828954 00000000 00000000 00000000 disp+work!ab_genprog [abgen.c (1345)
053ec964 006566ab a0828954 00000000 00000001 053ec9a4 disp+work!newload [abload1.c (388)]
053ec990 0065673b a0828954 00000001 053ec9a4 00000000 disp+work!ab_LoadProgOrTrfo [abload1
053ec9a8 0072796a a0828954 00000001 00000000 00000000 disp+work!ab_LoadProg [abload1.c (77
053ecadc 00708d14 00000000 a016ff64 0000001e 00003623 disp+work!ab_link [ablink.c (381)]
053ecb04 0070c9c0 a016ff64 0000001e 00000000 a0828954 disp+work!perform_load [abperf.c (68
053ed0bc 0067af78 00000003 a080fd88 00000000 053ed124 disp+work!ab_jxper [abperf.c (478)]
a016ff64 80000000 005f004c 80000000 00000044 80000000 disp+work!ab_extri [abextri.c (552)]
005f0025 458bec8b b1908a08 56000000 8a0c758b 0000b18e <nosymbols>
005f0025 458bec8b b1908a08 56000000 8a0c758b 0000b18e <nosymbols>
55c3c95b 00000000 00000000 00000000 00000000 00000000 <nosymbols>
State Dump for Thread Id 14ec
eax=00000001 ebx=00000103 ecx=fffffffe edx=05580000 esi=00000000 edi=00000000
eip=7c82ed54 esp=07e5fec0 ebp=07e5ff04 iopl=0 nv up ei pl zr na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000246
function : KiFastSystemCallRet
7c82ed54 c3 ret
7c82ed55 8da42400000000 lea esp,[esp] ss:07e5fec0=7c821514
7c82ed5c 8d642400 lea esp,[esp] ss:29d6e4d3=????????
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
07e5ff04 010f51e5 000006e0 00000000 00000000 0613e580 ntdll!KiFastSystemCallRet
07e5ff84 7c349565 00000000 00000000 00000000 0613e618 disp+work!SigIMsgFunc [signt.c (594)]
07e5ffb8 77e66063 0613e618 00000000 00000000 0613e618 MSVCR71!endthreadex
07e5ffec 00000000 7c3494f6 0613e618 00000000 00000000 kernel32!GetModuleFileNameA
-FAGLFLEXT
123
700 Windows NT 2x Intel 80686 EXXEPT01 ORACLE ER1 EXXEPT01
700
NT 5.0 2195 Service Pack 4 x86 MS VC++ 13.10
OCI_10103_SHARE
GregoryHello Greg,
Thank you for this question. What you are reporting looks to me like requires deeper analysis in the system. The channel for such questions is the Service Marketplace <i>http://service.sap.com/.</i> Please post it there.
Thank you!
Kind regards, Kyoko -
In Excadel :
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NullPointerException
org.apache.jsp.EvaluationKeyRequest_jsp._jspService(EvaluationKeyRequest_jsp.java:229)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
In console:
Jan 5, 2007 7:48:15 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.5.0_08\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;%jhome%;C:\program files\java\jdk1.5.0_08\bin
Jan 5, 2007 7:48:15 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jan 5, 2007 7:48:15 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1062 ms
Jan 5, 2007 7:48:15 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 5, 2007 7:48:15 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
Jan 5, 2007 7:48:15 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jan 5, 2007 7:48:16 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
Jan 5, 2007 7:48:16 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
Jan 5, 2007 7:48:16 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='ApplicationResources', returnNull=true
Jan 5, 2007 7:48:16 PM org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml'
Jan 5, 2007 7:48:17 PM org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/WEB-INF/validation.xml'
Jan 5, 2007 7:48:17 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jan 5, 2007 7:48:17 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jan 5, 2007 7:48:17 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/156 config=null
Jan 5, 2007 7:48:17 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jan 5, 2007 7:48:17 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2125 ms
Jan 5, 2007 7:48:26 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
Jan 5, 2007 7:48:26 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
Jan 5, 2007 7:48:26 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.bean.LocalStrings', returnNull=true
Jan 5, 2007 7:48:26 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
Jan 5, 2007 7:48:26 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
Jan 5, 2007 7:48:26 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
Jan 5, 2007 7:48:26 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
Jan 5, 2007 7:48:26 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
Jan 5, 2007 7:48:26 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at org.apache.jsp.EvaluationKeyRequest_jsp._jspService(EvaluationKeyRequest_jsp.java:229)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
I've tried solving this,in so many ways...even changes the server.xml webapps..pl help me how to resolve thisroot cause
java.lang.NullPointerException
org.apache.jsp.EvaluationKeyRequest_jsp._jspService(EvaluationKeyRequest_jsp.java:229)So what are you doing in EvaluationKeyRequest.jsp?
Something in there is generating a null pointer exception.
Try commenting out bits and pieces so you can narrow down what causes the null pointer.
Editing server.xml shouldn't affect anything - the error is in your JSP. -
The error:maximum open cursors exceeded,how to resolve it??
the parameter is as following in oracle: open_cursors=300
i write the following two methos get data from oracle db,after invote the methods many times,the program thrwos the exception named "maximum open cursors exceeded";why?how to resolve it?
in my program ,i have closed the statment and resultset!
the following is the code,and method a call mehtod b:
mehtod a:
//modeify the product and call mothod b
public boolean modifyDVBProd(Integer prodIDInt,ProdRequestEn prod)
boolean successB=false;
Connection conn=...;
if(conn!=null)
try
conn.setAutoCommit(false);
//the following call method b
successB=ProdOperateBL.getInstance().modifyDVBProd(conn,prodIDInt,prod);
if(successB)
conn.commit();
else
conn.rollback();
catch(Exception e)
successB=false;
try
conn.rollback();
catch(Exception ex)
ex.printStackTrace();
e.printStackTrace();
finally
try
conn.setAutoCommit(true);
catch (SQLException ex)
ex.printStackTrace();
else
successB=false;
return successB;
method b;��
//modify products
public boolean modifyDVBProd(Connection conn,Integer prodIDInt,ProdRequestEn prod)
boolean successB=false;
String sqlPriceStr="UPDATE pricemodelen pm SET pm.rentpricf=? WHERE pm.priceidl=(SELECT p.priceidl FROM producten p WHERE p.productidl=?)";
String sqlProdStr="UPDATE producten p set pronamestr=?,prod_type=?,unidstr=?,catype_name=?,casid=?,entitle_code=?,validfrdt=?,validtodt=?,descstr=? WHERE P.productidl=?";
String sqlProd_channelDelStr="DELETE FROM proden_channelen c WHERE c.productidl=?";
String sqlProd_channelInsertStr="INSERT INTO proden_channelen(productidl,channel_id) VALUES(?,?)";
PreparedStatement pstmt1=null;
PreparedStatement pstmt2=null;
PreparedStatement pstmt3=null;
PreparedStatement pstmt4=null;
int paramIndexInt=1;
try
//price
pstmt1=conn.prepareStatement(sqlPriceStr);
pstmt1.setDouble(paramIndexInt++,prod.getProdPriceD());
pstmt1.setDouble(paramIndexInt++,prodIDInt.intValue());
int priceResult=pstmt1.executeUpdate();
//product
pstmt2=conn.prepareStatement(sqlProdStr);
paramIndexInt=1;
pstmt2.setString(paramIndexInt++,prod.getProdNameStr()); //product name
pstmt2.setInt(paramIndexInt++,prod.getProdTpInt());//product type
pstmt2.setString(paramIndexInt++,prod.getPriceUnitStr());//unit
pstmt2.setString(paramIndexInt++,prod.getCaTpStr());//type
pstmt2.setInt(paramIndexInt++,prod.getCasidInt());//casid
pstmt2.setString(paramIndexInt++,prod.getCaEntitleCodeStr());//caentitlecode
pstmt2.setDate(paramIndexInt++,prod.getValidBeginDate());//time
pstmt2.setDate(paramIndexInt++,prod.getValidEndDate());//time
pstmt2.setString(paramIndexInt++,prod.getProMemoStr());//memo
pstmt2.setInt(paramIndexInt++,prodIDInt.intValue());//id
int prodResult=pstmt2.executeUpdate();//
pstmt3=conn.prepareStatement(sqlProd_channelDelStr);
pstmt3.setInt(1,prodIDInt.intValue());
pstmt3.executeUpdate();
int channelResult=0;
for(int i=0;i<prod.getChannelIDsInt().length;i++)
pstmt4=conn.prepareStatement(sqlProd_channelInsertStr);
pstmt4.setInt(1,prodIDInt.intValue());
pstmt4.setInt(2,prod.getChannelIDsInt());
pstmt4.addBatch();
pstmt4.executeBatch();
//((OraclePreparedStatement)pstmt).sendBatch(); // JDBC sends the queued request
if((prodResult>0)&&(priceResult>0))
successB=true;
catch(Exception ex)
successB=false;
ex.printStackTrace();
finally
//closing the preparedstatement
try
if(pstmt1!=null)
pstmt1.close();
if(pstmt2!=null)
pstmt2.close();
if(pstmt3!=null)
pstmt3.close();
if(pstmt4!=null)
pstmt4.close();
catch (SQLException ex)
ex.printStackTrace();
return successB;Check this loop.
or(int i=0;i<prod.getChannelIDsInt().length;i++)
pstmt4=conn.prepareStatement(sqlProd_channelInsertStr);
pstmt4.setInt(1,prodIDInt.intValue());
pstmt4.setInt(2,prod.getChannelIDsInt());
pstmt4.addBatch();
Here every time the loop executes, a new statement object is created and assigned to the same statement object reference pstmt4. So finally when u r closing the stmt objects, only one stmt object gets closed out of prod.getChannelIDsInt().length that gets created with in the loop. -
I am facing an issue " Denied connection per minute from one ip address" why this error occur and how to resolve it? is it really harmful for my TMG Server or not??
Error Description:
The number of denied connections from the source IP address 10.0.0.X exceeded the configured limit. This may indicate that the host is infected or is attempting an attack on the Forefront TMG computer.
electrifyingHi,
this may be a false/positive log record.
First check the services and applications on the effecting machine (NETSTAT -ANO) to see which connections the machine has established or tries to establish.
Check the machine against viruses and spyware.
if you don't find any viruses / spyware or "mysterious" connections, create a connection exception limit in the flood mitigation settings on your TMG Server:
http://www.isaserver.org/articles-tutorials/configuration-security/TMG-Firewall-Flood-Mitigation-Part1.html
regards Marc Grote aka Jens Baier - www.it-training-grote.de - www.forefront-tmg.de - www.galileocomputing.de/3276?GPP=MarcGrote
Maybe you are looking for
-
Generating EXCEL sheet from an iView
hiii...... i've developed a iView which holds list of users in a dropdown list box....and a button... now i want this data to be filled in a excel sheet when i click this button..... can some one send me sample code for this task... i have some code
-
Need to read source file without deleting it!
Hi, I have a scenario where 1. I need to pick the latest file from source folder without deleting it. 2. I need to post the data in to EP's KM. (how can I communicate with EP) So can any put some light as how to achieve this. Regards, shiv
-
Can I turn off the Properties Panel in Photoshop CC?
Every Single Time I draw a line or a shape or do almost anything it seems in PSCC, the Properties Panel jumps out. Quite rudely, it blocks the upper right of whatever I am working on. Yes, I can simply close it, but it interrupts my workflow, and it
-
2nd Gen Vado HD Lock-Up from Express Charging
I have managed to recreate this problem every single time I have used the express charge feature so far. I just bought my Vado HD directly from Creative this week and it has the newest firmware on it already. What happens is that while all things see
-
Can't import video from SD card!
I can't import my video from my camera. It won't work by connecting my camera to the computer, or by using the SD card slot. Photos import fine, my video is only affected. I have the newest software. Please help!