Java array is out of bounds, please give me some advice

I have a request and the return message is as follows 2201.TWO 3391.TWO 201 I now traverse after sending the request, and the following error is reported Exception in thread “main” java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 at java.util.ArrayList.rangeCheck(ArrayList.java:635) at java.util.ArrayList.get(ArrayList.java:411) at com.wind.mb.client.ext.BaseDefinitionOperator.bindingArguments(BaseDefinitionOperator.java:103) at com.wind.mb.client.comm.SimpleProxy.doSynCommandProxy(SimpleProxy.java:109) at sysconfig.Test.main(Test.java:21) My code is as follows: public class Test { public static void main(String[] args) throws Exception { BasePassiveAppServer appServer = new BasePassiveAppServer(“C:\\Windows\\System32\\ExpoConfig.xml”); CommandManager manager = new CommandManager(); appServer.setCommandHandler(manager);                                                                                    appServer.start(); SimpleProxy.initInstanceByConnection(appServer, “D:\\apiDefine.xml”); Object[] result = SimpleProxy.getInstance().doSynCommandProxy (new CommandHeader(1004,1108),new Object[] {“0401000000000000”}, 3000) ; if (result != null) { String[] [] windcodes=(String [][])result[0]; for (int i=0;i<windcodes.length;i++) for (int j=0;j<windcodes.length;j++) { System.out.println(windcodes[i][j]); }                                                                                                        }   } 5 solutions #1 windcodes two-dimensional array length #2 Quote from 1st floor mlpqwqw000’s reply: windcodes two-dimensional array length What do you mean, I don’t understand? #3 The .length() method can get the length of the array, and then you can determine if it is less than this number. #4 Although I can’t…

I have a very basic doubt about PHP, please give me some advice.

A very basic problem with PHP, please give me some advice<?php $upfile=$_FILES[“upfile”];?> Upload File The above is the code Content, when I run the web page, I always get an error message from the $upfile=$_FILES[“upfile”]; line. What went wrong? ——Solution——————– Well… Actually, this is a prompt. It is an improvement of PHP after version 5.x. If you feel irritated, you can block these prompts by turning off the error prompts in php.ini. , of course I don’t recommend doing this. Therefore, such submitted value issues can be judged through isset. If it is a variable, it can be solved by initialization assignment.

An example of the simplest phpExcel export, please give me some advice.

An example of the simplest phpExcel export, could you please give me some advice? php version 5.2 thread safe vc6Server: apache2.2 thread module loading method (CLI)Other pages are running normally No nonsense, excel The export code is the simplest test code, but after downloading, the prompt when opening is as follows Rename the invalid worksheet name. PHP code setActiveSheetIndex(0); $objActSheet = $objExcel->getActiveSheet(); //Set the name of the current active sheet $objActSheet->setTitle(iconv(‘utf-8′,’gbk’, “Test working pu name”)); //ROW 1 $objActSheet->setCellValueByColumnAndRow(1,2,iconv(‘utf-8′,’gbk’, “Test”)); //ROW 2 //ROW 3 //retrieve data //Export in browser header(“Content-Type: application/force-download”); header(‘Content-Type: application/vnd.ms-excel’); header(“Content-Disposition: attachment;filename=\”Export query.xls\””); header(‘Cache-Control: max-age=0′); header(“Cache-Control: must-revalidate, post-check=0, pre-check=0”); header(“Pragma: no-cache”); // Create file format writing object instance, uncomment $objWriter = new PHPExcel_Writer_Excel5($objExcel); //to file $objWriter->save(“php://output”); ?> ——Solution—————— — <?phprequire(‘config.php’);//Load configuration fileheader (“Expires: Mon, 26 Jul 1997 05:00:00 GMT”);header ( “Last-Modified: ” . gmdate(“D,d M YH:i:s”) . ” GMT”);header (“Cache-Control: no-cache, must-revalidate”); />header (“Pragma: no-cache”); header (‘Content-type: application/x-msexcel’);header (“Content-Disposition: attachment; filename=weibo.xls ” ); header (“Content-Description: PHP/INTERBASE Generated Data” );//// the next lines demonstrate the generation of the Excel stream// $cOntent= $db->getList(“select * from weibo_baidu”);$num = count($content); /*echo $num;foreach($content as $k=>$contents){ echo $aa=$k+1; echo ““; //echo $contents[‘ b_title’].”“;}*/xlsBOF(); // begin Excel stream xlsWriteLabel(0, 0,iconv(“UTF-8”, “GBK “, serial number) );…

PHP related issues, please give me some advice

PHP problem, please give me some adviceAfter the input is configured, it can be displayed normally by typing localhost, and it can be displayed normally by typing localhost/x.jpg. However, it cannot be displayed on the web page after typing localhost/x.php. Instead, what is displayed is I want to download the x.php file, why is this, I burst into tears ——Solution———– ——— The file parsing of php does not take effectThat is, the previous configuration is not normal. ——Solution——————– Discuss How to change it? I followed the configuration in the book. The download is not displayed in the Firefox browser, but the entire code is displayed. DirectoryIndexindex.php index.html index.html.var has this statement, and other configurations have also been done

I have some minor doubts about mysql database and php, please give me some advice.

I have some small questions about mysql database and php, please give me some adviceThere are 20 pieces of data in my mysql database, but only 16 pieces of data are displayed on the php web page I made. I would like to ask, what is this? reason? ——Solution——————–Posting code is the way to go ——Solution——————– PHP code for ($i=1; $i<=4; $i++) { … if($i<4)//Add this line $row = mysql_fetch_array($result); } ——Solution——————–Loop There is no need to capture data internally

Introductory example: Failed to read data from table in phpmysql, please give me some advice

Introductory example Failed to read data from table in php mysql, please give me some advice1. Problem: I cannot read a table in mysql using php. Sometimes the page is blank, and sometimes there is a small section in php. I have been tinkering with the code for a day, please give me some guidance! Grateful! ! 2. In mysql, database: test; table name: apple; (fields: firstname, lastname) 3.index.php (tried to connect to the database successfully) Code: <?php $dbh = @mysql_connect(“localhost”,”root”,””); if(!$dbh){die(“error”);} @mysql_select_db(“test”, $dbh); $sql = “SELECT * FROM apple”; ?> <? $rs = mysql_query($sql, $dbh); while($row = mysql_fetch_array($rs)) echo $row[id]; echo $row[name]; echo ”; ?> <? @mysql_close($dbh); ?> Please help me all heroes, thank you! ! ——Solution——————–Last of this post Edited by PhpNewnew on 2012-05-27 17:51:30 The log error is just a reminder that the default icon does not exist, it does not matter. Read the code carefully while($row = mysql_fetch_array($rs)) echo $row[id]; echo $row[name]; echo ‘‘; ?> Add upper brackets here while($row = mysql_fetch_array($rs)) { echo $row[id]; echo $row[name]; echo ‘‘; } ?> Refresh after saving to see In addition, you didn’t say that the database is (Field: firstname,lastname) How come $row[‘id’]? $row[‘name’]? came out

Regarding the LazyPHP framework, please give me some advice.

Regarding the LazyPHP framework, need guidance? $data[‘title’] = $data[‘top_title’] = ‘Homepage’; Finally, what does the equal sign “Home Page” mean? Is the render function equivalent to $ob->assign? Share to: assign? data-pics=”> ——Solution——————–$data[ ‘title’] = $data[‘top_title’] = ‘Homepage’; Assign values ​​to $data[‘title’] and $data[‘top_title’] at the same time The render function is used to load and execute templates The template is still php-html mixed code LazyPHP is only responsible for scheduling between modules The sample files need to be run in an environment with short tags enabled Since there is no template engine and ORM, 1.18M seems too bloated——Solution—————- —- Quote: $data[‘title’] = $data[‘top_title’] = ‘Home’ ; Finally, what does the equal sign “Home Page” mean? Is the render function equivalent to $ob->assign Lao Han, can you do it?——Solution——————– Doesn’t the equal sign mean assignment?

A 30-year-old girl switched to PHP with zero knowledge, please give me some advice.

A 30-year-old girl switched to PHP with zero knowledge, please give me some advice.

A 30-year-old girl has changed her career to PHP with zero foundation. Any suggestions?A female friend is 30 years old and currently works as an engineering assistant, doing some odd jobs, excel, cad and so on. It is tiring and the salary is not high, 3k. Now I want to change my career to PHP, but I don’t know if it is feasible. Please speak enthusiastically. Thank you everyone! ——Solution——————–Female friend fuck Why do you have to make yourself so tired? Of course PHP is easy to get into, but why do you have to make yourself so tired? Looking forward to your opinions…——Solution——————– 30 years old to play php. . It would be better for women to work in other industries. . ——Solution——————–30-year-old child Enough work, right? Still have energy? As for doing PHP, if I choose two 30-year-olds, one male and one female, I must choose the male… so. . . ——Solution——————–Get this now As for the industry, it seems not very optimistic. I am also working on PHP. It is somewhat difficult for women to do well in programming

Help!!! Set up a small site for a class meeting, I sincerely ask for help, please give me some advice, I will learn it myself_html/css_WEB-ITnose-html tutorial

html webpage for help The class will play a psychology game: write down 5 things that you think are important, and then delete the things that you think you can do without or discard one by one… Then make a website, probably two web pages. One is for students to open the page on their mobile phones and enter their student ID and 5 important things in life in the two boxes. Then create another web page. Divide the entire web page into 28 vertical grids and display the 5 submitted items in each grid for projection. Further functions are: students can delete on the mobile page, and on another page (with 28 grids) they can press refresh to see what is left in each grid. and things that were deleted (red line in the middle). I really don’t understand, please give me some advice! This thing is a kind of collective communication and sharing, which improves the boring and monotonous writing of psychology games on paper. Finally, I would like to sincerely ask for help. Please give me some advice on what knowledge is needed, how to implement it in the simplest way, etc. . . Thanks again! Reply…

PHP constant problem: Comparison between const and define, please give me some advice

Only for the speed issue, let’s not mention usage for now. I saw someone on the Internet saying that Const is a structural syntax and its speed will be several times higher than the define function. I need a professional explanation. Is this true? Now that const can indeed be used outside a class, will everyone give it priority when defining constants? Reply content: Only for the speed issue, let’s not mention the usage for now. I saw someone on the Internet saying that Const is a structural grammar and its speed will be several times higher than the define function. I need a professional explanation. Is this true? Now that const can indeed be used outside a class, will everyone give it priority when defining constants? For speed comparison, I suggest you write a few lines of code to test it yourself, which is much better than asking here. Speed: If const is faster, it is also a subtle difference, and it does not make much sense to consider this If const was better, the documentation would recommend you to use it, but it’s not, so don’t worry about it Will you give priority to using const: Based on…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索