I working using Maximo Anywhere 7.5.1
when i am trying to login using the default app -Work Execution- the application didnt login and i got the following exception in Work-light Server Log
> [7/7/15 1:37:05:093 GST] 0000008a SystemErr R java.net.ConnectException: Connection refused: connect
[7/7/15 1:37:05:102 GST] 0000008a SystemErr R at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:412)
[7/7/15 1:37:05:102 GST] 0000008a SystemErr R at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:271)
[7/7/15 1:37:05:103 GST] 0000008a SystemErr R at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:258)
[7/7/15 1:37:05:103 GST] 0000008a SystemErr R at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:376)
[7/7/15 1:37:05:103 GST] 0000008a SystemErr R at java.net.Socket.connect(Socket.java:546)
[7/7/15 1:37:05:103 GST] 0000008a SystemErr R at java.net.Socket.connect(Socket.java:495)
[7/7/15 1:37:05:103 GST] 0000008a SystemErr R at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
[7/7/15 1:37:05:103 GST] 0000008a SystemErr R at sun.net.www.http.HttpClient.openServer(HttpClient.java:437)
[7/7/15 1:37:05:103 GST] 0000008a SystemErr R at sun.net.www.http.HttpClient.openServer(HttpClient.java:551)
[7/7/15 1:37:05:103 GST] 0000008a SystemErr R at sun.net.www.http.HttpClient.<init>(HttpClient.java:227)
[7/7/15 1:37:05:103 GST] 0000008a SystemErr R at sun.net.www.http.HttpClient.New(HttpClient.java:313)
[7/7/15 1:37:05:103 GST] 0000008a SystemErr R at sun.net.www.http.HttpClient.New(HttpClient.java:332)
[7/7/15 1:37:05:104 GST] 0000008a SystemErr R at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:999)
[7/7/15 1:37:05:104 GST] 0000008a SystemErr R at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:935)
[7/7/15 1:37:05:104 GST] 0000008a SystemErr R at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:853)
[7/7/15 1:37:05:104 GST] 0000008a SystemErr R at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1207)
[7/7/15 1:37:05:104 GST] 0000008a SystemErr R at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:390)
[7/7/15 1:37:05:104 GST] 0000008a SystemErr R at com.ibm.tivoli.si.auth.TpaeCustomLoginModule.authenticate(Unknown Source)
[7/7/15 1:37:05:104 GST] 0000008a SystemErr R at com.ibm.tivoli.si.auth.TpaeCustomLoginModule.login(Unknown Source)
[7/7/15 1:37:05:104 GST] 0000008a SystemErr R at com.worklight.core.auth.impl.LoginContext.invokeLoginModule(LoginContext.java:236)
[7/7/15 1:37:05:104 GST] 0000008a SystemErr R at com.worklight.core.auth.impl.LoginContext.processRequest(LoginContext.java:200)
[7/7/15 1:37:05:104 GST] 0000008a SystemErr R at com.worklight.core.auth.impl.AuthenticationContext.processRequest(AuthenticationContext.java:274)
[7/7/15 1:37:05:105 GST] 0000008a SystemErr R at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:148)
[7/7/15 1:37:05:105 GST] 0000008a SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
[7/7/15 1:37:05:105 GST] 0000008a SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
[7/7/15 1:37:05:105 GST] 0000008a SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:960)
[7/7/15 1:37:05:105 GST] 0000008a SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1064)
[7/7/15 1:37:05:105 GST] 0000008a SystemErr R at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3878)
[7/7/15 1:37:05:105 GST] 0000008a SystemErr R at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
[7/7/15 1:37:05:105 GST] 0000008a SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:981)
[7/7/15 1:37:05:105 GST] 0000008a SystemErr R at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
[7/7/15 1:37:05:105 GST] 0000008a SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)
[7/7/15 1:37:05:105 GST] 0000008a SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:461)
[7/7/15 1:37:05:105 GST] 0000008a SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:528)
[7/7/15 1:37:05:106 GST] 0000008a SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:314)
[7/7/15 1:37:05:106 GST] 0000008a SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
[7/7/15 1:37:05:106 GST] 0000008a SystemErr R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
[7/7/15 1:37:05:106 GST] 0000008a SystemErr R at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
[7/7/15 1:37:05:106 GST] 0000008a SystemErr R at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
[7/7/15 1:37:05:106 GST] 0000008a SystemErr R at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
[7/7/15 1:37:05:106 GST] 0000008a SystemErr R at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
[7/7/15 1:37:05:106 GST] 0000008a SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
[7/7/15 1:37:05:106 GST] 0000008a SystemErr R at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
[7/7/15 1:37:05:106 GST] 0000008a SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1864)
A Worklight application will not be trying to communicate with the AppCenter Server. It will only try to communicate with the Worklight Server. So, your question makes no sense... please put some more effort when asking questions and properly describe your scenario.
Additionally, java.net.ConnectException: Connection refused: connect typically refers to a network error, such as pointing to the wrong server, port, etc...
I suggest that you will double-check where to you are pointing your application, and again - better describe what you've done.
Related
I'm trying to use this answer to apply my own sort of adding active cell address to a range so I can select the whole range later to a apply a conditional formatting. Below is my code but I'm not sure what is wrong. It came up with the error "Compile Error: Type Mismatch"
p/s: I have recorded my macro on this particular set of cells and then editted it.
Sub Macro1()
Dim rng2 As Range
Range("B3").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("D3").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("F3").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("H3").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("J3").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("L3").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("N3").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("P3").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("R3").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("R7").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("P7").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("N7").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("L7").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("J7").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("H7").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("F7").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("D7").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("B7").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("B11").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("D11").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("F11").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range("J11").Select
Set rng2 = Union(rng2, ActiveCell.Address)
Range(rng2).Select
End Sub
Your first Set rng2 = Union(rng2, ActiveCell.Address) should be Set rng2 = ActiveCell. You cannot union to a range object that is nothing and rng2 is nothing until it is set to something so it cannot be part of the union statement.
Each subsequent Set rng2 = Union(rng2, ActiveCell.Address) should be Set rng2 = Union(rng2, ActiveCell). You cannot union to a range object's string address; you must union to a range object.
rng2 is now a valid range object and does not require further definition. Range(rng2).Select is invalid; simply use rng2.Select.
For all intents and purposes, you could have just stated,
Range("B3, D3, F3, H3, J3, L3, N3, P3, R3, R7, P7, N7, L7, J7, H7, F7, D7, B7, B11, D11, F11, J11").Select
You mentioned in a comment that you cut off your code due to space restrictions. Consider the following loop.
dim i as long, rng2 as range
Set rng2 = Range("B3, D3, F3, H3, J3, L3, N3, P3, R3")
For i = 7 To 23 Step 4
Set rng2 = Union(rng2, Intersect(rng2.EntireColumn, Rows(i)))
Next i
rng2.select
rng2.interior.color = vbred
Debug.Print rng2.Address(0, 0)
'B3,D3,F3,H3,J3,L3,N3,P3,R3,B7,D7,F7,H7,J7,L7,N7,P7,R7,B11,D11,F11,H11,J11,L11,N11,P11,R11,B15,D15,F15,H15,J15,L15,N15,P15,R15,B19,D19,F19,H19,J19,L19,N19,P19,R19,B23,D23,F23,H23,J23,L23,N23,P23,R23
The debug.print messages go to the VBE's Immediate window.
Sub Duplicate()
Dim WorkRng1 As Range, WorkRng2 As Range, Rng1 As Range, Rng2 As Range
Set ws = ThisWorkbook.Sheets("Sheet3")
xTitleId = "KutoolsforExcel"
Set WorkRng1 = Application.InputBox("Range A:", xTitleId, "", Type:=8)
Set WorkRng2 = Application.InputBox("Range B:", xTitleId, Type:=8)
For Each Rng1 In WorkRng1
rng1Value = Rng1.Value
For Each Rng2 In WorkRng2
If rng1Value = Rng2.Value Then
MsgBox rng1Value
Rng1.Interior.Color = VBA.RGB(255, 0, 0)
Else
ws.Cells("A2") = rng1Value
Exit For
End If
Next
Next
End Sub
arr_input = ActiveSheet.Range(Cells(startrow, startcol), Cells(lastrow, lastcol))
ActiveSheet.Range(Cells(startrow, startcol), Cells(lastrow, lastcol)).Style = "Normal" 'clear format
'get column numbers - dynamic header
Sheets("Template").Select
'ActiveSheet.Range(Cells(headerrow, startcol), Cells(headerrow, lastcol)).AutoFilter 'remove filter if there is any
'On Error GoTo header_cannotfount
Rows(headerrow).Select
With Selection ' dynamic header
col_cID = .Find(What:="ps_category_list_id", After:=Range(Cells(headerrow, startcol), Cells(headerrow, startcol)), LookIn:=xlValues).Column
col_pname = .Find(What:="ps_product_name", After:=Range(Cells(headerrow, startcol), Cells(headerrow, startcol)), LookIn:=xlValues).Column
col_pDes = .Find(What:="ps_product_description", After:=Range(Cells(headerrow, startcol), Cells(headerrow, startcol)), LookIn:=xlValues).Column
col_pPrice = .Find(What:="ps_price", After:=Range(Cells(headerrow, startcol), Cells(headerrow, startcol)), LookIn:=xlValues).Column
col_pStock = .Find(What:="ps_stock", After:=Range(Cells(headerrow, startcol), Cells(headerrow, startcol)), LookIn:=xlValues).Column
col_Weight = .Find(What:="ps_product_weight", After:=Range(Cells(headerrow, startcol), Cells(headerrow, startcol)), LookIn:=xlValues).Column
' col_Size = .Find(What:="ps_product_size", After:=Range(Cells(headerrow, startcol), Cells(headerrow, startcol)), LookIn:=xlValues).Column
col_shipout = .Find(What:="ps_days_to_ship", After:=Range(Cells(headerrow, startcol), Cells(headerrow, startcol)), LookIn:=xlValues).Column
'col_Image = .Find(What:="ps_img_id", After:=Range(Cells(headerrow, startcol), Cells(headerrow, startcol)), LookIn:=xlValues).Column
' col_skuref = .Find(What:="ps_sku_ref_no", After:=Range(Cells(headerrow, startcol), Cells(headerrow, startcol)), LookIn:=xlValues).Column
col_parentsku = .Find(What:="ps_sku_ref_no_parent", After:=Range(Cells(headerrow, startcol), Cells(headerrow, startcol)), LookIn:=xlValues).Column
' For img_i = 1 To 9
' col_img(img_i) = .Find(What:="ps_img_" & img_i, After:=Range(Cells(headerrow, startcol), Cells(headerrow, startcol)), LookIn:=xlValues).Column
' Next img_i
End With
On Error GoTo unidentifiederrors:
For i = 1 To (lastrow - startrow + 1)
'ignore blank rows
If Application.CountA(Cells(i + startrow - 1, 1).EntireRow) = 0 Then
GoTo blankrowend
End If
I have an ZipException (zip file is empty) when calling an adapter. IBM MobileFirst Platform seems to have problems to load classes that is deployed and compiled in the adapter file (I checked the compiled .adapter file, all classes are there and OK). I've tryed to delete/recreated the server, re-re-redeploy, ...
There's no error when deploying and in the operations console everything is OK (adapter, methods,urls).
the exception:
[9/30/15 15:09:37:821 CEST] 000000d0 SystemErr R java.util.zip.ZipException: zip file is empty
[9/30/15 15:09:37:821 CEST] 000000d0 SystemErr R at java.util.zip.ZipFile.open(Native Method)
[9/30/15 15:09:37:822 CEST] 000000d0 SystemErr R at java.util.zip.ZipFile.<init>(ZipFile.java:215)
[9/30/15 15:09:37:822 CEST] 000000d0 SystemErr R at java.util.zip.ZipFile.<init>(ZipFile.java:145)
[9/30/15 15:09:37:822 CEST] 000000d0 SystemErr R at java.util.jar.JarFile.<init>(JarFile.java:154)
[9/30/15 15:09:37:822 CEST] 000000d0 SystemErr R at java.util.jar.JarFile.<init>(JarFile.java:118)
[9/30/15 15:09:37:822 CEST] 000000d0 SystemErr R at com.worklight.adapters.rest.ParentLastClassLoader.findResourceInURL(ParentLastClassLoader.java:522)
[9/30/15 15:09:37:822 CEST] 000000d0 SystemErr R at com.worklight.adapters.rest.ParentLastClassLoader.internalFindResource(ParentLastClassLoader.java:472)
[9/30/15 15:09:37:823 CEST] 000000d0 SystemErr R at com.worklight.adapters.rest.ParentLastClassLoader.internalFindClass(ParentLastClassLoader.java:212)
[9/30/15 15:09:37:823 CEST] 000000d0 SystemErr R at com.worklight.adapters.rest.ParentLastClassLoader.loadClass(ParentLastClassLoader.java:128)
[9/30/15 15:09:37:823 CEST] 000000d0 SystemErr R at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[9/30/15 15:09:37:823 CEST] 000000d0 SystemErr R at javax.xml.datatype.FactoryFinder.getProviderClass(FactoryFinder.java:115)
[9/30/15 15:09:37:823 CEST] 000000d0 SystemErr R at javax.xml.datatype.FactoryFinder.newInstance(FactoryFinder.java:181)
[9/30/15 15:09:37:823 CEST] 000000d0 SystemErr R at javax.xml.datatype.FactoryFinder.newInstance(FactoryFinder.java:150)
[9/30/15 15:09:37:824 CEST] 000000d0 SystemErr R at javax.xml.datatype.FactoryFinder.find(FactoryFinder.java:268)
[9/30/15 15:09:37:824 CEST] 000000d0 SystemErr R at javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:129)
[9/30/15 15:09:37:824 CEST] 000000d0 SystemErr R at com.sun.xml.internal.bind.DatatypeConverterImpl.getDatatypeFactory(DatatypeConverterImpl.java:741)
[9/30/15 15:09:37:824 CEST] 000000d0 SystemErr R at com.sun.xml.internal.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$13.parse(RuntimeBuiltinLeafInfoImpl.java:575)
[9/30/15 15:09:37:824 CEST] 000000d0 SystemErr R at com.sun.xml.internal.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$13.parse(RuntimeBuiltinLeafInfoImpl.java:551)
[9/30/15 15:09:37:824 CEST] 000000d0 SystemErr R at com.sun.xml.internal.bind.v2.runtime.FilterTransducer.parse(FilterTransducer.java:69)
[9/30/15 15:09:37:825 CEST] 000000d0 SystemErr R at com.sun.xml.internal.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.parse(TransducedAccessor.java:230)
[9/30/15 15:09:37:825 CEST] 000000d0 SystemErr R at com.sun.xml.internal.bind.v2.runtime.unmarshaller.LeafPropertyLoader.text(LeafPropertyLoader.java:50)
[9/30/15 15:09:37:825 CEST] 000000d0 SystemErr R at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.text(UnmarshallingContext.java:549)
[9/30/15 15:09:37:825 CEST] 000000d0 SystemErr R at com.sun.xml.internal.bind.v2.runtime.unmarshaller.InterningXmlVisitor.text(InterningXmlVisitor.java:78)
[9/30/15 15:09:37:825 CEST] 000000d0 SystemErr R at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.processText(StAXStreamConnector.java:323)
[9/30/15 15:09:37:825 CEST] 000000d0 SystemErr R at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleEndElement(StAXStreamConnector.java:201)
[9/30/15 15:09:37:826 CEST] 000000d0 SystemErr R at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:170)
[9/30/15 15:09:37:826 CEST] 000000d0 SystemErr R at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:355)
[9/30/15 15:09:37:826 CEST] 000000d0 SystemErr R at com.sun.xml.internal.bind.v2.runtime.BridgeImpl.unmarshal(BridgeImpl.java:109)
[9/30/15 15:09:37:826 CEST] 000000d0 SystemErr R at com.sun.xml.internal.bind.api.Bridge.unmarshal(Bridge.java:222)
[9/30/15 15:09:37:826 CEST] 000000d0 SystemErr R at com.sun.xml.internal.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:539)
[9/30/15 15:09:37:827 CEST] 000000d0 SystemErr R at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:110)
[9/30/15 15:09:37:827 CEST] 000000d0 SystemErr R at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
[9/30/15 15:09:37:827 CEST] 000000d0 SystemErr R at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:135)
[9/30/15 15:09:37:827 CEST] 000000d0 SystemErr R at com.sun.proxy.$Proxy213.rechercherContrats(Unknown Source)
[9/30/15 15:09:37:827 CEST] 000000d0 SystemErr R at fr.sma.prod.adapter.ContratResource.rechercherContrats(Unknown Source)
[9/30/15 15:09:37:828 CEST] 000000d0 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[9/30/15 15:09:37:828 CEST] 000000d0 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[9/30/15 15:09:37:828 CEST] 000000d0 SystemErr R at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[9/30/15 15:09:37:828 CEST] 000000d0 SystemErr R at java.lang.reflect.Method.invoke(Method.java:606)
[9/30/15 15:09:37:828 CEST] 000000d0 SystemErr R at org.apache.wink.server.internal.handlers.InvokeMethodHandler.handleRequest(InvokeMethodHandler.java:63)
[9/30/15 15:09:37:828 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.AbstractHandler.handleRequest(AbstractHandler.java:33)
[9/30/15 15:09:37:829 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
[9/30/15 15:09:37:829 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
[9/30/15 15:09:37:829 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)
[9/30/15 15:09:37:829 CEST] 000000d0 SystemErr R at com.worklight.wink.extensions.WorklightWinkHandler$1.run(WorklightWinkHandler.java:50)
[9/30/15 15:09:37:829 CEST] 000000d0 SystemErr R at com.worklight.wink.extensions.WorklightWinkHandler$1.run(WorklightWinkHandler.java:45)
[9/30/15 15:09:37:829 CEST] 000000d0 SystemErr R at com.worklight.adapters.rest.JAXRSAdapterRequestInterceptor.accessTheResourceWithIdentity(JAXRSAdapterRequestInterceptor.java:96)
[9/30/15 15:09:37:830 CEST] 000000d0 SystemErr R at com.worklight.adapters.rest.JAXRSAdapterRequestInterceptor.access$000(JAXRSAdapterRequestInterceptor.java:39)
[9/30/15 15:09:37:830 CEST] 000000d0 SystemErr R at com.worklight.adapters.rest.JAXRSAdapterRequestInterceptor$1.run(JAXRSAdapterRequestInterceptor.java:84)
[9/30/15 15:09:37:830 CEST] 000000d0 SystemErr R at com.worklight.adapters.rest.JAXRSAdapterRequestInterceptor$1.run(JAXRSAdapterRequestInterceptor.java:81)
[9/30/15 15:09:37:830 CEST] 000000d0 SystemErr R at com.worklight.core.auth.impl.OAuthValidatorFilter$1.run(OAuthValidatorFilter.java:154)
[9/30/15 15:09:37:830 CEST] 000000d0 SystemErr R at com.worklight.core.auth.impl.OAuthValidatorFilter$1.run(OAuthValidatorFilter.java:145)
[9/30/15 15:09:37:830 CEST] 000000d0 SystemErr R at java.security.AccessController.doPrivileged(Native Method)
[9/30/15 15:09:37:831 CEST] 000000d0 SystemErr R at javax.security.auth.Subject.doAs(Subject.java:415)
[9/30/15 15:09:37:831 CEST] 000000d0 SystemErr R at com.worklight.oauth.validation.ValidationFilterHelper.filterRequest(ValidationFilterHelper.java:65)
[9/30/15 15:09:37:831 CEST] 000000d0 SystemErr R at com.worklight.core.auth.impl.OAuthValidatorFilter.securedAccessToResource(OAuthValidatorFilter.java:145)
[9/30/15 15:09:37:831 CEST] 000000d0 SystemErr R at com.worklight.core.auth.impl.OAuthValidatorFilter.filterRequest(OAuthValidatorFilter.java:112)
[9/30/15 15:09:37:831 CEST] 000000d0 SystemErr R at com.worklight.adapters.rest.JAXRSAdapterRequestInterceptor.handleRequest(JAXRSAdapterRequestInterceptor.java:81)
[9/30/15 15:09:37:832 CEST] 000000d0 SystemErr R at com.worklight.wink.extensions.WorklightWinkHandler.handleRequest(WorklightWinkHandler.java:45)
[9/30/15 15:09:37:832 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
[9/30/15 15:09:37:832 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
[9/30/15 15:09:37:832 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)
[9/30/15 15:09:37:832 CEST] 000000d0 SystemErr R at org.apache.wink.server.internal.handlers.CreateInvocationParametersHandler.handleRequest(CreateInvocationParametersHandler.java:54)
[9/30/15 15:09:37:832 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
[9/30/15 15:09:37:833 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
[9/30/15 15:09:37:833 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)
[9/30/15 15:09:37:833 CEST] 000000d0 SystemErr R at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleResourceMethod(FindResourceMethodHandler.java:151)
[9/30/15 15:09:37:833 CEST] 000000d0 SystemErr R at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:65)
[9/30/15 15:09:37:833 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
[9/30/15 15:09:37:833 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
[9/30/15 15:09:37:834 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)
[9/30/15 15:09:37:834 CEST] 000000d0 SystemErr R at org.apache.wink.server.internal.handlers.FindRootResourceHandler.handleRequest(FindRootResourceHandler.java:95)
[9/30/15 15:09:37:834 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
[9/30/15 15:09:37:834 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
[9/30/15 15:09:37:834 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)
[9/30/15 15:09:37:834 CEST] 000000d0 SystemErr R at org.apache.wink.server.internal.handlers.HeadMethodHandler.handleRequest(HeadMethodHandler.java:53)
[9/30/15 15:09:37:835 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
[9/30/15 15:09:37:835 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
[9/30/15 15:09:37:835 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)
[9/30/15 15:09:37:835 CEST] 000000d0 SystemErr R at org.apache.wink.server.internal.handlers.OptionsMethodHandler.handleRequest(OptionsMethodHandler.java:46)
[9/30/15 15:09:37:835 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
[9/30/15 15:09:37:835 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
[9/30/15 15:09:37:836 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)
[9/30/15 15:09:37:836 CEST] 000000d0 SystemErr R at org.apache.wink.server.internal.handlers.SearchResultHandler.handleRequest(SearchResultHandler.java:33)
[9/30/15 15:09:37:836 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
[9/30/15 15:09:37:836 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
[9/30/15 15:09:37:836 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)
[9/30/15 15:09:37:836 CEST] 000000d0 SystemErr R at org.apache.wink.server.internal.log.ResourceInvocation.handleRequest(ResourceInvocation.java:92)
[9/30/15 15:09:37:837 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
[9/30/15 15:09:37:837 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
[9/30/15 15:09:37:837 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)
[9/30/15 15:09:37:837 CEST] 000000d0 SystemErr R at org.apache.wink.server.internal.log.Requests.handleRequest(Requests.java:76)
[9/30/15 15:09:37:837 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
[9/30/15 15:09:37:837 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
[9/30/15 15:09:37:838 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)
[9/30/15 15:09:37:838 CEST] 000000d0 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.run(AbstractHandlersChain.java:48)
[9/30/15 15:09:37:839 CEST] 000000d0 SystemErr R at org.apache.wink.server.internal.RequestProcessor.handleRequestWithoutFaultBarrier(RequestProcessor.java:207)
[9/30/15 15:09:37:839 CEST] 000000d0 SystemErr R at org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:154)
[9/30/15 15:09:37:839 CEST] 000000d0 SystemErr R at org.apache.wink.server.internal.servlet.RestServlet.service(RestServlet.java:119)
[9/30/15 15:09:37:839 CEST] 000000d0 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
[9/30/15 15:09:37:839 CEST] 000000d0 SystemErr R at com.worklight.adapters.rest.JAXRSSandbox$2.doFilter(JAXRSSandbox.java:347)
[9/30/15 15:09:37:839 CEST] 000000d0 SystemErr R at com.worklight.adapters.rest.FilterChainImpl.doFilter(FilterChainImpl.java:84)
[9/30/15 15:09:37:840 CEST] 000000d0 SystemErr R at com.worklight.adapters.rest.JAXRSSandbox.handleRequest(JAXRSSandbox.java:352)
[9/30/15 15:09:37:840 CEST] 000000d0 SystemErr R at com.worklight.adapters.rest.RESTAdaptersServiceServlet.doService(RESTAdaptersServiceServlet.java:69)
[9/30/15 15:09:37:840 CEST] 000000d0 SystemErr R at com.worklight.adapters.rest.RESTAdaptersServlet.service(RESTAdaptersServlet.java:59)
[9/30/15 15:09:37:840 CEST] 000000d0 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
[9/30/15 15:09:37:840 CEST] 000000d0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1285)
[9/30/15 15:09:37:840 CEST] 000000d0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:776)
[9/30/15 15:09:37:841 CEST] 000000d0 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:473)
[9/30/15 15:09:37:841 CEST] 000000d0 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:135)
[9/30/15 15:09:37:841 CEST] 000000d0 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
[9/30/15 15:09:37:841 CEST] 000000d0 SystemErr R at com.worklight.analytics.AnalyticsFilter.doFilter(AnalyticsFilter.java:124)
[9/30/15 15:09:37:841 CEST] 000000d0 SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:206)
[9/30/15 15:09:37:841 CEST] 000000d0 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:86)
[9/30/15 15:09:37:842 CEST] 000000d0 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:978)
[9/30/15 15:09:37:842 CEST] 000000d0 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1100)
[9/30/15 15:09:37:842 CEST] 000000d0 SystemErr R at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:81)
[9/30/15 15:09:37:842 CEST] 000000d0 SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:912)
[9/30/15 15:09:37:843 CEST] 000000d0 SystemErr R at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.run(DynamicVirtualHost.java:262)
[9/30/15 15:09:37:843 CEST] 000000d0 SystemErr R at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink$TaskWrapper.run(HttpDispatcherLink.java:955)
[9/30/15 15:09:37:843 CEST] 000000d0 SystemErr R at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[9/30/15 15:09:37:843 CEST] 000000d0 SystemErr R at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[9/30/15 15:09:37:843 CEST] 000000d0 SystemErr R at java.lang.Thread.run(Thread.java:745)
I'm completly stuck with this. Has anyone an idea what could that be? (it's odd because it worked before).
my configuration:
product = WebSphere Application Server 8.5.5.5 (wlp-1.0.8.cl50520150305-2202)
wlp.install.dir = C:/Users/axxxx/.ibm/mobilefirst/7.1.0.00.20150807-0630/server/wlp/
java.home = C:\Program Files\Java\jdk1.7.0_79\jre
java.version = 1.7.0_79
java.runtime = Java(TM) SE Runtime Environment (1.7.0_79-b15)
os = Windows 7 (6.1; amd64) (en_US)
MobileFirst Studio in Eclipse sometimes acts strangely with class loading in adapters. One suggestion you may try is the following:
Backup your Studio
Create a new Eclipse workspace
Import a backup of your project
Re-build and deploy the project
Verify that the issue has been resolved.
I have wrote a code to find out the differences between two sheets and differences will be pasted in a new sheet. Now I need those column names as well in the sheet. As i am beginner to Macros. I couldn't do that. Please help me. Thanks in Advance.
Sub CompareWorksheets(ws1 As Worksheet, ws2 As Worksheet)
Dim r As Long, c As Integer
Dim lr1 As Long, lr2 As Long, lc1 As Integer, lc2 As Integer
Dim maxR As Long, maxC As Integer, cf1 As String, cf2 As String
Dim rptWB As Workbook, DiffCount As Long
Application.ScreenUpdating = False
Application.StatusBar = "Creating the report..."
Set rptWB = Workbooks.Add
Application.DisplayAlerts = False
While Worksheets.Count > 1
Worksheets(2).Delete
Wend
Application.DisplayAlerts = True
With ws1.UsedRange
lr1 = .Rows.Count
lc1 = .Columns.Count
End With
With ws2.UsedRange
lr2 = .Rows.Count
lc2 = .Columns.Count
End With
maxR = lr1
maxC = lc1
If maxR < lr2 Then maxR = lr2
If maxC < lc2 Then maxC = lc2
DiffCount = 0
For c = 1 To maxC
Application.StatusBar = "Comparing cells " & Format(c / maxC, "0 %") & "..."
For r = 1 To maxR
cf1 = ""
cf2 = ""
On Error Resume Next
cf1 = ws1.Cells(r, c).FormulaLocal
cf2 = ws2.Cells(r, c).FormulaLocal
On Error GoTo 0
If cf1 <> cf2 Then
DiffCount = DiffCount + 1
Cells(r, c).Formula = "'" & cf1 & " <> " & cf2
ws1.Cells(r, c).Interior.ColorIndex = 12
ws1.Cells(r, c).Copy
ws2.Cells(r, c).Interior.ColorIndex = 12
ws2.Cells(r, c).Copy
End If
Next r
Next c
Application.StatusBar = "Formatting the report..."
With Range(Cells(1, 1), Cells(maxR, maxC))
.Interior.ColorIndex = 19
With .Borders(xlEdgeTop)
.LineStyle = xlContinuous
.Weight = xlHairline
End With
With .Borders(xlEdgeRight)
.LineStyle = xlContinuous
.Weight = xlHairline
End With
With .Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.Weight = xlHairline
End With
With .Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlHairline
End With
On Error Resume Next
With .Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.Weight = xlHairline
End With
With .Borders(xlInsideVertical)
.LineStyle = xlContinuous
.Weight = xlHairline
End With
On Error GoTo 0
End With
Columns("A:IV").ColumnWidth = 20
rptWB.Saved = True
If DiffCount = 0 Then
rptWB.Close False
End If
Set rptWB = Nothing
Application.StatusBar = False
Application.ScreenUpdating = True
MsgBox DiffCount & " cells contain different formulas!", vbInformation, _
"Compare " & ws1.Name & " with " & ws2.Name
End Sub
Sub TestCompareWorksheets()
' compare two different worksheets in the active workbook
CompareWorksheets Worksheets("Sheet1"), Worksheets("Sheet2")
' compare two different worksheets in two different workbooks
' CompareWorksheets ActiveWorkbook.Worksheets("Sheet1"), _
' Workbooks("Compare Data Using Macro -New.xlsm").Worksheets("Sheet2")
End Sub
Basically:
ws1.Activate
Range(Cells(1, 1), Cells(1, lc1)).Copy
[your destination worksheet].Range("A1").PasteSpecial Paste:=xlPasteAll
But... Where you've defined ws1 and ws2? The destination sheet is in other workbook... Where are you pasting data in the new sheet?
Some time ago I wrote a macro to do that:
' Macro: ActualizarDatos()
Sub ActualizarDatos()
Dim num_sheets As Integer
Dim last_row_s1, last_col_s1 As Long
Dim last_row_s2, last_col_s2 As Long
Dim lookup_range As Range
Dim my_index, my_target_index As Variant
num_sheets = ActiveWorkbook.Sheets.Count
' Verifica el numero de hojas
If num_sheets >= 2 Then
If num_sheets = 2 Then
' Añadir nueva hoja al final
Worksheets.Add(After:=Sheets(Sheets.Count)).Name = "RESULTADO"
End If
' Para determinar el tamaño de las hojas 1 y 2
last_row_s1 = ActiveWorkbook.Sheets(1).Range("A" & Rows.Count).End(xlUp).Row
last_col_s1 = ActiveWorkbook.Sheets(1).Range("a1").End(xlToRight).Column
last_row_s2 = ActiveWorkbook.Sheets(2).Range("A" & Rows.Count).End(xlUp).Row
last_col_s2 = ActiveWorkbook.Sheets(2).Range("a1").End(xlToRight).Column
' Copia los datos de la Hoja-1 en la Hoja-3 de resultado
Sheets(1).Activate
Range(Cells(1, 1), Cells(last_row_s1, last_col_s1)).Copy
Worksheets(3).Range("A1").PasteSpecial Paste:=xlPasteAll
'Worksheets(3).Range("A1").PasteSpecial Paste:=xlPasteFormats
'Worksheets(3).Range("A1").Paste
Sheets(2).Activate
Set lookup_range = Range(Cells(1, 1), Cells(last_row_s2, 1))
' Recorre los indices (columna A) de la Hoja-1 y busca las coincidencias en
' la Hoja-2
For num_row = 2 To last_row_s1
my_index = Sheets(1).Cells(num_row, 1).Value
my_target_index = Application.Match(my_index, lookup_range, 0)
If Not IsError(my_target_index) Then
' Encontrada la coincidencia de índices se recorren las filas de
' encabezados de columnas (fila 1) para buscar coincidencias.
For num_col = 2 To last_col_s1
title_origin = Sheets(1).Cells(1, num_col)
title_target_index = Application.Match(title_origin, _
Sheets(2).Range(Cells(1, 1), Cells(1, last_col_s2)), 0)
If Not IsError(title_target_index) Then
' Encontrada la coincidencia de encabezados de columna
' comprobar si el valor de la celda es distinto y no Null
' copiar a hoja 3 llamando a subrutina ActualizarCelda
ActualizarCelda Sheets(3).Cells(num_row, num_col), _
Sheets(2).Cells(my_target_index, title_target_index)
End If
Next num_col
End If
Next num_row
'ActiveSheet.Range("a1", Range("a1").End(xlDown).End(xlToRight)).Select
' Debug purpose
' MsgBox "HOJA-1. Número de Filas: " & last_row_s1 & vbNewLine & "Número de Columnas: " & last_col_s1
' MsgBox "HOJA-2. Número de Filas: " & last_row_s2 & vbNewLine & "Número de Columnas: " & last_col_s2
Else
MsgBox ("ERROR! Se necesita un mínimo de 2 hojas")
End If
End Sub
' Subrutina privada de ActualizarDatos()
' parametros:
' celdaOrigen; tipo Range, dato de la hoja-3 original
' celdaDestino; tipo Range, dato de la hoja-2
' verifica si el contenido de la celda destino es diferente a la celda origen
' y en ese caso actualiza su valor y cambia el fondo a Amarillo.
Private Sub ActualizarCelda(ByVal celdaOrigen, celdaDestino As Range)
If (Not celdaDestino.Value = Empty) And UCase(celdaOrigen.Value) <> UCase(celdaDestino.Value) Then
celdaDestino.Copy
celdaOrigen.PasteSpecial Paste:=xlPasteAll
' celdaOrigen.Value = UCase(celdaDestino.Value) DESCARTADO POR NO CONSERVAR FORMATO FECHA
celdaOrigen.Interior.ColorIndex = 6 ' Formato fondo de celda Amarillo.
' MsgBox celdaOrigen.Value
End If
End Sub
Check the line [Cells(r, c).Formula = ws1.Cells(r, c)]. this will copy the column names of sheet 1 to your new sheet.
For r = 1 To maxR
cf1 = ""
cf2 = ""
On Error Resume Next
cf1 = ws1.Cells(r, c).FormulaLocal
cf2 = ws2.Cells(r, c).FormulaLocal
On Error GoTo 0
Cells(r, c).Formula = ws1.Cells(r, c)
If cf1 <> cf2 Then
DiffCount = DiffCount + 1
Cells(r, c).Formula = "'" & cf1 & " <> " & cf2
ws1.Cells(r, c).Interior.ColorIndex = 12
ws1.Cells(r, c).Copy
ws2.Cells(r, c).Interior.ColorIndex = 12
ws2.Cells(r, c).Copy
End If
Next r