谁能告诉我这是什么鸟?

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/liyun211/article/details/79799535

春天里,看到一只小鸟在柳树上啄枝条,用手机拍了照,可惜离得太远,照片不清楚,大家看看是什么鸟,肯定不是麻雀和喜鹊,比麻雀体型大,比喜鹊小。


阅读更多
换一批

谁能告诉我这是什么错 ????

08-05

服务器端访问客户端时就出现的>>>>>>>>>>>>>>rnrn2010-8-5 23:04:47 org.codehaus.xfire.handler.DefaultFaultHandler invokern信息: Fault occurred!rnorg.codehaus.xfire.fault.XFireFault: Invalid operation: http://dao.accpaddBookrn at org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:42)rn at org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)rn at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)rn at org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)rn at org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)rn at org.codehaus.xfire.transport.http.XFireServletController.invoke(XFireServletController.java:304)rn at org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:129)rn at org.codehaus.xfire.transport.http.XFireServlet.doPost(XFireServlet.java:116)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rn at com.accp.filter.UTFfilter.doFilter(UTFfilter.java:27)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rn at com.accp.filter.CodeFilter.doFilter(CodeFilter.java:24)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)rn at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)rn at java.lang.Thread.run(Thread.java:619)rn2010-8-5 23:04:47 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet AddBookServlet threw exceptionrnorg.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Invalid operation: http://dao.accpaddBookrnorg.codehaus.xfire.fault.XFireFault: Invalid operation: http://dao.accpaddBookrn at org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)rn at org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(SoapFaultSerializer.java:28)rn at org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(ReadHeadersHandler.java:111)rn at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:67)rn at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)rn at org.codehaus.xfire.client.Client.onReceive(Client.java:406)rn at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)rn at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)rn at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)rn at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)rn at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)rn at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)rn at org.codehaus.xfire.client.Client.invoke(Client.java:336)rn at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)rn at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)rn at $Proxy0.addBook(Unknown Source)rn at accp.servlet.AddBookServlet.doPost(AddBookServlet.java:97)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rn at accp.filter.CodeFilter.doFilter(CodeFilter.java:24)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)rn at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)rn at java.lang.Thread.run(Thread.java:619)rn

谁能告诉我这是什么

07-11

我写了一个有checkbox的TreeView,不知道为什么它不管没有item的时候,都有水平的滚动条,这是为什么?rnunit CheckBoxTreeView;rnrninterfacernrnusesrn Windows, Messages, SysUtils, Classes, Controls, ComCtrls, CommCtrl;rnrntypern TCheckBoxTreeView = class(TTreeView)rn privatern FOldState: Boolean;rn FOnNodeChecked: TNotifyEvent;rn FOnNodeUnChecked: TNotifyEvent;rn Private declarations rn protectedrn procedure CreateParams(var Params: TCreateParams); override;rn procedure Change(Node: TTreeNode); override;rn procedure Click; override;rn Protected declarations rn publicrn function IsNodeChecked(Node: TTreeNode): Boolean;rn procedure SetNodeChecked(Node: TTreeNode; Checked: Boolean);rn Public declarations rn publishedrn property Align;rn property Anchors;rn property AutoExpand;rn property BevelEdges;rn property BevelInner;rn property BevelOuter;rn property BevelKind default bkNone;rn property BevelWidth;rn property BiDiMode;rn property BorderStyle;rn property BorderWidth;rn property ChangeDelay;rn property Color;rn property Ctl3D;rn property Constraints;rn property DragKind;rn property DragCursor;rn property DragMode;rn property Enabled;rn property Font;rn property HideSelection;rn property HotTrack;rn property Images;rn property Indent;rn property MultiSelect;rn property MultiSelectStyle;rn property ParentBiDiMode;rn property ParentColor default False;rn property ParentCtl3D;rn property ParentFont;rn property ParentShowHint;rn property PopupMenu;rn property ReadOnly;rn property RightClickSelect;rn property RowSelect;rn property ShowButtons;rn property ShowHint;rn property ShowLines;rn property ShowRoot;rn property SortType;rn property StateImages;rn property TabOrder;rn property TabStop default True;rn property ToolTips;rn property Visible;rn property OnAddition;rn property OnAdvancedCustomDraw;rn property OnAdvancedCustomDrawItem;rn property OnChange;rn property OnChanging;rn property OnClick;rn property OnCollapsed;rn property OnCollapsing;rn property OnCompare;rn property OnContextPopup;rn property OnCreateNodeClass;rn property OnCustomDraw;rn property OnCustomDrawItem;rn property OnDblClick;rn property OnDeletion;rn property OnDragDrop;rn property OnDragOver;rn property OnEdited;rn property OnEditing;rn property OnEndDock;rn property OnEndDrag;rn property OnEnter;rn property OnExit;rn property OnExpanding;rn property OnExpanded;rn property OnGetImageIndex;rn property OnGetSelectedIndex;rn property OnKeyDown;rn property OnKeyPress;rn property OnKeyUp;rn property OnMouseDown;rn property OnMouseMove;rn property OnMouseUp;rn property OnStartDock;rn property OnStartDrag;rn Items must be published after OnGetImageIndex and OnGetSelectedIndex rn property Items;rn Published declarations rn property OnNodeChecked: TNotifyEvent read FOnNodeChecked write FOnNodeChecked;rn property OnNodeUnChecked: TNotifyEvent read FOnNodeUnChecked write FOnNodeUnChecked;rn end;rnrnprocedure Register;rnrnimplementationrnrnprocedure Register;rnbeginrn RegisterComponents('Samples', [TCheckBoxTreeView]);rnend;rnrn TCheckBoxTreeView rnrnprocedure TCheckBoxTreeView.Change(Node: TTreeNode);rnbeginrn inherited Change(Node);rn FOldState := IsNodeChecked(Node);rnend;rnrnprocedure TCheckBoxTreeView.Click;rnvarrn NewState: Boolean;rnbeginrn inherited Click;rn NewState := IsNodeChecked(Self.Selected);rn if NewState = FOldState then Exit;rn if (NewState) and Assigned(FOnNodeChecked) then FOnNodeChecked(self)rn else if (not NewState) and Assigned(FOnNodeUnChecked) thenrn FOnNodeUnChecked(self);rnend;rnrnprocedure TCheckBoxTreeView.CreateParams(var Params: TCreateParams);rnbeginrn inherited;rn Params.Style:=Params.Style or TVS_CHECKBOXES;rnend;rnrnfunction TCheckBoxTreeView.IsNodeChecked(Node: TTreeNode): Boolean;rnconstrn TVIS_CHECKED = $2000;rnvarrn TvItem :TTVItem;rnbeginrn Result := False;rn if Node = nil then Exit;rn TvItem.Mask := TVIF_STATE;rn TvItem.hItem := Node.ItemId;rn TreeView_GetItem(Node.TreeView.Handle, TvItem);rn Result := (TvItem.State and TVIS_CHECKED) = TVIS_CHECKED;rnend;rnrnprocedure TCheckBoxTreeView.SetNodeChecked(Node: TTreeNode;rn Checked: Boolean);rnconstrn TVIS_CHECKED = $2000;rnvarrn TvItem: TTVItem;rnbeginrn FillChar(TvItem, SizeOf(TvItem), 0);rn with TvItem do beginrn hItem := Node.ItemId;rn Mask := TVIF_STATE;rn StateMask := TVIS_STATEIMAGEMASK;rn if Checked thenrn TvItem.state := TVIS_CHECKEDrn elsern TvItem.state := TVIS_CHECKED shr 1;rn TreeView_SetItem(Node.TreeView.Handle, TvItem);rn endrnend;rnrnend.

没有更多推荐了,返回首页